/* Greensboro Marathi Shala — main stylesheet */

/* Green palette: dark green header, heroes and footer; mint background; green buttons and links */
:root {
  --brand: #2e7d4f;        /* green: buttons, date blocks, fills, icons */
  --brand-dark: #1f5c38;   /* green text and links (AA on every light background), hovers */
  --accent: #48a06a;       /* light green: focus ring, featured markers, CTA border */
  --forest: #1b3a2d;       /* headings, header top band, hero base, table heads */
  --forest-deep: #0a1f15;  /* footer, announcements */
  --leaf-light: #7fc99a;   /* accent text on dark green (AA) */
  --bg: #f0faf4;           /* page background and nav bar (mint) */
  --surface: #ffffff;      /* cards */
  --tint: #d9efe3;         /* .section-tinted bands, tags */
  --text: #1c1c1c;
  --muted: #52665a;
  --border: #b8dcc8;
  --radius: 12px;
  --shadow: 0 2px 10px rgba(27, 58, 45, 0.08);
  --font: "Mukta", "Nirmala UI", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-dark); }
a:hover { color: var(--forest); }
h1, h2, h3 { line-height: 1.25; color: var(--forest); margin: 0 0 0.5em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.empty { color: var(--muted); font-style: italic; padding: 1rem 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff;
  padding: 0.5rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 0.6rem 1.2rem; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 2px solid transparent;
  transition: background 0.15s, color 0.15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--brand-dark); border-color: var(--brand); }
