/**
 * ALFAFA Modern WordPress Theme — Internal Pages Stylesheet
 *
 * Implements the responsive foundation for all internal pages:
 * - 195px corporate inner hero banner with leaf_small.png and logo card
 * - Contextual tabbed subpage navigation (.subpage-nav-bar)
 * - Two-column responsive page content & sidebar layout
 * - Reusable card components:
 *   * About Us subpage cards (.card-subpage)
 *   * Product cards with authentic pr_ic_bg.jpg (.card-product)
 *   * Two-column service cards with more.png (.card-service)
 *   * News article cards (.card-news)
 *
 * @package Alfafa_Modern
 * @version 1.0.0
 */

/* ==========================================================================
   1. Inner Hero Banner (.inner-hero-banner-wrapper)
   ========================================================================== */

.inner-hero-banner-wrapper {
	width: 100%;
	max-width: var(--alfafa-max-width, 1124px);
	margin: 0 auto;
	padding: 0;
	box-sizing: border-box;
	position: relative;
}

.inner-hero-banner {
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 1124px;
	height: 195px;
	background-color: #e9e9e9;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	position: relative;
	box-sizing: border-box;
	overflow: hidden;
}

/* Botanical leaf_small.png is placed at page wrapper level (.leaf-decor-inner) */
.inner-hero-leaf {
	display: none;
}

/* Left Corporate Logo Card (184x179px) */
.inner-hero-logo {
	flex: 0 0 184px;
	width: 184px;
	height: 179px;
	margin: 6px 20px 5px 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
}

.inner-hero-logo a {
	display: block;
	line-height: 0;
}

.inner-hero-logo-img {
	width: 184px;
	height: 179px;
	object-fit: contain;
	display: block;
}

/* Right Banner Image & Title Overlay Container (778x195px) */
.inner-hero-image-wrapper {
	flex: 0 0 778px;
	width: 778px;
	height: 195px;
	margin-left: auto;
	position: relative;
	overflow: hidden;
	border-radius: 0 10px 10px 0;
	background-color: #d8d8d8;
}

.inner-hero-img {
	width: 778px;
	height: 195px;
	object-fit: cover;
	object-position: center;
	display: block;
}

.inner-hero-title-overlay {
	position: absolute;
	top: 80px;
	right: 40px;
	text-align: right;
	z-index: 5;
	width: auto;
}

.inner-hero-title {
	margin: 0;
	font-family: 'Open Sans', Arial, Helvetica, sans-serif;
	font-size: 35px;
	font-weight: 700;
	color: #ffffff;
	text-shadow: 1px 1px 1px #000000;
	letter-spacing: normal;
	line-height: 35px;
}

/* ==========================================================================
   2. Subpage Tabbed Navigation (.subpage-nav-bar)
   ========================================================================== */

.subpage-nav-bar {
	margin: 20px 0 25px;
	width: 100%;
	box-sizing: border-box;
}

.subpage-nav-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.subpage-nav-item {
	margin: 0;
}

.subpage-nav-link {
	display: inline-block;
	padding: 8px 18px;
	background: #e8e8e8;
	color: #333333;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	border-radius: 6px;
	border: 1px solid #dedede;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	white-space: nowrap;
}

.subpage-nav-link:hover,
.subpage-nav-link:focus {
	background: #488204;
	color: #ffffff;
	border-color: #488204;
}

.subpage-nav-item.current_page_item .subpage-nav-link,
.subpage-nav-item.active .subpage-nav-link {
	background: #579b06;
	color: #ffffff;
	border-color: #488204;
	box-shadow: 0 2px 5px rgba(87, 155, 6, 0.3);
}

/* Authentic Left Sidebar Subpage Menu (.p_r_menu) */
.p_r_menu {
	float: left;
	width: 255px;
	height: auto;
	background: #54ac00;
	border-radius: 10px;
	padding: 20px 25px 30px 20px;
	margin-top: 11px;
	box-sizing: border-box;
}
.p_r_menu h1 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 22px;
	color: #ffffff;
	text-transform: capitalize;
	font-weight: normal;
	margin-bottom: 10px;
	line-height: 25px;
	overflow: hidden;
	margin-left: 10px;
}
.p_r_menu .subpage-nav-list,
.p_r_menu ul {
	display: block;
	list-style: none;
	margin: 0;
	padding: 0;
}
.p_r_menu .subpage-nav-item,
.p_r_menu li {
	display: block;
	font-size: 12px;
	padding: 8px 0px 8px 0px;
	border-bottom: 1px solid #78d024;
	margin-left: 6px;
	text-transform: uppercase;
	list-style: none;
}
.p_r_menu .subpage-nav-item:last-child,
.p_r_menu li:last-child {
	border-bottom: none;
}
.p_r_menu .subpage-nav-link,
.p_r_menu li a {
	display: block;
	padding: 0 0 0 20px;
	background: url(../images/arrow.png) no-repeat left center !important;
	color: #ffffff;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: normal;
	border: none;
	border-radius: 0;
	box-shadow: none;
	text-decoration: none;
	transition: color 0.15s ease;
}
.p_r_menu .subpage-nav-link:before {
	content: none !important;
}
.p_r_menu .subpage-nav-link:hover,
.p_r_menu .subpage-nav-link:focus,
.p_r_menu li a:hover {
	background: url(../images/arrow.png) no-repeat left center !important;
	color: #474747;
	border: none;
}
.p_r_menu .subpage-nav-item.current_page_item .subpage-nav-link,
.p_r_menu .subpage-nav-item.current_page_item a,
.p_r_menu .subpage-nav-item.active .subpage-nav-link,
.p_r_menu .subpage-nav-item.active a,
.p_r_menu li.current_page_item a {
	background: url(../images/arrow.png) no-repeat left center !important;
	color: #474747 !important;
	border: none;
	box-shadow: none;
	font-weight: normal;
	cursor: text;
}

