:root {
  /* ── Extracted directly from logo ── */
  /* Outer ring / deepest maroon   */ --maroon-dark: #3B1010;
  /* Header / nav maroon           */ --maroon:      #5A1A1A;
  /* Mid band / card accent        */ --maroon-mid:  #6E1F1F;
  /* Lighter maroon tint           */ --maroon-lite: #8A2E2E;
  /* Logo "க" letter — forest green*/ --green:       #2E6B33;
  /* Hover / lighter green         */ --green-light: #388C40;
  /* Green tint bg                 */ --green-pale:  #E6F2E8;
  /* Graduation cap / wreath gold  */ --gold:        #C4880A;
  /* Lighter warm gold highlight   */ --gold-light:  #DFA020;
  /* Very pale gold — logo cream   */ --gold-pale:   #F6E7BC;
  /* Logo inner cream background   */ --cream:       #F5EACC;
  /* Pure white                    */ --white:       #FFFFFF;
  /* Dark text                     */ --text-dark:   #1E0E0E;
  /* Body text                     */ --text-mid:    #3E2010;
  /* Muted text                    */ --text-light:  #74502E;
  /* Border / divider              */ --border:      #DEC898;
  --shadow:    0 4px 24px rgba(59,16,16,0.13);
  --shadow-lg: 0 12px 48px rgba(59,16,16,0.20);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* ─────── UTILITY BAR ─────── */
.utility-bar {
  background: var(--maroon-dark);
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  padding: 6px 0;
  letter-spacing: 0.03em;
}
.utility-bar .inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.utility-bar a { color: var(--gold-light); text-decoration: none; }
.utility-bar a:hover { text-decoration: underline; }
.util-links { display: flex; gap: 20px; align-items: center; }
.util-links a { color: rgba(255,255,255,0.75); }
.util-links a:hover { color: var(--gold-light); }

/* Language Toggle */
.lang-toggle {
  display: flex; align-items: center; gap: 0; border: 1px solid var(--green-light);
  border-radius: 4px; overflow: hidden;
}
.lang-btn {
  background: transparent; color: rgba(255,255,255,0.7);
  border: none; padding: 3px 12px; font-size: 0.78rem;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
}
.lang-btn.active { background: var(--green); color: #fff; font-weight: 600; }
.lang-btn:hover:not(.active) { background: rgba(46,107,51,0.25); color: #fff; }

/* ─────── HEADER / NAV ─────── */
.header {
  background: var(--maroon);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 16px rgba(62,16,16,0.25);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; height: 72px; gap: 32px;
}
.logo-area { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.logo-circle {
  width: 52px; height: 52px; border-radius: 50%;
  background: #fff; overflow: hidden;
  box-shadow: 0 0 0 2px var(--gold), 0 2px 10px rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-text { display: flex; flex-direction: column; }
.logo-ta { font-family: 'Noto Serif Tamil', serif; font-size: 0.95rem; color: var(--gold-light); font-weight: 700; line-height: 1.2; }
.logo-en { font-family: 'Playfair Display', serif; font-size: 0.85rem; color: rgba(255,255,255,0.8); font-weight: 400; }

nav { flex: 1; display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  display: block; padding: 8px 14px;
  color: rgba(255,255,255,0.88); font-size: 0.875rem; font-weight: 500;
  text-decoration: none; white-space: nowrap; border-radius: 4px;
  transition: all 0.2s; cursor: pointer;
}
.nav-link:hover, .nav-link.active { background: rgba(46,107,51,0.22); color: #8FD494; }
.nav-item:hover .dropdown { display: block; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--maroon-dark); min-width: 220px; border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow-lg); overflow: hidden; z-index: 200;
}
.dropdown a {
  display: block; padding: 10px 18px;
  color: rgba(255,255,255,0.82); font-size: 0.84rem; text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all 0.15s;
}
.dropdown a:hover { background: rgba(46,107,51,0.18); color: #8FD494; padding-left: 24px; }

.nav-ctas { display: flex; gap: 8px; flex-shrink: 0; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 20px;
  border-radius: 5px; font-size: 0.875rem; font-weight: 600;
  text-decoration: none; cursor: pointer; border: none; transition: all 0.22s;
  font-family: 'DM Sans', sans-serif; }
.btn-gold { background: var(--green); color: #fff; }
.btn-gold:hover { background: var(--green-light); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(46,107,51,0.45); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.5); }
.btn-outline:hover { border-color: var(--green-light); color: var(--green-light); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-light); transform: translateY(-1px); }
.btn-maroon { background: var(--maroon); color: #fff; }
.btn-maroon:hover { background: var(--maroon-dark); }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 6px; }

/* ─────── PAGE SYSTEM ─────── */
.page { display: block; }

/* ─────── HERO ─────── */
.hero {
  position: relative; height: 88vh; min-height: 560px; max-height: 820px;
  background: var(--cream); overflow: hidden;
  display: flex; align-items: center;
  cursor: default;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--cream) 0%, #FBF3DC 45%, var(--gold-pale) 100%);
}
.hero-pattern {
  position: absolute; inset: 0; opacity: 0.09;
  background-image: repeating-linear-gradient(
    45deg, var(--maroon-mid) 0, var(--maroon-mid) 1px, transparent 0, transparent 50%
  );
  background-size: 32px 32px;
}
/* ── Floating book & pencil silhouettes ── */
.hero-floaters {
  position: absolute; inset: 0; z-index: 1;
  overflow: hidden; pointer-events: none;
  transition: transform 0.5s ease-out;
}
.floater {
  position: absolute; left: -140px; top: var(--top, 20%);
  width: var(--size, 54px); height: var(--size, 54px);
  animation: driftAcross var(--dur, 34s) linear infinite;
  animation-delay: var(--delay, 0s);
}
.floater .bob {
  display: block; width: 100%; height: 100%;
  color: var(--tint, var(--maroon-mid)); opacity: var(--op, 0.14);
  animation: bobRotate var(--bobdur, 5s) ease-in-out infinite;
  animation-delay: var(--bobdelay, 0s);
}
.floater svg { width: 100%; height: 100%; display: block; }
.floater-letter .bob {
  display: flex; align-items: center; justify-content: center;
  font-family: 'Noto Serif Tamil', serif; font-weight: 700;
  font-size: var(--size); line-height: 1;
}
@keyframes driftAcross {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(100vw + 200px)); }
}
@keyframes bobRotate {
  0%, 100% { transform: translateY(0) rotate(-7deg); }
  50%      { transform: translateY(-22px) rotate(7deg); }
}
@media (prefers-reduced-motion: reduce) {
  .floater, .floater .bob, .hero-emblem img, .hero-badge { animation: none; }
}
@media (max-width: 900px) {
  .floater { transform: scale(0.8); }
}
/* ── Hero scroll cue ── */
.hero-scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--maroon-mid); background: none; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif; font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; opacity: 0.75; transition: opacity 0.2s;
}
.hero-scroll-cue:hover { opacity: 1; }
.hero-scroll-cue .pencil-bounce { animation: pencilBounce 1.8s ease-in-out infinite; }
@keyframes pencilBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(8px) rotate(8deg); }
}
.hero-img-placeholder {
  position: absolute; right: 0; top: 0; bottom: 0; width: 52%;
  background: rgba(255,255,255,0.45);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; border-left: 2px dashed rgba(46,107,51,0.35);
  transition: transform 0.5s ease-out;
}
.photo-ph {
  background: rgba(255,255,255,0.65);
  border: 2px dashed var(--gold);
  border-radius: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--text-light); gap: 8px; padding: 16px;
}
.photo-ph svg { opacity: 0.6; }
.photo-ph span { font-size: 0.78rem; text-align: center; letter-spacing: 0.04em; text-transform: uppercase; }

