/**
 * OG Hemp - Homepage Latest Blogs Showcase Section (Interactive Carousel)
 * Scoped strictly to .oghemp-blog-showcase
 */

.oghemp-blog-showcase {
	width: 100%;
	padding: 80px 20px;
	background: linear-gradient(180deg, #FBFDF9 0%, #F5F8F2 100%);
	position: relative;
	box-sizing: border-box;
	overflow: hidden;
}

.oghemp-blog-showcase::before {
	content: '';
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: 1200px;
	height: 1px;
	background: linear-gradient(90deg, rgba(75, 102, 40, 0) 0%, rgba(75, 102, 40, 0.25) 50%, rgba(75, 102, 40, 0) 100%);
}

.oghemp-showcase-container {
	max-width: 1240px;
	margin: 0 auto;
	box-sizing: border-box;
	position: relative;
}

/* ----------------------------------------------------
 * Header Section (Aligned with Homepage Theme)
 * ---------------------------------------------------- */
.oghemp-showcase-header {
	text-align: center;
	max-width: 920px;
	margin: 0 auto 44px auto;
}

.oghemp-showcase-eyebrow {
	font-size: clamp(20px, 2.3vw, 26px);
	font-weight: 600;
	color: #8CC53F;
	margin: 0 0 10px 0;
	line-height: 1.3;
	text-align: center;
}

.oghemp-showcase-title {
	font-size: clamp(26px, 3.2vw, 36px);
	font-weight: 700;
	line-height: 1.3;
	color: #050505;
	margin: 0 0 16px 0;
	letter-spacing: -0.01em;
	text-align: center;
}

.oghemp-showcase-subtitle {
	font-family: 'Rubik', sans-serif, -apple-system, BlinkMacSystemFont;
	font-size: clamp(16px, 1.5vw, 18px);
	font-weight: 400;
	line-height: 1.65;
	color: #050505;
	margin: 0 auto;
	text-align: center;
	max-width: 860px;
}

/* ----------------------------------------------------
 * Carousel Wrapper & Nav Controls
 * ---------------------------------------------------- */
.oghemp-showcase-carousel-wrap {
	position: relative;
	width: 100%;
	padding: 0 10px;
	box-sizing: border-box;
}

/* Floating Navigation Buttons */
.oghemp-carousel-nav-btn {
	position: absolute;
	top: calc(50% - 14px);
	transform: translateY(-50%);
	z-index: 10;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: #FFFFFF;
	color: #1A3326;
	border: 1px solid rgba(26, 51, 38, 0.12);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	outline: none;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
	-webkit-tap-highlight-color: transparent;
}

.oghemp-carousel-nav-btn.oghemp-prev-btn {
	left: -14px;
}

.oghemp-carousel-nav-btn.oghemp-next-btn {
	right: -14px;
}

.oghemp-carousel-nav-btn.is-disabled {
	opacity: 0;
	pointer-events: none;
	transform: translateY(-50%) scale(0.85);
}

.oghemp-carousel-nav-btn:hover:not(.is-disabled) {
	background: #3B5A1D;
	color: #FFFFFF;
	border-color: #3B5A1D;
	box-shadow: 0 8px 24px rgba(59, 90, 29, 0.28);
	transform: translateY(-50%) scale(1.08);
}

.oghemp-carousel-nav-btn:active:not(.is-disabled) {
	transform: translateY(-50%) scale(0.96);
}

.oghemp-carousel-nav-btn svg {
	width: 22px !important;
	height: 22px !important;
	min-width: 22px !important;
	min-height: 22px !important;
	display: block !important;
	stroke: currentColor !important;
	fill: none !important;
	stroke-width: 2.8px !important;
	stroke-linecap: round !important;
	stroke-linejoin: round !important;
	pointer-events: none;
	transition: transform 0.2s ease, stroke 0.2s ease;
}

.oghemp-carousel-nav-btn.oghemp-next-btn:hover svg {
	transform: translateX(2px);
}

.oghemp-carousel-nav-btn.oghemp-prev-btn:hover svg {
	transform: translateX(-2px);
}

/* ----------------------------------------------------
 * Carousel Scroll Track
 * ---------------------------------------------------- */
.oghemp-showcase-track {
	display: flex;
	gap: 28px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	padding: 14px 6px 28px 6px;
	margin: 0;
	scrollbar-width: none;
	-ms-overflow-style: none;
	cursor: grab;
	user-select: none;
	-webkit-user-select: none;
}

.oghemp-showcase-track.is-dragging {
	cursor: grabbing;
	scroll-behavior: auto;
	scroll-snap-type: none;
}

.oghemp-showcase-track::-webkit-scrollbar {
	display: none;
}

/* ----------------------------------------------------
 * Carousel Single Card
 * ---------------------------------------------------- */
.oghemp-blog-card {
	flex: 0 0 calc((100% - 56px) / 3);
	min-width: calc((100% - 56px) / 3);
	max-width: calc((100% - 56px) / 3);
	flex-shrink: 0;
	scroll-snap-align: start;
	scroll-snap-stop: normal;
	background: #FFFFFF;
	border-radius: 18px;
	border: 1px solid rgba(26, 51, 38, 0.08);
	overflow: hidden;
	box-shadow: 0 4px 20px -2px rgba(26, 51, 38, 0.05), 0 2px 6px -1px rgba(26, 51, 38, 0.03);
	display: flex;
	flex-direction: column;
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
	position: relative;
	box-sizing: border-box;
}

.oghemp-blog-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 20px 35px -5px rgba(26, 51, 38, 0.12), 0 10px 15px -3px rgba(26, 51, 38, 0.06);
	border-color: rgba(75, 102, 40, 0.35);
}