/* ==========================================================================
   2b. Authentic Two-Column Subpage Layout (.h_cnt_1, .p_cnt_left, .p_cnt_right, .page_m2)
   ========================================================================== */

.home-content-wrapper,
#home_content_wrp {
	width: 100%;
	max-width: 1124px;
	margin: 0 auto;
	box-sizing: border-box;
}

.h_cnt_1 {
	width: 100%;
	display: flex;
	gap: 30px;
	align-items: flex-start;
	box-sizing: border-box;
}

.p_cnt_left {
	flex: 0 0 300px;
	width: 300px;
	box-sizing: border-box;
}

.p_cnt_right {
	flex: 1;
	min-width: 0;
	max-width: 760px;
	min-height: 300px;
	box-sizing: border-box;
}

/* Authentic Page Content Area (.page_m2) */
.page_m2 {
	width: 100%;
	max-width: 760px;
	margin: 5px 0 0 0;
	padding-bottom: 40px;
	box-sizing: border-box;
	background: transparent;
	border: none;
	box-shadow: none;
	border-radius: 0;
}

.page_m2 h2 {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 20px;
	color: #627700;
	padding-bottom: 10px;
	margin: 5px 0 10px;
	font-weight: normal;
	line-height: 1.3;
	border-bottom: none;
}

.page_m2 p {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	color: #424242;
	line-height: 20px;
	padding-bottom: 15px;
	margin: 0 0 10px;
}

.page_m2 ol {
	list-style: none;
	padding: 0;
	margin: 0 0 20px;
	font-size: 16px;
	color: #474747;
	line-height: 18px;
	overflow: hidden;
	border-bottom: 6px solid #e9e9e9;
	padding-bottom: 10px;
}

.page_m2 .alignright,
.page_m2 img.alignright {
	border-radius: 10px;
	margin-left: 20px;
	margin-bottom: 20px;
	float: right;
	max-width: 100%;
	height: auto;
}

/* ==========================================================================
   3. Shared Internal Page Content Layout (.internal-page-wrapper)
   ========================================================================== */

.internal-page-wrapper {
	max-width: 1000px;
	margin: 0 auto;
	padding: 0 10px;
	box-sizing: border-box;
}

.internal-content-container {
	margin: 20px 0 35px;
}

/* Shared Two-Column Grid */
.internal-two-col {
	display: flex;
	gap: 30px;
	align-items: flex-start;
}

.internal-sidebar {
	flex: 0 0 300px;
	width: 300px;
}

.sidebar-widget-area {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.internal-main-content {
	flex: 1;
	min-width: 0;
}

.internal-article {
	background: #ffffff;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	padding: 25px 30px;
	box-sizing: border-box;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.internal-article .entry-header {
	margin-bottom: 20px;
	border-bottom: 2px solid #579b06;
	padding-bottom: 10px;
}

.internal-article .entry-title {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 24px;
	font-weight: 700;
	color: #579b06;
	margin: 0;
	line-height: 1.3;
}

.internal-article .entry-content {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	line-height: 1.7;
	color: #444444;
}

.internal-article .entry-content p {
	margin: 0 0 16px;
}

.internal-article .entry-content h2 {
	font-size: 20px;
	color: #579b06;
	margin: 24px 0 12px;
	font-weight: 700;
}

.internal-article .entry-content h3 {
	font-size: 16px;
	color: #333333;
	margin: 18px 0 10px;
	font-weight: 700;
}

.internal-article .entry-content ul,
.internal-article .entry-content ol {
	margin: 0 0 18px 25px;
	padding: 0;
}

.internal-article .entry-content li {
	margin-bottom: 6px;
}

.internal-article .entry-content img.alignright {
	float: right;
	margin: 5px 0 15px 20px;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
}

.internal-article .entry-content img.alignleft {
	float: left;
	margin: 5px 20px 15px 0;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
}

/* ==========================================================================
   4. Reusable Card Components
   ========================================================================== */

/* 4.1 Subpage Card Grid & Card (.card-subpage) */
.subpage-card-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 15px;
	margin: 25px 0;
}

.card-subpage {
	background: #b8b8b8;
	border-radius: 10px;
	padding: 16px 12px;
	text-align: center;
	color: #ffffff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	min-height: 250px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

.card-subpage:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
}

.card-subpage-thumbnail-wrapper {
	width: 99px;
	height: 99px;
	border-radius: 8px;
	overflow: hidden;
	background: #ffffff;
	margin-bottom: 12px;
	border: 2px solid #ffffff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-subpage-img {
	width: 99px;
	height: 99px;
	object-fit: cover;
	display: block;
}

.card-subpage-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	width: 100%;
	justify-content: space-between;
}

.card-subpage-title {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 8px;
	line-height: 1.3;
}

.card-subpage-title a {
	color: #ffffff;
	text-decoration: none;
}

