/**
 * Education Page Styles
 * Rich visual template for educational articles with sticky sidebar
 * Matches policy page design patterns
 *
 * @package Onviqa
 * @since 1.0.0
 */

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
	--only-edu-max-width: 1440px;
	--only-edu-content-width: 800px;
	--only-edu-sidebar-width: 280px;
	--only-edu-gap: 48px;
	--only-edu-text: #222222;
	--only-edu-muted: #666666;
	--only-edu-light: #999999;
	--only-edu-border: #E6E9F0;
	--only-edu-border-dashed: #DDDDDD;
	--only-edu-accent: #FF6B35;
	--only-edu-accent-hover: #e55a2b;
	--only-edu-gold: #D4AF37;
	--only-edu-bg: #FAFAFA;
	--only-edu-white: #FFFFFF;
	--only-edu-dark: #1a1a1a;
	--only-edu-card-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
	--only-edu-card-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   Layout
   ========================================================================== */
.only-edu-page {
	background-color: var(--only-edu-white);
	min-height: 100vh;
}

.only-edu-container {
	max-width: var(--only-edu-max-width);
	margin: 0 auto;
	padding: 0 24px;
}

.only-edu-container--content {
	max-width: var(--only-edu-content-width);
	margin: 0;
	padding: 0;
}

/* Main wrapper for sidebar + content */
.only-edu-wrapper {
	max-width: var(--only-edu-max-width);
	margin: 0 auto;
	padding: 0 24px;
	display: flex;
	gap: var(--only-edu-gap);
	align-items: flex-start;
}

/* ==========================================================================
   Reading Progress Bar
   ========================================================================== */
.only-edu-progress {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 3px;
	background: transparent;
	z-index: 9999;
}

.only-edu-progress__bar {
	height: 100%;
	width: 0%;
	background: linear-gradient(90deg, var(--only-edu-accent), var(--only-edu-gold));
	transition: width 0.1s ease-out;
}

/* ==========================================================================
   Breadcrumbs - Now inside hero section
   ========================================================================== */
.only-edu-breadcrumbs {
	display: none; /* Hide separate breadcrumbs section */
}

/* Breadcrumbs inside hero - uses original woocommerce-breadcrumb styling */
.only-edu-hero .only-breadcrumb-wrapper {
	margin-bottom: 16px;
}

.only-edu-hero .woocommerce-breadcrumb {
	font-size: 13px;
	color: var(--only-edu-muted);
}

.only-edu-hero .woocommerce-breadcrumb a {
	color: var(--only-edu-muted);
	text-decoration: none;
	transition: color 0.2s;
}

.only-edu-hero .woocommerce-breadcrumb a:hover {
	color: var(--only-edu-accent);
}

.only-edu-hero .breadcrumb-separator {
	color: var(--only-edu-light);
	margin: 0 6px;
}

/* ==========================================================================
   Hero Section - Light Theme with Floating Image
   ========================================================================== */
.only-edu-hero {
	position: relative;
	background: linear-gradient(135deg, #fffdfa 0%, #f8f5f0 50%, #fefaf6 100%);
	overflow: visible;
	padding: 48px 0 60px;
	margin-top: 8px;
	border-bottom: 1px solid rgba(255, 107, 53, 0.08);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

/* Decorative accent line - removed for cleaner look */

/* Subtle pattern background */
.only-edu-hero::before,
.only-edu-hero::after {
	content: '';
	position: absolute;
	pointer-events: none;
	z-index: 0;
}

.only-edu-hero::before {
	top: -60px;
	left: 10%;
	width: 320px;
	height: 320px;
	background: radial-gradient(circle, rgba(255, 154, 0, 0.25), transparent 70%);
}

.only-edu-hero::after {
	top: 40%;
	right: -80px;
	width: 280px;
	height: 280px;
	background: radial-gradient(circle, rgba(255, 107, 53, 0.18), transparent 60%);
}

/* No overlay needed */
.only-edu-hero__overlay {
	display: none;
}

.only-edu-hero > .only-edu-container {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 60px;
	align-items: center;
}

.only-edu-hero__content {
	position: relative;
	padding: 20px 0;
	max-width: 100%;
}

.only-edu-hero__meta {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 20px;
	flex-wrap: wrap;
	padding: 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.9);
	position: relative;
	z-index: 3;
	backdrop-filter: blur(12px);
	width: fit-content;
}

.only-edu-hero__category {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--only-edu-accent);
	color: var(--only-edu-white);
	padding: 8px 20px;
	border-radius: 24px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	text-decoration: none;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(255, 107, 53, 0.25);
}

.only-edu-hero__category:hover {
	background: var(--only-edu-dark);
	color: var(--only-edu-white);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.only-edu-hero__reading-time {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--only-edu-muted);
	font-size: 13px;
	font-weight: 500;
	background: var(--only-edu-white);
	padding: 6px 14px;
	border-radius: 20px;
	border: 1px solid var(--only-edu-border);
}

.only-edu-hero__reading-time svg {
	width: 15px;
	height: 15px;
	color: var(--only-edu-accent);
}

.only-edu-hero__title {
	font-family: 'DM Serif Display', Georgia, serif;
	font-size: 52px;
	font-weight: 400;
	line-height: 1.1;
	margin: 0 0 20px;
	letter-spacing: -0.5px;
	color: var(--only-edu-text);
	position: relative;
	padding-bottom: 18px;
}

.only-edu-hero__subtitle {
	font-size: 18px;
	line-height: 1.7;
	color: var(--only-edu-muted);
	margin: 0;
	max-width: 460px;
	letter-spacing: 0.02em;
}

.only-edu-hero__title::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 8px;
	width: 110px;
	height: 5px;
	border-radius: 999px;
	background: linear-gradient(90deg, #ff6b35, #ffd700);
	box-shadow: 0 12px 30px rgba(255, 107, 53, 0.35);
}


/* Featured Image - Floating Card Style */
.only-edu-hero__image {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.85);
	border-radius: 44px;
	padding: 10px;
	box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.only-edu-hero__image img {
	width: 100%;
	height: auto;
	max-height: 420px;
	object-fit: cover;
	border-radius: 36px;
	box-shadow: 
		0 30px 60px -20px rgba(0, 0, 0, 0.25),
		0 12px 30px -10px rgba(0, 0, 0, 0.1);
	transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.only-edu-hero__image::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: radial-gradient(circle, rgba(255, 255, 255, 0.6) 1px, transparent 1px);
	background-size: 60px 60px;
	mix-blend-mode: screen;
	opacity: 0.9;
	animation: only-edu-sparkles 8s linear infinite;
}

.only-edu-hero__image::after {
	animation: only-edu-sparkles-pulse 6s ease-in-out infinite alternate;
}

@keyframes only-edu-sparkles {
	from {
		transform: translate3d(0, 0, 0);
		opacity: 0.8;
	}
	to {
		transform: translate3d(10px, -10px, 0);
		opacity: 0.3;
	}
}

@keyframes only-edu-sparkles-pulse {
	from {
		opacity: 0.25;
		transform: scale(1);
	}
	to {
		opacity: 0.5;
		transform: scale(1.08);
	}
}



