/* ============================================================
   PAUL INTERNATIONAL SCHOOL — style.css
   Shared stylesheet for all pages
   ============================================================ */

/* ── VARIABLES ── */
:root {
  --navy:      #0d2b55;
  --blue:      #1a4a8a;
  --gold:      #c8922a;
  --gold2:     #f0b429;
  --green:     #0f6b3c;
  --bg:        #f5f7fa;
  --white:     #ffffff;
  --text:      #1a2332;
  --muted:     #5a6a7e;
  --line:      #e2e8f0;
  --radius:    16px;
  --shadow:    0 4px 24px rgba(13,43,85,.10);
  --shadow-lg: 0 12px 48px rgba(13,43,85,.16);
  --max:       1140px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--text); background: var(--bg); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── LAYOUT ── */
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
main { padding: 60px 0; }
section { margin-bottom: 64px; }

/* ── TOP BAR ── */
.topBar {
  background: var(--navy);
  color: rgba(255,255,255,.80);
  font-size: 12.5px;
  padding: 7px 0;
  border-bottom: 2px solid var(--gold);
}
.topBarInner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.topBar a { color: rgba(255,255,255,.80); }
.topBar a:hover { color: var(--gold2); }
.topBarLeft, .topBarRight { display: flex; gap: 20px; align-items: center; }

/* ── HEADER ── */
header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(13,43,85,.08);
  position: sticky; top: 0; z-index: 50;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 52px; height: 52px; border-radius: 10px; object-fit: contain; }
