/* ============================================================
   magyaroktatás — Erdélyi Oktatási Adatbázis
   Common Stylesheet (Bootstrap 3 companion)
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Questrial&family=Inter:ital,wght@0,100..900;1,100..900&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --blue:        #2563EB;
  --blue-dark:   #1D4ED8;
  --blue-light:  #EFF6FF;
  --green:       #16A34A;
  --green-light: #DCFCE7;
  --red:         #DC2626;
  --red-light:   #FEE2E2;
  --yellow:      #D97706;
  --yellow-light:#FEF3C7;
  --teal:        #0D9488;
  --teal-light:  #CCFBF1;
  --navy:        #0F172A;
  --navy-mid:    #1E293B;
  --slate:       #64748B;
  --slate-light: #F8FAFC;
  --border:      #E2E8F0;
  --text:        #0F172A;
  --text-muted:  #64748B;
  --radius:      10px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:   0 8px 32px rgba(0,0,0,.12);
}

/* ── Reset / Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--text);
}

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

/* ── Navbar ───────────────────────────────────────────────── */
.site-navbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.site-navbar .navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 9px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.site-navbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-icon {
  width: 32px;
  height: 32px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-icon::after {
  content: '';
  display: block;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 3px;
}

.brand-text strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.brand-text span {
  font-size: 10px;
  color: var(--slate);
  font-weight: 400;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav li a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: 6px;
  transition: background .15s;
}

.site-nav li a:hover {
  background: var(--slate-light);
  text-decoration: none;
}

.site-nav li a .caret {
  font-size: 10px;
  opacity: .6;
}

.btn-login {
  background: var(--blue);
  color: #fff !important;
  border-radius: 8px !important;
  padding: 7px 18px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  transition: background .15s !important;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-login:hover {
  background: var(--blue-dark) !important;
  text-decoration: none !important;
}

.btn-login svg { width: 15px; height: 15px; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
  border-radius: 2px;
}

.line {
    fill: none;
    stroke: #737373;
    stroke-width: 6;
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
        stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.line1 {
    stroke-dasharray: 60 207;
    stroke-width: 6;
}
.line2 {
    stroke-dasharray: 60 60;
    stroke-width: 6;
}
.line3 {
    stroke-dasharray: 60 207;
    stroke-width: 6;
}
.open .line1 {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
    stroke-width: 6;
}
.open .line2 {
    stroke-dasharray: 1 60;
    stroke-dashoffset: -30;
    stroke-width: 6;
}
.open .line3 {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
    stroke-width: 6;
}


/* ── Page wrapper ─────────────────────────────────────────── */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary-blue {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-primary-blue:hover { background: var(--blue-dark); color: #fff; text-decoration: none; }

.btn-outline-blue {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  border-radius: 8px;
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-outline-blue:hover { background: var(--blue); color: #fff; text-decoration: none; }

/* ── Status Badges ────────────────────────────────────────── */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: block;
}

.badge-stabil    { background: var(--green-light); color: var(--green); }
.badge-stabil::before { background: var(--green); }
.badge-csokkeno  { background: var(--red-light);   color: var(--red); }
.badge-csokkeno::before { background: var(--red); }
.badge-stagnaio  { background: var(--yellow-light); color: var(--yellow); }
.badge-stagnaio::before { background: var(--yellow); }
.badge-novekvo   { background: var(--teal-light);  color: var(--teal); }
.badge-novekvo::before { background: var(--teal); }

/* ── School type tags ─────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
}

.tag-altalanos { background: #EDE9FE; color: #5B21B6; }
.tag-liceum    { background: #E0F2FE; color: #0369A1; }
.tag-ovoda     { background: #FCE7F3; color: #9D174D; }
.tag-elemi     { background: #FEF9C3; color: #713F12; }

/* ── Search / Filter Card ─────────────────────────────────── */
.search-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px auto;
  box-shadow: var(--shadow-sm);
}

.search-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.search-input-wrap {
  flex: 1;
  position: relative;
}

.search-input-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--slate);
  width: 17px;
  height: 17px;
}

.search-input {
  width: 100%;
  padding: 10px 14px 10px 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.search-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.search-input::placeholder { color: #94A3B8; }

.filter-row {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 160px;
}

.filter-group label {
  font-size: 12px;
  font-weight: 600;
  color: var(--slate);
  letter-spacing: .02em;
  text-transform: uppercase;
}

.filter-select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 36px 9px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 12px center;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color .15s;
}

.filter-select:focus { border-color: var(--blue); }

.bootstrap-select>.dropdown-toggle{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 14px 9px 14px;
  font-size: 14px;
}
.dropdown.bootstrap-select{
  width: 100% !important;
}
.dropdown-toggle::after{
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat center;
  content: '';
  width: 12px;
  height: 12px;
  border: none;
}

.advanced-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 500;
  margin-top: 14px;
}

.advanced-link:hover { text-decoration: underline; }

.advanced-link svg { width: 15px; height: 15px; }

/* ── Section headings ─────────────────────────────────────── */
.section-title {
  font-size: 26px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 6px;
}

.section-sub {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 32px;
}

/* ── Map Section ──────────────────────────────────────────── */
.map-section {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  margin: 0 auto 40px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.map-placeholder {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: block;
}

/* ── Analytics Cards ──────────────────────────────────────── */
.analytics-section { margin-bottom: 48px; }

.chart-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: box-shadow .2s;
}

.chart-card:hover { box-shadow: var(--shadow-md); }

.chart-card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.chart-card-title svg { width: 18px; height: 18px; color: var(--blue); }

.chart-area {
  height: 140px;
  background: var(--slate-light);
  border-radius: 6px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  gap: 10px;
  margin-bottom: 10px;
}

/* Fake bar chart */
.bar { background: var(--blue); border-radius: 3px 3px 0 0; width: 28px; }

/* Fake line chart */
.chart-line-area {
  height: 140px;
  background: var(--slate-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  margin-bottom: 10px;
  position: relative;
}

/* Fake pie chart */
.pie-chart {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: conic-gradient(
    var(--green)  0deg 200deg,
    var(--yellow) 200deg 270deg,
    #94A3B8      270deg 360deg
  );
  margin: 10px auto;
}

.chart-caption {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.pie-legend { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.pie-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.pie-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }

.cta-wrap { text-align: center; margin: 32px 0 8px; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: #94A3B8;
  padding: 52px 0 0;
  margin-top: 64px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  padding-bottom: 40px;
}

.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text span { color: #64748B; }
.footer-brand .brand-icon { background: var(--blue); }

.footer-brand a{ display: flex;
  align-items: center;
  gap: 10px;}


.footer-links { display: flex; gap: 60px; flex: 1; flex-wrap: wrap; }

.footer-col h6 {
  color: #E2E8F0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #e2eeff; font-size: 14px; transition: color .15s; }
.footer-col ul li a:hover { color: #fff; text-decoration: none; }

.footer-login {
  margin-left: auto;
  display: flex;
  align-items: flex-start;
}

.footer-bottom {
  border-top: 1px solid #1E293B;
  padding: 18px 24px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p { font-size: 13px; margin: 0; color: #e2eeff; }

.social-links { display: flex; gap: 14px; }
.social-links a {
  color: #e2eeff;
  font-size: 16px;
  transition: color .15s;
  text-decoration: none;
}
.social-links a:hover { color: #fff; }

/* ── School Cards (List Page) ─────────────────────────────── */
.results-count {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}

.school-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.school-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.school-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.school-name {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
  color: var(--text);
}

.school-ro-name {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
}

.school-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.meta-item svg { width: 14px; height: 14px; flex-shrink: 0; }
.meta-item strong { color: var(--text); font-weight: 600; }

.school-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.profile-row {
  font-size: 12px;
  color: var(--text-muted);
}

.profile-row strong { color: var(--text); }

.school-card-footer { margin-top: auto; }

.btn-megtekintes {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
}

.btn-megtekintes:hover { background: var(--blue-dark); color: #fff; text-decoration: none; }
.btn-megtekintes svg { width: 13px; height: 13px; }

/* ── School Detail Page ───────────────────────────────────── */
.school-hero {
  height: 240px;
  background: linear-gradient(135deg, #1E3A5F 0%, #2563EB 50%, #0EA5E9 100%);
  position: relative;
  overflow: hidden;
}

.school-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .7;
}

.school-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.2), rgba(0,0,0,.5));
}

.school-detail-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: -60px auto 28px;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-lg);
}

.school-detail-name {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 4px;
}

.school-detail-ro {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 20px;
}

.school-kpi-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding: 20px 0;
  margin-bottom: 24px;
}

.kpi-item {}
.kpi-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
}

.kpi-label svg { width: 14px; height: 14px; }
.kpi-value { font-size: 15px; font-weight: 700; }
.kpi-sub { font-size: 12px; color: var(--text-muted); }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px 28px;
  background: #F8FAFC;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 20px;
}

.detail-field label {
  display: block;
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 3px;
}

.detail-field span {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.detail-field a { color: var(--blue); font-size: 13.5px; font-weight: 600; }

/* Tabs */
.detail-tabs {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 32px;
}

.tab-nav {
  display: flex;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.tab-nav a {
  padding: 14px 22px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
  text-decoration: none;
}

.tab-nav a:hover { color: var(--blue); text-decoration: none; }
.tab-nav a.active { color: var(--blue); border-bottom-color: var(--blue); }

.tab-content-panel { padding: 28px 28px; }

.tab-lang-section{
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.tab-lang-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.tab-section-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.tab-section-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Data Tables */
.data-table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
}

.data-table th {
  background: #F8FAFC;
  font-weight: 700;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid var(--border);
  color: #000;
  white-space: nowrap;
}

.data-table td {
  padding: 9px 12px;
  border: 1px solid var(--border);
  color: var(--text);
}

.data-table tr:nth-child(even) td { background: #FAFAFA; }

.data-table tfoot td {
  font-weight: 700;
  background: #F1F5F9;
  color: var(--blue);
}

/* ── Level tag pills (Tab II formations) ──────────────────── */
.level-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.level-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  border: 1.5px solid transparent;
}

.pill-blue   { background: #EFF6FF; color: #1D4ED8; border-color: #BFDBFE; }
.pill-teal   { background: #F0FDFA; color: #0D9488; border-color: #99F6E4; }
.pill-purple { background: #F5F3FF; color: #6D28D9; border-color: #DDD6FE; }
.pill-gray   { background: #F8FAFC; color: #475569; border-color: #CBD5E1; }
.pill-green  { background: #F0FDF4; color: #15803D; border-color: #BBF7D0; }

/* ── Formation section (Tab II) ───────────────────────────── */
.formation-section {
  margin-top: 32px;
  padding: 30px;
  background-color: #FAFAFA;
  border-radius: 16px;
}

.formation-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  padding-bottom: 6px;
  color: #1E40AF;
}

/* ── Formation table ──────────────────────────────────────── */
.formation-table {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}


.formation-table th {
  padding: 9px 12px;
  font-weight: 700;
  color: #000;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  text-align: left;
}

.formation-table th:last-child { border-right: none; }

.formation-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #F1F5F9;
  color: #000;
}

.formation-table td:last-child { border-right: none; }
.formation-table tbody tr:last-child td { border-bottom: none; }
.formation-table tbody tr:hover td { background: var(--slate-light); }

.formation-table tfoot td {
  font-weight: 700;
  background: #F1F5F9;
  color: var(--blue);
  border-top: 1px solid var(--border);
  border-bottom: none;
}

.num { text-align: right; font-family: 'Questrial', sans-serif; }
.nobreak { white-space: nowrap; }

/* ── Note / warning box ───────────────────────────────────── */
.note-box {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 8px;
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.note-box svg {
  width: 18px;
  height: 18px;
  color: var(--yellow);
  flex-shrink: 0;
  margin-top: 1px;
}

.note-box-title {
  font-size: 13px;
  font-weight: 700;
  color: #92400E;
  margin-bottom: 4px;
}

.note-box-text {
  font-size: 12.5px;
  color: #78350F;
  line-height: 1.6;
  margin: 0;
}

/* ── Tab II section heading ───────────────────────────────── */
.section-intro-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 24px;
  color: var(--text);
}

/* ── Map SVG (Romania outline fake) ──────────────────────── */
.romania-map-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8px 0;
}


.school-hero {
  height: 260px;
  background: linear-gradient(135deg, #1b2e4b 0%, #2d5fa0 60%, #4a8fd4 100%);
  position: relative;
  overflow: hidden;
}
.school-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.18), rgba(0,0,0,.48));
}
/* Decorative building silhouette for hero */
.hero-silhouette {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 140' preserveAspectRatio='none'%3E%3Crect x='0' y='60' width='1200' height='80' fill='rgba(0,0,0,0.2)'/%3E%3Crect x='80' y='40' width='200' height='100' fill='rgba(0,0,0,0.25)'/%3E%3Crect x='100' y='20' width='20' height='30' fill='rgba(0,0,0,0.3)'/%3E%3Crect x='140' y='25' width='20' height='25' fill='rgba(0,0,0,0.3)'/%3E%3Crect x='180' y='20' width='20' height='30' fill='rgba(0,0,0,0.3)'/%3E%3Crect x='350' y='50' width='160' height='90' fill='rgba(0,0,0,0.2)'/%3E%3Crect x='600' y='35' width='220' height='105' fill='rgba(0,0,0,0.25)'/%3E%3Crect x='620' y='15' width='22' height='30' fill='rgba(0,0,0,0.3)'/%3E%3Crect x='660' y='20' width='22' height='25' fill='rgba(0,0,0,0.3)'/%3E%3Crect x='700' y='15' width='22' height='30' fill='rgba(0,0,0,0.3)'/%3E%3Crect x='900' y='45' width='180' height='95' fill='rgba(0,0,0,0.2)'/%3E%3C/svg%3E") no-repeat bottom;
  background-size: cover;
}


/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 991px) {
  .detail-grid { grid-template-columns: repeat(2, 1fr); }
  .site-navbar .site-nav { display: none; }
  .site-navbar .site-nav.open { 
    display: flex; 
    flex-direction: column; 
    border-top: 0;
    margin-left: -24px;
    margin-right: -24px;
    width: calc(100% + 48px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }
  .nav-toggle { display: block; }

  .navbar-inner { flex-wrap: wrap; height: auto; padding: 12px 16px; gap: 10px; }

  .site-nav.open {
    width: 100%;
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 8px 0;
  }
  .nav-login{
    margin: 10px 0;
  }
}

@media (max-width: 767px) {

  .search-row { flex-direction: column; }
  .filter-row { flex-direction: column; }
  .filter-group { min-width: 100%; }

  .school-kpi-row { gap: 16px; }
  .detail-grid { grid-template-columns: 1fr; }

  .school-detail-card { margin: -30px 12px 20px; padding: 20px; }

  .footer-brand{display: flex;justify-content: center;}

  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { flex-direction: column; gap: 24px; text-align: center; }
  .footer-login { margin-left: 0; justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .section-title { font-size: 22px; }

  .tab-content-panel { padding: 16px; }
  .data-table { font-size: 11.5px; }
  .data-table th, .data-table td { padding: 7px 8px; }
}

@media (max-width: 480px) {
  .school-card { padding: 16px; }
  .school-detail-name { font-size: 19px; }
}