/* ── Hero announcement slideshow (borderless, blends into hero background) ── */
.hero-slideshow {
  position: absolute; inset: 0; margin: auto;
  width: min(90%, 560px); height: min(84%, 480px);
  perspective: 1500px; perspective-origin: 88% 50%;
  overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 20px;
  opacity: 0; visibility: hidden;
  transform: rotateY(94deg);
  transform-origin: right center;
  backface-visibility: hidden;
  transition: transform 1s cubic-bezier(0.65,0,0.35,1), opacity 0.6s ease, visibility 0s linear 0.6s;
}
.hero-slide.active {
  opacity: 1; visibility: visible;
  transform: rotateY(0deg);
  transition: transform 1s cubic-bezier(0.65,0,0.35,1), opacity 0.45s ease;
}
.hero-slide-photo {
  flex: 1 1 auto; min-height: 0; max-width: 100%; width: auto;
  object-fit: contain; border-radius: 8px;
}
.hero-slide-caption {
  flex-shrink: 0;
  font-size: 0.85rem; color: var(--text-light); text-align: center;
  max-width: 460px; padding: 0 8px; font-style: italic;
}
.hero-slide-label {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  background: var(--green); color: #fff; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 14px; border-radius: 20px;
  z-index: 2;
}
.hero-slide-dots {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 4;
}
.hero-slide-dots .dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(46,107,51,0.3);
  cursor: pointer; transition: all 0.25s; border: none; padding: 0;
}
.hero-slide-dots .dot.active { background: var(--green); width: 22px; border-radius: 5px; }
.hero-content {
  position: relative; z-index: 2; max-width: 1280px; margin: 0 auto; padding: 0 24px;
  width: 100%;
}
.hero-emblem { width: 92px; height: 92px; margin-bottom: 22px; }
.hero-emblem img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block;
  box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--gold), 0 10px 26px rgba(59,16,16,0.22);
  animation: emblemFloat 5s ease-in-out infinite;
}
@keyframes emblemFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(46,107,51,0.12); border: 1px solid var(--green);
  color: var(--green); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 20px;
  font-weight: 600; animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46,107,51,0.25); }
  50%      { box-shadow: 0 0 0 6px rgba(46,107,51,0); }
}
.hero h1 {
  font-family: 'Noto Serif Tamil', serif;
  font-size: clamp(2rem, 5vw, 3.8rem);
  color: var(--maroon-dark); line-height: 1.15; font-weight: 700;
  margin-bottom: 10px; position: relative; display: inline-block;
}
.hero h1::after {
  content: ''; position: absolute; left: 2px; bottom: -6px;
  width: 100%; height: 6px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12'%3E%3Cpath d='M2 8c20-8 40 6 60-1s40-8 60-1 40 6 60-1' fill='none' stroke='%23C4880A' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 100% 100%;
  transform: scaleX(0); transform-origin: left;
  animation: drawUnderline 0.9s 1s ease-out forwards;
}
@keyframes drawUnderline { to { transform: scaleX(1); } }
.hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  color: var(--green); line-height: 1.3;
  font-weight: 400; margin-bottom: 20px; margin-top: 18px;
}
.hero-sub {
  font-size: 1rem; color: var(--text-mid);
  max-width: 480px; line-height: 1.7; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-outline {
  color: var(--maroon-dark); border: 1.5px solid var(--maroon-mid);
}
.hero .btn-outline:hover {
  border-color: var(--green); color: var(--green-light); background: var(--green-pale);
}

/* ─────── STATS BAR ─────── */
.stats-bar {
  background: var(--green);
  padding: 0;
}
.stats-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.stat-item {
  padding: 22px 20px; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.18);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Playfair Display', serif; font-size: 2.2rem;
  font-weight: 900; color: #fff; line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.85); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

/* ─────── SECTION COMMON ─────── */
.section { padding: 80px 0; }
.section-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section-alt { background: #fff; }
.section-dark { background: var(--maroon-dark); color: #fff; }

.section-head { text-align: center; margin-bottom: 56px; }
.section-head .eyebrow {
  display: inline-block; font-size: 0.75rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--green); font-weight: 700;
  margin-bottom: 10px;
}
.section-head h2 {
  font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700; color: var(--maroon-dark); line-height: 1.2;
  margin-bottom: 14px;
}
.section-head .ta-title {
  font-family: 'Noto Serif Tamil', serif; font-size: 1.1rem;
  color: var(--maroon-mid); font-weight: 600; display: block; margin-bottom: 8px;
}
.section-head p { font-size: 1rem; color: var(--text-light); max-width: 560px; margin: 0 auto; line-height: 1.7; }
.section-dark .section-head h2 { color: #fff; }
.section-dark .section-head p { color: rgba(255,255,255,0.7); }

/* ─────── CARDS ─────── */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cards-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border-radius: 12px;
  box-shadow: var(--shadow); overflow: hidden;
  transition: all 0.3s; border: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-img {
  height: 200px; background: var(--maroon-dark);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 10px;
}
.card-img .ph-label {
  color: rgba(255,255,255,0.4); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; text-align: center; line-height: 1.5;
}
.card-img-gold { background: linear-gradient(135deg, var(--gold) 0%, var(--maroon-mid) 100%); }
.card-img-green { background: linear-gradient(135deg, var(--green) 0%, var(--maroon-dark) 100%); }
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--green); margin-bottom: 8px;
}
.card h3 {
  font-family: 'Playfair Display', serif; font-size: 1.2rem;
  font-weight: 700; color: var(--maroon-dark); margin-bottom: 8px; line-height: 1.35;
}
.card .ta { font-family: 'Noto Serif Tamil', serif; font-size: 0.9rem; color: var(--maroon-mid); margin-bottom: 10px; }
.card p { font-size: 0.88rem; color: var(--text-light); line-height: 1.65; flex: 1; }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--border); }
.card-footer a { color: var(--green); font-size: 0.85rem; font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: 6px; }
.card-footer a:hover { color: var(--maroon); }