.btn-secondary:hover { background: var(--brand); color: #fff; }
.btn-disabled { background: #e3ece7; color: var(--muted); cursor: not-allowed; }
.btn-small { padding: 0.3rem 0.9rem; background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }

/* ---------- Header ---------- */
.site-header { background: var(--forest); color: #fff; }
.header-inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 1rem; padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.header-logo img { width: 72px; height: 72px; border-radius: 50%; background: #fff; }
.header-title { text-align: center; text-decoration: none; display: flex; flex-direction: column; }
.name-mr { font-size: 2rem; font-weight: 700; color: var(--leaf-light); line-height: 1.2; }
.name-en { font-size: 1.75rem; font-weight: 700; color: #fff; letter-spacing: 0.02em; line-height: 1.2; }
.header-contact {
  font-style: normal; font-size: 0.9rem; text-align: right; color: rgba(255, 255, 255, 0.75);
  display: flex; flex-direction: column;
}
.header-contact a { color: rgba(255, 255, 255, 0.9); }
.header-contact a:hover { color: #fff; }

/* ---------- Navigation ---------- */
.main-nav {
  background: var(--bg); border-bottom: 1px solid rgba(46, 125, 79, 0.15);
  box-shadow: 0 1px 4px rgba(46, 125, 79, 0.1);
}
.nav-toggle {
  display: none; background: none; border: 0; color: var(--forest); font: inherit;
  font-weight: 600; padding: 0.75rem 0; cursor: pointer;
}
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a {
  display: block; color: var(--text); text-decoration: none; padding: 0.75rem 0.8rem; font-weight: 600;
}
.nav-item > a:hover, .nav-item > a[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -3px 0 var(--brand); }
.submenu-toggle {
  background: none; border: 0; color: var(--text); cursor: pointer; padding: 0.5rem 0.4rem 0.5rem 0;
  margin-left: -0.5rem; font-size: 0.8rem;
}
.submenu {
  list-style: none; margin: 0; padding: 0.4rem 0; position: absolute; top: 100%; left: 0;
  min-width: 220px; background: var(--surface); box-shadow: var(--shadow); border-radius: 0 0 8px 8px;
  display: none; z-index: 50;
}
.submenu a { display: block; padding: 0.45rem 1rem; color: var(--text); text-decoration: none; }
.submenu a:hover { background: var(--bg); color: var(--brand); }
.has-children:hover .submenu,
.has-children:focus-within .submenu,
.has-children.is-open .submenu { display: block; }

/* ---------- Page sections ---------- */
/* Heroes (Home .home-hero and every page's .page-hero): dark green over a faded
   dhol-tasha photo, with Warli tiles and a rangoli (festive Maharashtrian
   look). Layers, top to bottom: gradient, green wash (photo at ~25%),
   photo, base color. Missing photo = plain green. */
.home-hero, .page-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    linear-gradient(135deg, rgba(13, 34, 25, 0.96), rgba(13, 34, 25, 0.78) 50%, rgba(27, 92, 56, 0.5)),
    linear-gradient(rgba(27, 58, 45, 0.75), rgba(27, 58, 45, 0.75)),
    url("../images/home/hero-culture.jpg") center / cover no-repeat,
    var(--forest);
}
.home-hero::before, .home-hero::after,
.page-hero::before, .page-hero::after { content: ""; position: absolute; pointer-events: none; }
.home-hero::before, .page-hero::before {  /* rangoli ornament, right edge */
  width: 420px; height: 420px; right: -150px; top: 50%; transform: translateY(-50%); opacity: 0.25;
  background: url("../images/motifs/rangoli.svg") center / contain no-repeat;
}
.home-hero::after, .page-hero::after {  /* Warli-art tiles over the whole hero */
  inset: 0; opacity: 0.06; background: url("../images/motifs/warli.svg") 0 0 / 120px 120px repeat;
}
.home-hero > .container, .page-hero > .container { position: relative; z-index: 1; }
.home-hero h1, .page-hero h1 { color: #fff; }
.page-hero { padding: 3rem 0 2.5rem; }
.page-hero::before { width: 300px; height: 300px; right: -60px; opacity: 0.3; }

.hero-mr { color: var(--leaf-light); font-weight: 600; font-size: 1.2rem; margin: 0 0 0.25rem; }
.hero-sub { color: rgba(255, 255, 255, 0.8); font-size: 1.15rem; max-width: 60ch; margin: 0; }

.section { padding: 3rem 0; }
.section-tinted { background: var(--tint); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.prose { max-width: 820px; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 0.4rem; }
.year-heading { margin-top: 1.5rem; padding-bottom: 0.3rem; border-bottom: 2px solid var(--border); }

/* ---------- Home ---------- */
.announcements { background: var(--forest-deep); color: #fff; }
.announcements ul { list-style: none; margin: 0; padding: 0.6rem 0; }
.announcements li { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; padding: 0.2rem 0; }
.announcements a { color: var(--accent); font-weight: 600; }

/* Background layers are shared with .page-hero, see "Page sections" */
.home-hero { padding: 4rem 0; }
.home-hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; }
.home-hero .btn-secondary { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.home-hero .btn-secondary:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
.home-hero-photo { margin: 0; }
.home-hero-photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 16 / 10.5; object-fit: cover; }
.home-hero-photo figcaption { font-size: 0.9rem; color: rgba(255, 255, 255, 0.75); margin-top: 0.4rem; text-align: center; }

.stats { background: var(--brand); color: #fff; padding: 1.75rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat-value { display: block; font-size: 2.2rem; font-weight: 700; line-height: 1.1; }
.stat-label { font-size: 0.95rem; opacity: 0.95; }

.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.photo-grid figure { margin: 0; }
.photo-grid figure:first-child { grid-column: span 2; }
.photo-grid img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-grid figure:first-child img { aspect-ratio: 16 / 8; }
.photo-grid figcaption { font-size: 0.85rem; color: var(--muted); }

.cta-band {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  background: var(--surface); border: 2px solid var(--accent); border-radius: var(--radius); padding: 1.75rem 2rem;
}
.cta-band p { margin: 0; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.card ul { padding-left: 1.2rem; }

.person-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; text-align: center; box-shadow: var(--shadow);
}
.person-card img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto 1rem; border: 4px solid var(--tint); }
.person-card h2, .person-card h3 { font-size: 1.2rem; margin-bottom: 0.1rem; }
.person-role { color: var(--brand-dark); font-weight: 600; margin-bottom: 0.5rem; }

.achievement-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.achievement-card img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.achievement-body { padding: 1rem 1.25rem; }
.achievement-body h4 { font-size: 1.1rem; line-height: 1.25; color: var(--forest); margin: 0 0 0.5em; }
.achievement-category { margin: 0 0 0.4rem; }
.achievement-jump { margin-top: 1rem; }
.achievement-group { margin-top: 1.75rem; scroll-margin-top: 1rem; }
.achievement-group-heading span[lang="mr"] { color: var(--muted); font-weight: 600; margin-left: 0.35rem; }

/* ---------- Events ---------- */
.event-list { display: grid; gap: 1rem; }
.event-card {
  display: flex; gap: 1rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem; box-shadow: var(--shadow);
}
.event-card.is-featured { border-left: 6px solid var(--accent); }
.event-date {
  flex: 0 0 64px; height: 68px; background: var(--brand); color: #fff; border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
}
.event-month { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.event-day { font-size: 1.6rem; font-weight: 700; }
.event-body h3 { margin-bottom: 0.2rem; }
.event-body p:last-child { margin-bottom: 0; }
.event-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; color: var(--muted); font-size: 0.95rem; margin-bottom: 0.4rem; }
.tags { display: flex; gap: 0.4rem; }
.tag { font-size: 0.75rem; font-weight: 600; padding: 0.1rem 0.6rem; border-radius: 999px; background: var(--tint); color: var(--brand-dark); }
.tag-holiday { background: #e6eef8; color: #1d4a7a; }
.tag-class { background: #eef2f0; color: var(--muted); }
.tag-featured { background: var(--brand-dark); color: #fff; }

.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.tabs a {
  padding: 0.45rem 1.1rem; border-radius: 999px; text-decoration: none; font-weight: 600;
  border: 2px solid var(--border); color: var(--text); background: var(--surface);
}
.tabs a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }

.cal-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.cal-header h2 { margin: 0; text-align: center; }
.cal-grid { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.cal-row { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-weekdays div { background: var(--forest); color: #fff; font-weight: 600; text-align: center; padding: 0.4rem; }
.cal-day { min-height: 105px; border-top: 1px solid var(--border); border-left: 1px solid var(--border); padding: 0.3rem; font-size: 0.85rem; }
.cal-day:first-child { border-left: 0; }
.cal-day.is-outside { background: #f5fbf7; color: #8aa396; }
.cal-day.is-today .cal-date { background: var(--brand); color: #fff; border-radius: 999px; padding: 0 0.45rem; }
.cal-date { font-weight: 600; display: inline-block; margin-bottom: 0.2rem; }
.cal-weekday { display: none; }
.cal-event {
  display: block; text-decoration: none; background: var(--tint); color: var(--brand-dark);
  border-left: 3px solid var(--brand); border-radius: 4px; padding: 0.1rem 0.3rem; margin-bottom: 0.2rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cal-event.cal-holiday { background: #e6eef8; color: #1d4a7a; border-color: #1d4a7a; }
.cal-event.cal-class { background: #eef2f0; color: var(--muted); border-color: var(--muted); }
.cal-time { font-weight: 600; }
.month-list-heading { margin-top: 2rem; }
.notice { background: var(--tint); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 0.75rem 1rem; }
.events-notice { margin: 0 0 1.5rem; }
.calendar-download { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: -0.5rem 0 1.5rem; }

.week-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.week-day { display: grid; grid-template-columns: 140px 1fr; gap: 1rem; padding: 0.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.week-day.is-today { border-color: var(--brand); border-width: 2px; }
.week-events { display: grid; gap: 0.5rem; }
.week-events .event-card { box-shadow: none; }

/* ---------- Classes ---------- */
.pill-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.pill-nav a { padding: 0.35rem 1rem; border-radius: 999px; background: var(--tint); text-decoration: none; font-weight: 600; }
.class-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.class-card {
  background: var(--surface); border: 1px solid var(--border); border-top: 5px solid var(--brand);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); scroll-margin-top: 1rem;
}
.class-card h2 span { color: var(--brand-dark); margin-left: 0.3rem; }
.class-age { color: var(--muted); font-weight: 600; margin-top: -0.4rem; }
.class-details { display: grid; gap: 0.4rem; margin: 1rem 0 0; }
.class-details div { display: grid; grid-template-columns: 100px 1fr; gap: 0.5rem; }
.class-details dt { font-weight: 600; color: var(--forest); }
.class-details dd { margin: 0; }

/* ---------- Admissions ---------- */
.registration-box { border-radius: var(--radius); padding: 1.75rem 2rem; border: 2px solid; }
.registration-box.is-open { background: #edf7ee; border-color: #2e7d32; }
.registration-box.is-open h2 { color: #1f5e23; }
.registration-box.is-closed { background: var(--tint); border-color: var(--border); }
.steps { list-style: none; counter-reset: step; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.steps li { counter-increment: step; background: var(--surface); border-radius: var(--radius); padding: 1.25rem; border: 1px solid var(--border); position: relative; }
.steps li::before {
  content: counter(step); display: inline-flex; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 0.5rem;
}
.steps p { margin: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--surface); }
th, td { text-align: left; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--border); }
th { background: var(--forest); color: #fff; }

.check-list { list-style: none; padding-left: 0 !important; }
.check-list li { padding-left: 1.8rem; position: relative; }
.check-list li::before { content: "\2714"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0 !important; margin: 0; }
.contact-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--border); }
.contact-list span { font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-list { margin-bottom: 2rem; }
.faq-list details { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 0.5rem; }
.faq-list summary { cursor: pointer; font-weight: 600; padding: 0.8rem 1rem; list-style-position: inside; }
.faq-list details[open] summary { color: var(--brand-dark); }
.faq-list details p { padding: 0 1rem 0.8rem; margin: 0; }

/* ---------- Gallery ---------- */
.breadcrumb { margin-bottom: 1.25rem; color: var(--muted); }
.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.folder-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem; padding: 1.5rem 1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); text-align: center;
}
.folder-icon { font-size: 2.5rem; }
.folder-name { font-size: 1.4rem; font-weight: 700; color: var(--forest); margin: 0; }
.folder-months { color: var(--muted); margin: 0 0 0.5rem; }
.folder-card .empty { padding: 0.5rem 0 0; margin: 0; }
.gallery-help { margin-top: 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: rgba(255, 255, 255, 0.75); margin-top: 2rem; }
.site-footer a { color: rgba(255, 255, 255, 0.9); }
.site-footer a:hover { color: #fff; }
.site-footer h2 { color: var(--leaf-light); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em; }
.footer-name { color: #fff; }
.footer-name [lang="mr"] { color: var(--leaf-light); }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2rem; }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; }
.footer-brand img { flex: 0 0 56px; border-radius: 50%; background: #fff; }
.footer-name { font-weight: 700; margin-bottom: 0.4rem; }
.footer-small { font-size: 0.9rem; opacity: 0.85; }
.footer-links { text-align: center; }
.footer-links ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem; }
.footer-social { text-align: right; }
.footer-social ul { list-style: none; padding: 0; margin: 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 1rem 0; font-size: 0.85rem; text-align: center; opacity: 0.8; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .home-hero-inner, .intro-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { justify-content: center; text-align: left; }
  .footer-social { text-align: center; }
}

@media (max-width: 760px) {
  .header-inner { grid-template-columns: auto 1fr; }
  .header-title { text-align: left; }
  .header-contact { grid-column: 1 / -1; text-align: center; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 0 1rem; }
  .header-logo img { width: 56px; height: 56px; }
  .name-mr { font-size: 1.5rem; }
  .name-en { font-size: 1.25rem; }

  .nav-toggle { display: block; }
  .nav-menu { display: none; flex-direction: column; padding-bottom: 0.5rem; }
  .nav-menu.is-open { display: flex; }
  .nav-item { flex-wrap: wrap; justify-content: space-between; }
  .nav-item > a { flex: 1; }
  .submenu-toggle { margin: 0; padding: 0.75rem 1rem; font-size: 1rem; }
  .nav-item > a:hover, .nav-item > a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--brand); }
  .submenu { position: static; width: 100%; box-shadow: none; border-radius: 0; background: rgba(46, 125, 79, 0.06); }
  .submenu a { padding-left: 1.75rem; }
  .submenu a:hover { background: rgba(46, 125, 79, 0.1); }
  .has-children:hover .submenu, .has-children:focus-within .submenu { display: none; }
  .has-children.is-open .submenu { display: block; }

  /* Month calendar becomes a list of days that have events */
  .cal-weekdays { display: none; }
  .cal-row { display: block; }
  .cal-day { display: none; min-height: 0; border-left: 0; padding: 0.6rem 0.8rem; }
  .cal-day.has-events:not(.is-outside) { display: block; }
  .cal-weekday { display: inline; }
  .cal-event { white-space: normal; }
  .cal-grid:not(:has(.cal-day.has-events:not(.is-outside))) { display: none; }

  .home-hero { padding: 3rem 0; }
  .home-hero::before, .page-hero::before { width: 240px; height: 240px; right: -90px; top: 1rem; transform: none; }
  .page-hero { padding: 2rem 0 1.75rem; }

  .week-day { grid-template-columns: 1fr; gap: 0.4rem; }
  .event-card { padding: 0.9rem; }
  .cta-band { padding: 1.25rem; }
  .section { padding: 2rem 0; }
}