.card-subpage-title a:hover {
	text-decoration: underline;
}

.card-subpage-excerpt {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	line-height: 1.45;
	color: #f5f5f5;
	margin: 0 0 12px;
	flex: 1;
}

.card-subpage-action {
	margin-top: auto;
}

.card-subpage-btn {
	display: inline-block;
	padding: 5px 14px;
	background: #579b06;
	color: #ffffff;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 11px;
	font-weight: 700;
	text-decoration: none;
	border-radius: 4px;
	transition: background 0.2s ease;
}

.card-subpage-btn:hover,
.card-subpage-btn:focus {
	background: #488204;
}

/* 4.2 Product Card Grid & Card (.card-product) */
.product-card-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px 15px;
	margin: 25px 0;
	justify-items: center;
}

.card-product {
	width: 185px;
	min-height: 235px;
	background: url('../images/pr_ic_bg.jpg') no-repeat center top;
	background-size: cover;
	border-radius: 8px;
	padding: 8px;
	box-sizing: border-box;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-product:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.card-product-inner {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	height: 100%;
}

.card-product-thumbnail-wrapper {
	width: 169px;
	height: 136px;
	overflow: hidden;
	border-radius: 4px;
	background-color: #ffffff;
	margin-bottom: 10px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-product-img {
	width: 169px;
	height: 136px;
	object-fit: cover;
	display: block;
}

.card-product-title {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0;
	padding: 0 4px;
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.card-product-title a {
	color: #579b06;
	text-decoration: none;
}

.card-product-title a:hover {
	color: #488204;
	text-decoration: underline;
}

/* 4.3 Service Card Grid & Card (.card-service) */
.service-card-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin: 25px 0;
}

.card-service {
	background: #ffffff;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 16px;
	display: flex;
	gap: 16px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

.card-service:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 12px rgba(0, 0, 0, 0.09);
}

.card-service-thumbnail-wrapper {
	flex: 0 0 128px;
	width: 128px;
	height: 140px;
	overflow: hidden;
	border: 1px solid #d5d5d5;
	border-radius: 4px;
	background-color: #f4f4f4;
}

.card-service-img {
	width: 128px;
	height: 140px;
	object-fit: cover;
	display: block;
}

.card-service-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.card-service-title {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 8px;
	line-height: 1.3;
}

.card-service-title a {
	color: #579b06;
	text-decoration: none;
}

.card-service-title a:hover {
	color: #488204;
	text-decoration: underline;
}

.card-service-excerpt {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	line-height: 1.45;
	color: #555555;
	margin: 0 0 12px;
	flex: 1;
}

.card-service-action {
	align-self: flex-start;
}

.card-service-more-link {
	display: inline-block;
	line-height: 0;
}

.card-service-more-img {
	width: 119px;
	height: 62px;
	display: block;
	cursor: pointer;
	transition: opacity 0.2s ease;
}

.card-service-more-img:hover {
	opacity: 0.88;
}

/* 4.4 News Card Listing & Card (.card-news) */
.news-card-listing {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin: 25px 0;
}

.card-news {
	background: #ffffff;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	padding: 18px;
	display: flex;
	gap: 20px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
	align-items: flex-start;
	box-sizing: border-box;
}

.card-news-thumbnail-wrapper {
	flex: 0 0 200px;
	width: 200px;
	height: 130px;
	overflow: hidden;
	border-radius: 6px;
	background-color: #f4f4f4;
}

.card-news-img {
	width: 200px;
	height: 130px;
	object-fit: cover;
	display: block;
}

.card-news-content {
	flex: 1;
}

.card-news-date-badge {
	display: inline-block;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: 700;
	color: #579b06;
	margin-bottom: 6px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.card-news-title {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 17px;
	font-weight: 700;
	margin: 0 0 8px;
	line-height: 1.35;
}

.card-news-title a {
	color: #333333;
	text-decoration: none;
}

.card-news-title a:hover {
	color: #579b06;
	text-decoration: underline;
}

.card-news-excerpt {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	line-height: 1.55;
	color: #666666;
	margin: 0 0 10px;
}

.card-news-action {
	margin-top: 6px;
}

.card-news-more-link {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	font-weight: 700;
	color: #579b06;
	text-decoration: none;
}

.card-news-more-link:hover {
	color: #488204;
	text-decoration: underline;
}

/* ==========================================================================
   5. Responsive Viewport Adaptations
   ========================================================================== */

/* 5.1 Tablet Landscape & Small Desktop (1023px and below) */
@media (max-width: 1023px) {
	.inner-hero-banner-wrapper {
		padding: 0 10px;
	}

	.inner-hero-banner {
		height: 160px;
	}

	.inner-hero-logo {
		flex: 0 0 140px;
		width: 140px;
		height: 136px;
		margin: 0 15px 0 25px;
	}

	.inner-hero-logo-img {
		width: 140px;
		height: 136px;
	}

	.inner-hero-image-wrapper {
		flex: 1;
		width: auto;
		height: 160px;
	}

	.inner-hero-img {
		width: 100%;
		height: 100%;
	}

	.inner-hero-title-overlay {
		top: auto;
		bottom: 20px;
		right: 25px;
	}

	.inner-hero-title {
		font-size: 24px;
		line-height: 28px;
	}

	.internal-two-col {
		gap: 20px;
	}

	.internal-sidebar {
		flex: 0 0 260px;
		width: 260px;
	}

	.subpage-card-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.product-card-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.service-card-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* 5.2 Tablet Portrait & Mobile (768px and below) */
@media (max-width: 768px) {
	.inner-hero-banner-wrapper {
		padding: 0 10px;
		overflow: hidden;
	}

	.inner-hero-banner {
		height: 140px;
		min-height: 140px;
	}

	/* Omit redundant inner logo on mobile (header already contains logo) */
	.inner-hero-logo {
		display: none;
	}

	.inner-hero-image-wrapper {
		border-radius: 10px;
		width: 100%;
		flex: 1;
		height: 140px;
	}

	.inner-hero-img {
		width: 100%;
		height: 100%;
	}

	.inner-hero-title-overlay {
		top: auto;
		right: 15px;
		bottom: 15px;
		max-width: 90%;
		background: rgba(0, 0, 0, 0.45);
		padding: 6px 12px;
		border-radius: 4px;
	}

	.inner-hero-title {
		font-size: 18px;
		line-height: 22px;
	}

	/* Subpage Tab Strip: Horizontal Swipe on Mobile */
	.subpage-nav-list {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 8px;
		-webkit-overflow-scrolling: touch;
	}

	.subpage-nav-link {
		padding: 7px 14px;
		font-size: 12px;
	}

	/* Stack Two Columns on Mobile */
	.internal-two-col {
		flex-direction: column;
		gap: 25px;
	}

	.internal-sidebar {
		width: 100%;
		flex: 1 1 100%;
		order: 2;
	}

	.internal-main-content {
		width: 100%;
		flex: 1 1 100%;
		order: 1;
	}

	.internal-article {
		padding: 20px 16px;
	}

	.subpage-card-grid {
		grid-template-columns: 1fr;
		max-width: 340px;
		margin: 20px auto;
	}

	.product-card-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 15px 10px;
	}

	.service-card-grid {
		grid-template-columns: 1fr;
	}

	.card-service {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.card-service-thumbnail-wrapper {
		width: 140px;
		height: 150px;
	}

	.card-service-action {
		align-self: center;
	}

	.card-news {
		flex-direction: column;
	}

	.card-news-thumbnail-wrapper {
		width: 100%;
		height: 160px;
		flex: 0 0 160px;
	}

	.card-news-img {
		width: 100%;
		height: 160px;
	}
}

/* 5.3 Small Mobile Viewports (480px and below) */
@media (max-width: 480px) {
	.product-card-grid {
		grid-template-columns: 1fr;
	}

	.card-product {
		width: 200px;
	}

	.card-product-thumbnail-wrapper {
		width: 180px;
		height: 145px;
	}

	.card-product-img {
		width: 180px;
		height: 145px;
	}
}

/* ==========================================================================
   6. Authentic ALFAFA About Us Page Layout (#h_banner_wrp_pg, .page_m, .p_cnt_sub_wr)
   ========================================================================== */

#h_banner_wrp_pg {
	width: 100%;
	max-width: 1124px;
	height: 195px;
	background: #e9e9e9;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	position: relative;
	margin: 0 auto;
	box-sizing: border-box;
	overflow: hidden;
}

#h_banner_wrp_pg .logo,
.inner-hero-logo {
	width: 184px;
	height: 179px;
	margin: 6px 20px 5px 50px;
	float: left;
}

#h_banner_wrp_pg .h_banner,
.inner-hero-image-wrapper {
	width: 778px;
	height: 195px;
	float: right;
	position: relative;
	z-index: 0;
	overflow: hidden;
	border-radius: 0 10px 10px 0;
}

#h_banner_wrp_pg .h_banner img,
.inner-hero-img {
	width: 778px;
	height: 195px;
	object-fit: cover;
	display: block;
}

#h_banner_wrp_pg h2,
.inner-hero-title-overlay h2,
.inner-hero-title {
	color: #ffffff;
	font-family: 'Open Sans', sans-serif;
	font-size: 35px;
	line-height: 35px;
	font-weight: 700;
	text-shadow: 1px 1px 1px #000000;
	margin: 0;
}

.inner-hero-title-overlay {
	position: absolute;
	top: 80px;
	right: 40px;
	z-index: 5;
}

/* About Us Content Intro Row (.page_m) */
.page_m {
	width: 760px;
	margin: 5px 0 0 60px;
	float: left;
	box-sizing: border-box;
}

.page_m h2 {
	font-size: 22px;
	color: #627700;
	margin: 5px 0 10px;
	font-family: 'Open Sans', sans-serif;
	font-weight: 700;
}

.page_m ol {
	font-size: 14px;
	color: #474747;
	line-height: 22px;
	border-bottom: 6px solid #e9e9e9;
	margin-bottom: 20px;
	padding-bottom: 20px;
	list-style: none;
	padding-left: 0;
	margin-top: 0;
	font-family: 'Open Sans', sans-serif;
}

.page_m ol p {
	margin: 0;
	font-size: 14px;
	color: #474747;
	line-height: 22px;
}

/* Four Subpage Cards (.p_cnt_sub_wr) */
.p_cnt_sub_wr {
	width: 100%;
	max-width: 1124px;
	margin: 0 auto;
	height: auto;
	display: flex;
	justify-content: space-between;
	padding-bottom: 40px;
	box-sizing: border-box;
	clear: both;
}

.p_cnt_sub_wr .subpage-card-link,
.p_cnt_sub_wr a {
	display: block;
	text-decoration: none;
	width: 269px;
	flex: 0 0 269px;
	box-sizing: border-box;
}

.p_cnt_sub_wr .subpage-card-item,
.p_cnt_sub_wr ul {
	width: 100%;
	height: 100%;
	min-height: 180px;
	margin: 15px 0 0;
	overflow: hidden;
	background: #b8b8b8;
	padding: 15px 20px 30px;
	border-radius: 10px;
	text-align: center;
	list-style: none;
	box-sizing: border-box;
	transition: background-color 0.2s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.p_cnt_sub_wr a:hover ul,
.p_cnt_sub_wr .subpage-card-link:hover .subpage-card-item {
	background: #a8a8a8;
}

.p_cnt_sub_wr .image,
.p_cnt_sub_wr .image img,
.p_cnt_sub_wr .subpage-card-img {
	width: 99px;
	height: 99px;
	object-fit: contain;
	display: block;
	margin: 0 auto;
}

.p_cnt_sub_wr h2,
.p_cnt_sub_wr .subpage-card-title {
	font-size: 22px;
	text-transform: capitalize;
	margin-top: 15px;
	margin-bottom: 0;
	color: #ffffff;
	font-family: 'Open Sans', sans-serif;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
}

/* Six Products Cards (.p_cnt_sub_prd) */
.p_cnt_sub_prd {
	width: 100%;
	max-width: 1124px;
	margin: 0 auto;
	height: auto;
	display: flex;
	justify-content: space-between;
	padding-bottom: 40px;
	box-sizing: border-box;
	clear: both;
}

.p_cnt_sub_prd ul,
.p_cnt_sub_prd .product-card-item {
	width: 185px;
	flex: 0 0 185px;
	height: 235px;
	margin: 15px 0 0;
	overflow: hidden;
	background: url('../images/pr_ic_bg.jpg') no-repeat center top;
	text-align: center;
	position: relative;
	list-style: none;
	padding: 0;
	box-sizing: border-box;
}

.p_cnt_sub_prd .image {
	margin-top: 10px;
	text-align: center;
}

.p_cnt_sub_prd .image img,
.p_cnt_sub_prd .product-card-img {
	width: 169px;
	height: 136px;
	object-fit: cover;
	display: block;
	margin: 0 auto;
	border-radius: 6px;
}

.p_cnt_sub_prd ol {
	text-align: center !important;
	position: absolute;
	bottom: 4px;
	left: 0;
	right: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	height: 70px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.p_cnt_sub_prd h2,
.p_cnt_sub_prd .product-card-title {
	font-family: 'Open Sans', Arial, sans-serif;
	font-size: 16px;
	font-weight: 600;
	line-height: 19px;
	overflow: hidden;
	padding: 0 6px;
	position: relative;
	text-align: center;
	text-transform: capitalize;
	margin: 0;
	color: #ffffff;
	box-sizing: border-box;
	width: 100%;
}

.p_cnt_sub_prd a {
	color: #ffffff;
	text-decoration: none;
	transition: color 0.2s ease;
}

.p_cnt_sub_prd a:hover {
	color: #474747;
}

/* Authentic ALFAFA Services Subpages Grid (.p_cnt_sub_srv) */
.p_cnt_sub_srv {
	width: 100%;
	max-width: 1124px;
	margin: 0 auto;
	height: auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 15px 17px;
	padding-bottom: 40px;
	box-sizing: border-box;
	clear: both;
}

.p_cnt_sub_srv .p_cnt_sub_srv_itm,
.p_cnt_sub_srv .service-card-item {
	width: 363px;
	flex: 0 0 363px;
	height: 250px;
	position: relative;
	margin-top: 15px;
	box-sizing: border-box;
}

.p_cnt_sub_srv ul {
	background: #b8b8b8;
	padding: 20px 10px 20px 20px;
	width: 100%;
	height: 180px;
	border-radius: 10px;
	text-align: left;
	box-sizing: border-box;
	list-style: none;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin: 0;
	transition: background-color 0.2s ease;
}

.p_cnt_sub_srv ul:hover {
	background: #a8a8a8;
}

.p_cnt_sub_srv ul .image {
	width: 128px;
	height: 140px;
	flex: 0 0 128px;
	overflow: hidden;
	border-radius: 4px;
	margin: 0;
}

.p_cnt_sub_srv ul .image img {
	width: 128px;
	height: 140px;
	object-fit: cover;
	display: block;
}

.p_cnt_sub_srv ul ol {
	width: 190px;
	flex: 0 0 190px;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow: hidden;
	height: 140px;
}

.p_cnt_sub_srv h2 {
	font-family: 'Open Sans', Arial, sans-serif;
	font-size: 19px;
	font-weight: 600;
	text-transform: capitalize;
	margin: 0 0 8px 0;
	color: #424242;
	line-height: 22px;
}

.p_cnt_sub_srv h2 a {
	color: #424242;
	text-decoration: none;
	transition: color 0.2s ease;
}

.p_cnt_sub_srv h2 a:hover {
	color: #1a1a1a;
}

.p_cnt_sub_srv ol p {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 13px;
	line-height: 18px;
	color: #474747;
	margin: 0;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 5;
	-webkit-box-orient: vertical;
}

.p_cnt_sub_srv .more {
	position: absolute;
	bottom: 0;
	right: 0;
	z-index: 10;
}

.p_cnt_sub_srv .more a {
	display: block;
	transition: transform 0.2s ease;
}

.p_cnt_sub_srv .more a:hover {
	transform: scale(1.05);
}

.p_cnt_sub_srv .more img {
	width: 119px;
	height: 62px;
	display: block;
}

/* ==========================================================================
   9. Authentic ALFAFA Contact Us Page (.p_contact_l, .p_contact_r, .offc_addrs, .loc_map, .cform)
   ========================================================================== */

.p_contact_wrp {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-top: 15px;
	margin-bottom: 40px;
	box-sizing: border-box;
}

.p_contact_l {
	width: 460px;
	flex: 0 0 460px;
	margin-bottom: 30px;
	box-sizing: border-box;
}

.offc_addrs {
	width: 100%;
	margin-bottom: 25px;
}

.offc_addrs h2,
.loc_map h2 {
	width: 100%;
	background: #54ac00;
	line-height: 21px;
	font-size: 21px;
	font-weight: normal;
	color: #ffffff;
	padding: 12px 20px;
	border-radius: 7px;
	margin: 0 0 10px 0;
	box-sizing: border-box;
	font-family: Arial, Helvetica, sans-serif;
}

.offc_addrs strong {
	font-size: 15px;
	font-weight: normal;
	color: #333333;
}

.offc_addrs .addrs_in {
	width: 100%;
	padding: 20px;
	border: 3px solid #c8c8c8;
	border-radius: 8px;
	box-sizing: border-box;
	background: #ffffff;
}

.offc_addrs table {
	width: 100%;
	border-collapse: collapse;
}

.offc_addrs table td {
	display: table-cell;
	padding-bottom: 10px;
	font-size: 13px;
	color: #474747;
	line-height: 1.5;
	vertical-align: top;
	border: none;
}

.offc_addrs table td strong {
	font-weight: 700;
	font-size: 13px;
	color: #333333;
}

.loc_map {
	width: 100%;
}

.loc_map ul {
	width: 100%;
	list-style: none;
	padding: 0;
	margin: 0;
	border-radius: 8px;
	overflow: hidden;
	background: #e5e3df url(../images/contact_map.png) no-repeat center center;
	background-size: cover;
	min-height: 300px;
}

.loc_map iframe {
	width: 100%;
	height: 300px;
	border: 0;
	border-radius: 8px;
	display: block;
}

.p_contact_r {
	width: 640px;
	flex: 0 0 640px;
	background: #f5f5f5;
	border-radius: 8px;
	padding: 0;
	box-sizing: border-box;
	margin-bottom: 30px;
}

.p_contact_r .contact-notice-box {
	background: #dddddd;
	padding: 20px 24px;
	border-radius: 8px 8px 0 0;
	font-size: 13px;
	line-height: 1.5;
	color: #474747;
	font-family: Arial, Helvetica, sans-serif;
	margin: 0;
}

.p_contact_r .cform {
	width: 100%;
	padding: 20px 40px;
	box-sizing: border-box;
}

.p_contact_r ol.cf-ol {
	padding: 0 !important;
	margin: 0 !important;
	list-style: none;
}

.p_contact_r .cf-ol li {
	width: 100%;
	margin-left: 0 !important;
	margin: 14px 0 !important;
	position: relative;
	list-style: none;
	box-sizing: border-box;
}

.p_contact_r .cform label {
	font-size: 13px;
	padding-bottom: 4px;
	margin: 0 0 6px 0;
	float: none;
	width: 100%;
	display: block;
	color: #474747;
	font-family: Arial, Helvetica, sans-serif;
}

.p_contact_r .cform input.fldemail,
.p_contact_r .cform input[type="text"],
.p_contact_r .cform input[type="email"],
.p_contact_r .cform input[type="tel"] {
	background: #fbfbfb;
	border: 1px solid #d8d8d8;
	padding: 6px 8px;
	vertical-align: top;
	color: #392035;
	width: 95%;
	box-sizing: border-box;
	font-size: 13px;
	border-radius: 3px;
	outline: none;
	display: inline-block;
}

.p_contact_r .cform textarea {
	background: #fbfbfb;
	border: 1px solid #d8d8d8;
	padding: 6px 8px;
	vertical-align: top;
	color: #392035;
	width: 95%;
	height: 90px;
	box-sizing: border-box;
	font-size: 13px;
	border-radius: 3px;
	outline: none;
	font-family: Arial, Helvetica, sans-serif;
	display: inline-block;
	resize: vertical;
}

.p_contact_r span.reqtxt,
.p_contact_r span.emailreqtxt {
	color: #c64c0b;
	background: none;
	float: right;
	height: 11px;
	width: 11px;
	font-size: 22px;
	font-weight: bold;
	margin-right: 0;
	position: relative;
	top: 6px;
	line-height: 1;
}

.p_contact_r .cform input:focus,
.p_contact_r .cform textarea:focus {
	background: #ffffff;
	border-color: #54ac00;
}

.p_contact_r p.cf-sb {
	float: left;
	margin-left: 0 !important;
	padding-top: 10px;
	margin-bottom: 25px;
	width: 100%;
}

.p_contact_r .cform input.sendbutton {
	background: url(../images/submi.png) no-repeat left top;
	border: 0 !important;
	color: transparent;
	font-size: 0;
	cursor: pointer;
	padding: 0;
	height: 29px;
	width: 84px;
	display: inline-block;
	text-indent: -9999px;
}

/* ==========================================================================
   10. Authentic ALFAFA News & Events Page (.news_content_right, .media_l, .readmore)
   ========================================================================== */

.page-news-events .h_cnt_1 {
	display: flex !important;
	justify-content: space-between !important;
	align-items: flex-start !important;
	grid-template-columns: none !important;
	width: 100%;
}

.news_content_right {
	width: 760px;
	flex: 0 0 760px;
	margin-left: 60px;
	box-sizing: border-box;
}

.news_content_right .page_m {
	width: 100%;
	margin: 5px 0 0 0;
	float: none;
}

.media_l {
	width: 100%;
	max-width: 766px;
	background: #c3c3c3;
	padding: 20px 20px 10px 20px;
	box-sizing: border-box;
	margin: 20px 0;
	border-radius: 8px;
}

.media_l h2 {
	font-size: 22px;
	text-transform: capitalize;
	color: #414141;
	padding-bottom: 15px;
	margin: 0 0 5px 0;
	font-weight: normal;
	font-family: Arial, Helvetica, sans-serif;
}

.media_l ul {
	border-bottom: 1px solid #aaa;
	margin-bottom: 15px;
	padding-bottom: 15px;
	list-style: none;
	padding-left: 0;
	margin-top: 0;
}

.media_l ul:last-of-type {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.media_l .news-date {
	margin-bottom: 6px;
	line-height: normal;
	font-size: 12px;
	padding: 0;
	color: #414141;
	font-family: Arial, Helvetica, sans-serif;
}

.media_l .news-item-title {
	font-size: 16px;
	font-weight: normal;
	padding-bottom: 4px;
	margin: 0 0 4px 0;
	color: #414141;
	font-family: Arial, Helvetica, sans-serif;
	line-height: 1.4;
}

.media_l .news-item-excerpt {
	padding-bottom: 0;
	margin: 0;
	font-size: 13px;
	color: #414141;
	line-height: 1.5;
	font-family: Arial, Helvetica, sans-serif;
}

.media_l .readmore {
	margin-top: 10px;
	margin-bottom: 0;
	text-transform: lowercase;
}

.media_l .readmore a {
	color: #579b06;
	text-decoration: none;
	font-size: 13px;
	font-family: Arial, Helvetica, sans-serif;
}

.media_l .readmore a:hover {
	color: #2e2c2d;
	text-decoration: underline;
}

@media screen and (max-width: 1126px) {
	#h_banner_wrp_pg {
		display: flex;
		align-items: stretch;
		height: 195px;
		max-width: 100%;
		box-sizing: border-box;
	}
	#h_banner_wrp_pg .logo {
		flex: 0 0 240px;
		width: 240px;
		height: 195px;
		margin: 0;
		display: flex;
		align-items: center;
		justify-content: center;
	}
	#h_banner_wrp_pg .logo img {
		max-width: 160px;
		max-height: 160px;
		object-fit: contain;
	}
	#h_banner_wrp_pg .h_banner {
		flex: 1 1 auto;
		width: auto;
		height: 195px;
		float: none;
	}
	#h_banner_wrp_pg .h_banner img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}
	.page_m {
		width: calc(100% - 330px);
		margin-left: 30px;
	}
	.p_cnt_sub_wr {
		max-width: 100%;
		padding-left: 10px;
		padding-right: 10px;
		flex-wrap: wrap;
		gap: 15px;
		justify-content: center;
	}
	.p_cnt_sub_wr .subpage-card-link,
	.p_cnt_sub_wr a {
		flex: 0 0 calc(50% - 15px);
		max-width: 269px;
	}
	.p_cnt_sub_prd {
		max-width: 100%;
		padding-left: 10px;
		padding-right: 10px;
		flex-wrap: wrap;
		gap: 15px 10px;
		justify-content: center;
	}
	.p_cnt_sub_srv {
		max-width: 100%;
		padding-left: 10px;
		padding-right: 10px;
		justify-content: center;
		gap: 20px;
	}
	.p_cnt_sub_srv .p_cnt_sub_srv_itm {
		width: calc(50% - 15px);
		max-width: 363px;
		flex: 0 0 calc(50% - 15px);
	}
	.p_contact_wrp {
		flex-direction: column;
		align-items: center;
		padding: 0 15px;
	}
	.p_contact_l {
		width: 100%;
		max-width: 640px;
		flex: 0 0 auto;
	}
	.p_contact_r {
		width: 100%;
		max-width: 640px;
		flex: 0 0 auto;
	}
	.news_content_right {
		flex: 1 1 auto;
		width: calc(100% - 330px);
		max-width: calc(100% - 330px);
		margin-left: 30px;
	}
	.media_l {
		width: 100%;
	}
}

@media screen and (max-width: 768px) {
	#h_banner_wrp_pg {
		height: auto;
		flex-direction: column;
	}
	#h_banner_wrp_pg .logo {
		display: none;
	}
	#h_banner_wrp_pg .h_banner {
		width: 100%;
		height: 195px;
		float: none;
		border-radius: 8px;
	}
	#h_banner_wrp_pg .h_banner img {
		width: 100%;
	}
	.page-news-events .h_cnt_1,
	.h_cnt_1 {
		flex-direction: column !important;
	}
	.nsltr {
		width: 100% !important;
		max-width: 100% !important;
		float: none !important;
	}
	.page_m {
		width: 100% !important;
		margin-left: 0 !important;
		margin-top: 20px !important;
	}
	.news_content_right {
		width: 100% !important;
		max-width: 100% !important;
		margin-left: 0 !important;
		margin-top: 20px !important;
	}
	.media_l {
		width: 100% !important;
		max-width: 100% !important;
		padding: 15px !important;
	}
}