/* ─────── FEATURE BANNER ─────── */
.feature-banner {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 480px; overflow: hidden; border-radius: 16px; box-shadow: var(--shadow-lg);
}
.feature-img {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%);
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; min-height: 320px;
}
.feature-body {
  padding: 56px 48px; background: var(--maroon-dark); display: flex; flex-direction: column; justify-content: center; gap: 20px;
}
.feature-body h2 { font-family: 'Playfair Display', serif; font-size: 2rem; color: #fff; font-weight: 700; }
.feature-body .ta { font-family: 'Noto Serif Tamil', serif; font-size: 1rem; color: var(--gold-light); margin-bottom: 4px; }
.feature-body p { color: rgba(255,255,255,0.75); line-height: 1.7; }

/* ─────── SPEC LIST ─────── */
.spec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; list-style: none; }
.spec-list li {
  display: flex; align-items: flex-start; gap: 12px;
  background: rgba(255,255,255,0.05); border-radius: 8px;
  padding: 14px 16px; border: 1px solid rgba(56,140,64,0.25);
}
.spec-list li::before {
  content: '✦'; color: var(--gold); font-size: 0.9rem; flex-shrink: 0; margin-top: 2px;
}
.spec-list li span { font-size: 0.875rem; color: rgba(255,255,255,0.82); line-height: 1.5; }
.spec-list.white li { background: var(--cream); border-color: var(--border); }
.spec-list.white li::before { color: var(--green); }
.spec-list.white li span { color: var(--text-mid); }