.only-edu-hero__image:hover img {
	transform: translateY(-5px);
	box-shadow: 
		0 35px 70px -15px rgba(0, 0, 0, 0.25),
		0 15px 40px -10px rgba(0, 0, 0, 0.15);
}

/* Decorative elements around image */
.only-edu-hero__image::before,
.only-edu-hero__image::after {
	content: '';
	position: absolute;
	z-index: -1;
}

.only-edu-hero__image::before {
	top: -30px;
	right: 12%;
	width: 140px;
	height: 140px;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.75), transparent 65%);
	border-radius: 36px;
}

.only-edu-hero__image::after {
	bottom: -40px;
	left: -15px;
	width: 120px;
	height: 120px;
	border: 3px solid rgba(255, 107, 53, 0.35);
	border-radius: 999px;
	opacity: 0.45;
}

/* Responsive Hero */
@media (max-width: 1200px) {
	.only-edu-hero > .only-edu-container {
		gap: 40px;
	}
	
	.only-edu-hero__title {
		font-size: 44px;
	}
	
	.only-edu-hero__image img {
		max-height: 380px;
	}
}

@media (max-width: 1024px) {
	.only-edu-hero {
		padding: 40px 0 60px;
	}
	
	.only-edu-hero > .only-edu-container {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	
	.only-edu-hero__content {
		text-align: center;
		padding: 20px 0;
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	
	.only-edu-hero__meta {
		justify-content: center;
		position: relative;
		top: auto;
		right: auto;
		margin-bottom: 20px;
	}
	
	.only-edu-hero__subtitle {
		max-width: 100%;
		margin: 0 auto;
	}
	
	.only-edu-hero__image img {
		max-height: 350px;
		border-radius: 20px;
	}
	
	.only-edu-hero__image::before,
	.only-edu-hero__image::after {
		display: none;
	}
	
	.only-edu-hero__title {
		font-size: 36px;
	}
}

@media (max-width: 768px) {
	.only-edu-hero {
		padding: 30px 0 50px;
	}
	
	.only-edu-hero__content {
		padding: 20px 0;
	}
	
	.only-edu-hero__image img {
		max-height: 280px;
		border-radius: 16px;
	}
	
	.only-edu-hero__title {
		font-size: 28px;
		margin-bottom: 14px;
	}
	
	.only-edu-hero__subtitle {
		font-size: 15px;
	}
	
	.only-edu-hero__meta {
		margin-bottom: 20px;
	}
	
	.only-edu-hero__category {
		padding: 6px 14px;
		font-size: 10px;
	}
	
	.only-edu-hero__reading-time {
		padding: 5px 12px;
		font-size: 12px;
	}
}

/* ==========================================================================
   Content Section
   ========================================================================== */
.only-edu-content {
	padding: 24px 0 60px;
}

/* ==========================================================================
   Sticky Sidebar Navigation (Clean Style)
   ========================================================================== */
.only-edu-sidebar {
	position: sticky;
	top: 140px;
	flex-shrink: 0;
	width: var(--only-edu-sidebar-width);
	z-index: 10;
	margin-top: 8px;
}

.only-edu-nav {
	background: var(--only-edu-white);
	border: 1px solid var(--only-edu-border);
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

/* Simple Header */
.only-edu-nav__heading {
	font-family: 'Roboto Flex', system-ui, sans-serif;
	font-size: 13px;
	font-weight: 700;
	color: var(--only-edu-text);
	margin: 0;
	padding: 16px 18px 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-bottom: 1px solid var(--only-edu-border);
}

/* Nav Body with hidden scrollbar but scrollable */
.only-edu-nav__body {
	max-height: 750px;
	overflow-y: auto;
	
	/* Hide scrollbar visually but keep functionality */
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.only-edu-nav__body::-webkit-scrollbar {
	display: none;
}

.only-edu-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.only-edu-nav__item {
	margin: 0;
	padding: 0;
	border-bottom: 1px dashed var(--only-edu-border-dashed);
}

.only-edu-nav__item:last-child {
	border-bottom: none;
}

.only-edu-nav__link {
	display: block;
	padding: 12px 18px;
	text-decoration: none;
	font-family: 'Roboto Flex', system-ui, sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: var(--only-edu-text);
	line-height: 1.4;
	transition: all 0.2s ease;
}

.only-edu-nav__link:hover {
	color: var(--only-edu-accent);
	background-color: rgba(255, 107, 53, 0.05);
}

.only-edu-nav__item.is-current .only-edu-nav__link {
	color: var(--only-edu-accent);
	font-weight: 600;
	background-color: rgba(255, 107, 53, 0.08);
	border-left: 3px solid var(--only-edu-accent);
}

.only-edu-nav__text {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Sticky Footer with View All Button */
.only-edu-nav__footer {
	padding: 12px 14px;
	background: var(--only-edu-bg);
	border-top: 1px solid var(--only-edu-border);
}

.only-edu-nav__view-all {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 12px 16px;
	background: var(--only-edu-dark);
	color: var(--only-edu-white);
	border: none;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	transition: all 0.2s ease;
}

.only-edu-nav__view-all:hover {
	background: var(--only-edu-accent);
}

.only-edu-nav__view-all svg {
	width: 16px;
	height: 16px;
	transition: transform 0.2s ease;
}

.only-edu-nav__view-all:hover svg {
	transform: translateX(4px);
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */
.only-edu-main {
	flex: 1;
	min-width: 0;
	max-width: 1080px; /* Allow main content to be wider for sliders */
}

/* ==========================================================================
   Product Sliders inside Education Body - Extend to 1080px
   ========================================================================== */
.only-edu-body .ksq-slider-section,
.only-edu-body .ksq-product-slider,
.only-edu-body section[class*="slider"] {
	width: 1080px;
	max-width: 100vw;
	margin-left: 0;
	margin-right: 0;
}

.only-edu-product-slider {
    width: 1080px;
    max-width: 100vw;
    margin: 60px auto;
}

.only-edu-product-slider--brand {
    margin-top: 40px;
}

/* Slider title - uses global styles from main.css */

/* Slider container inherits full width */
.only-edu-body .ksq-product-slider__container,
.only-edu-body .ksq-slider-section > .container,
.only-edu-body .swiper-container,
.only-edu-body .swiper {
	max-width: 100%;
	padding-left: 0;
	padding-right: 0;
}

/* ==========================================================================
   Product Cards - DO NOT override theme styles
   Reset any accidental overrides to use theme defaults
   ========================================================================== */

/* Article Body */
.only-edu-body {
	font-size: 17px;
	line-height: 1.8;
	color: var(--only-edu-text);
}

.only-edu-body > p,
.only-edu-body > div > p {
	margin: 0 0 20px;
}

/* Article headings - exclude product cards and sliders */
.only-edu-body .ksq-aeo-content h1,
.only-edu-body .ksq-aeo-content h2,
.only-edu-body .ksq-aeo-content h3,
.only-edu-body .ksq-aeo-content h4,
.only-edu-body .ksq-aeo-content h5,
.only-edu-body .ksq-aeo-content h6,
.only-edu-body > h1,
.only-edu-body > h2,
.only-edu-body > h3,
.only-edu-body > h4,
.only-edu-body > h5,
.only-edu-body > h6 {
	color: var(--only-edu-text);
	scroll-margin-top: 100px;
}

.only-edu-body .ksq-aeo-content h1,
.only-edu-body > h1,
.only-edu-body > div:not([class*="ksq-"]):not([class*="swiper"]) > h1 {
	margin: 46px 0 18px;
}

.only-edu-body .ksq-aeo-content h2,
.only-edu-body > h2,
.only-edu-body > div:not([class*="ksq-"]):not([class*="swiper"]) > h2 {
	margin: 40px 0 16px;
}

.only-edu-body .ksq-aeo-content h3,
.only-edu-body > h3,
.only-edu-body > div:not([class*="ksq-"]):not([class*="swiper"]) > h3 {
	margin: 32px 0 12px;
}

.only-edu-body .ksq-aeo-content h4,
.only-edu-body > h4,
.only-edu-body > div:not([class*="ksq-"]):not([class*="swiper"]) > h4 {
	margin: 26px 0 10px;
}

.only-edu-body .ksq-aeo-content h5,
.only-edu-body > h5,
.only-edu-body > div:not([class*="ksq-"]):not([class*="swiper"]) > h5 {
	margin: 22px 0 8px;
	letter-spacing: 0.005em;
}

.only-edu-body .ksq-aeo-content h6,
.only-edu-body > h6,
.only-edu-body > div:not([class*="ksq-"]):not([class*="swiper"]) > h6 {
	margin: 18px 0 6px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Decorative accents for headings to separate stacked titles */
.only-edu-body h1,
.only-edu-body h2 {
	position: relative;
}

.only-edu-body h1::after,
.only-edu-body h2::after {
	content: "";
	display: block;
	width: 56px;
	height: 2px;
	background: var(--only-edu-accent);
	margin-top: 6px;
}

/* gentle breathing room when headings stack */
.only-edu-body h2 + h3,
.only-edu-body h3 + h3,
.only-edu-body h2 + h2 {
	margin-top: 10px;
	padding-top: 6px;
}

.only-edu-body .ksq-aeo-content h1,
.only-edu-body .ksq-aeo-content h2,
.only-edu-body .ksq-aeo-content h3,
.only-edu-body .ksq-aeo-content h4,
.only-edu-body .ksq-aeo-content h5,
.only-edu-body .ksq-aeo-content h6 {
	margin-left: 0;
	margin-right: 0;
}

.only-edu-body > h4,
.only-edu-body > div:not([class*="ksq-"]):not([class*="swiper"]) > h4 {
	margin: 24px 0 10px;
	color: var(--only-edu-text);
}

.only-edu-body ul,
.only-edu-body ol {
	margin: 0 0 20px;
	padding-left: 24px;
}

.only-edu-body li {
	margin-bottom: 10px;
	line-height: 1.7;
}

.only-edu-body > a,
.only-edu-body > p a,
.only-edu-body > div:not([class*="ksq-"]):not([class*="swiper"]) a {
	color: var(--only-edu-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.2s;
}

.only-edu-body > a:hover,
.only-edu-body > p a:hover,
.only-edu-body > div:not([class*="ksq-"]):not([class*="swiper"]) a:hover {
	color: var(--only-edu-accent-hover);
}

/* Remove underlines from product card links */
.only-edu-body .ksq-product-card a,
.only-edu-body .ksq-product-card__link,
.only-edu-body .ksq-product-card__review-text,
.only-edu-body [class*="ksq-"] a {
	text-decoration: none !important;
}

.only-edu-body strong {
	font-weight: 600;
	color: var(--only-edu-text);
}

.only-edu-body img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 28px 0;
}

/* ==========================================================================
   Quick Facts Box
   ========================================================================== */
.only-edu-facts {
	background: linear-gradient(135deg, #fff8f5 0%, #fff5f0 100%);
	border: 1px solid rgba(255, 107, 53, 0.15);
	border-radius: 12px;
	padding: 28px;
	margin: 0 0 32px;
}

.only-edu-facts__title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 17px;
	font-weight: 600;
	margin: 0 0 18px;
	color: var(--only-edu-text);
}

.only-edu-facts__title svg {
	width: 22px;
	height: 22px;
	color: var(--only-edu-accent);
}

.only-edu-facts__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}

.only-edu-facts__item {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.only-edu-facts__icon {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	background: var(--only-edu-white);
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--only-edu-accent);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.only-edu-facts__icon svg {
	width: 14px;
	height: 14px;
}

.only-edu-facts__label {
	font-size: 11px;
	color: var(--only-edu-muted);
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 2px;
}

.only-edu-facts__value {
	font-size: 14px;
	font-weight: 600;
	color: var(--only-edu-text);
}

/* ==========================================================================
   Comparison Table
   ========================================================================== */
.only-edu-table-wrapper {
	margin: 32px 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.only-edu-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	background: var(--only-edu-white);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: var(--only-edu-card-shadow);
}

.only-edu-table thead {
	background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
	color: var(--only-edu-white);
}

.only-edu-table th {
	padding: 14px 18px;
	text-align: left;
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.only-edu-table td {
	padding: 14px 18px;
	border-bottom: 1px solid var(--only-edu-border);
	vertical-align: top;
}

.only-edu-table tbody tr:last-child td {
	border-bottom: none;
}

.only-edu-table tbody tr:hover {
	background-color: var(--only-edu-bg);
}

.only-edu-table__highlight {
	background: linear-gradient(135deg, #fff8f5 0%, #fff5f0 100%) !important;
}

.only-edu-table__check {
	color: #22c55e;
}

.only-edu-table__cross {
	color: #ef4444;
}

/* ==========================================================================
   Pro Tip Callout
   ========================================================================== */
.only-edu-tip {
	display: flex;
	gap: 16px;
	background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
	border: 1px solid rgba(34, 197, 94, 0.2);
	border-radius: 12px;
	padding: 20px;
	margin: 28px 0;
}

.only-edu-tip__icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	background: #22c55e;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--only-edu-white);
}

.only-edu-tip__icon svg {
	width: 18px;
	height: 18px;
}

.only-edu-tip__content {
	flex: 1;
}

.only-edu-tip__title {
	font-size: 14px;
	font-weight: 600;
	color: #166534;
	margin: 0 0 4px;
}

.only-edu-tip__text {
	font-size: 14px;
	line-height: 1.6;
	color: #166534;
	margin: 0;
}

/* Warning Callout */
.only-edu-warning {
	display: flex;
	gap: 16px;
	background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
	border: 1px solid rgba(245, 158, 11, 0.3);
	border-radius: 12px;
	padding: 20px;
	margin: 28px 0;
}

.only-edu-warning__icon {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	background: #f59e0b;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--only-edu-white);
}

.only-edu-warning__icon svg {
	width: 18px;
	height: 18px;
}

.only-edu-warning__content {
	flex: 1;
}

.only-edu-warning__title {
	font-size: 14px;
	font-weight: 600;
	color: #92400e;
	margin: 0 0 4px;
}

.only-edu-warning__text {
	font-size: 14px;
	line-height: 1.6;
	color: #92400e;
	margin: 0;
}

/* ==========================================================================
   Image Gallery
   ========================================================================== */
.only-edu-gallery {
	margin: 32px 0;
}

.only-edu-gallery__title {
	font-size: 17px;
	font-weight: 600;
	margin: 0 0 16px;
	color: var(--only-edu-text);
}

.only-edu-gallery__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.only-edu-gallery__item {
	aspect-ratio: 1;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	transition: transform 0.3s ease;
}

.only-edu-gallery__item:hover {
	transform: scale(1.02);
}

.only-edu-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	margin: 0;
}

.only-edu-gallery__placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f5f5f5 0%, #ebebeb 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--only-edu-light);
}

.only-edu-gallery__placeholder svg {
	width: 32px;
	height: 32px;
	opacity: 0.5;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.only-edu-faq {
	margin: 40px 0;
	padding: 32px;
	background: var(--only-edu-bg);
	border-radius: 12px;
}

.only-edu-conclusion,
.only-edu-related-resources {
	margin: 36px 0;
	padding: 0;
	background: transparent;
	border-radius: 0;
	box-shadow: none;
}

.only-edu-conclusion h2,
.only-edu-related-resources h2 {
	margin: 0 0 12px;
	color: var(--only-edu-text);
}

.only-edu-related-resources ul {
	list-style: disc;
	padding-left: 20px;
	margin: 0 0 8px;
}

.only-edu-related-resources a {
	color: var(--only-edu-accent);
	text-decoration: none;
	transition: color 0.2s;
}

.only-edu-related-resources a:hover {
	color: var(--only-edu-dark);
}

.only-edu-faq__title {
	font-family: 'DM Serif Display', Georgia, serif;
	font-size: 24px;
	font-weight: 400;
	margin: 0 0 20px;
	color: var(--only-edu-text);
}

.only-edu-faq__item {
	background: var(--only-edu-white);
	border: 1px solid var(--only-edu-border);
	border-radius: 8px;
	margin-bottom: 10px;
	overflow: hidden;
}

.only-edu-faq__item:last-child {
	margin-bottom: 0;
}

.only-edu-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 16px 20px;
	background: none;
	border: none;
	font-size: 15px;
	font-weight: 600;
	color: var(--only-edu-text);
	text-align: left;
	cursor: pointer;
	transition: background-color 0.2s;
}

.only-edu-faq__question:hover {
	background-color: var(--only-edu-bg);
}

.only-edu-faq__icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	color: var(--only-edu-accent);
	transition: transform 0.3s ease;
}

.only-edu-faq__item.is-open .only-edu-faq__icon {
	transform: rotate(180deg);
}

.only-edu-faq__answer {
	display: none;
	padding: 0 20px 16px;
	font-size: 14px;
	line-height: 1.7;
	color: var(--only-edu-muted);
}

.only-edu-faq__item.is-open .only-edu-faq__answer {
	display: block;
}

/* ==========================================================================
   Related Articles (Full Width) - From Other Categories
   ========================================================================== */
.only-edu-related {
	padding: 48px 0;
	background: var(--only-edu-bg);
	border-top: 1px solid var(--only-edu-border);
}

.only-edu-related__title {
	font-family: 'DM Serif Display', Georgia, serif;
	font-size: 28px;
	font-weight: 400;
	text-align: center;
	margin: 0 0 32px;
	color: var(--only-edu-text);
}

.only-edu-body h2 {
	letter-spacing: 0.02em;
	color: var(--only-edu-text);
	margin-top: 2rem;
	margin-bottom: 1rem;
}

.only-edu-related__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.only-edu-related__card {
	background: var(--only-edu-white);
	border: 1px solid var(--only-edu-border);
	border-radius: 12px;
	overflow: hidden;
	transition: all 0.3s ease;
}

.only-edu-related__card:hover {
	border-color: var(--only-edu-accent);
	box-shadow: var(--only-edu-card-shadow-hover);
	transform: translateY(-4px);
}

.only-edu-related__card-link,
.only-edu-related__card-link:hover,
.only-edu-related__card-link:focus,
.only-edu-related__card-link:active,
.only-edu-related__card-link h3,
.only-edu-related__card-link:hover h3 {
	text-decoration: none !important;
	color: inherit;
	outline: none;
}

.only-edu-related__card-image {
	aspect-ratio: 96 / 35;
	overflow: hidden;
	border-radius: 12px 12px 0 0;
	background: #1a1a1a;
}

.only-edu-related__card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.3s ease;
}

.only-edu-related__card:hover .only-edu-related__card-image img {
	transform: scale(1.05);
}

.only-edu-related__card-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #f5f5f5 0%, #ebebeb 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--only-edu-light);
}

.only-edu-related__card-placeholder svg {
	width: 40px;
	height: 40px;
	opacity: 0.4;
}

.only-edu-related__card-body {
	padding: 18px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.only-edu-related__card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.only-edu-related__card-category {
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--only-edu-accent);
	margin-bottom: 6px;
}

.only-edu-related__card-title {
	font-family: 'DM Serif Display', Georgia, serif;
	font-size: 17px;
	font-weight: 400;
	margin: 0;
	color: var(--only-edu-text);
	line-height: 1.3;
	transition: color 0.2s;
}

.only-edu-related__card:hover .only-edu-related__card-title {
	color: var(--only-edu-accent);
}

.only-edu-related__card-excerpt {
	font-size: 14px;
	line-height: 1.5;
	color: var(--only-edu-muted);
	margin: 6px 0 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.only-edu-related__card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 14px;
	margin-top: auto;
	border-top: 1px solid var(--only-edu-border);
}

.only-edu-related__card-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--only-edu-muted);
}

.only-edu-related__card-meta svg {
	width: 15px;
	height: 15px;
	opacity: 0.7;
}

.only-edu-related__card-arrow {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--only-edu-bg);
	color: var(--only-edu-text);
	transition: all 0.3s ease;
}