/* ==========================================================================
   Photo Gallery Page Specific Rules (.p_cnt_sub_srv, SimpleViewer Container)
   ========================================================================== */
.page-photo-gallery .h_cnt_1 {
	display: flex !important;
	justify-content: space-between;
	align-items: flex-start;
	width: 100%;
	margin: 20px 0 0px;
}

.page-photo-gallery .page_m {
	width: calc(100% - 360px);
	max-width: 760px;
	margin: 5px 0 0 60px;
	border-bottom: 6px solid #e9e9e9;
	padding-bottom: 0px;
}

.page-photo-gallery .page_m h2 {
	margin: 5px 0 10px;
	color: #627700;
	font-size: 20px;
	font-weight: normal;
	line-height: normal;
	padding-bottom: 0;
}

.page-photo-gallery .page_m ol {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: none !important;
	height: auto;
}

.p_cnt_sub_srv.photo_gallery_wrap {
	width: 100%;
	max-width: 1126px;
	margin: 0 auto;
	position: relative;
	display: block;
	min-height: 20px;
}

.gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 12px;
	padding: 10px 0 30px;
}

.gallery-thumb-item {
	position: relative;
	aspect-ratio: 4 / 3;
	border: 4px solid #cacaca;
	border-radius: 6px;
	overflow: hidden;
	cursor: pointer;
	background: #f5f5f5;
	transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.gallery-thumb-item:hover,
.gallery-thumb-item:focus {
	border-color: #54ac00;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	outline: none;
}

.gallery-thumb-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Stage View / Viewer */
.gallery-viewer {
	display: none;
	background: #2b2b2b;
	border-radius: 8px;
	padding: 20px;
	margin-bottom: 25px;
	position: relative;
	color: #fff;
	box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.gallery-viewer.active {
	display: block;
}

.gallery-viewer-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
	padding-bottom: 10px;
	border-bottom: 1px solid #444;
}

.gallery-viewer-counter {
	font-size: 14px;
	color: #ccc;
	font-family: 'Open Sans', Arial, sans-serif;
	font-weight: 600;
}

.gallery-viewer-actions button {
	background: #3e3e3e;
	color: #fff;
	border: 1px solid #555;
	padding: 6px 14px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 13px;
	margin-left: 8px;
	transition: background 0.2s, border-color 0.2s;
}

.gallery-viewer-actions button:hover,
.gallery-viewer-actions button:focus {
	background: #54ac00;
	border-color: #54ac00;
	outline: none;
}

.gallery-stage {
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	min-height: 480px;
	max-height: 520px;
}

.gallery-image-frame {
	max-width: 100%;
	max-height: 480px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.gallery-image-frame img {
	max-width: 100%;
	max-height: 480px;
	border: 10px solid #cacaca;
	border-radius: 4px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.5);
	object-fit: contain;
	background: #000;
}

.gallery-nav-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(0,0,0,0.6);
	color: #fff;
	border: none;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, transform 0.2s;
	z-index: 10;
}

