/*
Theme Name: İzmir Rehber
Theme URI: https://izmirsurucukursu.com
Author: İzmir Rehber
Description: İzmir sürücü kurslarını keşfetmek ve karşılaştırmak için erişilebilir, hızlı ve duyarlı rehber teması.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: izmir-rehber
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --ink: #103c43;
  --ink-deep: #092c32;
  --teal: #137c74;
  --teal-hover: #0c665f;
  --teal-pale: #eaf4f1;
  --orange: #ffb15c;
  --paper: #fff;
  --soft: #f5f7f6;
  --muted: #596f72;
  --line: #dce5e2;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', Arial, sans-serif;
  --shadow: 0 12px 36px rgb(16 60 67 / 7%);
  --radius: 7px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
body:has(.compare-bar:not([hidden])) { padding-bottom: 105px; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
svg { vertical-align: middle; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
input, textarea { min-width: 0; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--teal-hover); }
p { margin: 0 0 1.2em; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .65em; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.035em; }
h3, h4 { font-weight: 650; letter-spacing: -.02em; }
ul, ol { padding-left: 1.4em; }
::selection { background: #cce9e0; color: var(--ink-deep); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline-offset: 1px; }
.container { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.icon { display: inline-block; flex: 0 0 auto; width: 20px; height: 20px; vertical-align: middle; }
.skip-link { position: fixed; z-index: 1000; left: 20px; top: -100px; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 4px; }
.skip-link:focus { top: 15px; color: #fff; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; white-space: nowrap; }
.screen-reader-text:focus { clip: auto !important; clip-path: none; width: auto; height: auto; margin: 0; padding: 12px; position: fixed !important; z-index: 1000; left: 16px; top: 16px; background: #fff; }

/* Navigation */
.site-header { position: sticky; top: 0; z-index: 100; background: rgb(255 255 255 / 97%); border-bottom: 1px solid var(--line); }
body.admin-bar .site-header { top: 32px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 91px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-icon { display: grid; place-items: center; width: 43px; height: 45px; flex: 0 0 auto; border: 1px solid var(--ink); border-radius: 4px; background: var(--ink); color: #fff; font: 600 22px/1 var(--sans); letter-spacing: -.08em; box-shadow: inset 0 0 0 3px #fff; }
.brand-words { display: flex; flex-direction: column; gap: 1px; }
.brand-title { display: block; font: 600 22px/1.2 var(--sans); letter-spacing: -.065em; }
.brand-sub { display: block; color: var(--muted); font-size: 10px; font-weight: 600; line-height: 1.5; letter-spacing: .13em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: 29px; }
.desktop-nav ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.desktop-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 13px; font-weight: 600; text-decoration: none; }
.desktop-nav a:hover, .desktop-nav .current-menu-item > a { color: var(--teal); }
.desktop-nav a[aria-current='page'] { color: var(--teal); text-decoration: underline; text-underline-offset: 8px; }
.desktop-nav .nav-cta, .nav-cta { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 18px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); font-size: 13px; font-weight: 650; text-decoration: none; }
.desktop-nav .nav-cta:hover, .nav-cta:hover { background: var(--soft); border-color: var(--ink); color: var(--ink); }
.menu-toggle { display: none; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 8px 12px; background: transparent; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; font-weight: 600; }
.mobile-nav { padding: 8px 0 22px; border-top: 1px solid var(--line); }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav a { display: flex; align-items: center; min-height: 48px; padding: 10px 0; color: var(--ink); text-decoration: none; font-weight: 600; }
.mobile-nav .nav-cta { margin-top: 8px; padding: 10px 16px; }