.only-edu-related__card-arrow svg {
	width: 16px;
	height: 16px;
}

.only-edu-related__card:hover .only-edu-related__card-arrow {
	background: var(--only-edu-accent);
	color: var(--only-edu-white);
	transform: translateX(4px);
}

/* ==========================================================================
   Brand Collection Section (Full Width)
   ========================================================================== */
.only-edu-brands-section {
	margin-top: 0;
}

.only-edu-brands-section .ksq-brand-collection {
	margin: 0;
}

/* ==========================================================================
   Recently Viewed Products Section (Full Width)
   ========================================================================== */
.only-edu-recently-viewed {
	margin-top: 0;
	padding: 40px 0;
	background: var(--only-edu-white);
}

.only-edu-recently-viewed .ksq-recently-viewed-section {
	margin: 0;
}

/* ==========================================================================
   Trust Block Section (Full Width)
   ========================================================================== */
.only-edu-trust-block {
	margin-top: 0;
	padding: 50px 0;
}

.only-edu-trust-block .ksq-trust-block {
	margin: 0;
}

/* ==========================================================================
   Education Hub Styles
   ========================================================================== */
.only-edu-hub {
	background-color: var(--only-edu-bg);
	min-height: 100vh;
}

.only-edu-hub__header {
	background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
	background-size: 200% 200%;
	color: var(--only-edu-white);
	padding: 60px 0 50px;
	text-align: center;
	position: relative;
	z-index: 10;
	overflow: visible;
}