.gallery-nav-btn:hover,
.gallery-nav-btn:focus {
	background: #54ac00;
	transform: translateY(-50%) scale(1.1);
	outline: none;
}

.gallery-nav-prev { left: 15px; }
.gallery-nav-next { right: 15px; }

/* Filmstrip under stage */
.gallery-filmstrip-wrapper {
	margin-top: 15px;
	padding-top: 10px;
	border-top: 1px solid #444;
}

.gallery-filmstrip {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 5px 0;
	scrollbar-width: thin;
}

.gallery-filmstrip-thumb {
	flex: 0 0 70px;
	height: 50px;
	border: 2px solid #555;
	border-radius: 4px;
	overflow: hidden;
	cursor: pointer;
	opacity: 0.6;
	transition: opacity 0.2s, border-color 0.2s;
}

.gallery-filmstrip-thumb.active,
.gallery-filmstrip-thumb:hover,
.gallery-filmstrip-thumb:focus {
	opacity: 1;
	border-color: #54ac00;
	outline: none;
}

.gallery-filmstrip-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

@media screen and (max-width: 1126px) {
	.p_cnt_sub_srv.photo_gallery_wrap {
		width: 100% !important;
		padding: 0 15px;
	}
}

@media screen and (max-width: 768px) {
	.page-photo-gallery .h_cnt_1 {
		flex-direction: column !important;
	}
	.page-photo-gallery .page_m {
		width: 100% !important;
		margin: 20px 0 0 0 !important;
	}
	.gallery-grid {
		grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
		gap: 8px;
	}
	.gallery-stage {
		min-height: 280px;
		max-height: 350px;
	}
	.gallery-image-frame img {
		max-height: 300px;
		border-width: 6px;
	}
	.gallery-nav-btn {
		width: 36px;
		height: 36px;
		font-size: 22px;
	}
}