/* ─────── MISSION SECTION ─────── */
.mission-block {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.mission-quote {
  position: relative; padding: 40px 40px 40px 60px;
  background: var(--green); border-radius: 16px; color: #fff;
}
.mission-quote::before {
  content: '"'; position: absolute; left: 20px; top: 16px;
  font-size: 6rem; color: var(--gold); opacity: 0.3; font-family: 'Playfair Display', serif; line-height: 1;
}
.mission-quote .ta-q { font-family: 'Noto Serif Tamil', serif; font-size: 1.05rem; color: var(--gold-pale); margin-bottom: 16px; line-height: 1.7; }
.mission-quote .en-q { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-style: italic; color: rgba(255,255,255,0.9); line-height: 1.6; }
.mission-details { display: flex; flex-direction: column; gap: 20px; }
.mission-details h3 { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; color: var(--maroon-dark); }
.mission-details .ta { font-family: 'Noto Serif Tamil', serif; font-size: 0.95rem; color: var(--maroon-mid); margin-bottom: 4px; }

/* ─────── ACCREDITATION BAR ─────── */
.accred-bar {
  background: var(--cream); border-top: 3px solid var(--green);
  border-bottom: 3px solid var(--green); padding: 28px 0;
}
.accred-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; text-align: center;
}
.accred-logo { height: 56px; width: auto; flex-shrink: 0; }
.accred-inner p { color: var(--maroon-dark); font-size: 0.9rem; font-weight: 600; max-width: 680px; line-height: 1.5; }

/* ─────── PHOTO GRID ─────── */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.photo-grid .ph-box {
  border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, var(--maroon-mid), var(--maroon-dark));
  aspect-ratio: 4/3; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; border: 2px dashed var(--green-light); cursor: pointer;
  transition: all 0.3s;
}
.photo-grid .ph-box:hover { transform: scale(1.02); opacity: 0.85; }
.photo-grid .ph-box:nth-child(1) { grid-column: span 2; aspect-ratio: 16/7; }
.photo-grid .ph-box span { color: rgba(255,255,255,0.4); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; }
.photo-grid .ph-box svg { opacity: 0.35; }

/* ─────── INFO CARDS ─────── */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.info-card {
  background: #fff; border-radius: 12px; padding: 32px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  display: flex; gap: 20px; align-items: flex-start;
  transition: all 0.3s;
}
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--green); }
.info-icon {
  width: 52px; height: 52px; border-radius: 10px;
  background: var(--green-pale); display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; flex-shrink: 0;
}
.info-card h4 { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--maroon-dark); margin-bottom: 4px; }
.info-card .ta { font-family: 'Noto Serif Tamil', serif; font-size: 0.82rem; color: var(--maroon-mid); margin-bottom: 8px; }
.info-card p { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }

/* ─────── SCHEDULE TABLE ─────── */
.schedule-table { width: 100%; border-collapse: collapse; border-radius: 10px; overflow: hidden; }
.schedule-table th {
  background: var(--maroon); color: #fff; padding: 14px 18px;
  font-size: 0.85rem; font-weight: 600; text-align: left;
  font-family: 'DM Sans', sans-serif;
}
.schedule-table td { padding: 13px 18px; font-size: 0.88rem; color: var(--text-mid); border-bottom: 1px solid var(--border); }
.schedule-table tr:last-child td { border-bottom: none; }
.schedule-table tr:nth-child(even) td { background: var(--cream); }
.schedule-table tr:hover td { background: var(--green-pale); }
.schedule-table tr.cal-holiday td { background: var(--gold-pale); font-weight: 600; color: var(--maroon-dark); }
.schedule-table tr.cal-milestone td { background: rgba(46,107,51,0.08); }
.schedule-table td.cal-week { font-weight: 700; color: var(--maroon); text-align: center; }
.schedule-table-wrap { overflow-x: auto; border-radius: 10px; box-shadow: var(--shadow); margin-bottom: 24px; }
.schedule-table-wrap .schedule-table { min-width: 760px; }