.only-edu-hub__header::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: 
		radial-gradient(circle at 20% 80%, rgba(255, 107, 53, 0.08) 0%, transparent 50%),
		radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
	pointer-events: none;
}

.only-edu-hub__header > * {
	position: relative;
	z-index: 1;
}

.only-edu-hub__title {
	font-family: 'DM Serif Display', Georgia, serif;
	font-size: 48px;
	font-weight: 400;
	margin: 0 0 16px;
	background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 50%, #ffffff 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-shadow: none;
}

.only-edu-hub__subtitle {
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: var(--only-edu-accent);
	margin-bottom: 12px;
}

.only-edu-hub__description {
	font-size: 17px;
	color: rgba(255, 255, 255, 0.8);
	max-width: 600px;
	margin: 0 auto;
	line-height: 1.7;
}

/* ==========================================================================
   Education Hub Search Bar
   ========================================================================== */
.only-edu-hub__search-wrapper {
	max-width: 700px;
	margin: 28px auto 0;
	padding: 0 24px;
}

.only-edu-hub__search {
	position: relative;
	width: 100%;
	z-index: 100;
}

.only-edu-hub__search-form {
	position: relative;
	width: 100%;
}

.only-edu-hub__search-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	height: 52px;
	background: #ffffff;
	border: 2px solid #ffffff;
	border-radius: 8px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.only-edu-hub__search-input-wrapper:focus-within {
	border-color: #FF6B35;
	box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15);
}

