/* ============================================================
   StudyVista Global — main stylesheet
   Brand palette (spec section 3):
   Primary Blue #2563EB, Deep Blue #1E3A8A, Primary Purple #6D28D9,
   Secondary Purple #7C3AED, Cyan Accent #06B6D4,
   Light Background #F8FAFC, Main Text #0F172A,
   Secondary Text #475569, Borders #E2E8F0, White #FFFFFF.
   Typography: Inter with a reliable system-font fallback (no webfont
   request, so the theme never depends on a third-party font host).
   ============================================================ */

:root {
	--sv-blue: #2563EB;
	--sv-deep: #1E3A8A;
	--sv-purple: #6D28D9;
	--sv-purple-2: #7C3AED;
	--sv-cyan: #06B6D4;
	--sv-bg: #F8FAFC;
	--sv-text: #0F172A;
	--sv-muted: #475569;
	--sv-border: #E2E8F0;
	--sv-white: #FFFFFF;
	--sv-radius: 18px;
	--sv-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
	--sv-hero-gradient: linear-gradient(110deg, #1E3A8A 0%, #2563EB 35%, #7C3AED 70%, #06B6D4 100%);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: var(--sv-text);
	background: var(--sv-white);
	line-height: 1.6;
	margin: 0;
}

a { color: var(--sv-blue); text-decoration: none; }
a:hover { color: var(--sv-purple); text-decoration: underline; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 3px solid var(--sv-cyan);
	outline-offset: 2px;
}

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

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.6em; }
p { margin: 0 0 1em; }

.sv-wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.sv-narrow { max-width: 820px; }