/* ─────── MONTH CALENDAR WIDGET ─────── */
.cal-widget { max-width: 900px; margin: 0 auto 40px; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); }
.cal-widget-header { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 20px; }
.cal-month-label { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--maroon-dark); min-width: 220px; text-align: center; }
.cal-nav-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--maroon);
  background: #fff; color: var(--maroon); font-size: 1.2rem; cursor: pointer; transition: all 0.2s;
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.cal-nav-btn:hover:not(:disabled) { background: var(--maroon); color: #fff; }
.cal-nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.cal-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr); text-align: center;
  font-size: 0.75rem; font-weight: 700; color: var(--text-light); text-transform: uppercase;
  letter-spacing: 0.03em; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-cell {
  min-height: 88px; border-radius: 8px; padding: 6px; background: var(--cream);
  border: 1px solid transparent; display: flex; flex-direction: column; gap: 3px; overflow: hidden;
}
.cal-cell.cal-empty { background: none; }
.cal-daynum { font-size: 0.8rem; font-weight: 700; color: var(--text-mid); }
.cal-label { font-size: 0.66rem; line-height: 1.25; color: var(--text-mid); }
.cal-cell.cal-holiday { background: rgba(56,140,64,0.15); border-color: var(--green-light); }
.cal-cell.cal-holiday .cal-daynum { color: var(--green-light); }
.cal-cell.cal-milestone { background: rgba(46,107,51,0.1); border-color: var(--green); }
.cal-cell.cal-milestone .cal-daynum { color: var(--green); }
.cal-cell.cal-class { background: #fff; border-color: var(--border); }
.cal-cell.cal-clickable { cursor: pointer; transition: transform 0.15s, box-shadow 0.15s; }
.cal-cell.cal-clickable:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
@media (max-width: 640px) {
  .cal-widget { padding: 14px; }
  .cal-cell { min-height: 54px; padding: 3px; }
  .cal-daynum { font-size: 0.7rem; }
  .cal-label { font-size: 0.56rem; }
  .cal-month-label { font-size: 1.05rem; min-width: 150px; }
  .cal-nav-btn { width: 32px; height: 32px; font-size: 1rem; }
}

/* ─────── CALENDAR DAY-DETAIL MODAL ─────── */
.cal-modal-overlay {
  position: fixed; inset: 0; background: rgba(59,16,16,0.55); z-index: 1000;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.cal-modal-overlay.open { display: flex; }
.cal-modal {
  background: #fff; border-radius: 14px; padding: 32px; max-width: 420px; width: 100%;
  box-shadow: var(--shadow-lg); position: relative;
}
.cal-modal-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%;
  border: none; background: var(--cream); color: var(--text-mid); font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.cal-modal-close:hover { background: var(--border); }
.cal-modal-date { font-size: 0.8rem; color: var(--text-light); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.cal-modal-title { font-family: 'Playfair Display', serif; font-size: 1.35rem; color: var(--maroon-dark); margin-bottom: 14px; line-height: 1.3; }
.cal-modal-lesson { font-size: 0.92rem; font-weight: 700; color: var(--green); margin-bottom: 10px; }
.cal-modal-note { font-size: 0.9rem; color: var(--text-mid); line-height: 1.6; }

/* ─────── SYLLABUS ACCORDION ─────── */
.syllabus-accordion { display: flex; flex-direction: column; gap: 12px; max-width: 880px; margin: 0 auto; text-align: left; }
.syllabus-item { background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.syllabus-item-header {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; cursor: pointer; background: none; border: none; width: 100%;
  text-align: left; font-family: 'DM Sans', sans-serif; transition: background 0.2s;
}
.syllabus-item-header:hover { background: var(--cream); }
.syllabus-item-title { display: flex; flex-direction: column; gap: 3px; }
.syllabus-item-title strong { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--maroon-dark); font-weight: 700; }
.syllabus-item-age { font-size: 0.8rem; color: var(--text-light); }
.syllabus-chevron { flex-shrink: 0; width: 22px; height: 22px; color: var(--green); transition: transform 0.25s; }
.syllabus-item.open .syllabus-chevron { transform: rotate(180deg); }
.syllabus-item-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-in-out; padding: 0 22px 0; }
.syllabus-item.open .syllabus-item-body { max-height: 2400px; padding: 0 22px 22px; }
.syllabus-field { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }
.syllabus-field:first-child { margin-top: 4px; padding-top: 0; border-top: none; }
.syllabus-field h4 { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green); font-weight: 700; margin-bottom: 6px; }
.syllabus-field p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.65; }
.syllabus-field ul { padding-left: 18px; font-size: 0.88rem; color: var(--text-mid); line-height: 1.6; }
.syllabus-field ul li { margin-bottom: 5px; }
.syllabus-source-note { text-align: center; font-size: 0.8rem; color: var(--text-light); max-width: 880px; margin: 0 auto 28px; line-height: 1.6; }