.only-edu-hub__search-icon {
	position: absolute !important;
	left: 16px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	width: 20px !important;
	height: 20px !important;
	color: #999999 !important;
	pointer-events: none !important;
	z-index: 1 !important;
}

.only-edu-hub__search-input {
	width: 100% !important;
	height: 100% !important;
	padding: 0 48px 0 50px !important;
	border: none !important;
	background: transparent !important;
	font-size: 16px !important;
	font-family: inherit !important;
	font-weight: 400 !important;
	color: #222222 !important;
	outline: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.only-edu-hub__search-input::placeholder {
	color: #999999;
}

.only-edu-hub__search-input::-webkit-search-cancel-button,
.only-edu-hub__search-input::-webkit-search-decoration {
	-webkit-appearance: none;
	appearance: none;
}

.only-edu-hub__search-input::-ms-clear {
	display: none;
}

.only-edu-hub__search-clear {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border: none;
	background: #eeeeee;
	color: #666666;
	cursor: pointer;
	border-radius: 50%;
	transition: background-color 0.15s ease;
	opacity: 0;
	visibility: hidden;
}

.only-edu-hub__search-clear.is-visible {
	opacity: 1;
	visibility: visible;
}

.only-edu-hub__search-clear:hover {
	background-color: #dddddd;
}

.only-edu-hub__search-clear svg {
	width: 12px;
	height: 12px;
}

/* ==========================================================================
   Search Dropdown
   ========================================================================== */
.only-edu-hub__search-dropdown {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	width: 100%;
	max-height: 400px;
	overflow-y: auto;
	overflow-x: hidden;
	background-color: #ffffff;
	border-radius: 12px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
	z-index: 100;
	display: none;
}

.only-edu-hub__search-dropdown.is-active {
	display: block;
}

/* Search Loading */
.only-edu-hub__search-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 40px 20px;
	font-size: 14px;
	color: #666666;
	background-color: #ffffff;
}

.only-edu-hub__search-spinner {
	width: 20px;
	height: 20px;
	border: 2px solid #e5e5e5;
	border-top-color: #FF6B35;
	border-radius: 50%;
	animation: eduSearchSpin 0.8s linear infinite;
}

@keyframes eduSearchSpin {
	to { transform: rotate(360deg); }
}

/* Search Empty */
.only-edu-hub__search-empty {
	text-align: center;
	padding: 40px 20px;
	background-color: #ffffff;
}

.only-edu-hub__search-empty svg {
	width: 48px;
	height: 48px;
	color: #cccccc;
	margin-bottom: 16px;
}

.only-edu-hub__search-empty p {
	font-size: 15px;
	color: #333333;
	margin: 0 0 8px;
}

.only-edu-hub__search-empty span {
	font-size: 13px;
	color: #888888;
}

/* Search Error */
.only-edu-hub__search-error {
	text-align: center;
	padding: 40px 20px;
	font-size: 14px;
	color: #dc2626;
	background-color: #ffffff;
}

/* Search Header */
.only-edu-hub__search-dropdown .only-edu-hub__search-header {
	padding: 14px 20px;
	border-bottom: 1px solid #eeeeee;
	background-color: #f8f8f8;
	border-radius: 12px 12px 0 0;
}

.only-edu-hub__search-dropdown .only-edu-hub__search-count {
	font-size: 13px;
	color: #666666;
	display: block;
}

.only-edu-hub__search-dropdown .only-edu-hub__search-count strong {
	color: #222222;
}

/* Search Results List */
.only-edu-hub__search-dropdown .only-edu-hub__search-grid {
	padding: 0;
	margin: 0;
	background-color: #ffffff;
}

/* Search Card */
.only-edu-hub__search-dropdown .only-edu-hub__search-card {
	display: block;
	border-bottom: 1px solid #f0f0f0;
	background-color: #ffffff;
}

.only-edu-hub__search-dropdown .only-edu-hub__search-card:last-child {
	border-bottom: none;
	border-radius: 0 0 12px 12px;
}

.only-edu-hub__search-dropdown .only-edu-hub__search-card:hover {
	background-color: #fafafa;
}

.only-edu-hub__search-dropdown .only-edu-hub__search-card-link {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 20px;
	text-decoration: none;
	color: inherit;
}

.only-edu-hub__search-dropdown .only-edu-hub__search-card-image {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	border-radius: 8px;
	overflow: hidden;
	background-color: #f0f0f0;
	position: relative;
}

.only-edu-hub__search-dropdown .only-edu-hub__search-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.only-edu-hub__search-dropdown .only-edu-hub__search-card-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #f0f0f0;
}

.only-edu-hub__search-dropdown .only-edu-hub__search-card-placeholder svg {
	width: 24px;
	height: 24px;
	color: #cccccc;
}

.only-edu-hub__search-dropdown .only-edu-hub__search-card-type {
	position: absolute;
	top: 4px;
	left: 4px;
	padding: 2px 5px;
	font-size: 8px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	border-radius: 3px;
	color: #ffffff;
	line-height: 1.2;
}

