/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.sch-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255,255,255,.9);
	backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid var(--sch-border);
}
.sch-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 72px;
	gap: 24px;
}
.sch-logo-text { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.sch-logo-dot { color: var(--sch-amber); }

.sch-nav-list { display: flex; align-items: center; gap: 28px; }
.sch-nav-list a { font-weight: 600; font-size: 14.5px; color: var(--sch-ink-soft); transition: color .15s ease; }
.sch-nav-list a:hover { color: var(--sch-ink); }
.sch-nav-list li { position: relative; }

/* dropdown support if a menu item has children in wp-admin */
.sch-nav-list .menu-item-has-children > ul {
	display: none;
	position: absolute;
	top: 100%; left: 0;
	background: #fff;
	border: 1px solid var(--sch-border);
	border-radius: var(--sch-radius-sm);
	box-shadow: var(--sch-shadow-hover);
	min-width: 200px;
	padding: 8px;
	margin-top: 10px;
}
.sch-nav-list .menu-item-has-children:hover > ul { display: block; }
.sch-nav-list .menu-item-has-children > ul a { display: block; padding: 8px 10px; border-radius: 6px; }
.sch-nav-list .menu-item-has-children > ul a:hover { background: var(--sch-bg); }

.sch-header-actions { display: flex; align-items: center; gap: 14px; }
.sch-btn--sm { padding: 9px 16px; font-size: 13.5px; }
.sch-btn--block { display: flex; justify-content: center; width: 100%; }

.sch-nav-toggle {
	display: none;
	flex-direction: column;
	gap: 5px;
	background: none; border: none; padding: 8px;
}
.sch-nav-toggle span { width: 22px; height: 2px; background: var(--sch-ink); border-radius: 2px; }

@media (max-width: 900px) {
	.sch-nav { position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--sch-border); display: none; padding: 16px 24px; }
	.sch-nav.is-open { display: block; }
	.sch-nav-list { flex-direction: column; align-items: flex-start; gap: 14px; }
	.sch-nav-toggle { display: flex; }
	.sch-header-actions .sch-btn--primary { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.sch-hero {
	background: linear-gradient(160deg, var(--sch-navy) 0%, var(--sch-navy-soft) 100%);
	color: #fff;
	padding: 84px 0 60px;
}
.sch-hero-inner { max-width: 760px; }
.sch-hero h1 { color: #fff; }
.sch-hero-sub { color: #cbd5e1; font-size: 17px; max-width: 620px; }
.sch-hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

/* ==========================================================================
   Date slider
   ========================================================================== */

.sch-slider-outer {
	overflow: hidden;
	width: 100%;
	padding: 14px 0;
	background: var(--sch-navy);
	border-radius: var(--sch-radius);
}
.sch-slider-track {
	display: flex;
	width: max-content;
	animation: sch-scroll 42s linear infinite;
}
.sch-slider-outer:hover .sch-slider-track { animation-play-state: paused; }

.sch-date-card {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	min-width: 152px;
	margin: 0 10px;
	padding: 14px 18px;
	border-radius: var(--sch-radius-sm);
	background: rgba(255,255,255,.06);
	color: #f1f5f9;
	border-left: 4px solid #64748b;
	transition: transform .15s ease, background .15s ease;
}
.sch-date-card:hover { transform: translateY(-3px); background: rgba(255,255,255,.1); }
.sch-date-card.status-upcoming  { border-left-color: var(--sch-amber); }
.sch-date-card.status-ongoing   { border-left-color: var(--sch-green); }
.sch-date-card.status-completed { border-left-color: #64748b; opacity: .55; }
.sch-date-day   { font-size: 22px; font-weight: 800; line-height: 1; }
.sch-date-month { font-size: 12px; opacity: .75; margin-top: 2px; }
.sch-date-label { font-size: 13px; font-weight: 700; margin-top: 10px; }
.sch-date-exam  { font-size: 12px; opacity: .7; margin-top: 2px; }

@keyframes sch-scroll {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
	.sch-slider-track { animation: none; overflow-x: auto; }
}

/* ==========================================================================
   Qualification cards
   ========================================================================== */

.sch-qual-card { padding: 26px 22px; text-align: left; }
.sch-qual-icon { font-size: 30px; display: block; margin-bottom: 10px; }
.sch-qual-card h3 { margin-bottom: 4px; }
.sch-qual-card p { font-size: 13.5px; margin: 0; }

.sch-section--muted { background: #eef1f6; }

/* ==========================================================================
   Exam & blog cards
   ========================================================================== */

.sch-exam-card, .sch-blog-card { display: flex; flex-direction: column; overflow: hidden; }
.sch-exam-card-media, .sch-blog-card-media { aspect-ratio: 16/10; overflow: hidden; background: #e2e8f0; }
.sch-exam-card-media img, .sch-blog-card-media img { width: 100%; height: 100%; object-fit: cover; }
.sch-exam-card-media--placeholder {
	display: flex; align-items: center; justify-content: center;
	font-size: 42px; font-weight: 800; color: #94a3b8;
	background: linear-gradient(135deg,#e2e8f0,#f1f5f9);
}
.sch-exam-card-body, .sch-blog-card-body { padding: 18px 20px; }
.sch-exam-card-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.sch-exam-card-body h3, .sch-blog-card-body h3 { margin-bottom: 6px; font-size: 17px; }
.sch-exam-card-body p, .sch-blog-card-body p { font-size: 13.5px; margin: 0; }

/* ==========================================================================
   Timeline (single exam page)
   ========================================================================== */

.sch-timeline { position: relative; padding-left: 28px; margin-top: 20px; }
.sch-timeline::before {
	content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: var(--sch-border);
}
.sch-timeline-item { position: relative; padding-bottom: 22px; }
.sch-timeline-item:last-child { padding-bottom: 0; }
.sch-timeline-dot {
	position: absolute; left: -28px; top: 3px;
	width: 12px; height: 12px; border-radius: 50%;
	background: #94a3b8; border: 2px solid #fff; box-shadow: 0 0 0 2px #e2e8f0;
}
.sch-timeline-item.status-upcoming .sch-timeline-dot  { background: var(--sch-amber); }
.sch-timeline-item.status-ongoing .sch-timeline-dot   { background: var(--sch-green); }
.sch-timeline-item.status-completed .sch-timeline-dot { background: #94a3b8; }
.sch-timeline-body strong { display: block; font-size: 15px; }
.sch-timeline-date { font-size: 13px; color: var(--sch-ink-muted); }

/* ==========================================================================
   Single exam layout
   ========================================================================== */

.sch-breadcrumbs { font-size: 13px; color: var(--sch-ink-muted); margin-bottom: 18px; }
.sch-breadcrumbs a { color: var(--sch-ink-muted); }
.sch-breadcrumbs a:hover { color: var(--sch-ink); }

.sch-exam-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; margin-top: 10px; }
.sch-exam-badges { display: flex; gap: 6px; margin-bottom: 10px; }
.sch-exam-hero-media { border-radius: var(--sch-radius); overflow: hidden; margin: 20px 0; }
.sch-sidebar-card { padding: 20px; margin-bottom: 20px; }
.sch-sidebar-card h4 { margin-bottom: 12px; }
.sch-related-list li { padding: 8px 0; border-bottom: 1px solid var(--sch-border); font-size: 14px; }
.sch-related-list li:last-child { border-bottom: none; }
.sch-related-list a:hover { color: var(--sch-sky); }

.sch-prose p, .sch-prose li { color: var(--sch-ink-soft); }
.sch-prose h2 { margin-top: 1.6em; }
.sch-prose img { border-radius: var(--sch-radius); }

@media (max-width: 900px) {
	.sch-exam-layout { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Filter bar
   ========================================================================== */

.sch-filter-bar { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.sch-filter-group { display: flex; gap: 8px; flex-wrap: wrap; }
.sch-filter-pill {
	background: #fff; border: 1px solid var(--sch-border); border-radius: 999px;
	padding: 7px 16px; font-size: 13px; font-weight: 600; color: var(--sch-ink-soft);
	transition: all .15s ease;
}
.sch-filter-pill:hover { border-color: var(--sch-ink-soft); }
.sch-filter-pill.is-active { background: var(--sch-navy); border-color: var(--sch-navy); color: #fff; }
.sch-filterable.is-hidden { display: none; }

.sch-archive-header { padding-bottom: 20px; }

/* ==========================================================================
   Roadmap page
   ========================================================================== */

.sch-roadmap-card { padding: 26px; }
.sch-roadmap-steps { margin: 16px 0; padding: 0; list-style: none; }
.sch-roadmap-steps li { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 14.5px; color: var(--sch-ink-soft); }
.sch-roadmap-step-num {
	width: 24px; height: 24px; border-radius: 50%; background: var(--sch-bg);
	display: flex; align-items: center; justify-content: center;
	font-size: 12px; font-weight: 700; color: var(--sch-ink); flex-shrink: 0;
}
.sch-roadmap-cta { font-weight: 700; font-size: 13.5px; color: var(--sch-sky); }

/* ==========================================================================
   Blog layout
   ========================================================================== */

.sch-blog-layout { display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .sch-blog-layout { grid-template-columns: 1fr; } }
.sch-widget-title { font-size: 15px; margin-bottom: 12px; }

/* ==========================================================================
   Newsletter CTA
   ========================================================================== */

.sch-newsletter { background: var(--sch-navy); color: #fff; padding: 56px 0; }
.sch-newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.sch-newsletter h2, .sch-newsletter p { color: #fff; }
.sch-newsletter p { color: #cbd5e1; margin: 0; }
.sch-newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.sch-newsletter-form input {
	padding: 12px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25);
	background: rgba(255,255,255,.08); color: #fff; min-width: 220px;
}
.sch-newsletter-form input::placeholder { color: #94a3b8; }

/* ==========================================================================
   Footer
   ========================================================================== */

.sch-footer { background: #0b1120; color: #94a3b8; padding: 56px 0 0; margin-top: 20px; }
.sch-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.sch-footer-brand p { color: #94a3b8; font-size: 13.5px; max-width: 320px; }
.sch-footer .sch-widget-title { color: #fff; }
.sch-footer-col a { font-size: 13.5px; line-height: 2.2; display: block; }
.sch-footer-col a:hover { color: #fff; }
.sch-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: 12.5px; }
@media (max-width: 900px) { .sch-footer-grid { grid-template-columns: 1fr 1fr; } }

/* ==========================================================================
   Search form
   ========================================================================== */

.sch-search-form { display: flex; gap: 10px; max-width: 420px; margin: 20px auto; }
.sch-search-form input { flex: 1; padding: 12px 16px; border: 1px solid var(--sch-border); border-radius: 999px; }

/* ==========================================================================
   Pagination
   ========================================================================== */

.sch-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.sch-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--sch-border);
	font-size: 13.5px; font-weight: 600;
}
.sch-pagination .page-numbers.current { background: var(--sch-navy); color: #fff; border-color: var(--sch-navy); }
