/* =====================================================================
 * City Landing Page Styles — /schools-in-{city}.php
 * Loaded only on city pages (not on homepage)
 * ===================================================================== */

/* ---------- City Hero ---------- */
.city-hero {
  background:
    radial-gradient(circle at 20% 30%, rgba(245, 158, 11, .15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, .22), transparent 50%),
    linear-gradient(135deg, #0f2557 0%, #1e3c72 45%, #2a5298 100%);
  color: #fff;
  padding: 3rem 1rem 3.5rem;
  border-radius: 0 0 1.5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.city-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  color: rgba(255, 255, 255, .7);
  margin-bottom: 1rem;
}
.city-breadcrumb a {
  color: rgba(255, 255, 255, .85);
  text-decoration: none;
  transition: color .15s ease;
}
.city-breadcrumb a:hover { color: #fbbf24; }
.city-breadcrumb .current { color: #fff; font-weight: 600; }

.city-title {
  font-weight: 800;
  font-size: clamp(1.6rem, 5vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .2);
}
.city-name {
  background: linear-gradient(120deg, #fbbf24 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.city-subtitle {
  color: rgba(255, 255, 255, .85);
  max-width: 720px;
  font-size: clamp(.95rem, 2vw, 1.1rem);
  margin-bottom: 2rem;
}

/* ---------- City Stats ---------- */
.city-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  max-width: 720px;
}
@media (min-width: 576px) {
  .city-stats { grid-template-columns: repeat(4, 1fr); }
}

.city-stat {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 1rem;
  padding: .85rem .5rem;
  text-align: center;
  backdrop-filter: blur(6px);
  transition: transform .25s ease, background .25s ease;
}
.city-stat:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, .16);
}
.city-stat-num {
  font-weight: 800;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  color: #fbbf24;
  line-height: 1.1;
}
.city-stat-label {
  font-size: .75rem;
  color: rgba(255, 255, 255, .85);
  margin-top: .25rem;
  letter-spacing: .03em;
}

/* ---------- Intro Section ---------- */
.city-intro-section { background: #ffffff; }
.city-intro-box {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid var(--brand-border, #e6e9ef);
  border-left: 4px solid var(--brand-primary, #1e3c72);
  border-radius: 1rem;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .04);
}
.city-intro-heading {
  font-weight: 800;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  color: var(--brand-primary, #1e3c72);
  margin-bottom: 1rem;
}
.city-intro-text {
  color: #4b5563;
  font-size: .96rem;
  line-height: 1.8;
  margin-bottom: 0;
}

/* ---------- Boards Section ---------- */
.city-boards-section {
  background: linear-gradient(180deg, #eef2ff 0%, #f6f8fb 100%);
}

.city-board-chip {
  display: block;
  background: #ffffff;
  border: 1px solid var(--brand-border, #e6e9ef);
  border-radius: 1rem;
  padding: 1.25rem 1rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  height: 100%;
}
.city-board-chip:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .1);
  border-color: var(--brand-primary, #1e3c72);
}

.city-board-chip-count {
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--brand-primary, #1e3c72);
  line-height: 1;
  margin-bottom: .35rem;
}
.city-board-chip-name {
  font-size: .88rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: .75rem;
}
.city-board-chip-arrow {
  font-size: .78rem;
  color: var(--brand-accent, #f59e0b);
  font-weight: 600;
  transition: transform .2s ease;
}
.city-board-chip:hover .city-board-chip-arrow {
  transform: translateX(4px);
}

/* ---------- Featured Section ---------- */
.city-featured-section { background: #ffffff; }

/* ---------- Full List ---------- */
.city-list-section { background: var(--brand-bg, #f6f8fb); }

/* ---------- Related Cities ---------- */
.city-related-section { background: #ffffff; }

.city-related-chip {
  display: flex;
  align-items: center;
  gap: .85rem;
  background: #ffffff;
  border: 1px solid var(--brand-border, #e6e9ef);
  border-radius: .85rem;
  padding: .9rem 1rem;
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  height: 100%;
}
.city-related-chip:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
  border-color: var(--brand-accent, #f59e0b);
}
.city-related-chip > i {
  font-size: 1.5rem;
  color: var(--brand-primary, #1e3c72);
  flex-shrink: 0;
}
.city-related-name {
  font-weight: 700;
  color: var(--brand-primary, #1e3c72);
  font-size: .95rem;
  line-height: 1.2;
}
.city-related-count {
  font-size: .78rem;
  color: var(--brand-muted, #6b7280);
  margin-top: 2px;
}

/* ---------- FAQ reuse from main ---------- */
/* (Already styled in style.css — no duplication) */

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
  .city-hero { padding: 2rem 1rem 2.5rem; }
  .city-intro-box { padding: 1.25rem 1rem; }
  .city-board-chip { padding: 1rem .75rem; }
  .city-board-chip-count { font-size: 1.35rem; }
}

@media (max-width: 400px) {
  .city-hero { padding: 1.5rem .75rem 2rem; }
  .city-title { font-size: 1.4rem; }
  .city-stats { gap: .5rem; }
  .city-stat { padding: .65rem .35rem; }
  .city-stat-num { font-size: 1.1rem; }
  .city-stat-label { font-size: .68rem; }
}

/* =====================================================================
 * Fallback styles for school cards, badges, footer
 * (In case main style.css classes are overridden or missing)
 * ===================================================================== */

/* ---------- School Cards v2 ---------- */
.school-card-v2 {
  background: #fff;
  border: 1px solid var(--brand-border, #e6e9ef);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  position: relative;
  height: 100%;
}
.school-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, .14);
  border-color: transparent;
}
.school-card-v2::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #1e3c72, #f59e0b);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s ease;
}
.school-card-v2:hover::after { transform: scaleY(1); }

.school-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
  padding: 1.1rem 1.25rem .25rem;
}

.badge-board {
  background: #eaf2ff;
  color: #1e40af;
  font-weight: 600;
  padding: .3rem .7rem;
  border-radius: 999px;
  font-size: .75rem;
  letter-spacing: .02em;
}
.badge-verified {
  background: #e6f7ec;
  color: #166534;
  font-weight: 600;
  padding: .3rem .7rem;
  border-radius: 999px;
  font-size: .75rem;
}

.school-card-body {
  padding: .75rem 1.25rem 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.school-card-title {
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: .5rem;
  color: #1e3c72;
}
.school-card-location {
  color: #6b7280;
  font-size: .88rem;
  margin-bottom: .75rem;
}
.school-card-location i {
  color: #f59e0b;
  margin-right: .35rem;
}

.school-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: .85rem;
}
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: #f3f4f6;
  color: #374151;
  border-radius: .5rem;
  padding: .3rem .65rem;
  font-size: .78rem;
  font-weight: 500;
}
.meta-item i { color: #1e3c72; }

.school-card-facilities {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: .85rem;
}
.facility-chip {
  background: #f0f9ff;
  color: #0369a1;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  padding: .18rem .6rem;
  font-size: .72rem;
  font-weight: 500;
}
.facility-chip-more {
  background: #f3f4f6;
  color: #6b7280;
  border-color: #e5e7eb;
}

.school-card-fee {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: .75rem;
  border-top: 1px dashed #e6e9ef;
  margin-top: auto;
}
.fee-label {
  font-size: .78rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.fee-value {
  font-weight: 700;
  color: #16a34a;
  font-size: .95rem;
}
.fee-dash {
  color: #6b7280;
  margin: 0 .15rem;
}

.school-card-footer {
  padding: 0 1.25rem 1.25rem;
}
.school-card-btn {
  border-radius: .6rem;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease;
}
.school-card-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(30, 60, 114, .3);
}

/* ---------- Section headings (in case missing) ---------- */
.section { padding: 3.5rem 0; }
@media (min-width: 768px) { .section { padding: 5rem 0; } }

.section-head { margin-bottom: 3rem; }
.section-kicker {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #f59e0b;
  background: rgba(245, 158, 11, .12);
  padding: .35rem .9rem;
  border-radius: 999px;
  margin-bottom: .85rem;
}
.section-title {
  font-weight: 800;
  font-size: clamp(1.4rem, 3.4vw, 2.2rem);
  color: #1e3c72;
  margin-bottom: .75rem;
  line-height: 1.2;
}
.section-subtitle {
  color: #6b7280;
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(.92rem, 1.6vw, 1.02rem);
}

/* ---------- FAQ fallback ---------- */
.faq-section { background: #ffffff; }
.faq-accordion .accordion-item {
  border: 1px solid #e6e9ef;
  border-radius: 1rem !important;
  margin-bottom: .75rem;
  overflow: hidden;
}
.faq-accordion .accordion-button {
  font-weight: 600;
  color: #1e3c72;
  background: #fff;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .85rem;
  box-shadow: none !important;
}
.faq-accordion .accordion-button:not(.collapsed) {
  background: #eef2ff;
  color: #1e3c72;
}
.faq-accordion .accordion-body {
  color: #6b7280;
  font-size: .94rem;
  line-height: 1.7;
  padding: 1rem 1.25rem 1.25rem;
}
.faq-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px; height: 30px;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #fff;
  border-radius: 50%;
  font-size: .82rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Footer fallback ---------- */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  margin-top: 0;
}
.footer-brand {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: .85rem;
  display: flex;
  align-items: center;
}
.footer-brand i { color: #f59e0b; }
.footer-about {
  color: #94a3b8;
  font-size: .9rem;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}
.footer-social {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: #1e293b;
  color: #cbd5e1;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease, color .2s ease;
}
.footer-social a:hover {
  background: #f59e0b;
  color: #fff;
  transform: translateY(-3px);
}
.footer-heading {
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: .55rem; }
.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: .9rem;
  transition: color .15s ease, padding-left .15s ease;
}
.footer-links a:hover {
  color: #f59e0b;
  padding-left: 4px;
}
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-contact li {
  color: #94a3b8;
  font-size: .9rem;
  margin-bottom: .65rem;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  line-height: 1.55;
}
.footer-contact i {
  color: #f59e0b;
  margin-top: 3px;
  flex-shrink: 0;
}
.footer-contact a {
  color: #cbd5e1;
  text-decoration: none;
}
.footer-contact a:hover { color: #f59e0b; }
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 1.25rem 0;
  color: #94a3b8;
}
.footer-bottom a {
  color: #94a3b8;
  text-decoration: none;
}
.footer-bottom a:hover { color: #f59e0b; }