/* Syllabus groups (Arumbu / Mottu / Mugai / Malar — flower blooms through the stages) */
.syllabus-groups { max-width: 880px; margin: 0 auto 32px; display: flex; flex-direction: column; gap: 18px; }
.syllabus-group { background: var(--cream); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.syllabus-group-header {
  display: flex; align-items: center; gap: 16px; padding: 20px 24px; cursor: pointer;
  background: none; border: none; width: 100%; text-align: left; font-family: 'DM Sans', sans-serif;
  transition: background 0.2s;
}
.syllabus-group-header:hover { background: rgba(255,255,255,0.6); }
.syllabus-group-flower {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--green-light); background: #fff;
  /* Each stage's resting look is the PREVIOUS stage's bloomed look (chained via --bloom-start),
     so opening one group visibly continues blooming from where the last one left off. */
  --bloom: var(--bloom-start, 0);
  --grow: var(--grow-start, 1);
}
.syllabus-group.open .syllabus-group-flower { --bloom: var(--bloom-target, 1); --grow: var(--grow-target, 1); }
.bloom-flower { width: 100%; height: 100%; display: block; }
.bloom-flower .flower-grow {
  /* Only Arumbu sets --grow-start:0 — everyone else defaults to 1 (already grown, no effect) */
  transform: scaleY(var(--grow));
  transform-origin: 50px 100px;
  transition: transform 1.1s cubic-bezier(0.34, 1.2, 0.64, 1);
}
.bloom-flower .petal-rotate {
  transform: rotate(calc(var(--bloom) * var(--ang))) scale(calc(0.45 + var(--bloom) * 0.55));
  transform-origin: 0 0;
  transition: transform 1s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.bloom-flower .petal-base { fill: var(--green-light); }
.bloom-flower .petal-color { fill: #E0607A; opacity: var(--bloom); transition: opacity 1s ease; }
.bloom-flower .stamen { fill: var(--gold); opacity: calc(var(--bloom) * var(--bloom)); transition: opacity 1s ease; }
.bloom-flower .stem { stroke: var(--green-light); }
.syllabus-group-title { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.syllabus-group-title h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--maroon-dark); font-weight: 700; }
.syllabus-group-sub { font-size: 0.82rem; color: var(--text-light); }
.syllabus-group-chevron { flex-shrink: 0; width: 24px; height: 24px; color: var(--green); transition: transform 0.25s; }
.syllabus-group.open .syllabus-group-chevron { transform: rotate(180deg); }
.syllabus-group-body { max-height: 0; overflow: hidden; transition: max-height 0.5s ease-in-out; padding: 0 24px 0; }
.syllabus-group.open .syllabus-group-body { max-height: 8000px; padding: 4px 24px 24px; }
.syllabus-group-body .syllabus-accordion { margin: 0; max-width: none; }

@media (max-width: 640px) {
  .syllabus-item-header { padding: 14px 16px; }
  .syllabus-item-body { padding: 0 16px 0; }
  .syllabus-item.open .syllabus-item-body { padding: 0 16px 18px; }
  .syllabus-group-header { padding: 16px 18px; gap: 12px; }
  .syllabus-group-flower { width: 44px; height: 44px; }
  .syllabus-group-title h3 { font-size: 1.1rem; }
  .syllabus-group-body { padding: 0 18px 0; }
  .syllabus-group.open .syllabus-group-body { padding: 4px 18px 20px; }
}

/* ─────── CTA BLOCK ─────── */
.cta-block {
  background: linear-gradient(135deg, var(--green) 0%, #1E4E24 100%);
  border-radius: 16px; padding: 56px 48px;
  text-align: center; color: #fff;
}
.cta-block h2 { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.cta-block .ta { font-family: 'Noto Serif Tamil', serif; font-size: 1rem; color: rgba(255,255,255,0.85); margin-bottom: 16px; display: block; }
.cta-block p { color: rgba(255,255,255,0.82); margin-bottom: 28px; font-size: 1rem; line-height: 1.65; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-white { background: #fff; color: var(--green); }
.btn-white:hover { background: var(--gold-pale); }
.btn-white-outline { background: transparent; border: 2px solid rgba(255,255,255,0.7); color: #fff; }
.btn-white-outline:hover { border-color: #fff; background: rgba(255,255,255,0.12); }

/* ─────── FEEDBACK FORM ─────── */
.feedback-form { background: #fff; border-radius: 16px; padding: 40px; box-shadow: var(--shadow); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--maroon-dark); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: 6px; font-size: 0.9rem; font-family: 'DM Sans', sans-serif;
  color: var(--text-dark); background: var(--cream);
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--gold); background: #fff;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ─────── LIVE PAGE ─────── */
.live-card {
  background: var(--maroon-dark); border-radius: 16px; padding: 48px;
  text-align: center; color: #fff; border: 2px solid var(--green);
}
.live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #C00; color: #fff; font-size: 0.78rem; font-weight: 700;
  padding: 4px 14px; border-radius: 20px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 20px;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.2} }
.video-ph {
  background: rgba(255,255,255,0.05); border: 2px dashed var(--gold);
  border-radius: 12px; aspect-ratio: 16/9; max-width: 800px; margin: 24px auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  color: rgba(255,255,255,0.4);
}
.video-ph svg { opacity: 0.4; width: 64px; height: 64px; }

/* ─────── FOOTER ─────── */
.footer { background: var(--maroon-dark); color: rgba(255,255,255,0.75); padding: 0 0 0; }
.footer-brand-top {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center; padding: 52px 24px 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand-top .logo-circle {
  border-radius: 50%; background: #fff; overflow: hidden;
  box-shadow: 0 0 0 2px var(--gold), 0 2px 10px rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
}
.footer-brand-top .logo-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.footer-brand-top .logo-ta { color: var(--gold-light); font-family: 'Noto Serif Tamil', serif; font-weight: 700; }
.footer-brand-top .logo-en { color: rgba(255,255,255,0.8); font-family: 'Playfair Display', serif; display: block; }
.footer-grid {
  max-width: 1280px; margin: 0 auto; padding: 16px 24px 56px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 48px;
}
.footer-brand .logo-ta { font-size: 1.1rem; color: var(--gold-light); }
.footer-brand .logo-en { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-bottom: 14px; display: block; }
.footer-brand p { font-size: 0.83rem; line-height: 1.65; margin-bottom: 20px; }
.footer-col h4 { color: var(--gold-light); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 0.85rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--gold-light); }
.social-row { display: flex; gap: 10px; }
.soc-btn {
  width: 36px; height: 36px; border-radius: 6px; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; text-decoration: none;
  color: rgba(255,255,255,0.65); font-size: 0.9rem; transition: all 0.2s;
}
.soc-btn:hover { background: var(--green); color: #fff; }
.contact-item { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.contact-item span { font-size: 0.83rem; line-height: 1.5; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 28px 24px; max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.78rem; color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.55); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-light); }

/* ─────── FOOTER ACCREDITATION / CTA BAND ─────── */
.footer-cta-bar { background: var(--gold-pale); border-top: 1px solid var(--green); border-bottom: 1px solid var(--green); }
.footer-cta-inner {
  max-width: 1280px; margin: 0 auto; padding: 40px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.footer-accred-text { color: var(--text-mid); font-size: 0.85rem; line-height: 1.65; max-width: 640px; margin: 0; }
.footer-wasc-badge { display: flex; align-items: center; flex-shrink: 0; }
.footer-wasc-badge img { height: 64px; width: auto; display: block; opacity: 1; transition: filter 0.2s; }
.footer-wasc-badge:hover img { filter: brightness(1.08); }
.footer-cta-row {
  border-top: 1px dashed rgba(59,16,16,0.15);
  max-width: 1280px; margin: 0 auto; padding: 28px 24px 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer-cta-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-seals { display: flex; align-items: center; gap: 14px; }
.footer-seals img { height: 72px; width: auto; flex-shrink: 0; opacity: 1; transition: filter 0.2s; }
.footer-seals img:hover { filter: brightness(1.08); }
.footer-donate { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn-donate {
  background: var(--gold); color: var(--maroon-dark); font-weight: 700; padding: 10px 28px;
  border-radius: 24px; text-decoration: none; font-size: 0.88rem; transition: all 0.2s; white-space: nowrap;
}
.btn-donate:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(196,136,10,0.4); }
.payment-icons { display: flex; gap: 6px; }
.payment-badge {
  width: 34px; height: 22px; border-radius: 4px;
  background: transparent; border: 1px solid var(--maroon-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.48rem; font-weight: 800; letter-spacing: 0.01em; color: var(--maroon-dark); font-family: 'DM Sans', sans-serif;
}
@media (max-width: 900px) {
  .footer-cta-inner, .footer-cta-row { justify-content: center; text-align: center; }
}

/* ─────── PAGE HERO (inner) ─────── */
.page-hero {
  background: linear-gradient(135deg, var(--maroon-dark) 0%, var(--maroon) 60%, var(--maroon-mid) 100%);
  padding: 64px 0 48px; color: #fff;
}
.page-hero-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.page-hero h1 { font-family: 'Playfair Display', serif; font-size: 2.6rem; font-weight: 700; margin-bottom: 8px; }
.page-hero .ta { font-family: 'Noto Serif Tamil', serif; font-size: 1.1rem; color: var(--gold-light); margin-bottom: 12px; display: block; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1rem; max-width: 580px; line-height: 1.65; }
.breadcrumb { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.breadcrumb a { color: var(--gold-light); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ─────── PAGE HERO — cream variant (matches home hero styling) ─────── */
.page-hero-cream {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--cream) 0%, #FBF3DC 45%, var(--gold-pale) 100%);
  color: var(--text-dark);
  border-bottom: 3px solid var(--green);
}
.page-hero-cream::before {
  content: ''; position: absolute; inset: 0; opacity: 0.09; pointer-events: none;
  background-image: repeating-linear-gradient(
    45deg, var(--maroon-mid) 0, var(--maroon-mid) 1px, transparent 0, transparent 50%
  );
  background-size: 32px 32px;
}
.page-hero-cream .page-hero-inner { position: relative; z-index: 1; }
.page-hero-cream h1 { color: var(--maroon-dark); }
.page-hero-cream .ta { color: var(--maroon-mid); }
.page-hero-cream p { color: var(--text-mid); }
.page-hero-cream .breadcrumb { color: var(--text-light); }
.page-hero-cream .breadcrumb a { color: var(--green); }

/* ─────── ACADEMIC YEAR SWITCHER ─────── */
.ay-switcher { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.ay-pill {
  padding: 8px 18px; border-radius: 20px; border: 1.5px solid var(--maroon);
  background: rgba(255,255,255,0.6); color: var(--maroon);
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: all 0.2s;
}
.ay-pill:hover { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.ay-pill.active { background: var(--maroon); border-color: var(--maroon-dark); color: #fff; }

/* ─────── LANG HIDDEN ─────── */
.ta-text { display: block; }
.en-text { display: none; }
body.english .ta-text { display: none; }
body.english .en-text { display: block; }
.bilingual-inline .ta-span { display: inline; }
.bilingual-inline .en-span { display: none; }
body.english .bilingual-inline .ta-span { display: none; }
body.english .bilingual-inline .en-span { display: inline; }

/* ─────── MOBILE MENU ─────── */
.hamburger { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
@media (max-width: 1024px) {
  nav { display: none; }
  .hamburger { display: flex; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .feature-banner { grid-template-columns: 1fr; }
  .mission-block { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .photo-grid .ph-box:nth-child(1) { grid-column: span 1; }
  .hero-img-placeholder { display: none; }
  .hero-content { max-width: 100%; }
  .hero-content > div { max-width: 100% !important; }
}
@media (max-width: 640px) {
  .cards-grid, .cards-grid-4, .info-grid, .form-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .nav-ctas .btn:not(.btn-gold) { display: none; }
  .spec-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ─────── ANIMATIONS ─────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeInUp 0.7s ease both; }
.fade-up-2 { animation: fadeInUp 0.7s 0.15s ease both; }
.fade-up-3 { animation: fadeInUp 0.7s 0.3s ease both; }
.fade-up-4 { animation: fadeInUp 0.7s 0.45s ease both; }

/* ─────── ORNAMENT ─────── */
.ornament { color: var(--gold); font-size: 1.2rem; margin: 0 8px; opacity: 0.6; }

/* Mobile nav overlay */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: var(--maroon-dark);
  flex-direction: column; padding: 20px 24px;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav .close-btn { align-self: flex-end; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; margin-bottom: 20px; }
.mobile-nav-link {
  color: rgba(255,255,255,0.85); text-decoration: none;
  font-size: 1.1rem; padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
}
.mobile-nav-link:hover { color: var(--gold-light); }
.mobile-sub { padding-left: 20px; }
.mobile-sub a {
  display: block; color: rgba(255,255,255,0.65); text-decoration: none;
  padding: 10px 0; font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mobile-sub a:hover { color: var(--gold-light); }

/* Special class tag */
.special-tag {
  display: inline-block; background: var(--green); color: #fff;
  font-size: 0.72rem; font-weight: 700; padding: 2px 10px; border-radius: 20px;
  letter-spacing: 0.05em; margin-left: 8px;
}

/* Volunteer perks */
.perk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.perk-card {
  background: #fff; border-radius: 12px; padding: 28px 24px;
  border: 1px solid var(--border); text-align: center;
  box-shadow: var(--shadow); transition: all 0.3s;
}
.perk-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--green); }
.perk-icon { font-size: 2.5rem; margin-bottom: 14px; display: block; }
.perk-card h4 { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--maroon-dark); margin-bottom: 8px; }
.perk-card p { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; }

/* ─────── NOTICES / EVENTS / DOWNLOADS ─────── */
.placeholder-note {
  background: var(--gold-pale); border: 1px dashed var(--gold); border-radius: 10px;
  padding: 12px 20px; font-size: 0.82rem; color: var(--text-mid); margin-bottom: 32px; text-align: center; line-height: 1.6;
}
.badge-corner {
  position: absolute; top: 12px; right: 12px; padding: 4px 12px; border-radius: 20px;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.03em; color: #fff; z-index: 2;
}
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-pill {
  padding: 8px 16px; border-radius: 20px; border: 1.5px solid var(--border);
  background: #fff; color: var(--text-mid); font-size: 0.82rem; font-weight: 600; cursor: pointer;
  font-family: 'DM Sans', sans-serif; transition: all 0.2s; white-space: nowrap;
}
.filter-pill:hover { border-color: var(--maroon); color: var(--maroon); }
.filter-pill.active { background: var(--maroon-dark); border-color: var(--maroon-dark); color: #fff; }

.list-panel { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 8px 24px; box-shadow: var(--shadow); }
.notice-row, .doc-row, .event-row {
  display: flex; align-items: center; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--border);
}
.notice-row:last-child, .doc-row:last-child, .event-row:last-child { border-bottom: none; }
.row-tag {
  flex-shrink: 0; padding: 4px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; color: #fff; text-align: center;
}
.row-title { flex: 1; min-width: 0; font-weight: 600; color: var(--text-dark); font-size: 0.92rem; }
.row-desc { font-size: 0.8rem; color: var(--text-light); margin-top: 2px; font-weight: 400; }
.row-date { flex-shrink: 0; font-size: 0.8rem; color: var(--text-light); white-space: nowrap; }
.row-arrow { flex-shrink: 0; color: var(--text-light); }

.event-date-badge {
  flex-shrink: 0; width: 58px; text-align: center; border-radius: 10px; padding: 8px 4px; color: #fff;
}
.event-date-badge .m { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.event-date-badge .d { font-size: 1.3rem; font-weight: 800; line-height: 1.1; }
.event-date-badge .y { font-size: 0.66rem; font-weight: 600; opacity: 0.85; }

.doc-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem; color: #fff; font-weight: 800; letter-spacing: 0.02em;
}
.doc-meta { flex-shrink: 0; text-align: right; font-size: 0.76rem; color: var(--text-light); line-height: 1.5; }
.doc-download {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--border); background: none;
  display: flex; align-items: center; justify-content: center; color: var(--text-light); cursor: not-allowed; opacity: 0.55;
}

.sidebar-box { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 26px; box-shadow: var(--shadow); margin-bottom: 24px; }
.sidebar-box h4 { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--maroon-dark); margin-bottom: 8px; }
.sidebar-box p { font-size: 0.85rem; color: var(--text-light); line-height: 1.6; margin-bottom: 16px; }
.quick-link-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0;
  border-bottom: 1px solid var(--border); font-size: 0.88rem; color: var(--text-mid); font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.quick-link-row:last-child { border-bottom: none; }
.quick-link-row:hover { color: var(--maroon); }

.notices-events-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .notices-events-layout { grid-template-columns: 1fr; } }

.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
.honor-roll-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.color-swatch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
@media (max-width: 640px) {
  .cards-grid-3 { grid-template-columns: 1fr; }
  .honor-roll-grid { grid-template-columns: repeat(2, 1fr); }
  .color-swatch-grid { grid-template-columns: repeat(2, 1fr); }
}
