/* ==========================================================================
   Adarsh Vidyalaya — Shared Stylesheet
   Palette pulled from the Satara Zilla Parishad logo:
   maroon (rider silhouette) / saffron (outer ring) / cream (seal field) / leaf-green
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  /* --- Core palette (from logo) --- */
  --maroon: #5C2A0F;        /* horse & rider silhouette, seal text */
  --maroon-dark: #3E1B09;
  --saffron: #D2691E;       /* outer ring */
  --saffron-light: #E8954A;
  --cream: #F6E8CC;         /* seal field */
  --cream-soft: #FBF4E6;
  --leaf-green: #2F6B3A;    /* leaves on the seal */
  --leaf-green-dark: #204B29;

  /* --- Derived UI tokens --- */
  --ink: #2A1B10;
  --ink-soft: #6B5847;
  --surface: #FFFFFF;
  --surface-alt: var(--cream-soft);
  --border: #E7D6B8;
  --shadow: 0 10px 30px rgba(60, 30, 10, 0.08);

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;

  --radius: 14px;
  --container: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--maroon-dark);
  margin: 0 0 .5em;
  line-height: 1.2;
}

p { margin: 0 0 1em; color: var(--ink-soft); }

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--saffron);
  color: #fff;
  box-shadow: 0 8px 20px rgba(210, 105, 30, .35);
   padding: 10px 24px;
   font-size: 15px;;
}
.btn-primary:hover { background: var(--saffron-light); }

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.7);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,.12); }

.btn-maroon {
  background: var(--maroon);
  color: #fff;
}
.btn-maroon:hover { background: var(--maroon-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--maroon-dark);
  border-bottom: 3px solid var(--saffron);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}
.brand img { height: 60px;
  width: 60px;
  object-fit: contain;border-radius: 50%;
    background: var(--cream);}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.brand-name span { display: block; font-size: .72rem; font-weight: 500; color: var(--saffron-light); }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  color: #EFE2CB;
  font-size: .95rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active { color: #fff; border-bottom-color: var(--saffron); }
.main-nav a.mobile-cta { display: none; }

.nav-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  margin: 0 auto;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(90deg, rgba(30, 15, 8, .82) 0%, rgba(30, 15, 8, .55) 45%, rgba(30, 15, 8, .15) 75%),
    url('../assets/banner-building.png') center top / cover no-repeat;
  min-height: 560px;
  display: flex;
  align-items: center;
  color: #fff;
}
.hero-content {
  max-width: 640px;
  padding: 80px 0;
  position: relative;
  z-index: 1;
}
.hero-content h2 {
  color: #fff;
  font-size: 44px;
  line-height: 1.18;
  max-width: 620px;
  margin-bottom: 18px;
}
.hero-content p { color: #F1E4D0; font-size: 1.08rem; max-width: 500px; }
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }

.hero-strip {
  background: var(--cream-soft);
  border-top: 1px solid var(--border);
}
.hero-strip .container {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 20px;
  padding-bottom: 20px;
  justify-content: center;
}
.hero-strip .item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .88rem;
  color: var(--maroon-dark);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: 0 2px 6px rgba(90,40,15,.05);
}
.hero-strip .item .dot {
  display: none;
}

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-alt { background: var(--surface-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--leaf-green-dark);
  font-size: .85rem;
  letter-spacing: .02em;
  margin-bottom: 10px;
  display: block;
}

/* ---------- Cards grid (programs / facilities) ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.card:hover { transform: translateY(-4px); }
.card img { height: 160px; object-fit: cover; width: 100%; }

/* Facilities: same-size photos and equal-height cards */
.facilities-grid .card { display: flex; flex-direction: column; }
.facilities-grid .card img {
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 30%;
}
.facilities-grid .card-body { flex: 1; }
.card-body { padding: 20px; }
.card-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.card-body p { font-size: .92rem; margin-bottom: 14px; }
.card-link { color: var(--saffron); font-weight: 600; font-size: .9rem; }