.only-edu-hub__search-dropdown .only-edu-hub__search-card-type--education {
	background-color: #FF6B35;
}

.only-edu-hub__search-dropdown .only-edu-hub__search-card-type--blog {
	background-color: #6366f1;
}

.only-edu-hub__search-dropdown .only-edu-hub__search-card-body {
	flex: 1;
	min-width: 0;
	text-align: left;
}

.only-edu-hub__search-dropdown .only-edu-hub__search-card-title {
	font-size: 14px;
	font-weight: 600;
	color: #222222;
	margin: 0 0 6px;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-align: left;
}

.only-edu-hub__search-dropdown .only-edu-hub__search-card:hover .only-edu-hub__search-card-title {
	color: #FF6B35;
}

.only-edu-hub__search-dropdown .only-edu-hub__search-card-title mark {
	background-color: rgba(255, 107, 53, 0.2);
	color: inherit;
	padding: 0 2px;
	border-radius: 2px;
}

.only-edu-hub__search-dropdown .only-edu-hub__search-card-excerpt {
	display: none;
}

.only-edu-hub__search-dropdown .only-edu-hub__search-card-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 12px;
	color: #888888;
}

.only-edu-hub__search-dropdown .only-edu-hub__search-card-category {
	display: inline-block;
	padding: 3px 8px;
	background-color: #fff3ef;
	color: #FF6B35;
	font-weight: 600;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	border-radius: 4px;
}

.only-edu-hub__search-dropdown .only-edu-hub__search-card-reading {
	display: flex;
	align-items: center;
	gap: 4px;
	color: #888888;
}

.only-edu-hub__search-dropdown .only-edu-hub__search-card-reading svg {
	width: 12px;
	height: 12px;
}

.only-edu-hub__search-dropdown .only-edu-hub__search-card-arrow {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background-color: #f5f5f5;
	border-radius: 50%;
	color: #999999;
	transition: all 0.2s ease;
}

.only-edu-hub__search-dropdown .only-edu-hub__search-card-arrow svg {
	width: 16px;
	height: 16px;
}

.only-edu-hub__search-dropdown .only-edu-hub__search-card:hover .only-edu-hub__search-card-arrow {
	background-color: #FF6B35;
	color: #ffffff;
}

/* Category Filter Tabs */
.only-edu-hub__filters {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	padding: 24px 24px 0;
	position: relative;
	z-index: 1;
	background: #ffffff;
}

.only-edu-hub__filter {
	background: var(--only-edu-white);
	border: 1px solid var(--only-edu-border);
	padding: 10px 20px;
	border-radius: 30px;
	font-size: 14px;
	font-weight: 500;
	color: var(--only-edu-text);
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: var(--only-edu-card-shadow);
}

.only-edu-hub__filter:hover {
	border-color: var(--only-edu-accent);
	color: var(--only-edu-accent);
}

.only-edu-hub__filter.is-active {
	background: var(--only-edu-accent);
	border-color: var(--only-edu-accent);
	color: var(--only-edu-white);
}

/* Article Grid */
.only-edu-hub__content {
	padding: 48px 0 60px;
	position: relative;
	z-index: 0;
}

.only-edu-hub__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.only-edu-hub__card {
	background: var(--only-edu-white);
	border: 1px solid var(--only-edu-border);
	border-radius: 16px;
	overflow: hidden;
	transition: all 0.3s ease;
	display: flex;
	flex-direction: column;
}

.only-edu-hub__card:hover {
	border-color: var(--only-edu-accent);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
	transform: translateY(-6px);
}

.only-edu-hub__card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.only-edu-hub__card-image {
	aspect-ratio: 96 / 35;
	overflow: hidden;
	position: relative;
	background: #1a1a1a;
}

.only-edu-hub__card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 0.3s ease;
}

.only-edu-hub__card:hover .only-edu-hub__card-image img {
	transform: scale(1.05);
}

.only-edu-hub__card-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--only-edu-light);
	position: relative;
	overflow: hidden;
}

/* Category-specific gradient backgrounds for placeholders */
.only-edu-hub__card[data-category="moissanite"] .only-edu-hub__card-placeholder {
	background: linear-gradient(145deg, #fff8f5 0%, #ffe8e0 50%, #ffd4c4 100%);
}

.only-edu-hub__card[data-category="hip-hop"] .only-edu-hub__card-placeholder {
	background: linear-gradient(145deg, #f5f0ff 0%, #e8dff5 50%, #d4c4f0 100%);
}

.only-edu-hub__card[data-category="watches"] .only-edu-hub__card-placeholder {
	background: linear-gradient(145deg, #f0f7ff 0%, #dfeaf5 50%, #c4d9f0 100%);
}

.only-edu-hub__card[data-category="watch-care"] .only-edu-hub__card-placeholder {
	background: linear-gradient(145deg, #f0fff5 0%, #dff5e8 50%, #c4f0d4 100%);
}

.only-edu-hub__card-placeholder::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
	animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
	0%, 100% { transform: translate(-10%, -10%); }
	50% { transform: translate(10%, 10%); }
}

.only-edu-hub__card-placeholder svg {
	width: 56px;
	height: 56px;
	opacity: 0.25;
	position: relative;
	z-index: 1;
}

.only-edu-hub__card-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--only-edu-accent);
	color: var(--only-edu-white);
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.only-edu-hub__card-body {
	padding: 20px 24px 24px;
	background: var(--only-edu-white);
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* Card footer with meta and arrow */
.only-edu-hub__card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 16px;
	border-top: 1px solid var(--only-edu-border);
	margin-top: auto;
}

.only-edu-hub__card-arrow {
	width: 32px;
	height: 32px;
	min-width: 32px;
	min-height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--only-edu-bg);
	border-radius: 50%;
	color: var(--only-edu-muted);
	transition: all 0.3s ease;
	flex-shrink: 0;
	overflow: hidden;
}

.only-edu-hub__card-arrow svg {
	width: 16px !important;
	height: 16px !important;
	max-width: 16px;
	max-height: 16px;
	flex-shrink: 0;
}

.only-edu-hub__card:hover .only-edu-hub__card-arrow {
	background: var(--only-edu-accent);
	color: var(--only-edu-white);
	transform: translateX(4px);
}

.only-edu-hub__card-title {
	font-family: 'DM Serif Display', Georgia, serif;
	font-size: 20px;
	font-weight: 400;
	margin: 0 0 12px;
	color: var(--only-edu-text);
	line-height: 1.35;
	transition: color 0.2s;
}

.only-edu-hub__card:hover .only-edu-hub__card-title {
	color: var(--only-edu-accent);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 4px;
}

/* Ensure no underline on other card elements */
.only-edu-hub__card-link,
.only-edu-hub__card-excerpt,
.only-edu-hub__card-meta,
.only-edu-hub__card-footer {
	text-decoration: none !important;
}

.only-edu-hub__card-excerpt {
	font-size: 14px;
	line-height: 1.65;
	color: var(--only-edu-muted);
	margin: 0 0 16px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.only-edu-hub__card-meta {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--only-edu-muted);
}

.only-edu-hub__card-meta svg {
	width: 15px;
	height: 15px;
	opacity: 0.7;
}

/* Hidden cards (filtered out) */
.only-edu-hub__card.is-hidden {
	display: none;
}

/* Extra cards (beyond initial limit, hidden until "Show More") */
.only-edu-hub__card.is-extra {
	display: none;
}

.only-edu-hub__grid.show-all .only-edu-hub__card.is-extra {
	display: flex;
	animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Show More Button */
.only-edu-hub__load-more {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

.only-edu-hub__load-more-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 16px 32px;
	background: var(--only-edu-white);
	border: 2px solid var(--only-edu-text);
	border-radius: 50px;
	font-size: 15px;
	font-weight: 600;
	color: var(--only-edu-text);
	cursor: pointer;
	transition: all 0.3s ease;
}

.only-edu-hub__load-more-btn:hover {
	background: var(--only-edu-text);
	color: var(--only-edu-white);
}

.only-edu-hub__load-more-count {
	font-weight: 400;
	opacity: 0.7;
}

.only-edu-hub__load-more-btn svg {
	width: 18px;
	height: 18px;
	transition: transform 0.3s ease;
}

.only-edu-hub__load-more-btn:hover svg {
	transform: translateY(3px);
}

.only-edu-hub__load-more.is-hidden {
	display: none;
}

/* View All Articles Link (for category pages) */
.only-edu-hub__view-all {
	display: flex;
	justify-content: center;
	margin-top: 40px;
}

.only-edu-hub__view-all-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 28px;
	background: transparent;
	border: 2px solid var(--only-edu-accent);
	border-radius: 50px;
	font-size: 15px;
	font-weight: 600;
	color: var(--only-edu-accent);
	text-decoration: none;
	transition: all 0.3s ease;
}

.only-edu-hub__view-all-link:hover {
	background: var(--only-edu-accent);
	color: var(--only-edu-white);
}

.only-edu-hub__view-all-link svg {
	width: 18px;
	height: 18px;
	transition: transform 0.3s ease;
}

.only-edu-hub__view-all-link:hover svg {
	transform: translateX(-3px);
}

/* Empty State */
.only-edu-hub__empty {
	text-align: center;
	padding: 60px 24px;
	background: var(--only-edu-white);
	border: 2px dashed var(--only-edu-border);
	border-radius: 12px;
}

.only-edu-hub__empty-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 20px;
	color: var(--only-edu-light);
	opacity: 0.5;
}