.skip-link {
	position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0, 0, 0, 0); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.sv-btn {
	display: inline-block; border: 0; cursor: pointer; font-weight: 700;
	font-size: 15px; padding: 12px 22px; border-radius: 999px; text-decoration: none;
	min-height: 44px; line-height: 1.3;
}
.sv-btn:hover { text-decoration: none; }
.sv-btn-primary { background: var(--sv-purple-2); color: #fff; }
.sv-btn-primary:hover { background: var(--sv-purple); color: #fff; }
.sv-btn-light { background: #fff; color: var(--sv-deep); }
.sv-btn-light:hover { background: #eef2ff; color: var(--sv-deep); }
.sv-btn-outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.sv-btn-outline-light:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.sv-btn-inquiry { background: var(--sv-purple-2); color: #fff; white-space: nowrap; }
.sv-btn-inquiry:hover { background: var(--sv-purple); color: #fff; }

/* ---------- Top bar ---------- */
.sv-topbar { background: var(--sv-deep); color: #dbeafe; font-size: 13px; }
.sv-topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.sv-topbar-news { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-topbar-links { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 16px; }
.sv-topbar-links a { color: #e0e7ff; }
.sv-topbar-links a:hover { color: #fff; }
.sv-social { display: flex; gap: 8px; }
.sv-social a { font-weight: 700; font-size: 12px; }

/* ---------- Header ---------- */
.sv-header { background: #fff; border-bottom: 1px solid var(--sv-border); }
.sv-header.sv-sticky { position: sticky; top: 0; z-index: 50; }
.sv-header-inner { display: flex; align-items: center; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.sv-brand { flex-shrink: 0; }
.sv-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.sv-logo:hover { text-decoration: none; }
.sv-logo-mark {
	display: inline-flex; align-items: center; justify-content: center;
	width: 46px; height: 46px; border-radius: 12px; font-size: 26px;
	background: var(--sv-hero-gradient); color: #fff;
}
.sv-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.sv-logo-text strong { font-size: 21px; color: var(--sv-deep); letter-spacing: -0.3px; }
.sv-logo-text small { font-size: 11px; color: var(--sv-muted); }
.custom-logo { max-height: 60px; width: auto; }

.sv-menu-toggle {
	display: none; background: var(--sv-purple-2); color: #fff; border: 0;
	border-radius: 10px; padding: 9px 14px; font-weight: 700; cursor: pointer; min-height: 44px;
}
.sv-nav { flex: 1; }
.sv-nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 18px; }
.sv-nav-list a { color: var(--sv-text); font-weight: 600; font-size: 15px; padding: 10px 2px; display: inline-block; }
.sv-nav-list a:hover { color: var(--sv-purple-2); text-decoration: none; }
.sv-nav-list .current-menu-item > a,
.sv-nav-list .current_page_item > a { color: var(--sv-purple-2); box-shadow: inset 0 -2px 0 var(--sv-purple-2); }

/* Dropdowns (desktop hover/focus, mobile via .sv-sub-open). */
.sv-nav-list .menu-item { position: relative; }
.sv-nav-list .sub-menu {
	display: none; position: absolute; left: 0; top: 100%; min-width: 220px;
	background: #fff; border: 1px solid var(--sv-border); border-radius: 14px;
	box-shadow: var(--sv-shadow); list-style: none; margin: 0; padding: 8px; z-index: 60;
}
.sv-nav-list .menu-item-has-children:hover > .sub-menu,
.sv-nav-list .menu-item-has-children:focus-within > .sub-menu,
.sv-nav-list .menu-item-has-children.sv-sub-open > .sub-menu { display: block; }
.sv-nav-list .sub-menu a { display: block; padding: 10px 12px; border-radius: 8px; }
.sv-nav-list .sub-menu a:hover { background: var(--sv-bg); }

.sv-header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.sv-search-toggle {
	background: var(--sv-bg); border: 1px solid var(--sv-border); width: 44px; height: 44px;
	border-radius: 50%; font-size: 18px; cursor: pointer;
}
.sv-header-search { border-top: 1px solid var(--sv-border); padding: 14px 0; background: #fff; }
.sv-header-search form { display: flex; gap: 10px; }
.sv-header-search input[type="search"] {
	flex: 1; padding: 11px 14px; border: 1px solid var(--sv-border); border-radius: 12px; font-size: 15px;
}
.sv-header-search input[type="submit"],
.sv-header-search button { padding: 11px 22px; border: 0; border-radius: 999px; background: var(--sv-purple-2); color: #fff; font-weight: 700; cursor: pointer; }

/* ---------- Page hero (landing templates) ---------- */
.sv-page-hero { background: var(--sv-hero-gradient); color: #fff; padding: 52px 0 38px; }
.sv-page-hero h1 { font-size: 40px; max-width: 760px; }
.sv-page-hero p { font-size: 18px; color: #e0e7ff; max-width: 720px; }
.sv-page-hero .sv-breadcrumb { color: #dbeafe; }
.sv-page-hero .sv-breadcrumb a { color: #fff; }

/* ---------- Sections ---------- */
.sv-section { padding: 44px 0; }
.sv-section-alt { background: var(--sv-bg); }
.sv-section-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.sv-section-head h2 { margin: 0; font-size: 28px; }
.sv-section-head a { font-weight: 700; white-space: nowrap; }
.sv-page-title { font-size: 34px; margin-bottom: 8px; }
.sv-page-sub { color: var(--sv-muted); font-size: 17px; }
.sv-empty { background: #fff; border: 1px dashed var(--sv-border); border-radius: var(--sv-radius); padding: 22px; color: var(--sv-muted); }
.sv-small { font-size: 13px; color: var(--sv-muted); }
.sv-notice { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; border-radius: 12px; padding: 12px 16px; }
.sv-expired-badge { display: inline-block; background: #dc2626; color: #fff; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; margin: 0 6px 8px 0; }

/* ---------- Hero ---------- */
.sv-hero { background: var(--sv-hero-gradient); color: #fff; padding: 56px 0 40px; }
.sv-hero-inner { display: grid; gap: 32px; }
.sv-hero-copy h1 { font-size: 44px; line-height: 1.15; max-width: 680px; }
.sv-hero-copy p { font-size: 18px; color: #e0e7ff; max-width: 620px; }
.sv-hero-search { display: flex; max-width: 620px; background: #fff; border-radius: 999px; padding: 6px; box-shadow: var(--sv-shadow); }
.sv-hero-search input[type="search"] { flex: 1; border: 0; outline: 0; padding: 10px 16px; font-size: 15px; border-radius: 999px; min-width: 0; }
.sv-hero-search button { border: 0; border-radius: 50%; width: 46px; height: 46px; background: var(--sv-purple-2); color: #fff; font-size: 19px; cursor: pointer; flex-shrink: 0; }
.sv-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.sv-hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sv-stat { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22); border-radius: var(--sv-radius); padding: 16px; text-align: center; }
.sv-stat strong { display: block; font-size: 26px; line-height: 1.2; }
.sv-stat span { font-size: 13px; color: #e0e7ff; }

/* ---------- Cards & grids ---------- */
.sv-quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.sv-quick-card {
	background: #fff; border: 1px solid var(--sv-border); border-radius: var(--sv-radius);
	padding: 18px 14px; text-align: center; box-shadow: var(--sv-shadow); color: var(--sv-text);
	transition: border-color 0.15s ease, transform 0.15s ease;
}
.sv-quick-card:hover { text-decoration: none; border-color: var(--sv-purple-2); transform: translateY(-2px); }
.sv-quick-card strong { display: block; font-size: 15px; margin-bottom: 4px; }
.sv-quick-card span { font-size: 12.5px; color: var(--sv-muted); }

.sv-card-grid { display: grid; gap: 20px; }
.sv-card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.sv-card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.sv-news-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.sv-news-side { display: grid; gap: 20px; align-content: start; }
.sv-post-card, .sv-scholarship-card, .sv-university-card, .sv-course-card, .sv-destination-card {
	background: #fff; border: 1px solid var(--sv-border); border-radius: var(--sv-radius);
	overflow: hidden; box-shadow: var(--sv-shadow); display: flex; flex-direction: column;
	transition: transform 0.15s ease;
}
.sv-post-card:hover, .sv-scholarship-card:hover, .sv-university-card:hover, .sv-course-card:hover, .sv-destination-card:hover { transform: translateY(-2px); }
.sv-post-card-thumb img, .sv-scholarship-thumb img, .sv-university-thumb img, .sv-course-thumb img, .sv-destination-thumb img { display: block; width: 100%; }
.sv-post-card-body, .sv-scholarship-body, .sv-university-body, .sv-course-body, .sv-destination-body { padding: 18px 20px 20px; }
.sv-post-card-body h3, .sv-scholarship-body h3, .sv-university-body h3, .sv-course-body h3, .sv-destination-body h3 { font-size: 19px; }
.sv-post-card-body h3 a, .sv-scholarship-body h3 a, .sv-university-body h3 a, .sv-course-body h3 a, .sv-destination-body h3 a { color: var(--sv-text); }
.sv-post-card-body h3 a:hover, .sv-scholarship-body h3 a:hover, .sv-university-body h3 a:hover, .sv-course-body h3 a:hover, .sv-destination-body h3 a:hover { color: var(--sv-purple-2); text-decoration: none; }
.sv-card-meta { color: var(--sv-muted); font-size: 13px; }
.sv-card-link { font-weight: 700; }
.sv-post-list { display: grid; gap: 20px; }
.sv-post-card-compact { flex-direction: row; }
.sv-post-card-compact .sv-post-card-thumb { flex: 0 0 140px; }
.sv-post-card-compact .sv-post-card-thumb img { height: 100%; object-fit: cover; }

.sv-badge {
	display: inline-block; background: #ede9fe; color: var(--sv-deep);
	font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; margin: 0 6px 8px 0;
}
a.sv-badge:hover { text-decoration: none; background: var(--sv-purple-2); color: #fff; }
.sv-badge-funding { background: var(--sv-deep); color: #fff; }
span.sv-badge-funding { background: var(--sv-deep); color: #fff; }

.sv-scholarship-meta { list-style: none; margin: 0 0 12px; padding: 0; font-size: 14px; color: var(--sv-muted); }
.sv-scholarship-meta li { margin-bottom: 4px; }
.sv-scholarship-meta strong { color: var(--sv-text); }

/* ---------- Two-col panels / subjects / destinations ---------- */
.sv-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sv-panel { background: #fff; border: 1px solid var(--sv-border); border-radius: var(--sv-radius); padding: 26px; box-shadow: var(--sv-shadow); }
.sv-check-list { list-style: none; margin: 0 0 16px; padding: 0; }
.sv-check-list li { padding-left: 26px; position: relative; margin-bottom: 8px; }
.sv-check-list li::before { content: "\2713"; position: absolute; left: 0; color: var(--sv-purple-2); font-weight: 700; }
.sv-chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.sv-chip-row-large { margin-top: 8px; }
.sv-chip {
	background: #fff; border: 1px solid var(--sv-border); border-radius: 999px;
	padding: 9px 16px; font-weight: 600; color: var(--sv-text); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.sv-chip:hover { text-decoration: none; border-color: var(--sv-purple-2); color: var(--sv-purple-2); }
.sv-chip span { color: var(--sv-muted); font-weight: 400; }
.sv-subject-card {
	background: #fff; border: 1px solid var(--sv-border); border-radius: var(--sv-radius);
	padding: 22px; box-shadow: var(--sv-shadow); color: var(--sv-text);
}
.sv-subject-card:hover { text-decoration: none; border-color: var(--sv-purple-2); }
.sv-subject-card strong { display: block; font-size: 18px; }
.sv-subject-card span { color: var(--sv-muted); font-size: 13px; }
.sv-dest-card {
	background: var(--sv-hero-gradient);
	color: #fff; border-radius: var(--sv-radius); padding: 26px 20px; box-shadow: var(--sv-shadow);
}
.sv-dest-card:hover { text-decoration: none; color: #fff; opacity: 0.92; }
.sv-dest-name { display: block; font-size: 20px; font-weight: 800; }
.sv-dest-count { font-size: 13px; color: #e0e7ff; }
.sv-tool-card {
	background: #fff; border: 1px solid var(--sv-border); border-radius: var(--sv-radius);
	padding: 22px; box-shadow: var(--sv-shadow); color: var(--sv-text); text-align: center;
}
.sv-tool-card:hover { text-decoration: none; border-color: var(--sv-purple-2); }
.sv-tool-card strong { display: block; font-size: 17px; margin-bottom: 4px; }
.sv-tool-card span { color: var(--sv-muted); font-size: 13px; }
.sv-tool-note { color: var(--sv-muted); font-size: 13px; margin-top: 8px; }

/* ---------- Consultancy banner ---------- */
.sv-banner {
	background: var(--sv-hero-gradient);
	color: #fff; border-radius: 22px; padding: 34px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px;
}
.sv-banner h2 { color: #fff; font-size: 28px; }
.sv-banner-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.sv-banner-list li { padding-left: 24px; position: relative; }
.sv-banner-list li::before { content: "\2713"; position: absolute; left: 0; font-weight: 700; }
.sv-banner-fees { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: var(--sv-radius); padding: 22px; }
.sv-banner-fees p { margin-bottom: 14px; }
.sv-banner-fees small { color: #e0e7ff; }
.sv-check { color: #a7f3d0; font-weight: 800; }

/* ---------- Newsletter ---------- */
.sv-newsletter { background: var(--sv-bg); border: 1px solid var(--sv-border); border-radius: 22px; padding: 34px; text-align: center; }
.sv-newsletter-form { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; }
.sv-newsletter-form input[type="email"] { flex: 1; padding: 12px 16px; border: 1px solid var(--sv-border); border-radius: 999px; font-size: 15px; min-width: 0; }

/* ---------- Layout with sidebar ---------- */
.sv-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.sv-sidebar .widget { background: #fff; border: 1px solid var(--sv-border); border-radius: var(--sv-radius); padding: 22px; box-shadow: var(--sv-shadow); margin-bottom: 20px; }
.sv-sidebar .widget-title { font-size: 18px; border-bottom: 1px solid var(--sv-border); padding-bottom: 10px; }
.sv-term-count-list { list-style: none; margin: 0; padding: 0; }
.sv-term-count-list li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #f1f5f9; }
.sv-term-count-list li:last-child { border-bottom: 0; }
.sv-term-count-list span { color: var(--sv-muted); }
.sv-support-card { background: var(--sv-hero-gradient) !important; color: #fff; }
.sv-support-card .widget-title { color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.sv-support-card ul { list-style: none; margin: 0 0 16px; padding: 0; }
.sv-support-card li { padding-left: 24px; position: relative; margin-bottom: 6px; }
.sv-support-card li::before { content: "\2713"; position: absolute; left: 0; font-weight: 700; }
.sv-article-sidebar .sv-toc { position: sticky; top: 90px; }

/* ---------- Filter bar ---------- */
.sv-filter-bar { background: #fff; border: 1px solid var(--sv-border); border-radius: var(--sv-radius); padding: 18px 22px; margin-bottom: 26px; box-shadow: var(--sv-shadow); }
.sv-filter-group { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 10px; }
.sv-filter-group:last-child { margin-bottom: 0; }
.sv-filter-group strong { min-width: 74px; }
.sv-filter-group a { background: var(--sv-bg); border-radius: 999px; padding: 6px 13px; font-size: 14px; font-weight: 600; }
.sv-filter-group a:hover { background: var(--sv-purple-2); color: #fff; text-decoration: none; }
.sv-filter-group a.sv-filter-active { background: var(--sv-purple-2); color: #fff; }
.sv-result-count { color: var(--sv-muted); }

/* ---------- Single article ---------- */
.sv-breadcrumb { font-size: 14px; color: var(--sv-muted); margin-bottom: 18px; }
.sv-breadcrumb a { font-weight: 600; }
.sv-article-head { margin-bottom: 22px; }
.sv-article-title { font-size: 36px; }
.sv-article-meta { color: var(--sv-muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.sv-article-hero { margin: 0 0 22px; }
.sv-article-hero img { width: 100%; border-radius: 22px; display: block; }
.sv-article-share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 26px; padding-bottom: 20px; border-bottom: 1px solid var(--sv-border); }
.sv-article-share span { font-weight: 700; }
.sv-article-share a { background: var(--sv-bg); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 700; }
.sv-article-share a:hover { background: var(--sv-purple-2); color: #fff; text-decoration: none; }
.sv-article-body { font-size: 17px; }
.sv-article-body h2 { font-size: 26px; margin-top: 1.4em; }
.sv-article-body h3 { font-size: 21px; margin-top: 1.3em; }
.sv-article-body img { border-radius: 14px; }
.sv-toc { background: #fff; border: 1px solid var(--sv-border); border-radius: var(--sv-radius); padding: 22px; box-shadow: var(--sv-shadow); margin-bottom: 20px; }
.sv-toc h3 { font-size: 18px; }
.sv-toc ol { margin: 0; padding-left: 20px; }
.sv-toc li { margin-bottom: 6px; }
.sv-quick-info { background: var(--sv-bg); border: 1px solid var(--sv-border); border-radius: var(--sv-radius); padding: 22px; margin-bottom: 26px; overflow-x: auto; }
.sv-quick-info h3 { margin-top: 0; }
.sv-quick-info table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 420px; }
.sv-quick-info th, .sv-quick-info td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--sv-border); vertical-align: top; }
.sv-quick-info tr:last-child th, .sv-quick-info tr:last-child td { border-bottom: 0; }
.sv-quick-info th { width: 38%; }
.sv-tags { color: var(--sv-muted); }
.sv-pagination { margin-top: 28px; }
.sv-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.sv-pagination .page-numbers { background: #fff; border: 1px solid var(--sv-border); border-radius: 10px; padding: 8px 14px; font-weight: 700; }
.sv-pagination .page-numbers.current { background: var(--sv-purple-2); color: #fff; border-color: var(--sv-purple-2); }
.sv-pagination .page-numbers:hover { text-decoration: none; border-color: var(--sv-purple-2); }

/* ---------- FAQ ---------- */
.sv-faq { display: grid; gap: 14px; }
.sv-faq details { background: #fff; border: 1px solid var(--sv-border); border-radius: 14px; padding: 16px 20px; box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05); }
.sv-faq summary { font-weight: 700; cursor: pointer; }
.sv-faq p { margin: 10px 0 0; color: var(--sv-muted); }

/* ---------- Enquiry form ---------- */
.sv-form { display: grid; gap: 14px; max-width: 720px; }
.sv-form label { font-weight: 600; font-size: 14px; display: block; margin-bottom: 4px; }
.sv-form input[type="text"], .sv-form input[type="email"], .sv-form input[type="url"],
.sv-form select, .sv-form textarea {
	width: 100%; padding: 11px 14px; border: 1px solid var(--sv-border); border-radius: 12px; font-size: 15px; font-family: inherit;
}
.sv-form .sv-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sv-form-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 12px; padding: 12px 16px; }
.sv-form-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; border-radius: 12px; padding: 12px 16px; }

/* ---------- Footer ---------- */
.sv-footer { background: var(--sv-deep); color: #dbeafe; padding: 48px 0 0; margin-top: 20px; }
.sv-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 30px; padding-bottom: 34px; }
.sv-footer-col h3 { color: #fff; font-size: 18px; }
.sv-footer-col p { font-size: 14px; }
.sv-logo-footer .sv-logo-text strong { color: #fff; }
.sv-logo-footer .sv-logo-text small { color: #bfdbfe; }
.sv-footer-menu { list-style: none; margin: 0; padding: 0; }
.sv-footer-menu li { margin-bottom: 8px; }
.sv-footer-menu a { color: #dbeafe; font-size: 14px; }
.sv-footer-menu a:hover { color: #fff; }
.sv-footer .widget { background: transparent; border: 0; box-shadow: none; padding: 0; }
.sv-footer .widget-title { color: #fff; border: 0; }
.sv-footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); padding: 18px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; }
.sv-footer-bottom a { color: #e0e7ff; }
.sv-footer-tagline { margin: 0; }

/* ---------- Search / 404 ---------- */
.sv-404 { text-align: center; padding: 60px 0; }
.search-form { display: flex; gap: 10px; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; padding: 11px 14px; border: 1px solid var(--sv-border); border-radius: 12px; font-size: 15px; }
.search-form .search-submit { padding: 11px 22px; border: 0; border-radius: 999px; background: var(--sv-purple-2); color: #fff; font-weight: 700; cursor: pointer; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.sv-quick-grid { grid-template-columns: repeat(3, 1fr); }
	.sv-card-grid-4 { grid-template-columns: repeat(2, 1fr); }
	.sv-card-grid-3 { grid-template-columns: repeat(2, 1fr); }
	.sv-layout { grid-template-columns: 1fr; }
	.sv-article-sidebar .sv-toc { position: static; }
	.sv-footer-grid { grid-template-columns: 1fr 1fr; }
	.sv-hero-copy h1 { font-size: 36px; }
}

@media (max-width: 768px) {
	.sv-topbar-news { display: none; }
	.sv-topbar-inner { justify-content: center; }
	.sv-menu-toggle { display: inline-block; }
	.sv-header-inner { flex-wrap: wrap; }
	.sv-nav { display: none; flex-basis: 100%; order: 4; }
	.sv-nav.sv-nav-open { display: block; }
	.sv-nav-list { flex-direction: column; gap: 0; }
	.sv-nav-list .sub-menu { position: static; box-shadow: none; border: 0; padding-left: 16px; }
	.sv-header-actions { margin-left: 0; }
	.sv-hero-stats { grid-template-columns: repeat(2, 1fr); }
	.sv-news-grid, .sv-two-col, .sv-banner { grid-template-columns: 1fr; }
	.sv-banner-list { grid-template-columns: 1fr; }
	.sv-quick-grid { grid-template-columns: repeat(2, 1fr); }
	.sv-card-grid-3, .sv-card-grid-4 { grid-template-columns: 1fr; }
	.sv-footer-grid { grid-template-columns: 1fr; }
	.sv-newsletter-form { flex-direction: column; }
	.sv-newsletter-form input[type="email"] { width: 100%; }
	.sv-form .sv-form-row { grid-template-columns: 1fr; }
	.sv-article-title { font-size: 28px; }
	.sv-section-head h2 { font-size: 23px; }
	.sv-hero-copy h1 { font-size: 30px; }
	.sv-page-hero h1 { font-size: 30px; }
}

/* ---------- Small phones (added 2026-11-10, v1.1.0) ---------- */
@media (max-width: 480px) {
	.sv-hero-copy h1 { font-size: 24px; }
	.sv-page-hero h1 { font-size: 24px; }
	.sv-article-title { font-size: 22px; }
	.sv-section-head h2 { font-size: 20px; }
	.sv-quick-grid { grid-template-columns: 1fr; }
	.sv-hero-actions { display: flex; flex-direction: column; }
	.sv-hero-actions .sv-btn { text-align: center; }
	.sv-footer-bottom { text-align: center; }
}

/* ---------- Back to top (added 2026-11-10, v1.1.0) ---------- */
.sv-to-top { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--sv-hero-gradient); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px rgba(30, 58, 138, 0.35); }
.sv-to-top[hidden] { display: none; }
.sv-to-top:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