/* ---------- Stats ---------- */
.stats { background: var(--maroon-dark); color: #fff; }
.stats .grid-4 { text-align: center; }
.stat h3 { color: var(--saffron-light); font-size: 2.2rem; margin-bottom: 4px; }
.stat p { color: #E7D6B8; margin: 0; font-size: .92rem; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-grid img {     border-radius: 10px;
    height: 100%;
    object-fit: contain;
    width: 100%; }
.gallery-cta { text-align: center; margin-top: 28px; }

/* ---------- Admissions timeline ---------- */
.timeline-banner {
  background: var(--leaf-green-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.timeline-steps { display: flex; gap: 32px; flex-wrap: wrap; }
.timeline-steps .step { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .92rem; }
.timeline-steps .step .n {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--saffron); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
}

/* ---------- Contact / form ---------- */
.contact-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 14px; margin-bottom: 18px; }
.info-list .ic {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--cream-soft); color: var(--maroon);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-weight: 700;
}
.map-embed {
  border-radius: var(--radius); overflow: hidden; margin-top: 20px;
  border: 1px solid var(--border); height: 200px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: .85rem; font-weight: 600;
  color: var(--maroon-dark); margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--border); border-radius: 8px;
  font-family: var(--font-body); font-size: .95rem;
  background: var(--cream-soft);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--saffron); outline-offset: 1px;
  background: #fff;
}
.form-msg { font-size: .9rem; margin-top: 12px; display: none; padding: 10px 14px; border-radius: 8px; }
.form-msg.success { display: block; background: #E7F3E8; color: var(--leaf-green-dark); }
.form-msg.error { display: block; background: #FBE7E1; color: #A3401E; }

/* ---------- Footer ---------- */
.site-footer { background: var(--maroon-dark); color: #E7D6B8; padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 30px; }
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-grid a { color: #E7D6B8; display: block; margin-bottom: 8px; font-size: .9rem; }
.footer-grid a:hover { color: var(--saffron-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 18px;
  font-size: .82rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.social-row { display: flex; gap: 12px; }
.social-row a {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
}

/* ---------- Login / Dashboard ---------- */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-soft);
  padding: 24px;
}
.auth-card {
  width: 100%; max-width: 420px;
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 40px;
}
.auth-logo {  width: 55px;
    height: 55px;
    object-fit: contain; }
.auth-logo img { width: 46px; height: 46px; border-radius: 50%; }
.auth-logo strong { font-family: var(--font-display); color: var(--maroon-dark); }

.dash-shell { display: flex; min-height: 100vh; background: var(--surface-alt); }
.dash-sidebar {
  width: 240px; background: var(--maroon-dark); color: #fff;
  padding: 26px 20px; flex-shrink: 0;
}
.dash-sidebar .brand { width: 55px;
    height: 55px;
    object-fit: contain; }
.dash-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px; border-radius: 8px;
  color: #E7D6B8; font-size: .92rem; margin-bottom: 4px; font-weight: 500;
}
.dash-nav a.active, .dash-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.dash-main { flex: 1; padding: 34px 40px; }
.dash-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.dash-topbar h1 { font-size: 1.4rem; margin: 0; }
.dash-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.dash-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.dash-card .num { font-family: var(--font-display); font-size: 1.9rem; color: var(--maroon-dark); }
.dash-card .lbl { color: var(--ink-soft); font-size: .88rem; }

.table-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 18px; font-size: .9rem; border-bottom: 1px solid var(--border); }
th { background: var(--cream-soft); color: var(--maroon-dark); font-family: var(--font-display); font-size: .82rem; }
tr:last-child td { border-bottom: none; }
.badge { padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.badge.new { background: #FBEBD9; color: var(--saffron); }
.badge.reviewed { background: #E7F3E8; color: var(--leaf-green-dark); }
.empty-row { text-align: center; color: var(--ink-soft); padding: 30px; }

/* ---------- Interior page hero (About / Academics / Facilities / Gallery / Admissions / Contact) ---------- */
.page-hero {
  min-height: 240px;
  padding: 0;
}
.page-hero .hero-content { padding: 56px 0; max-width: 760px; }
.page-hero .hero-content h1 {
  color: #fff;
  font-size: 34px;
  margin-bottom: 10px;
}
.page-hero .hero-content p { margin: 0; }

/* ---------- Two-column content grid (About story / Admissions eligibility, etc.) ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* ---------- Simple content card (mission/vision/values, eligibility notes) ---------- */
.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.content-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.content-card p:last-child { margin-bottom: 0; }

/* ---------- Numbered document / requirement list (Admissions) ---------- */
.doc-list { list-style: none; margin: 0; padding: 0; }
.doc-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.doc-list li:last-child { border-bottom: none; }
.doc-list .num {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: var(--cream-soft); color: var(--maroon-dark);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: .85rem;
}
.doc-list strong { color: var(--maroon-dark); display: block; margin-bottom: 2px; }
.doc-list span.note { font-size: .88rem; color: var(--ink-soft); }

/* ---------- Teachers / Staff grid ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .2s ease;
}
.team-card:hover { transform: translateY(-4px); }
.team-card img {
  width: 96px; height: 96px;
  border-radius: 50%;
 /*object-fit: contain;*/
  margin: 0 auto 16px;
  border: 3px solid var(--cream-soft);
}
.team-card h3 { font-size: 1rem; margin-bottom: 4px; }
.team-card .role { color: var(--saffron); font-weight: 600; font-size: .85rem; margin-bottom: 6px; }
.team-card .qual { color: var(--ink-soft); font-size: .82rem; margin: 0; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-24 { margin-top: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px;
    }
}
@media (max-width: 960px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dash-cards { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--maroon-dark);
    border-top: 1px solid rgba(255,255,255,.12);
    border-bottom: 3px solid var(--saffron);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .25s ease, opacity .2s ease;
  }
  .main-nav.is-open { max-height: 420px; opacity: 1; }
  .main-nav a {
    width: 100%;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .main-nav a:hover, .main-nav a.active { border-bottom-color: var(--saffron); }
  .main-nav a.mobile-cta {
    display: block;
    background: var(--saffron);
    color: #fff;
    font-weight: 600;
    text-align: center;
    border-bottom: none;
  }
  .form-row { grid-template-columns: 1fr; }
  .dash-shell { flex-direction: column; }
  .dash-sidebar { width: 100%; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ===== School Activities grid ===== */
.act-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.act-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 18px;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.act-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(90, 40, 15, .12);
}
.act-icon {
  width: 62px; height: 62px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--cream-soft);
  color: var(--saffron);
}
.dropdown { position: relative; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 190px;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
  border-radius: 8px;
  overflow: hidden;
  z-index: 100;
}
.nav-links li, .dropdown li, .dropdown-menu li { list-style: none; margin: 0; padding: 0; }
.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 18px;
  color: #4d0a19;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  background: #f3dfa0;
}
.dropdown-menu {
  top: 100%;      /* flush against the parent link, no gap */
  margin-top: 0;
  padding-top: 8px; /* extra hoverable buffer, doesn't create a visual gap */
}
.caret {
  font-size: 10px;
  margin-left: 4px;
  opacity: .8;
}
.act-icon svg { width: 30px; height: 30px; }
.act-card:hover .act-icon { background: var(--saffron); color: #fff; }
.act-card h3 { font-size: 1rem; margin: 0 0 6px; line-height: 1.35; color: var(--ink); }
.act-card p { font-size: .9rem; color: var(--ink-soft); margin: 0; line-height: 1.5; }

@media (max-width: 992px) { .act-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .act-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px)  { .act-grid { grid-template-columns: 1fr; } }

.act-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .act-grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .act-grid.cols-3 { grid-template-columns: 1fr; } }