.only-edu-hub__empty p {
	font-size: 15px;
	color: var(--only-edu-muted);
	margin: 0;
}

/* ==========================================================================
   Responsive: Large Desktop
   ========================================================================== */
@media (max-width: 1400px) {
	.only-edu-wrapper {
		gap: 40px;
	}
	
	.only-edu-sidebar {
		width: 260px;
	}
}

/* ==========================================================================
   Responsive: Desktop
   ========================================================================== */
@media (max-width: 1200px) {
	.only-edu-wrapper {
		gap: 32px;
	}
	
	.only-edu-sidebar {
		width: 240px;
	}
	
	.only-edu-nav__link {
		font-size: 13px;
		padding: 10px 16px;
	}
}

/* ==========================================================================
   Responsive: Tablet
   ========================================================================== */
@media (max-width: 1024px) {
	/* Stack layout on tablet */
	.only-edu-wrapper {
		flex-direction: column;
		gap: 0;
	}

	.only-edu-sidebar {
		position: relative;
		top: 0;
		width: 100%;
		margin-bottom: 32px;
		margin-top: 0;
	}

	.only-edu-nav__body {
		max-height: 300px;
	}

	.only-edu-nav__list {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 0;
	}
	
	.only-edu-nav__item {
		border-bottom: none;
		border-right: 1px dashed var(--only-edu-border-dashed);
	}
	
	.only-edu-nav__item:nth-child(2n) {
		border-right: none;
	}

	.only-edu-hero {
		padding: 40px 0 50px;
	}

	.only-edu-hero__title {
		font-size: 36px;
	}

	.only-edu-facts__grid {
		grid-template-columns: 1fr;
	}

	.only-edu-gallery__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.only-edu-related__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.only-edu-hub__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Search Tablet */
	.only-edu-hub__search-wrapper {
		max-width: 600px;
	}
	
	.only-edu-hub__search-dropdown {
		max-height: 350px;
	}
	
	.only-edu-hub__search-dropdown .only-edu-hub__search-card-image {
		width: 56px;
		height: 56px;
	}
}

/* ==========================================================================
   Responsive: Mobile
   ========================================================================== */