/* Shared controls */
.button { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 48px; padding: 12px 23px; border: 1px solid transparent; border-radius: 4px; text-decoration: none; text-align: center; font-size: 14px; font-weight: 650; line-height: 1.4; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.button-primary { color: #fff; background: var(--teal); border-color: var(--teal); }
.button-primary:hover { color: #fff; background: var(--teal-hover); border-color: var(--teal-hover); }
.button-secondary { color: var(--ink); background: #fff; border-color: var(--line); }
.button-secondary:hover { color: var(--ink); background: var(--soft); border-color: #a5bcb5; }
.button-light { color: var(--ink); background: #fff; border-color: #fff; }
.button-light:hover { color: var(--ink); background: var(--teal-pale); border-color: var(--teal-pale); }
.button-small { min-height: 44px; padding: 10px 16px; font-size: 13px; }
.button:disabled, button[disabled] { cursor: not-allowed; opacity: .55; }
.button .icon { width: 17px; height: 17px; }
.field { display: flex; flex-direction: column; min-width: 0; gap: 7px; }
.field label, .contact-form label { display: block; color: var(--ink); font-size: 12px; font-weight: 650; }
.field select, .field input, .contact-form input:not([type='checkbox']):not([type='radio']):not([type='submit']), .contact-form select, .contact-form textarea { width: 100%; min-height: 48px; padding: 11px 13px; background: #fff; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); font-size: 14px; line-height: 1.5; }
.field select, .contact-form select { padding-right: 28px; }
input::placeholder, textarea::placeholder { color: #6b7d80; opacity: 1; }
input[type='checkbox'], input[type='radio'] { accent-color: var(--teal); width: 17px; height: 17px; flex-shrink: 0; }
.field select:hover, .field input:hover { border-color: #a9bcb7; }
.filter-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 12px; }
.filter-form > .button, .filter-form button[type='submit'] { min-height: 48px; }

/* Homepage introduction */
.eyebrow, .section-label { display: flex; align-items: center; gap: 10px; margin: 0 0 21px; color: var(--teal); font-size: 11px; font-weight: 700; line-height: 1.45; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 7px; height: 7px; flex: 0 0 auto; background: var(--orange); border-radius: 50%; }
.hero { padding: 59px 0 42px; background: linear-gradient(180deg, #fbfcfb 0%, #fff 100%); overflow: clip; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 51px; align-items: center; }
.hero-copy { min-width: 0; padding: 7px 0; }
.hero h1 { max-width: 650px; margin-bottom: 24px; font-size: clamp(46px, 4.8vw, 64px); line-height: 1.06; letter-spacing: -.047em; }
.hero h1 em, .hero h1 span { color: var(--teal); font-weight: 400; }
.hero h1 em { font-style: italic; }
.hero-copy > p { max-width: 500px; margin-bottom: 26px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.hero-image { position: relative; min-width: 0; height: 460px; margin: 0; border-radius: 7px 96px 7px 7px; background: #dcebe8; overflow: hidden; }
.hero-art{background:linear-gradient(156deg,#a9ddd8 0%,#e7f2f0 40%,#5baaa9 41%,#2d7379 57%,#113f48 58%,#0d2f38 100%)}.hero-35{position:absolute;right:12%;top:14%;z-index:2;width:126px;height:126px;border:10px solid #fff;border-radius:50%;background:#f5ad58;color:#103c43;font:800 4rem/106px Georgia,serif;text-align:center;box-shadow:0 16px 36px rgb(6 38 44 / 24%)}.hero-road{position:absolute;width:116%;height:190px;bottom:-60px;left:-8%;transform:rotate(-10deg);background:repeating-linear-gradient(90deg,transparent 0 58px,#fff 58px 94px,transparent 94px 152px),#293a43;box-shadow:0 -12px 0 rgb(255 255 255 / 35%)}
.hero-image > img, .hero-image > picture, .hero-image > picture > img { width: 100%; height: 100%; object-fit: cover; object-position: 67% center; }
.hero-image::after { content: ''; position: absolute; pointer-events: none; inset: 65% 0 0; background: linear-gradient(transparent, rgb(5 35 41 / 63%)); }
.hero-caption { position: absolute; z-index: 1; bottom: 21px; left: 24px; right: 24px; margin: 0; display: flex; align-items: center; gap: 8px; color: #fff; font-size: 11px; line-height: 1.5; }
.hero-caption .icon { width: 16px; height: 16px; }
.hero-caption small { display: block; opacity: .88; }
.search-panel { position: relative; z-index: 2; margin-top: 27px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 24px rgb(16 60 67 / 5%); }
.search-panel > h2, .search-panel > h3 { margin: 0 0 14px; font: 650 14px/1.4 var(--sans); letter-spacing: 0; }
.hero-copy .search-panel { margin-right: -58px; }
.hero-note { display: flex; align-items: flex-start; gap: 6px; color: var(--muted); margin-top: 14px; font-size: 11px; line-height: 1.6; }
.hero-note .icon { width: 14px; height: 14px; margin-top: 2px; color: var(--teal); }
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: center; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-item { display: flex; align-items: center; gap: 12px; min-width: 0; font-size: 12px; line-height: 1.5; }
.trust-item + .trust-item { border-left: 1px solid var(--line); padding-left: 25px; }
.trust-item > .icon { color: var(--teal); width: 23px; height: 23px; }
.trust-item strong { display: block; color: var(--ink); font-size: 13px; font-weight: 650; }
.trust-item span, .trust-item small { display: block; color: var(--muted); font-size: 11px; }

/* Editorial sections */
.section { padding: 74px 0; }
.section-soft { background: var(--soft); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading > div { min-width: 0; }
.section-heading .section-label { margin-bottom: 12px; }
.section-heading p { margin-bottom: 0; max-width: 630px; color: var(--muted); font-size: 14px; }
.section-title { margin: 0 0 12px; font-size: clamp(32px, 3.2vw, 42px); line-height: 1.15; }
.section-heading .section-title:last-child { margin-bottom: 0; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--teal); font-size: 13px; font-weight: 650; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.section-heading > .text-link { flex-shrink: 0; padding-bottom: 3px; }
.text-link .icon { width: 16px; height: 16px; }
.district-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.district-card { display: flex; flex-direction: column; position: relative; min-width: 0; min-height: 186px; padding: 23px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fff; text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.district-card:hover { color: var(--ink); border-color: #81aba2; box-shadow: var(--shadow); transform: translateY(-3px); }
.district-number { margin-bottom: 22px; color: var(--teal); font: italic 19px/1 var(--serif); }
.district-card h3 { margin: 0 0 6px; font: 400 25px/1.15 var(--serif); letter-spacing: -.03em; }
.district-card p { margin: 0; color: var(--muted); font-size: 12px; }
.district-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 17px; color: var(--muted); font-size: 11px; }
.district-meta .icon { color: var(--teal); width: 17px; height: 17px; }
.district-card > .icon { position: absolute; right: 21px; bottom: 24px; color: var(--teal); width: 18px; height: 18px; }
.course-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; }
.course-card { min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: box-shadow .18s ease, border-color .18s ease; }
.course-card:hover { border-color: #a1bcb5; box-shadow: var(--shadow); }
.course-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 23px 24px 0; }
.course-mark { display: grid; place-items: center; flex-shrink: 0; width: 47px; height: 47px; background: var(--teal-pale); color: var(--teal); border: 1px solid #dcebe5; border-radius: 5px; font: 400 22px/1 var(--serif); }
.course-mark .icon { width: 24px; height: 24px; }
.course-location { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.course-location .icon { width: 14px; height: 14px; }
.course-body { display: flex; flex: 1; flex-direction: column; padding: 20px 24px 22px; }
.course-title { margin: 0 0 10px; font: 650 18px/1.35 var(--sans); letter-spacing: -.035em; }
.course-title a { color: var(--ink); text-decoration: none; }
.course-title a:hover { color: var(--teal); }
.course-description { margin: 0 0 19px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.pill { display: inline-flex; align-items: center; min-height: 25px; padding: 3px 8px; color: #456365; background: var(--soft); border: 1px solid #e6ece9; border-radius: 3px; font-size: 10px; font-weight: 500; line-height: 1.4; }
.pill-accent { color: #845018; background: #fff4e6; border-color: #f4e0c6; }
.course-card-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 11px 24px; border-top: 1px solid var(--line); }
.course-card-footer .text-link { font-size: 12px; }
.compare-label { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--muted); cursor: pointer; font-size: 11px; line-height: 1.35; }
.compare-label input { margin: 0; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; }
.guide-card { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 259px; padding: 26px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fff; text-decoration: none; transition: border-color .18s ease, box-shadow .18s ease; }
.guide-card:hover { color: var(--ink); border-color: #81aba2; box-shadow: var(--shadow); }
.guide-number { margin: 0 0 23px; color: #95b0a7; font: italic 36px/1 var(--serif); }
.guide-category { display: block; margin: 0 0 10px; color: var(--teal); font-size: 10px; font-weight: 650; letter-spacing: .11em; text-transform: uppercase; }
.guide-card h3 { max-width: 300px; margin: 0 0 12px; font: 400 25px/1.25 var(--serif); letter-spacing: -.025em; }
.guide-card h3 a { color: var(--ink); text-decoration: none; }
.guide-card p { color: var(--muted); font-size: 12px; line-height: 1.75; }
.guide-card > .text-link { align-self: flex-start; margin-top: auto; }
.guide-card > .icon { position: absolute; top: 28px; right: 26px; width: 21px; height: 21px; color: var(--teal); }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.why-card { min-width: 0; }
.why-card > .icon, .why-icon { display: grid; place-items: center; width: 42px; height: 42px; padding: 9px; margin-bottom: 19px; background: var(--teal-pale); color: var(--teal); border-radius: 5px; }
.why-card h3 { margin-bottom: 10px; font-size: 17px; }
.why-card p { max-width: 350px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; counter-reset: step; }
.step { counter-increment: step; position: relative; padding-top: 23px; border-top: 1px solid #b9ceC7; }
.step-number { display: block; margin-bottom: 16px; color: var(--teal); font: italic 26px/1 var(--serif); }
.step h3 { font-size: 18px; }
.step p { color: var(--muted); font-size: 13px; }
.faq { max-width: 830px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 70px; padding: 20px 0; color: var(--ink); cursor: pointer; list-style: none; font-size: 16px; font-weight: 600; line-height: 1.5; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: 0 0 auto; color: var(--teal); font-size: 24px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details > p, .faq details > div { max-width: 730px; padding: 0 35px 21px 0; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }

/* Archives and articles */
.page-hero { padding: 32px 0 48px; background: var(--soft); border-bottom: 1px solid var(--line); }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 32px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--teal); text-decoration: underline; }
.breadcrumbs .icon { width: 12px; height: 12px; }
.page-hero .eyebrow, .page-hero .section-label { margin-bottom: 14px; }
.page-hero h1 { max-width: 940px; font-size: clamp(38px, 4.2vw, 56px); margin-bottom: 17px; line-height: 1.1; }
.page-hero p { max-width: 720px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.page-hero .search-panel { max-width: 880px; margin-top: 27px; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 52px; }
.content-layout > *, .article { min-width: 0; }
.content-layout > aside { display: flex; flex-direction: column; gap: 22px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 17px; margin-bottom: 23px; color: var(--muted); font-size: 11px; }
.article-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta .icon { width: 14px; height: 14px; }
.article-lead, .prose > .article-lead { margin-bottom: 30px; color: var(--ink); font-size: 20px; line-height: 1.65; }
.prose { color: #3e5b60; font-size: 16px; line-height: 1.85; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 1.65em 0 .6em; font-size: 33px; line-height: 1.25; }
.prose h3 { margin: 1.65em 0 .7em; font-size: 21px; line-height: 1.35; }
.prose h4 { margin: 1.5em 0 .65em; font-size: 17px; }
.prose p { margin: 0 0 1.4em; }
.prose li { margin: .45em 0; padding-left: .2em; }
.prose ul, .prose ol { margin: 0 0 1.5em; }
.prose li::marker { color: var(--teal); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { overflow-wrap: anywhere; }
.prose blockquote { margin: 28px 0; padding: 20px 26px; border-left: 3px solid var(--teal); background: var(--soft); color: var(--ink); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose blockquote cite { display: block; margin-top: 12px; font-size: 12px; font-style: normal; }
.prose figure { max-width: 100%; margin: 25px 0; }
.prose img { border-radius: 5px; }
.prose figcaption, .wp-caption-text { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.prose table { width: 100%; border-collapse: collapse; margin: 25px 0; font-size: 13px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 13px 15px; vertical-align: top; text-align: left; }
.prose th { background: var(--teal-pale); color: var(--ink); font-weight: 650; }
.prose .wp-block-table { overflow-x: auto; }
.prose .wp-block-table table { margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 35px 0; }
.prose pre { overflow-x: auto; padding: 18px; background: var(--soft); font-size: 13px; border-radius: 4px; }
.prose code { font-size: .88em; }
.prose .alignright { float: right; margin: 0 0 24px 24px; }
.prose .alignleft { float: left; margin: 0 24px 24px 0; }
.prose .aligncenter { margin-inline: auto; }
.sidebar-card { padding: 25px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.sidebar-card h2, .sidebar-card h3 { margin-bottom: 15px; font: 400 26px/1.25 var(--serif); letter-spacing: -.025em; }
.sidebar-card p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.sidebar-card .button { width: 100%; margin-top: 8px; }
.sidebar-card .button + .button { margin-top: 10px; }
.sidebar-card .section-label { font-size: 10px; margin-bottom: 14px; }
.sidebar-card ul { list-style: none; padding: 0; margin: 0; }
.sidebar-card li + li { border-top: 1px solid var(--line); }
.sidebar-card li a { display: block; padding: 12px 0; color: var(--ink); font-size: 13px; text-decoration: none; }
.sidebar-card li a:hover { color: var(--teal); text-decoration: underline; }
.sidebar-card-accent, .sidebar-card.is-accent { background: var(--teal-pale); }
.info-list { margin: 0; padding: 0; list-style: none; }
.info-list > div, .info-list > li { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.info-list > div:first-child, .info-list > li:first-child { padding-top: 0; }
.info-list > div:last-child, .info-list > li:last-child { border-bottom: 0; padding-bottom: 0; }
.info-list dt, .info-list .info-label { color: var(--muted); font-size: 11px; }
.info-list dd { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.info-list dd a { font-size: inherit; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; margin: 25px 0 36px; }
.detail-card { min-width: 0; padding: 22px; border: 1px solid var(--line); background: var(--soft); border-radius: 5px; }
.detail-card .icon { color: var(--teal); margin-bottom: 14px; }
.detail-card h2, .detail-card h3 { margin: 0 0 8px; font: 650 15px/1.4 var(--sans); letter-spacing: 0; }
.detail-card p { margin: 0; color: var(--muted); font-size: 13px; }
.archive-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; margin-bottom: 24px; }
.results-count { margin: 0; color: var(--muted); font-size: 13px; }
.results-count strong { color: var(--ink); }
.archive-toolbar select { min-height: 44px; max-width: 100%; padding: 9px 12px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; }
.empty-state, .compare-empty { padding: 52px 30px; text-align: center; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); }
.empty-state h2, .compare-empty h2 { font-size: 31px; }
.empty-state p, .compare-empty p { max-width: 520px; color: var(--muted); margin-inline: auto; font-size: 14px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 36px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.pagination .page-numbers { display: inline-flex; justify-content: center; align-items: center; min-width: 44px; min-height: 44px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); text-decoration: none; font-size: 13px; }
.pagination .current { color: #fff; background: var(--teal); border-color: var(--teal); }
.pagination a:hover { border-color: var(--teal); }
.pagination .dots { border-color: transparent; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.tag-link { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); font-size: 12px; text-decoration: none; }
.tag-link:hover, .tag-link[aria-current='page'], .tag-link.is-active { color: var(--teal); background: var(--teal-pale); border-color: #a6cbbf; }
.notice, .source-note, .form-notice { padding: 17px 20px; border: 1px solid #d5e5dd; border-left: 3px solid var(--teal); border-radius: 4px; background: var(--teal-pale); color: #365e5e; font-size: 12px; line-height: 1.8; }
.notice p:last-child, .source-note p:last-child, .form-notice p:last-child { margin-bottom: 0; }
.source-note { margin: 28px 0; background: var(--soft); border-color: var(--line); border-left-color: #99b6ab; }
.notice-warning { background: #fff6e9; border-color: #eedbc1; border-left-color: #ae6a20; color: #75501f; }
.form-notice { margin-bottom: 24px; }
.form-notice.error, .form-notice.is-error { color: #803f30; border-color: #e7c4bb; background: #fff4ef; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact-form label { margin-bottom: 7px; }
.contact-form textarea { min-height: 170px; resize: vertical; }
.contact-form .button { align-self: flex-start; }
.contact-form .consent { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; font-size: 12px; font-weight: 400; }
.contact-form .consent input { margin-top: 4px; }
.contact-form small { color: var(--muted); font-size: 11px; }

/* Course comparison */
.compare-bar { position: fixed; inset: auto 0 0; z-index: 150; padding: 16px 0; background: var(--ink-deep); color: #fff; border-top: 1px solid #32565a; box-shadow: 0 -6px 25px rgb(7 32 36 / 12%); }
.compare-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.compare-bar-inner > div { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.compare-bar strong { font-size: 14px; font-weight: 600; }
.compare-bar p, .compare-bar small { color: #c7dcda; font-size: 12px; margin: 0; }
.compare-bar .button { min-height: 44px; }
.compare-bar .button-secondary { color: #fff; background: transparent; border-color: #6d9092; }
.compare-bar .button-secondary:hover { background: #1d454b; border-color: #a5c9c7; }
.compare-bar :focus-visible, .site-footer :focus-visible { outline-color: var(--orange); }
.compare-table-wrap { overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--line); border-radius: 6px; -webkit-overflow-scrolling: touch; }
.compare-table { width: 100%; min-width: 710px; table-layout: fixed; border-collapse: collapse; font-size: 13px; line-height: 1.65; }
.compare-table th, .compare-table td { padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; overflow-wrap: anywhere; }
.compare-table tr > :last-child { border-right: 0; }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table th { color: var(--ink); background: var(--soft); font-weight: 650; }
.compare-table thead th { padding-top: 26px; padding-bottom: 24px; background: var(--teal-pale); }
.compare-table th:first-child { width: 160px; }
.compare-table td { color: var(--muted); }
.compare-table h2, .compare-table h3 { font: 650 17px/1.4 var(--sans); margin: 0 0 12px; letter-spacing: -.03em; }
.compare-table .course-location { margin-bottom: 13px; }
.compare-table .button { width: 100%; margin-top: 10px; }
.remove-compare { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 44px; padding: 8px 0; background: transparent; border: 0; color: var(--muted); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.remove-compare:hover { color: #923c31; }
.remove-compare .icon { width: 13px; height: 13px; }

/* Closing area */
.site-footer { padding-top: 52px; background: var(--ink-deep); color: #c4d8d5; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 54px; padding-bottom: 40px; }
.footer-brand .brand { color: #fff; margin-bottom: 18px; }
.footer-brand .brand-icon { color: var(--ink-deep); background: #fff; border-color: #fff; box-shadow: inset 0 0 0 3px var(--ink-deep); }
.footer-brand .brand-title { color: #fff; }
.footer-brand .brand-sub { color: #b3cfca; }
.footer-brand p { max-width: 285px; margin: 0 0 15px; color: #b4cdca; font-size: 12px; line-height: 1.9; }
.footer-brand small { color: #8fb3ae; font-size: 11px; }
.footer-links h2, .footer-links h3, .footer-links h4 { margin: 0 0 13px; color: #fff; font: 600 13px/1.6 var(--sans); letter-spacing: 0; }
.footer-links ul { margin: 0; padding: 0; list-style: none; }
.footer-links a { display: inline-flex; align-items: center; min-height: 37px; color: #b4cdca; font-size: 12px; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-links p { color: #b4cdca; font-size: 12px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 25px; padding: 23px 0; border-top: 1px solid #315257; color: #9fbdb8; font-size: 10px; line-height: 1.8; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #b4cdca; }
.footer-bottom > div { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-bottom .icon { width: 12px; height: 12px; color: var(--orange); margin: 0 3px; }
.cta-banner { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 40px; border-radius: 6px; background: var(--ink); color: #fff; }
.cta-banner h2 { color: #fff; font-size: 35px; margin-bottom: 10px; }
.cta-banner p { max-width: 630px; color: #c5ded8; margin: 0; font-size: 14px; }
.cta-banner > .button { flex-shrink: 0; }
.section-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.muted { color: var(--muted); }
.text-center { text-align: center; }
.text-center .section-label { justify-content: center; }
.text-center p { margin-inline: auto; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.narrow { max-width: 820px; }

/* Tablet: retain clear reading order and generous controls. */
@media (max-width: 1100px) {
  .desktop-nav, .desktop-nav ul { gap: 18px; }
  .desktop-nav a { font-size: 12px; }
  .hero-grid { gap: 30px; }
  .hero h1 { font-size: 55px; }
  .hero-image { height: 460px; }
  .hero-copy .search-panel { margin-right: -40px; }
  .trust-item { gap: 9px; }
  .trust-item + .trust-item { padding-left: 15px; }
  .footer-grid { gap: 30px; }
  .content-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 32px; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 93px; }
  .container { width: calc(100% - 44px); }
  .header-inner { min-height: 77px; gap: 18px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero { padding: 41px 0 32px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 25px; align-items: start; }
  .hero h1 { font-size: 46px; }
  .hero-image { height: 405px; border-top-right-radius: 70px; }
  .hero-copy > p { font-size: 14px; }
  .hero-copy .search-panel { margin-right: -45%; }
  .hero-caption { bottom: 18px; left: 18px; right: 18px; font-size: 10px; }
  .eyebrow { font-size: 10px; letter-spacing: .1em; }
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 28px; padding: 25px 0; }
  .trust-item + .trust-item { border: 0; padding-left: 0; }
  .trust-item:nth-child(even) { padding-left: 25px; border-left: 1px solid var(--line); }
  .section { padding: 55px 0; }
  .section-heading { margin-bottom: 25px; gap: 20px; }
  .section-title { font-size: 35px; }
  .district-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .district-card { min-height: 175px; }
  .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px; }
  .guide-grid { gap: 16px; }
  .guide-card { padding: 22px; }
  .guide-card h3 { font-size: 22px; }
  .guide-number { font-size: 31px; }
  .why-grid, .steps { gap: 24px; }
  .why-card h3 { font-size: 16px; }
  .content-layout { grid-template-columns: minmax(0, 1fr); gap: 35px; }
  .content-layout > aside { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .content-layout > aside > :only-child { max-width: 520px; width: 100%; }
  .page-hero { padding: 25px 0 38px; }
  .breadcrumbs { margin-bottom: 24px; }
  .page-hero h1 { font-size: 45px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 480px; }
  .cta-banner { padding: 30px; }
  .cta-banner h2 { font-size: 30px; }
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

/* Mobile: one primary column, scrollable comparison only. */
@media (max-width: 600px) {
  html { scroll-padding-top: 88px; }
  .container { width: calc(100% - 36px); }
  body { font-size: 15px; }
  body.admin-bar .site-header { top: 0; }
  body:has(.compare-bar:not([hidden])) { padding-bottom: 156px; }
  .header-inner { min-height: 73px; gap: 12px; }
  .brand { gap: 9px; }
  .brand-icon { width: 36px; height: 39px; font-size: 20px; }
  .brand-title { font-size: 20px; }
  .brand-sub { font-size: 8px; letter-spacing: .105em; }
  .menu-toggle { padding: 8px 10px; font-size: 12px; }
  .mobile-nav { padding-bottom: 16px; }
  .hero { padding: 33px 0 25px; }
  .hero-grid { display: flex; flex-direction: column; gap: 25px; }
  .hero-copy { width: 100%; padding: 0; }
  .eyebrow, .section-label { font-size: 10px; margin-bottom: 17px; letter-spacing: .11em; }
  .hero h1 { max-width: 450px; font-size: clamp(39px, 10.5vw, 54px); line-height: 1.08; margin-bottom: 20px; }
  .hero-copy > p { max-width: 440px; margin-bottom: 19px; font-size: 14px; line-height: 1.75; }
  .hero-copy .search-panel { margin-right: 0; }
  .search-panel { width: 100%; padding: 17px; margin-top: 23px; }
  .filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .filter-form > .button, .filter-form button[type='submit'] { width: 100%; grid-column: 1 / -1; }
  .filter-form .field-wide { grid-column: 1 / -1; }
  .field label { font-size: 11px; }
  .field input, .field select { min-height: 48px; font-size: 16px; padding-left: 10px; }
  .hero-note { font-size: 10px; margin-top: 12px; }
  .hero-image { width: 100%; height: auto; aspect-ratio: 1.43; border-radius: 5px 60px 5px 5px; }
  .hero-image > img, .hero-image > picture, .hero-image > picture > img { position: absolute; inset: 0; object-position: center; }
  .hero-caption { bottom: 16px; left: 17px; font-size: 10px; }
  .trust-strip { gap: 20px 13px; padding: 23px 0; }
  .trust-item { align-items: flex-start; gap: 8px; }
  .trust-item:nth-child(even) { padding-left: 12px; }
  .trust-item > .icon { width: 19px; height: 19px; margin-top: 2px; }
  .trust-item strong { font-size: 11px; }
  .trust-item span, .trust-item small { font-size: 10px; }
  .section { padding: 42px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; margin-bottom: 22px; }
  .section-heading .section-label { margin-bottom: 10px; }
  .section-title { font-size: 33px; line-height: 1.15; }
  .section-heading p { font-size: 13px; }
  .section-heading > .text-link { min-height: 36px; }
  .district-grid { gap: 12px; }
  .district-card { min-height: 174px; padding: 20px 17px; }
  .district-number { margin-bottom: 19px; font-size: 17px; }
  .district-card h3 { font-size: 23px; overflow-wrap: anywhere; }
  .district-card p, .district-meta { font-size: 10px; }
  .district-meta { gap: 5px; }
  .district-card > .icon { right: 14px; bottom: 20px; width: 16px; }
  .course-grid, .guide-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .course-card-top { padding: 22px 22px 0; }
  .course-body { padding: 18px 22px 22px; }
  .course-title { font-size: 19px; }
  .course-description { font-size: 13px; }
  .course-location { font-size: 12px; }
  .pill { font-size: 11px; padding: 4px 8px; }
  .course-card-footer { padding: 10px 22px; }
  .course-card-footer .text-link, .compare-label { font-size: 12px; }
  .guide-card { min-height: 245px; padding: 24px; }
  .guide-card h3 { max-width: 340px; font-size: 28px; }
  .guide-card p { font-size: 13px; }
  .guide-number { margin-bottom: 20px; font-size: 33px; }
  .why-grid, .steps { grid-template-columns: minmax(0, 1fr); gap: 27px; }
  .why-card { display: grid; grid-template-columns: 43px minmax(0, 1fr); column-gap: 17px; }
  .why-card > .icon, .why-card > .why-icon { grid-row: 1 / span 2; margin-bottom: 0; }
  .why-card h3 { margin: 0 0 6px; font-size: 17px; }
  .why-card p { max-width: none; grid-column: 2; font-size: 13px; }
  .why-card > div:not(.why-icon) { grid-column: 2; }
  .step { padding-top: 20px; }
  .step p { margin-bottom: 0; }
  .faq summary { min-height: 67px; gap: 18px; font-size: 14px; padding: 18px 0; }
  .faq details > p, .faq details > div { padding-right: 12px; font-size: 13px; }
  .page-hero { padding: 22px 0 31px; }
  .breadcrumbs { gap: 6px; margin-bottom: 23px; font-size: 10px; }
  .page-hero h1 { font-size: 38px; }
  .page-hero p { font-size: 14px; }
  .page-hero .search-panel { margin-top: 22px; }
  .content-layout { gap: 28px; }
  .content-layout > aside { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .sidebar-card { padding: 23px; }
  .sidebar-card h2, .sidebar-card h3 { font-size: 26px; }
  .article-meta { gap: 7px 12px; font-size: 10px; margin-bottom: 20px; }
  .article-lead, .prose > .article-lead { font-size: 18px; }
  .prose { font-size: 15px; line-height: 1.85; }
  .prose h2 { font-size: 29px; }
  .prose h3 { font-size: 20px; }
  .prose blockquote { margin: 23px 0; padding: 18px 20px; }
  .prose table { display: block; overflow-x: auto; max-width: 100%; font-size: 12px; }
  .prose th, .prose td { padding: 11px 12px; min-width: 125px; }
  .prose .alignright, .prose .alignleft { float: none; margin: 20px 0; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 22px 0 29px; }
  .detail-card { padding: 20px; }
  .archive-toolbar { gap: 12px; margin-bottom: 20px; }
  .archive-toolbar select { width: 100%; }
  .results-count { font-size: 12px; }
  .notice, .source-note, .form-notice { padding: 15px 17px; font-size: 11px; }
  .form-row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .contact-form input:not([type='checkbox']):not([type='radio']):not([type='submit']), .contact-form select, .contact-form textarea { font-size: 16px; }
  .contact-form .button { width: 100%; }
  .empty-state, .compare-empty { padding: 36px 20px; }
  .empty-state h2, .compare-empty h2 { font-size: 28px; }
  .tag-list { gap: 7px; }
  .tag-link { font-size: 11px; padding-inline: 11px; }
  .compare-bar { padding: 13px 0; }
  .compare-bar-inner { flex-wrap: wrap; gap: 10px; }
  .compare-bar-inner > div { gap: 7px; }
  .compare-bar-inner > div:last-child { width: 100%; flex-wrap: nowrap; }
  .compare-bar-inner > div:last-child .button { flex: 1; padding-inline: 10px; font-size: 12px; }
  .compare-bar strong { font-size: 13px; }
  .compare-bar p, .compare-bar small { font-size: 10px; }
  .compare-bar-inner > .button { flex: 1; min-width: 120px; font-size: 12px; }
  .compare-table { min-width: 660px; font-size: 12px; }
  .compare-table th, .compare-table td { padding: 15px; }
  .compare-table th:first-child { width: 135px; }
  .compare-table h2, .compare-table h3 { font-size: 15px; }
  .site-footer { padding-top: 38px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; padding-bottom: 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: 380px; font-size: 12px; }
  .footer-links a { min-height: 44px; font-size: 12px; }
  .footer-links h2, .footer-links h3, .footer-links h4 { margin-bottom: 8px; }
  .footer-bottom { flex-direction: column; padding: 20px 0; gap: 8px; font-size: 10px; }
  .footer-bottom > div { gap: 13px; }
  .cta-banner { align-items: flex-start; flex-direction: column; gap: 22px; padding: 27px 24px; }
  .cta-banner h2 { font-size: 30px; }
  .cta-banner p { font-size: 13px; }
  .cta-banner > .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .district-card:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .compare-bar, .search-panel, .menu-toggle, .sidebar-card, .contact-form, .skip-link { display: none !important; }
  body { color: #000; background: #fff; font-size: 11pt; padding: 0 !important; }
  .container { width: 100%; max-width: none; }
  .section, .page-hero { padding: 20px 0; background: #fff; }
  .content-layout { display: block; }
  .prose { font-size: 11pt; }
  a { color: inherit; }
  h1, h2, h3 { break-after: avoid; }
  .course-card, .detail-card, .guide-card { break-inside: avoid; box-shadow: none; }
}
