/* ==========================================================================
   StudyPress — main theme CSS
   Loaded after Astra parent + variables in functions.php
   ========================================================================== */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	font-family: var(--sp-font-body);
	color: var(--sp-charcoal);
	line-height: 1.6;
	font-size: 16px;
	background: #fff
}

h1, h2, h3, h4, h5 {
	font-family: var(--sp-font-heading);
	color: var(--sp-navy);
	line-height: 1.3;
	margin-top: 0;
}

a { color: var(--sp-navy); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--sp-saffron-deep); }

img { max-width: 100%; height: auto; }

.sp-container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.sp-narrow { max-width: 760px; }
.sp-text-center { text-align: center; }
.sp-text-cream { color: var(--sp-cream); }
.sp-bg-cream { background: var(--sp-cream); }
.sp-bg-navy  { background: var(--sp-navy); color: var(--sp-cream); }
.sp-bg-navy h2, .sp-bg-navy h3 { color: var(--sp-cream); }
.sp-bg-navy p { color: rgba(250, 247, 242, 0.85); }

/* ===== Header ===== */
.sp-site-header {
	background: #fff;
	border-bottom: 1px solid var(--sp-line);
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: var(--sp-shadow);
}

.sp-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	gap: 20px;
}

.sp-logo { text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.sp-logo-text {
	font-family: var(--sp-font-heading);
	font-weight: 700;
	font-size: 24px;
	color: var(--sp-navy);
	letter-spacing: -0.3px;
}
.sp-logo-tag { font-size: 11px; color: var(--sp-muted); }

.sp-nav { display: flex; align-items: center; gap: 16px; }
.sp-nav-list { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.sp-nav-list > li { position: relative; }
.sp-nav-list > li > a {
	color: var(--sp-charcoal);
	text-decoration: none;
	font-weight: 500;
	font-size: 15px;
	padding: 8px 0;
	display: inline-block;
}
.sp-nav-list > li > a:hover { color: var(--sp-saffron-deep); }

.sp-nav-sub {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	border: 1px solid var(--sp-line);
	border-radius: 8px;
	padding: 8px 0;
	min-width: 240px;
	list-style: none;
	margin: 0;
	box-shadow: 0 8px 24px rgba(10, 37, 64, 0.08);
	z-index: 10;
}
.sp-nav-has-sub:hover .sp-nav-sub { display: block; }
.sp-nav-sub li { padding: 0; }
.sp-nav-sub li a {
	display: block;
	padding: 8px 14px;
	color: var(--sp-charcoal);
	text-decoration: none;
	font-size: 14px;
}
.sp-nav-sub li a:hover { background: var(--sp-cream); color: var(--sp-saffron-deep); }
.sp-nav-sub hr { border: 0; border-top: 1px solid var(--sp-line); margin: 6px 0; }

.sp-nav-cta {
	background: var(--sp-saffron);
	color: var(--sp-navy);
	padding: 10px 18px;
	border-radius: 8px;
	font-weight: 700;
	text-decoration: none;
	font-size: 14px;
	letter-spacing: 0.2px;
}
.sp-nav-cta:hover { background: var(--sp-saffron-deep); color: var(--sp-navy); }

.sp-nav-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
}

@media (max-width: 920px) {
	.sp-nav-list, .sp-nav-cta { display: none; }
	.sp-nav-toggle { display: block; }
	.sp-nav.sp-nav-open .sp-nav-list {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		padding: 20px;
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	}
	.sp-nav.sp-nav-open .sp-nav-cta { display: inline-block; margin: 12px 20px; }
	.sp-nav-list > li { padding: 8px 0; }
	.sp-nav-sub { display: block; position: static; box-shadow: none; border: 0; padding-left: 12px; }
}

/* ===== Buttons ===== */
.sp-btn {
	display: inline-block;
	padding: 14px 24px;
	border-radius: 10px;
	font-weight: 700;
	text-decoration: none;
	font-size: 15px;
	letter-spacing: 0.2px;
	transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease;
	border: 2px solid transparent;
}
.sp-btn:hover { transform: translateY(-1px); }
.sp-btn-saffron {
	background: var(--sp-saffron);
	color: var(--sp-navy);
}
.sp-btn-saffron:hover { background: var(--sp-saffron-deep); color: var(--sp-navy); }
.sp-btn-navy {
	background: var(--sp-navy);
	color: var(--sp-cream);
}
.sp-btn-navy:hover { background: var(--sp-navy-soft); color: #fff; }
.sp-btn-link {
	background: none;
	color: var(--sp-saffron-deep);
	padding: 0;
	font-weight: 600;
	border-radius: 0;
}
.sp-btn-link:hover { transform: none; text-decoration: underline; }
.sp-btn-block { display: block; width: 100%; text-align: center; margin-top: 12px; }

/* ===== Hero ===== */
.sp-hero {
	background: linear-gradient(180deg, var(--sp-cream) 0%, #fff 100%);
	padding: 80px 0 60px;
	text-align: center;
}
.sp-hero-h1 {
	font-size: 48px;
	max-width: 900px;
	margin: 0 auto 24px;
	line-height: 1.15;
	letter-spacing: -0.5px;
}
.sp-hero-h1 em { color: var(--sp-saffron-deep); font-style: italic; }
.sp-hero-sub {
	font-size: 18px;
	color: var(--sp-muted);
	max-width: 720px;
	margin: 0 auto 36px;
	line-height: 1.55;
}
.sp-hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.sp-cta-center { justify-content: center; }
.sp-hero-trust {
	display: flex;
	gap: 24px;
	justify-content: center;
	margin-top: 40px;
	font-size: 13px;
	color: var(--sp-muted);
	flex-wrap: wrap;
}

@media (max-width: 700px) {
	.sp-hero-h1 { font-size: 32px; }
	.sp-hero-sub { font-size: 16px; }
}

/* ===== Sections ===== */
.sp-section { padding: 70px 0; }
.sp-section-title {
	font-size: 36px;
	text-align: center;
	margin-bottom: 18px;
	letter-spacing: -0.3px;
}
.sp-section-lead {
	max-width: 760px;
	margin: 0 auto 16px;
	text-align: center;
	font-size: 18px;
	line-height: 1.6;
}
.sp-section-lead-sm {
	max-width: 720px;
	margin: 0 auto 36px;
	text-align: center;
	color: var(--sp-muted);
}

@media (max-width: 700px) {
	.sp-section { padding: 50px 0; }
	.sp-section-title { font-size: 28px; }
}

/* ===== Steps ===== */
.sp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.sp-step { text-align: center; padding: 20px; }
.sp-step-num {
	width: 60px;
	height: 60px;
	background: var(--sp-saffron);
	color: var(--sp-navy);
	border-radius: 50%;
	font-size: 28px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
	font-family: var(--sp-font-heading);
}
.sp-step h3 { font-size: 22px; margin-bottom: 8px; }
.sp-step p { color: var(--sp-muted); }
@media (max-width: 700px) { .sp-steps { grid-template-columns: 1fr; gap: 20px; } }

/* ===== Tier cards ===== */
.sp-tier-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-top: 30px;
}
@media (max-width: 700px) { .sp-tier-grid { grid-template-columns: 1fr; } }

.sp-tier-card {
	display: block;
	padding: 28px;
	background: #fff;
	border: 1px solid var(--sp-line);
	border-radius: 12px;
	text-decoration: none;
	color: var(--sp-charcoal);
	transition: transform 0.15s ease, box-shadow 0.2s ease;
	border-left: 6px solid var(--sp-navy);
}
.sp-tier-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(10, 37, 64, 0.08); }
.sp-tier-card.tier-foundation     { border-left-color: #10b981; }
.sp-tier-card.tier-jee-main       { border-left-color: var(--sp-saffron); }
.sp-tier-card.tier-jee-advanced   { border-left-color: #8b5cf6; }
.sp-tier-card.tier-neet           { border-left-color: #ef4444; }
.sp-tier-card h3 { margin-bottom: 4px; font-size: 24px; }
.sp-tier-class { font-size: 13px; color: var(--sp-muted); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.sp-tier-desc { color: var(--sp-charcoal); font-size: 15px; line-height: 1.5; }
.sp-tier-cta { display: inline-block; margin-top: 16px; color: var(--sp-saffron-deep); font-weight: 600; }

/* ===== Branding tiers ===== */
.sp-branding-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
@media (max-width: 800px) { .sp-branding-grid { grid-template-columns: 1fr; } }
.sp-branding-card {
	padding: 28px;
	background: var(--sp-cream);
	border-radius: 12px;
	text-align: center;
}
.sp-branding-card-mid { background: var(--sp-navy); color: var(--sp-cream); transform: scale(1.04); }
.sp-branding-card-mid h3, .sp-branding-card-mid .sp-branding-num { color: var(--sp-cream); }
.sp-branding-card-mid p { color: rgba(250, 247, 242, 0.85); }
.sp-branding-num { font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--sp-saffron-deep); margin-bottom: 8px; }
.sp-branding-card-mid .sp-branding-num { color: var(--sp-saffron); }
.sp-branding-card h3 { font-size: 22px; margin-bottom: 12px; }

/* ===== Why grid ===== */
.sp-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px; }
@media (max-width: 900px) { .sp-why-grid { grid-template-columns: 1fr; } }
.sp-why-card { padding: 8px; }
.sp-why-card h3 { font-size: 19px; margin-bottom: 8px; color: var(--sp-cream); font-family: var(--sp-font-body); font-weight: 700; }

/* ===== Tier badge ===== */
.sp-tier-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	background: var(--sp-cream);
	color: var(--sp-navy);
	margin-bottom: 8px;
}
.sp-tier-badge.tier-foundation     { background: #d1fae5; color: #065f46; }
.sp-tier-badge.tier-jee-main       { background: #fef3c7; color: #92400e; }
.sp-tier-badge.tier-jee-advanced   { background: #ede9fe; color: #5b21b6; }
.sp-tier-badge.tier-neet           { background: #fee2e2; color: #991b1b; }

/* ===== Catalog cards ===== */
/* Product card grid — see Marketplace Redesign section below for .sp-card definitions */
.sp-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* ===== Archive layout ===== */
.sp-archive-header { padding: 40px 0 20px; }
.sp-archive-header h1 { font-size: 36px; margin-bottom: 6px; }
.sp-archive-header p { color: var(--sp-muted); font-size: 16px; }

.sp-archive-layout { display: grid; grid-template-columns: 240px 1fr; gap: 30px; padding-bottom: 20px; }
@media (max-width: 800px) { .sp-archive-layout { grid-template-columns: 1fr; } }

.sp-filters { padding: 20px; background: var(--sp-cream); border-radius: 12px; height: fit-content; position: sticky; top: 80px; }
.sp-filters h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; margin: 16px 0 8px; color: var(--sp-muted); }
.sp-filters h4:first-child { margin-top: 0; }
.sp-filters label { display: block; padding: 4px 0; font-size: 14px; cursor: pointer; }
.sp-filters input[type="radio"] { margin-right: 6px; }
.sp-filter-clear { display: block; text-align: center; margin-top: 10px; font-size: 12px; }

/* ===== Single product ===== */
.sp-breadcrumb { font-size: 13px; color: var(--sp-muted); padding: 20px 0; }
.sp-breadcrumb a { color: var(--sp-muted); }

.sp-product-hero { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; padding: 20px 0 50px; }
@media (max-width: 800px) { .sp-product-hero { grid-template-columns: 1fr; } }

.sp-mock-cover {
	aspect-ratio: 3 / 4;
	background: linear-gradient(135deg, var(--sp-navy) 0%, var(--sp-navy-soft) 100%);
	color: var(--sp-cream);
	border-radius: 12px;
	padding: 30px;
	display: flex;
	flex-direction: column;
	box-shadow: 0 12px 36px rgba(10, 37, 64, 0.18);
	font-family: var(--sp-font-heading);
}
.sp-mock-cover.tier-foundation     { background: linear-gradient(135deg, #065f46, #047857); }
.sp-mock-cover.tier-jee-main       { background: linear-gradient(135deg, #92400e, #b45309); }
.sp-mock-cover.tier-jee-advanced   { background: linear-gradient(135deg, #5b21b6, #7c3aed); }
.sp-mock-cover.tier-neet           { background: linear-gradient(135deg, #991b1b, #b91c1c); }
.sp-mock-school { font-size: 13px; opacity: 0.7; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 30px; }
.sp-mock-title { font-size: 32px; line-height: 1.15; margin-bottom: auto; }
.sp-mock-tier { font-size: 14px; opacity: 0.85; margin-top: 16px; }
.sp-mock-foot { font-size: 11px; opacity: 0.5; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.15); }

.sp-product-meta-box h1 { font-size: 32px; margin: 8px 0 18px; line-height: 1.2; }
.sp-product-glance { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 20px; font-size: 14px; }
.sp-product-glance > div { padding: 8px 0; border-bottom: 1px solid var(--sp-line); }
.sp-product-price-block { background: var(--sp-cream); padding: 16px 20px; border-radius: 10px; margin-bottom: 24px; }
.sp-price-num { font-size: 32px; font-weight: 700; color: var(--sp-navy); font-family: var(--sp-font-heading); }
.sp-price-meta { color: var(--sp-muted); font-size: 13px; }
.sp-price-note { color: var(--sp-saffron-deep); font-size: 12px; margin-top: 6px; font-weight: 500; }

.sp-product-section { padding: 30px 0; }
.sp-product-section h2 { font-size: 26px; margin-bottom: 16px; }
.sp-product-content p { margin-bottom: 14px; }
.sp-product-content ul { margin-left: 20px; margin-bottom: 14px; }

.sp-mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0; }
@media (max-width: 700px) { .sp-mock-row { grid-template-columns: 1fr; } }
.sp-mock-cover-sm {
	aspect-ratio: 3 / 4;
	background: var(--sp-navy);
	color: var(--sp-cream);
	border-radius: 8px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	font-family: var(--sp-font-heading);
}
.sp-mock-cover-sm.tier-foundation     { background: linear-gradient(135deg, #065f46, #047857); }
.sp-mock-cover-sm.tier-jee-main       { background: linear-gradient(135deg, #92400e, #b45309); }
.sp-mock-cover-sm.tier-jee-advanced   { background: linear-gradient(135deg, #5b21b6, #7c3aed); }
.sp-mock-cover-sm.tier-neet           { background: linear-gradient(135deg, #991b1b, #b91c1c); }
.sp-mock-cover-sm .sp-mock-school { font-size: 11px; }
.sp-mock-title-sm { font-size: 18px; margin-top: auto; }
.sp-mock-note { font-size: 13px; color: var(--sp-muted); text-align: center; margin-top: 16px; }

.sp-specs { width: 100%; border-collapse: collapse; }
.sp-specs th, .sp-specs td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--sp-line); }
.sp-specs th { background: var(--sp-cream); width: 30%; font-weight: 600; color: var(--sp-navy); }

/* ===== Tier landing hero ===== */
.sp-tier-hero { padding: 80px 0 60px; background: var(--sp-cream); }
.sp-tier-hero.tier-foundation     { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.sp-tier-hero.tier-jee-main       { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.sp-tier-hero.tier-jee-advanced   { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.sp-tier-hero.tier-neet           { background: linear-gradient(135deg, #fee2e2, #fecaca); }

/* ===== Page ===== */
.sp-page { padding: 60px 0; }
.sp-page-header h1 { font-size: 40px; margin-bottom: 30px; }
.sp-page-content h2 { font-size: 26px; margin: 30px 0 12px; }
.sp-page-content h3 { font-size: 20px; margin: 20px 0 8px; }
.sp-page-content p { margin-bottom: 14px; }
.sp-page-content ul, .sp-page-content ol { margin-left: 20px; margin-bottom: 14px; }

/* ===== Footer ===== */
.sp-site-footer {
	background: var(--sp-navy);
	color: var(--sp-cream);
	padding: 60px 0 30px;
	margin-top: 0;
}
.sp-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 40px;
	margin-bottom: 40px;
}
@media (max-width: 800px) { .sp-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .sp-footer-grid { grid-template-columns: 1fr; } }

.sp-site-footer h4 { color: var(--sp-saffron); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; font-family: var(--sp-font-body); }
.sp-site-footer ul { list-style: none; padding: 0; margin: 0; }
.sp-site-footer ul li { padding: 4px 0; font-size: 14px; }
.sp-site-footer ul li a { color: rgba(250, 247, 242, 0.85); text-decoration: none; }
.sp-site-footer ul li a:hover { color: var(--sp-saffron); }

.sp-footer-brand { font-family: var(--sp-font-heading); font-size: 28px; font-weight: 700; color: var(--sp-cream); margin-bottom: 6px; }
.sp-footer-tag { font-size: 14px; color: var(--sp-saffron); margin-bottom: 12px; }
.sp-footer-small { font-size: 13px; color: rgba(250, 247, 242, 0.7); }

.sp-footer-bottom { border-top: 1px solid rgba(250, 247, 242, 0.1); padding-top: 20px; text-align: center; font-size: 12px; color: rgba(250, 247, 242, 0.6); }

/* ===== WhatsApp float ===== */
.sp-whatsapp-float {
	position: fixed;
	bottom: 20px;
	right: 20px;
	width: 56px;
	height: 56px;
	background: #25D366;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
	z-index: 999;
	transition: transform 0.15s ease;
	text-decoration: none;
}
.sp-whatsapp-float:hover { transform: scale(1.1); }

/* ===== CTA fineprint ===== */
.sp-cta-fineprint { color: var(--sp-muted); font-size: 13px; margin-top: 14px; }

/* ===== Misc ===== */
.sp-screen-reader-text { position: absolute; left: -9999px; }
.sp-search-form input { padding: 8px 12px; border: 1px solid var(--sp-line); border-radius: 6px; }
.sp-search-form button { padding: 8px 16px; background: var(--sp-navy); color: #fff; border: none; border-radius: 6px; cursor: pointer; }

/* Print: don't print WhatsApp float etc. */
@media print {
	.sp-whatsapp-float, .sp-site-header, .sp-site-footer, .sp-form-wrap { display: none; }
}

/* ===== Astra overrides ===== */
.ast-scroll-up {
	background-color: var(--sp-navy) !important;
	border-radius: 8px !important;
}
.ast-scroll-up:hover {
	background-color: var(--sp-saffron-deep) !important;
}
/* Hide Astra's own header/footer builder if active */
.ast-desktop-header, .ast-primary-header-bar { display: none !important; }
#ast-hfb-header, .ahfb-hf-header-wrap { display: none !important; }

/* ===== Phone header ===== */
.sp-phone-header {
	font-size: 13px;
	color: var(--sp-muted);
	text-decoration: none;
	display: none; /* shown via media query on desktop */
	align-items: center;
	gap: 4px;
	white-space: nowrap;
}
.sp-phone-header:hover { color: var(--sp-saffron-deep); }
@media (min-width: 921px) {
	.sp-phone-header { display: flex; }
}

/* ===== Catalog bottom CTA strip ===== */
.sp-catalog-cta {
	background: var(--sp-cream);
	padding: 40px 0;
	text-align: center;
}
.sp-catalog-cta h2 { font-size: 26px; margin-bottom: 10px; }
.sp-catalog-cta p { color: var(--sp-muted); margin-bottom: 20px; }

/* ===== Tablet (768px) breakpoints ===== */
@media (min-width: 701px) and (max-width: 920px) {
	.sp-hero-h1 { font-size: 38px; }
	.sp-hero-sub { font-size: 17px; }
	.sp-branding-grid { grid-template-columns: 1fr 1fr; }
	.sp-branding-card-mid { transform: none; }
	.sp-why-grid { grid-template-columns: 1fr 1fr; }
	.sp-steps { grid-template-columns: 1fr 1fr; gap: 20px; }
	.sp-section-title { font-size: 30px; }
	.sp-product-hero { grid-template-columns: 1fr; }
	.sp-mock-cover { max-width: 300px; margin: 0 auto; }
}

/* ===== Mobile hamburger fix ===== */
@media (max-width: 920px) {
	.sp-nav-toggle { margin-right: 6px; color: var(--sp-navy); }
	.sp-header-inner { padding: 12px 16px; }
}

/* ==========================================================================
   MARKETPLACE REDESIGN — New components
   ========================================================================== */

/* ===== Category quick-links bar ===== */
.sp-quicklinks-bar {
	background: #fff;
	border-bottom: 1px solid var(--sp-line);
	padding: 0;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.sp-quicklinks {
	display: flex;
	gap: 0;
	padding: 0;
	white-space: nowrap;
}
.sp-quicklink {
	display: inline-block;
	padding: 14px 22px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	color: #fff;
	background: var(--sp-navy);
	transition: background 0.15s ease, opacity 0.15s ease;
	border-right: 1px solid rgba(255,255,255,0.15);
}
.sp-quicklink:hover { opacity: 0.88; color: #fff; }
.sp-ql-foundation  { background: #10b981; }
.sp-ql-jee-main    { background: #e8731a; }
.sp-ql-jee-advanced { background: #8b5cf6; }
.sp-ql-neet        { background: #ef4444; }
.sp-ql-all         { background: var(--sp-navy); margin-left: auto; }
.sp-ql-active      { box-shadow: inset 0 -3px 0 rgba(255,255,255,0.5); font-weight: 800; }

@media (max-width: 700px) {
	.sp-quicklink { padding: 12px 16px; font-size: 13px; }
}

/* ===== Hero — split layout ===== */
.sp-hero {
	background: linear-gradient(135deg, #f8f9fa 0%, #fff 60%);
	padding: 60px 0 50px;
	overflow: hidden;
}
.sp-hero-inner {
	display: grid;
	grid-template-columns: 1fr 420px;
	gap: 48px;
	align-items: center;
}
.sp-hero-eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--sp-saffron-deep);
	margin-bottom: 14px;
}
.sp-hero-h1 {
	font-size: 42px;
	line-height: 1.15;
	letter-spacing: -0.5px;
	margin-bottom: 20px;
	text-align: left;
}
.sp-hero-accent { color: var(--sp-saffron-deep); }
.sp-hero-sub {
	font-size: 17px;
	color: var(--sp-muted);
	line-height: 1.6;
	margin-bottom: 32px;
	max-width: 520px;
	text-align: left;
}
.sp-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-start; }
.sp-hero-trust {
	display: flex;
	gap: 20px;
	margin-top: 32px;
	font-size: 12px;
	color: var(--sp-muted);
	flex-wrap: wrap;
}

/* Navy outline button */
.sp-btn-navy-out {
	display: inline-block;
	padding: 13px 26px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	transition: all 0.15s ease;
	cursor: pointer;
	border: 2px solid var(--sp-navy);
	background: transparent;
	color: var(--sp-navy);
}
.sp-btn-navy-out:hover { background: var(--sp-navy); color: #fff; }

/* Hero visual — book spine stack */
.sp-hero-visual { display: flex; align-items: center; justify-content: center; }

.sp-hero-img {
	width: 100%;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(10,37,64,0.15);
}

.sp-book-stack {
	display: flex;
	flex-direction: column-reverse;
	gap: 3px;
	width: 280px;
	transform: perspective(600px) rotateY(-8deg);
	transform-origin: center;
}
.sp-spine {
	height: 46px;
	border-radius: 4px;
	display: flex;
	align-items: center;
	padding: 0 14px;
	box-shadow: 3px 3px 8px rgba(0,0,0,0.18), inset -4px 0 8px rgba(0,0,0,0.12);
	position: relative;
	overflow: hidden;
}
.sp-spine::after {
	content: '';
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	width: 18px;
	background: rgba(0,0,0,0.2);
}
.sp-spine span {
	font-size: 10px;
	font-weight: 700;
	color: rgba(255,255,255,0.9);
	letter-spacing: 0.3px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 230px;
	text-transform: uppercase;
}

@media (max-width: 920px) {
	.sp-hero-inner { grid-template-columns: 1fr; gap: 36px; }
	.sp-hero-visual { justify-content: center; }
	.sp-hero-h1 { font-size: 34px; }
	.sp-book-stack { width: 240px; }
}
@media (max-width: 600px) {
	.sp-hero { padding: 40px 0 36px; }
	.sp-hero-h1 { font-size: 28px; }
	.sp-hero-sub { font-size: 15px; }
	.sp-book-stack { width: 200px; }
	.sp-spine { height: 38px; }
}

/* ===== Section utility ===== */
.sp-bg-light { background: #f8f9fa; }
.sp-feat-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 6px;
	flex-wrap: wrap;
	gap: 10px;
}
.sp-section-title.sp-left { text-align: left; margin-bottom: 6px; }

/* ===== Product card with thumbnail ===== */
.sp-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--sp-line);
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: var(--sp-charcoal);
	transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.sp-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(10, 37, 64, 0.1); }

.sp-card-thumb {
	width: 100%;
	aspect-ratio: 4/3;
	overflow: hidden;
	background: #f1f3f5;
	flex-shrink: 0;
}
.sp-card-thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.sp-card-mock-cover {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 16px;
	text-align: center;
	gap: 6px;
}
.sp-mock-tier-label {
	font-size: 9px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	opacity: 0.75;
}
.sp-mock-title-text {
	font-size: 13px;
	font-weight: 700;
	line-height: 1.3;
}
.sp-mock-class-label {
	font-size: 10px;
	opacity: 0.8;
}
.sp-mock-footer-text {
	font-size: 8px;
	opacity: 0.6;
	letter-spacing: 0.5px;
	margin-top: auto;
	text-transform: uppercase;
}

.sp-card-body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.sp-card-title { font-size: 15px; margin: 4px 0 8px; line-height: 1.3; color: var(--sp-navy); font-weight: 600; }
.sp-card-meta { display: flex; gap: 6px; font-size: 11px; color: var(--sp-muted); margin-bottom: 6px; flex-wrap: wrap; }
.sp-card-meta span { background: #f1f3f5; padding: 2px 7px; border-radius: 20px; }
.sp-card-subjects { font-size: 12px; color: var(--sp-muted); margin-bottom: 10px; line-height: 1.4; }
.sp-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--sp-line); }
.sp-card-price { font-weight: 700; color: var(--sp-navy); font-size: 15px; }
.sp-card-cta { font-size: 13px; color: var(--sp-saffron-deep); font-weight: 600; }

/* Tier icon in tier cards */
.sp-tier-icon { font-size: 28px; margin-bottom: 10px; display: block; }

/* ===== Responsive card grid ===== */
@media (max-width: 900px) { .sp-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .sp-card-grid { grid-template-columns: 1fr; } }