.brand .title strong { display: block; font-size: 15px; font-weight: 800; color: var(--navy); line-height: 1.2; }
.brand .title span   { display: block; font-size: 12px; color: var(--muted); }
nav ul { list-style: none; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
nav a { font-size: 13.5px; font-weight: 500; color: var(--text); padding: 8px 13px; border-radius: 8px; transition: all .18s; }
nav a:hover  { background: #eef2f8; color: var(--blue); }
nav a.active { background: var(--navy); color: #fff; }
.navAdmission { background: var(--gold); color: var(--navy) !important; font-weight: 700 !important; border-radius: 8px; padding: 8px 16px !important; }
.navAdmission:hover { background: var(--gold2) !important; }

/* ── PAGE HERO (inner pages) ── */
.pageHero { background: var(--navy); padding: 56px 0 48px; position: relative; overflow: hidden; }
.pageHeroBg {
  position: absolute; inset: 0;
  background-image: url('images/school_building.jpg');
  background-size: cover; background-position: center;
  opacity: .12;
}
.pageHeroContent { position: relative; z-index: 2; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(200,146,42,.18); border: 1px solid rgba(200,146,42,.40);
  color: var(--gold2); font-size: 12px; font-weight: 700;
  padding: 6px 14px; border-radius: 999px; letter-spacing: .5px;
  text-transform: uppercase; margin-bottom: 16px;
}
.kicker span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold2); }
.pageHero h1 { font-family: 'Playfair Display', serif; font-size: clamp(28px,3.5vw,46px); font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 12px; }
.pageHero p  { font-size: 15px; color: rgba(255,255,255,.70); line-height: 1.7; max-width: 58ch; }

/* ── BREADCRUMB ── */
.breadcrumb { background: var(--white); border-bottom: 1px solid var(--line); padding: 10px 0; }
.breadcrumb ol { list-style: none; display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.breadcrumb li+li::before { content: '›'; margin-right: 6px; }
.breadcrumb a { color: var(--blue); }

/* ── SECTION LABELS & TITLES ── */
.sectionLabel {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
.sectionLabel::before { content: ''; width: 28px; height: 2px; background: var(--gold); border-radius: 2px; }
.sectionTitle { font-family: 'Playfair Display', serif; font-size: clamp(24px,2.8vw,34px); font-weight: 800; color: var(--navy); line-height: 1.2; margin-bottom: 12px; }
.sectionSub   { font-size: 15px; color: var(--muted); line-height: 1.7; max-width: 60ch; }

/* ── STATS BAR ── */
.statsBar {
  background: var(--white); 
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: grid; 
  grid-template-columns: repeat(4,1fr);
  margin-bottom: 40px; /* Added margin here */
}
.statItem { padding: 24px 20px; text-align: center; border-right: 1px solid var(--line); }
.statItem:last-child { border-right: none; }
.statItem .num { font-size: 32px; font-weight: 800; color: var(--navy); font-family: 'Playfair Display', serif; line-height: 1; }
.statItem .num span { color: var(--gold); }
.statItem .lbl { font-size: 13px; color: var(--muted); margin-top: 5px; font-weight: 500; }

/* ── BUTTONS ── */
.btnPrimary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--navy);
  font-weight: 700; font-size: 14px;
  padding: 12px 24px; border-radius: 10px; transition: background .18s;
}
.btnPrimary:hover { background: var(--gold2); text-decoration: none; }

.btnOutline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid rgba(255,255,255,.40); color: #fff;
  font-weight: 600; font-size: 14px;
  padding: 11px 22px; border-radius: 10px; transition: all .18s;
}
.btnOutline:hover { border-color: #fff; background: rgba(255,255,255,.10); text-decoration: none; }

.btnWhite { background: #fff; color: var(--navy); font-weight: 700; font-size: 14px; padding: 13px 28px; border-radius: 10px; transition: all .18s; display: inline-flex; align-items: center; gap: 8px; }
.btnWhite:hover { background: var(--gold2); text-decoration: none; }

.btnGhostWhite { border: 2px solid rgba(255,255,255,.45); color: #fff; font-weight: 600; font-size: 14px; padding: 12px 26px; border-radius: 10px; transition: all .18s; display: inline-flex; align-items: center; gap: 8px; }
.btnGhostWhite:hover { border-color: #fff; background: rgba(255,255,255,.10); text-decoration: none; }

/* ── CTA BANNER ── */
.ctaBanner {
  background: linear-gradient(105deg, var(--navy) 0%, var(--blue) 60%, #1e6b4a 100%);
  border-radius: var(--radius);
  padding: 48px 40px;
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 24px; 
  flex-wrap: wrap;
  margin-top: 60px; /* Added margin here */
}
.ctaBanner h2, .ctaBanner h3 { font-family: 'Playfair Display', serif; color: #fff; margin-bottom: 8px; }
.ctaBanner h2 { font-size: clamp(26px,3.5vw,42px); }
.ctaBanner h3 { font-size: 22px; }
.ctaBanner p  { font-size: 14px; color: rgba(255,255,255,.72); }
.ctaBtns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── LEADER / AVATAR CARDS ── */
.leaderGrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.leaderCard {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px; text-align: center;
  border-top: 4px solid var(--gold);
  transition: transform .2s, box-shadow .2s;
}
.leaderCard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.leaderAvatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: #fff;
  margin: 0 auto 14px; border: 3px solid var(--gold);
}
.leaderCard h4   { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.leaderCard .role { font-size: 12px; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; margin-bottom: 8px; }
.leaderCard p    { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── FEATURE CARDS ── */
.featuresGrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.featureCard {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px;
  border-top: 4px solid var(--gold);
  transition: transform .2s, box-shadow .2s;
}
.featureCard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.featureCard .icon { font-size: 28px; margin-bottom: 14px; }
.featureCard h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.featureCard p  { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ── FILTER BUTTONS ── */
.filterBar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 40px; /* Provides breathing room before the grid */}
.filterBtn {
  padding: 8px 20px; border-radius: 999px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--line); background: var(--white); color: var(--muted);
  cursor: pointer; transition: all .18s; box-shadow: var(--shadow);
}
.filterBtn:hover, .filterBtn.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ── AFFILIATION BADGE ── */
.affBadge {  
  display: inline-flex; align-items: center; gap: 8px;  
  width: fit-content;  
  background: rgba(200,146,42,.15); border: 1px solid rgba(200,146,42,.30);  
  color: var(--gold2); font-size: 12px; font-weight: 600;  
  padding: 5px 12px; border-radius: 999px;  
}

/* ── FOOTER ── */
footer { background: #0a1e3d; color: rgba(255,255,255,.75); padding: 56px 0 28px; }
.footerGrid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footerBrand img { width: 48px; border-radius: 10px; margin-bottom: 14px; }
.footerBrand p   { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.60); }
footer h5 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 16px; letter-spacing: .3px; text-transform: uppercase; }
footer ul { list-style: none; display: grid; gap: 10px; }
footer li, footer a { font-size: 13px; color: rgba(255,255,255,.60); line-height: 1.5; }
footer a:hover { color: var(--gold2); }
.footerDivider { border: none; border-top: 1px solid rgba(255,255,255,.10); margin-bottom: 22px; }
.footerBottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footerBottom p { font-size: 12px; color: rgba(255,255,255,.40); }

/* ============================================================
   PAGE-SPECIFIC STYLES
   ============================================================ */

/* ── INDEX: HERO ── */
.hero { position: relative; overflow: hidden; min-height: 58vh; display: flex; align-items: center; background: var(--navy); }
.heroBg { position: absolute; inset: 0; background-image: url('images/school_building.jpg'); background-size: cover; background-position: center; opacity: .58; }
.heroOverlay { position: absolute; inset: 0; background: linear-gradient(285deg, rgba(13,43,85,.92) 5%, rgba(13,43,85,.55) 60%); }

/* Hero two-column layout with notice board */
.heroInner {
  display: flex !important;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 56px 0;
  width: 100%;
}
.heroInner > .container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 56px rgba(0,0,0,0.35);
  position: relative;
  z-index: 2;
}
.heroTextWrap {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  background: rgba(13,43,85,0.72);
  backdrop-filter: blur(2px);
  padding: 0;
}
.heroContent {
  position: relative; z-index: 2;
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
}
.heroBadge {
  display: inline-flex; align-items: center; gap: 8px;
  width: fit-content;
  background: rgba(200,146,42,.18); border: 1px solid rgba(200,146,42,.45);
  color: var(--gold2); font-size: 12px; font-weight: 700;
  padding: 6px 14px; border-radius: 999px; letter-spacing: .5px;
  text-transform: uppercase; margin-bottom: 22px;
}
.heroBadge span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold2); }
.hero h1 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(34px,4.5vw,58px); font-weight: 800; color: #fff; line-height: 1.15; letter-spacing: -.5px; margin-bottom: 20px; }
.hero h1 em { color: var(--gold2); font-style: normal; }
.hero p { font-size: 16px; color: rgba(255,255,255,.78); line-height: 1.7; margin-bottom: 36px; max-width: 52ch; }
.heroCtas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── INDEX: STATS BAR (floating) ── */
.statsBarFloat { margin: -36px auto 0; position: relative; z-index: 10; }

/* ── INDEX: NOTICE BOARD (hero panel) ── */
.noticeBoard {
  flex: 0 0 300px;
  width: 300px;
  background: rgba(255,255,255,0.97);
  border-left: 4px solid var(--gold);
  display: flex;
  flex-direction: column;
  z-index: 3;
  min-height: 420px;
  max-height: 520px;
}
.noticeBoardHeader {
  background: var(--navy);
  color: #fff;
  padding: 13px 16px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.noticeViewAll { color: var(--gold2); font-size: 0.75rem; text-decoration: none; font-weight: 600; }
.noticeViewAll:hover { text-decoration: underline; }
.noticeBoardBody { flex: 1; overflow-y: visible; scroll-behavior: smooth; }
.noticeBoardBody::-webkit-scrollbar { width: 4px; }
.noticeBoardBody::-webkit-scrollbar-track { background: #f1f5f9; }
.noticeBoardBody::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

/* Pinned notice */
.noticeItem.pinned {
  background: linear-gradient(135deg, #fef9ec, #fef3c7);
  position: relative; 
  cursor: pointer;
  border-left: 4px solid #f59e0b;
  padding: 13px 14px;
  border-bottom: 1px solid #fde68a;
  animation: noticePulse 2.5s ease-in-out infinite;
}
@keyframes noticePulse {
  0%,100% { background: linear-gradient(135deg,#fef9ec,#fef3c7); }
  50%      { background: linear-gradient(135deg,#fef3c7,#fde68a); }
}
.pinnedBadge {
  background: #f59e0b; color: #fff;
  font-size: 0.62rem; padding: 2px 7px; border-radius: 20px;
  font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  display: inline-block; margin-bottom: 4px;
}
.noticeItem.pinned .noticeTitle { color: #92400e; font-size: 0.85rem; font-weight: 700; line-height: 1.4; }

/* Regular notice items */
.noticeItem { position: relative; cursor: pointer; padding: 11px 14px; border-bottom: 1px solid #e2e8f0; transition: background 0.2s; }
.noticeItem:hover { background: #f8fafc; }
.noticeMeta { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.noticeDate { display: none; }
.noticeCatBadge { font-size: 0.62rem; padding: 1px 6px; border-radius: 20px; font-weight: 600; text-transform: capitalize; }
.noticeTitle { font-size: 0.82rem; font-weight: 600; color: #1e293b; line-height: 1.4; }
.noticeLoading { padding: 20px; color: #94a3b8; font-size: 0.85rem; text-align: center; }

/* The Description Box (Tooltip Style) */
.noticeHoverDesc {
  display: none; /* Hidden by default */
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  background: #35393f;
  color: #ffffff;
  padding: 12px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.4;
  z-index: 10;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  margin-top: 5px;
}

/* Show the description on hover */
.noticeItem:hover .noticeHoverDesc {
  display: block;
}

/* Add a small arrow for the tooltip */
.noticeHoverDesc::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 20px;
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent #35393f transparent;
}

/* Ensure pinned notices follow the same logic */
.noticeItem.pinned .noticeHoverDesc { background: var(--navy); /* Uses your school's navy color */}
.noticeItem.pinned .noticeHoverDesc::before { border-color: transparent transparent var(--navy) transparent; }

/* For the last two items, show the tooltip ABOVE the title */
.noticeItem:nth-last-child(-n+1) .noticeHoverDesc {
    top: auto;
    bottom: 100%; /* Positions it above the notice item */
    margin-top: 0;
    margin-bottom: 5px;
}

/* Flip the arrow for the last two items */
.noticeItem:nth-last-child(-n+1) .noticeHoverDesc::before {
    bottom: auto;
    top: 100%;
    border-color: #35393f transparent transparent transparent; /* Points down */
}



/* ── INDEX: WHY SECTION ── */
.whyGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.whyImg { border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); position: relative; }
.whyImg img { width: 100%; height: 420px; object-fit: cover; }
.whyBadgeFloat {
  position: absolute; bottom: 24px; left: 24px;
  background: var(--white); border-radius: 14px;
  padding: 14px 20px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
}
.whyBadgeFloat .icon { font-size: 28px; }
.whyBadgeFloat strong { display: block; font-size: 15px; color: var(--navy); }
.whyBadgeFloat span   { font-size: 12px; color: var(--muted); }
.whyPoints { display: grid; gap: 18px; margin-top: 32px; }
.whyPoint {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border-radius: 14px;
  padding: 18px 20px; box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
  transition: transform .2s, box-shadow .2s;
}
.whyPoint:hover { transform: translateX(4px); box-shadow: var(--shadow-lg); }
.whyPoint .icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.whyPoint h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.whyPoint p  { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── INDEX: OFFERINGS (dark section) ── */
.offeringsSection { background: var(--navy); }
.offeringsSection .sectionTitle { color: #fff; }
.offeringsSection .sectionSub   { color: rgba(255,255,255,.65); }
.offeringsSection .sectionLabel { color: var(--gold2); }
.offeringsSection .sectionLabel::before { background: var(--gold2); }
.offeringsGrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 48px; }
.offerCard {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 30px 26px;
  transition: background .2s, transform .2s;
}
.offerCard:hover { background: rgba(255,255,255,.12); transform: translateY(-4px); }
.offerCard .icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(200,146,42,.18); border: 1px solid rgba(200,146,42,.30);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 18px;
}
.offerCard h3 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.offerCard p  { font-size: 13px; color: rgba(255,255,255,.60); line-height: 1.65; }

/* ── INDEX: TOPPERS ── */
/* --- Modified CSS Section --- */

.toppersSection { 
  background: linear-gradient(135deg, #f0f4ff, #fdf8ee); 
  padding: 60px 0; /* Added padding for better section breathing room */
}

.toppersGrid { 
  display: grid; 
  grid-template-columns: repeat(4, 1fr); 
  gap: 24px; /* Increased gap slightly */
  margin-top: 48px; 
}

.topperCard {
  background: var(--white); 
  border-radius: var(--radius);
  box-shadow: var(--shadow); 
  padding: 32px 24px; /* Increased padding to fill space */
  text-align: center; 
  border-top: 4px solid var(--gold);
  transition: transform .2s, box-shadow .2s;
  display: flex; /* Ensures content stays centered and fills height */
  flex-direction: column;
  justify-content: center;
}

.topperCard:hover { 
  transform: translateY(-5px); 
  box-shadow: var(--shadow-lg); 
}

.topperAvatar {
  /* INCREASED SIZE: From 68px to 100px to fill the "narrow" gap */
  width: 100px; 
  height: 100px; 
  border-radius: 50%;
  margin: 0 auto 18px; 
  border: 3px solid var(--gold);
  overflow: hidden; /* Vital for the <img> tag */
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy), var(--blue));
}

/* Added specific img rule for the avatar */
.topperAvatar img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures student photos aren't stretched */
}

.topperCard h4 { 
  font-size: 18px; /* Increased from 15px */
  font-weight: 700; 
  color: var(--navy); 
  margin-bottom: 6px; 
}

.topperCard .cls { 
  font-size: 13px; /* Slightly larger for readability */
  color: var(--muted); 
  margin-bottom: 12px; 
}

.topperCard .score { 
  font-size: 32px; /* Increased from 26px for impact */
  font-weight: 800; 
  color: var(--gold); 
  font-family: 'Playfair Display', serif; 
}

.topperCard .scoreLabel { 
  font-size: 11px; 
  color: var(--muted); 
  text-transform: uppercase; 
  letter-spacing: 0.5px;
}


/* ── INDEX / EVENTS: EVENT CARDS ── */
.eventsGrid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 48px; }
.eventCard {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.eventCard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.eventCard.past { opacity: .65; }
.eventCardAccent { height: 5px; }
.acc-academic { background: linear-gradient(90deg,#1d4ed8,#3b82f6); }
.acc-cultural  { background: linear-gradient(90deg,#be185d,#ec4899); }
.acc-sports    { background: linear-gradient(90deg,#15803d,#22c55e); }
.acc-general   { background: linear-gradient(90deg,var(--gold),var(--gold2)); }
.eventCardTop { padding: 22px 22px 0; display: flex; gap: 16px; align-items: flex-start; }
.eventDate { background: var(--navy); color: #fff; border-radius: 10px; padding: 10px 14px; text-align: center; flex-shrink: 0; min-width: 52px; }
.eventDate .day { font-size: 22px; font-weight: 800; line-height: 1; }
.eventDate .mon { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--gold2); }
.eventInfo { flex: 1; }
.eventCat { display: inline-block; font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: .4px; text-transform: uppercase; margin-bottom: 6px; }
.cat-academic { background: #dbeafe; color: #1d4ed8; }
.cat-cultural  { background: #fce7f3; color: #be185d; }
.cat-sports    { background: #dcfce7; color: #15803d; }
.cat-general   { background: #fef3c7; color: #92400e; }
.upcomingBadge { display: inline-block; font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #dcfce7; color: #15803d; margin-left: 6px; }
.eventInfo h4 { font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.3; }
.eventCardBody { padding: 14px 22px 22px; flex: 1; }
.eventCardBody p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.eventLink { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--blue); margin-top: 10px; }
.eventLink:hover { color: var(--navy); text-decoration: underline; }

/* ── ABOUT: LAYOUT ── */
.aboutGrid { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.aboutBody p { font-size: 15px; color: var(--text); line-height: 1.8; margin-bottom: 16px; }
.sidebar { display: grid; gap: 20px; }
.sideCard { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; border-top: 4px solid var(--gold); }
.sideCard h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .4px; }
.glanceList { list-style: none; display: grid; gap: 10px; }
.glanceList li { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.glanceList li:last-child { border-bottom: none; padding-bottom: 0; }
.glanceList .val { font-weight: 700; color: var(--navy); }

/* ── ABOUT: PRINCIPAL CARD ── */
.principalCard { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; border-left: 5px solid var(--gold); display: flex; gap: 28px; align-items: flex-start; }
.principalAvatar { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg,var(--navy),var(--blue)); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; color: #fff; flex-shrink: 0; border: 3px solid var(--gold); }
.principalCard blockquote { font-size: 15px; color: var(--text); line-height: 1.8; font-style: italic; margin: 0 0 14px; }
.principalCard cite  { font-size: 13px; font-weight: 700; color: var(--navy); font-style: normal; }
.principalCard .desig { font-size: 12px; color: var(--muted); }

/* ── STAFF: DEPARTMENT ── */
.deptSection { margin-bottom: 48px; }
.deptHeader { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.deptHeader h3 { font-size: 17px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.deptHeader hr { flex: 1; border: none; border-top: 1px solid var(--line); }
.deptTag { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .4px; }
.staffGrid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.staffCard { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; text-align: center; transition: transform .2s, box-shadow .2s; }
.staffCard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.staffAvatar { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; color: #fff; margin: 0 auto 12px; }
.staffCard h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 3px; }
.staffCard .designation { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.staffCard .qual { font-size: 11px; color: var(--gold); font-weight: 600; }
/* Avatar colour helpers */
.av1{background:linear-gradient(135deg,#1a4a8a,#0d2b55);}
.av2{background:linear-gradient(135deg,#0f6b3c,#064d2a);}
.av3{background:linear-gradient(135deg,#7c3aed,#4c1d95);}
.av4{background:linear-gradient(135deg,#c8922a,#92400e);}
.av5{background:linear-gradient(135deg,#dc2626,#7f1d1d);}
.av6{background:linear-gradient(135deg,#0891b2,#164e63);}
.av7{background:linear-gradient(135deg,#059669,#064e3b);}
.av8{background:linear-gradient(135deg,#d97706,#78350f);}
.av9{background:linear-gradient(135deg,#7c3aed,#4c1d95);}
.av10{background:linear-gradient(135deg,#0d2b55,#1a4a8a);}
/* Dept tag colours */
.tag-sci{background:#dbeafe;color:#1d4ed8;}
.tag-math{background:#dcfce7;color:#15803d;}
.tag-eng{background:#fce7f3;color:#be185d;}
.tag-soc{background:#fef3c7;color:#92400e;}
.tag-comp{background:#ede9fe;color:#6d28d9;}
.tag-arts{background:#fee2e2;color:#dc2626;}
.tag-phy{background:#d1fae5;color:#065f46;}
.tag-pri{background:#fef9c3;color:#854d0e;}

/* ── GALLERY ── */
.galleryGrid { columns: 3; column-gap: 16px; }
.galleryItem { break-inside: avoid; margin-bottom: 16px; border-radius: var(--radius); overflow: hidden; cursor: pointer; position: relative; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.galleryItem:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.galleryItem img { width: 100%; display: block; }
.imgPlaceholder { width: 100%; display: flex; align-items: center; justify-content: center; font-size: 32px; color: rgba(255,255,255,.7); }
.h-sm{height:160px;} .h-md{height:220px;} .h-lg{height:280px;} .h-xl{height:340px;}
.g-campus{background:linear-gradient(135deg,#0d2b55,#1a4a8a);}
.g-academic{background:linear-gradient(135deg,#0f6b3c,#15803d);}
.g-facility{background:linear-gradient(135deg,#7c3aed,#6d28d9);}
.g-sports{background:linear-gradient(135deg,#dc2626,#b91c1c);}
.g-events{background:linear-gradient(135deg,#c8922a,#92400e);}
.caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent,rgba(13,43,85,.85)); color: #fff; padding: 20px 14px 12px; font-size: 13px; font-weight: 600; opacity: 0; transition: opacity .2s; }
.galleryItem:hover .caption { opacity: 1; }
.catTag { position: absolute; top: 10px; left: 10px; font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .4px; }
.tag-campus{background:rgba(13,43,85,.85);color:#fff;}
.tag-academic{background:rgba(15,107,60,.85);color:#fff;}
.tag-facility{background:rgba(124,58,237,.85);color:#fff;}
.tag-sports{background:rgba(220,38,38,.85);color:#fff;}
.tag-events{background:rgba(200,146,42,.90);color:#fff;}
/* Lightbox */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(10,20,40,.92); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.lightbox.open { display: flex; }
.lightboxInner { position: relative; max-width: 860px; width: 100%; background: var(--white); border-radius: 20px; overflow: hidden; box-shadow: 0 32px 80px rgba(0,0,0,.5); }
.lightboxImg { width: 100%; max-height: 70vh; object-fit: cover; display: block; }
.lightboxPlaceholder { width: 100%; height: 420px; display: flex; align-items: center; justify-content: center; font-size: 64px; }
.lightboxCaption { padding: 18px 24px; background: var(--white); }
.lightboxCaption h4 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.lightboxCaption p  { font-size: 13px; color: var(--muted); }
.lightboxClose { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; border: none; font-size: 18px; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* ── CBSE: INFO TABLE ── */
.infoCard { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 32px; margin-bottom: 36px; border-left: 5px solid var(--gold); }
.infoCard p { font-size: 14px; color: var(--muted); line-height: 1.7; }
.infoCard strong { color: var(--navy); }
.infoTable { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 48px; }
.infoTable th { background: var(--navy); color: #fff; padding: 14px 20px; text-align: left; font-size: 13px; font-weight: 700; letter-spacing: .3px; }
.infoTable td { padding: 13px 20px; font-size: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.infoTable tr:last-child td { border-bottom: none; }
.infoTable tr:nth-child(even) td { background: #f8faff; }
.infoTable td:first-child { font-weight: 600; color: var(--navy); width: 40%; }
/* CBSE: Document cards */
.docsGrid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-bottom: 48px; }
.docCard { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; display: flex; align-items: center; gap: 16px; transition: transform .2s, box-shadow .2s; border: 1px solid var(--line); }
.docCard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.docIcon { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg,#fee2e2,#fecaca); display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0; }
.docInfo { flex: 1; }
.docInfo h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; line-height: 1.3; }
.docInfo p  { font-size: 12px; color: var(--muted); }
.docDownload { display: inline-flex; align-items: center; gap: 6px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 600; padding: 7px 14px; border-radius: 8px; flex-shrink: 0; transition: background .18s; }
.docDownload:hover { background: var(--blue); }

/* ── CONTACT: LAYOUT ── */
.contactGrid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; margin-bottom: 56px; }
.infoCards { display: grid; gap: 16px; }
.infoCard-contact { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; display: flex; gap: 16px; align-items: flex-start; border-left: 4px solid var(--gold); }
.infoCard-contact .icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.infoCard-contact h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.infoCard-contact p, .infoCard-contact a { font-size: 13px; color: var(--muted); line-height: 1.6; }
.infoCard-contact a:hover { color: var(--blue); }
.hoursCard { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; border-left: 4px solid var(--blue); }
.hoursCard h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.hoursRow { display: flex; justify-content: space-between; font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hoursRow:last-child { border-bottom: none; }
.hoursRow .day  { color: var(--muted); }
.hoursRow .time { font-weight: 600; color: var(--navy); }
.mapCard { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.mapCard iframe { width: 100%; height: 340px; border: none; display: block; }
.mapCardFooter { padding: 16px 20px; display: flex; gap: 12px; flex-wrap: wrap; }
.btnNav { display: inline-flex; align-items: center; gap: 7px; background: var(--navy); color: #fff; font-size: 13px; font-weight: 600; padding: 9px 18px; border-radius: 9px; transition: background .18s; }
.btnNav:hover { background: var(--blue); }
.btnNavOutline { display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--navy); color: var(--navy); font-size: 13px; font-weight: 600; padding: 8px 17px; border-radius: 9px; transition: all .18s; }
.btnNavOutline:hover { background: var(--navy); color: #fff; }
/* Admission steps */
.stepsGrid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 56px; }
.stepCard { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 20px; text-align: center; }
.stepNum { width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 16px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.stepCard h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.stepCard p  { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .toppersGrid   { grid-template-columns: repeat(2,1fr); }
  .footerGrid    { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .heroInner { padding: 32px 0; }
  .heroInner > .container { flex-direction: column; border-radius: 16px; }
  .heroTextWrap { width: 100%; }
  .heroContent { padding: 40px 28px; }
  .noticeBoard {
    flex: none; width: 100%;
    border-left: none; border-top: 4px solid var(--gold);
  }
}
@media (max-width: 860px) {
  .topBar        { display: none; }
  .whyGrid       { grid-template-columns: 1fr; }
  .offeringsGrid { grid-template-columns: repeat(2,1fr); }
  .eventsGrid    { grid-template-columns: 1fr 1fr; }
  .statsBar      { grid-template-columns: repeat(2,1fr); }
  .statItem      { border-right: none; border-bottom: 1px solid var(--line); }
  .leaderGrid    { grid-template-columns: 1fr 1fr; }
  .featuresGrid  { grid-template-columns: repeat(2,1fr); }
  .staffGrid     { grid-template-columns: repeat(2,1fr); }
  .galleryGrid   { columns: 2; }
  .aboutGrid     { grid-template-columns: 1fr; }
  .docsGrid      { grid-template-columns: 1fr; }
  .contactGrid   { grid-template-columns: 1fr; }
  .stepsGrid     { grid-template-columns: repeat(2,1fr); }
  .footerGrid    { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .offeringsGrid { grid-template-columns: 1fr; }
  .toppersGrid   { grid-template-columns: repeat(2,1fr); }
  .eventsGrid    { grid-template-columns: 1fr; }
  .leaderGrid    { grid-template-columns: 1fr; }
  .featuresGrid  { grid-template-columns: 1fr; }
  .staffGrid     { grid-template-columns: 1fr 1fr; }
  .galleryGrid   { columns: 1; }
  .stepsGrid     { grid-template-columns: 1fr; }
  .footerGrid    { grid-template-columns: 1fr; }
  .principalCard { flex-direction: column; }
  .docCard       { flex-direction: column; align-items: flex-start; }
}