@media (max-width: 640px) {
	.only-edu-container,
	.only-edu-wrapper {
		padding: 0 16px;
	}

	.only-edu-sidebar {
		margin-bottom: 24px;
	}

	.only-edu-nav__body {
		max-height: 250px;
	}

	.only-edu-nav__list {
		grid-template-columns: 1fr;
	}

	.only-edu-nav__item {
		border-right: none;
		border-bottom: 1px dashed var(--only-edu-border-dashed);
	}

	.only-edu-nav__heading {
		font-size: 12px;
		padding: 14px 16px 12px;
	}

	.only-edu-hero {
		padding: 32px 0 40px;
	}

	.only-edu-hero__title {
		font-size: 28px;
	}

	.only-edu-hero__subtitle {
		font-size: 15px;
	}

	.only-edu-featured {
		margin-top: -20px;
	}

	.only-edu-content {
		padding: 32px 0 48px;
	}

	.only-edu-body {
		font-size: 16px;
	}

	.only-edu-body > h2,
	.only-edu-body > div:not([class*="ksq-"]):not([class*="swiper"]) > h2 {
		margin: 28px 0 12px;
	}

	.only-edu-body > h3,
	.only-edu-body > div:not([class*="ksq-"]):not([class*="swiper"]) > h3 {
		margin: 22px 0 10px;
	}

	.only-edu-facts {
		padding: 20px;
	}

	.only-edu-gallery__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	.only-edu-faq {
		padding: 24px 16px;
	}

	.only-edu-faq__title {
		font-size: 22px;
	}

	.only-edu-faq__question {
		padding: 14px 16px;
		font-size: 14px;
	}

	.only-edu-related__grid {
		grid-template-columns: 1fr;
	}

	.only-edu-related__title {
		font-size: 24px;
	}

	/* Education Hub Mobile Styles */
	.only-edu-hub__header {
		padding: 28px 0 44px;
	}

	.only-edu-hub__subtitle {
		font-size: 11px;
		letter-spacing: 1.5px;
		margin-bottom: 8px;
	}

	.only-edu-hub__title {
		font-size: 24px;
		margin-bottom: 10px;
	}

	.only-edu-hub__description {
		font-size: 14px;
		line-height: 1.6;
		padding: 0 8px;
	}

	/* Search Bar Mobile */
	.only-edu-hub__search {
		margin-top: 18px;
		max-width: 100%;
	}

	.only-edu-hub__search-input-wrapper {
		height: 46px;
	}

	.only-edu-hub__search-input {
		padding: 0 40px 0 48px;
		font-size: 14px;
	}

	.only-edu-hub__search-icon {
		left: 16px;
		width: 18px;
		height: 18px;
	}

	.only-edu-hub__search-clear {
		right: 12px;
		width: 20px;
		height: 20px;
	}

	.only-edu-hub__search-clear svg {
		width: 12px;
		height: 12px;
	}

	/* Search Mobile */
	.only-edu-hub__search-wrapper {
		padding: 0 16px;
		margin: 20px auto 0;
	}
	
	.only-edu-hub__search-input-wrapper {
		height: 48px;
	}
	
	.only-edu-hub__search-input {
		font-size: 15px;
		padding: 0 44px 0 46px;
	}
	
	.only-edu-hub__search-icon {
		left: 14px;
		width: 18px;
		height: 18px;
	}
	
	.only-edu-hub__search-dropdown {
		max-height: 280px;
		border-radius: 10px;
	}

	.only-edu-hub__search-dropdown .only-edu-hub__search-card-link {
		padding: 12px 16px;
		gap: 12px;
	}

	.only-edu-hub__search-dropdown .only-edu-hub__search-card-image {
		width: 48px;
		height: 48px;
		border-radius: 6px;
	}

	.only-edu-hub__search-dropdown .only-edu-hub__search-card-title {
		font-size: 13px;
		margin-bottom: 4px;
	}

	.only-edu-hub__search-dropdown .only-edu-hub__search-header {
		padding: 12px 16px;
		border-radius: 10px 10px 0 0;
	}

	.only-edu-hub__search-dropdown .only-edu-hub__search-count {
		font-size: 12px;
	}

	.only-edu-hub__search-dropdown .only-edu-hub__search-card-meta {
		font-size: 10px;
		gap: 8px;
	}
	
	.only-edu-hub__search-dropdown .only-edu-hub__search-card-category {
		padding: 3px 8px;
		font-size: 9px;
	}

	/* Category Filters Mobile */
	.only-edu-hub__filters {
		gap: 8px;
		padding: 20px 16px 0;
	}

	.only-edu-hub__filter {
		padding: 7px 12px;
		font-size: 12px;
		border-radius: 20px;
	}

	/* Article Grid Mobile */
	.only-edu-hub__content {
		padding: 32px 0 40px;
	}

	.only-edu-hub__grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.only-edu-hub__card {
		border-radius: 12px;
	}

	.only-edu-hub__card-image {
		aspect-ratio: 96 / 35;
	}

	.only-edu-hub__card-badge {
		top: 8px;
		left: 8px;
		padding: 3px 10px;
		font-size: 10px;
	}

	.only-edu-hub__card-body {
		padding: 14px 16px 16px;
	}

	.only-edu-hub__card-title {
		font-size: 16px;
		margin-bottom: 8px;
	}

	.only-edu-hub__card-excerpt {
		font-size: 13px;
		margin-bottom: 12px;
		-webkit-line-clamp: 2;
		line-clamp: 2;
	}

	.only-edu-hub__card-footer {
		padding-top: 12px;
	}

	.only-edu-hub__card-meta {
		font-size: 12px;
	}

	.only-edu-hub__card-meta svg {
		width: 13px;
		height: 13px;
	}

	.only-edu-hub__card-arrow {
		width: 28px;
		height: 28px;
		min-width: 28px;
		min-height: 28px;
	}

	.only-edu-hub__card-arrow svg {
		width: 14px !important;
		height: 14px !important;
	}

	/* Load More Button Mobile */
	.only-edu-hub__load-more {
		margin-top: 28px;
	}

	.only-edu-hub__load-more-btn {
		padding: 12px 24px;
		font-size: 13px;
		gap: 8px;
	}

	.only-edu-hub__load-more-btn svg {
		width: 16px;
		height: 16px;
	}

	/* View All Link Mobile */
	.only-edu-hub__view-all-link {
		padding: 12px 20px;
		font-size: 13px;
	}
}

/* ==========================================================================
   Extra Small Mobile (< 400px)
   ========================================================================== */
@media (max-width: 400px) {
	.only-edu-hub__header {
		padding: 24px 0 40px;
	}

	.only-edu-hub__title {
		font-size: 22px;
	}

	.only-edu-hub__description {
		font-size: 13px;
	}

	.only-edu-hub__search-input-wrapper {
		height: 44px;
	}

	.only-edu-hub__search-input {
		padding: 0 38px 0 46px;
		font-size: 14px;
	}

	.only-edu-hub__search-icon {
		left: 14px;
		width: 18px;
		height: 18px;
	}

	.only-edu-hub__filter {
		padding: 6px 10px;
		font-size: 11px;
	}

	.only-edu-hub__card-title {
		font-size: 15px;
	}

	.only-edu-hub__card-excerpt {
		font-size: 12px;
	}
}

/* ==========================================================================
   CTA Section (Education Hub)
   ========================================================================== */
.only-edu-cta {
	background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
	padding: 60px 0;
	text-align: center;
}

.only-edu-cta__title {
	font-family: 'DM Serif Display', Georgia, serif;
	font-size: 32px;
	font-weight: 400;
	margin: 0 0 12px;
	color: var(--only-edu-text);
}

.only-edu-cta__text {
	font-size: 16px;
	color: var(--only-edu-muted);
	margin: 0 0 24px;
	max-width: 500px;
	margin-left: auto;
	margin-right: auto;
}

.only-edu-cta__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: var(--only-edu-accent);
	color: var(--only-edu-white);
	padding: 14px 28px;
	border-radius: 30px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.only-edu-cta__btn:hover {
	background: var(--only-edu-accent-hover);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.only-edu-cta__btn svg {
	width: 18px;
	height: 18px;
	transition: transform 0.3s ease;
}

.only-edu-cta__btn:hover svg {
	transform: translateX(4px);
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
	.only-edu-progress,
	.only-edu-sidebar,
	.only-edu-related,
	.only-edu-brands-section {
		display: none;
	}

	.only-edu-wrapper {
		display: block;
	}

	.only-edu-hero {
		background: none;
		color: var(--only-edu-text);
		padding: 20px 0;
	}

	.only-edu-hero__category {
		background: none;
		color: var(--only-edu-accent);
		padding: 0;
	}
}

/* ==========================================================================
   Article video embed  -  APPEND THIS TO:
   wp-content/themes/ksquare-gems/assets/css/education-page.css
   Required by /pages/moissanite-diamond-tester-passed/ for the proof video.
   ========================================================================== */

.only-edu-video { margin: 34px 0; }

.only-edu-video__frame {
	position: relative;
	width: 100%;
	border-radius: 14px;
	overflow: hidden;
	background: #1c1c1e;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

.only-edu-video__frame video {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	background: #1c1c1e;
}

.only-edu-video__caption {
	margin: 12px 2px 0;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--color-text-light, #666);
}

.only-edu-video__caption strong { color: var(--color-text, #000); }

@media (max-width: 767px) {
	.only-edu-video { margin: 26px 0; }
	.only-edu-video__frame { border-radius: 10px; }
}