/* Card Media Wrap */
.oghemp-card-media-wrap {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #EEF2EB;
	overflow: hidden;
	text-decoration: none;
}

.oghemp-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.oghemp-blog-card:hover .oghemp-card-img {
	transform: scale(1.06);
}

.oghemp-card-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #EAF0E6;
}

/* Floating Category Pill */
.oghemp-card-category-pill {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	padding: 5px 12px;
	border-radius: 999px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #243D1A;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.8);
	transition: background 0.2s ease, color 0.2s ease;
}

.oghemp-blog-card:hover .oghemp-card-category-pill {
	background: #3B5A1D;
	color: #FFFFFF;
}

/* Card Body */
.oghemp-card-body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

/* Card Meta Row */
.oghemp-card-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 14px;
	font-size: 12px;
	color: #728277;
}

.oghemp-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.oghemp-meta-item svg {
	opacity: 0.7;
}

/* Card Title */
.oghemp-card-title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0 0 12px 0;
	color: #121E17;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 50px;
}

.oghemp-card-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.oghemp-card-title a:hover {
	color: #3B5A1D;
}

/* Card Excerpt */
.oghemp-card-excerpt {
	font-size: 13.5px;
	line-height: 1.6;
	color: #5A695F;
	margin: 0 0 20px 0;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex-grow: 1;
}

/* Card Footer Link */
.oghemp-card-footer {
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid rgba(26, 51, 38, 0.06);
}

.oghemp-card-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	font-weight: 600;
	color: #38511a;
	text-decoration: none;
	transition: color 0.2s ease, gap 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.oghemp-card-arrow {
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.oghemp-blog-card:hover .oghemp-card-link {
	color: #243D1A;
	gap: 12px;
}

.oghemp-blog-card:hover .oghemp-card-arrow {
	transform: translateX(4px);
}

/* ----------------------------------------------------
 * Carousel Pagination Dots
 * ---------------------------------------------------- */
.oghemp-carousel-dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	margin-top: 4px;
	margin-bottom: 36px;
}

.oghemp-carousel-dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: rgba(26, 51, 38, 0.2);
	border: none;
	padding: 0;
	cursor: pointer;
	outline: none;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.oghemp-carousel-dot:hover {
	background: rgba(59, 90, 29, 0.5);
}

.oghemp-carousel-dot.is-active {
	background: #3B5A1D;
	width: 26px;
	border-radius: 999px;
}

/* ----------------------------------------------------
 * Showcase Footer CTA Button
 * ---------------------------------------------------- */
.oghemp-showcase-cta {
	text-align: center;
}

.oghemp-showcase-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 34px;
	background: #233D2D;
	color: #FFFFFF !important;
	border-radius: 999px;
	font-size: 14.5px;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 6px 18px rgba(35, 61, 45, 0.2);
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.oghemp-showcase-btn:hover {
	background: #3B5A1D;
	box-shadow: 0 10px 24px rgba(59, 90, 29, 0.3);
	transform: translateY(-2px);
	color: #FFFFFF !important;
}

.oghemp-showcase-btn svg {
	transition: transform 0.25s ease;
}

.oghemp-showcase-btn:hover svg {
	transform: translateX(4px);
}

/* ----------------------------------------------------
 * Responsive Breakpoints
 * ---------------------------------------------------- */
@media (max-width: 1024px) {
	.oghemp-blog-card {
		flex: 0 0 calc((100% - 24px) / 2);
	}
	.oghemp-showcase-track {
		gap: 24px;
	}
	.oghemp-carousel-nav-btn.oghemp-prev-btn {
		left: -6px;
	}
	.oghemp-carousel-nav-btn.oghemp-next-btn {
		right: -6px;
	}
	.oghemp-card-title {
		min-height: auto;
	}
}

@media (max-width: 640px) {
	.oghemp-blog-showcase {
		padding: 56px 14px;
	}
	.oghemp-showcase-header {
		margin-bottom: 32px;
	}
	.oghemp-showcase-track {
		gap: 16px;
		padding: 10px 2px 20px 2px;
	}
	.oghemp-blog-card {
		flex: 0 0 84%;
	}
	.oghemp-card-body {
		padding: 20px;
	}
	.oghemp-carousel-nav-btn {
		display: none; /* Mobile utilizes native high-performance touch scrolling */
	}
	.oghemp-showcase-btn {
		width: 100%;
		justify-content: center;
		padding: 14px 24px;
	}
}
