/* ============================================================
   R.K.H.S. SCHOOL – MAIN STYLESHEET v2.0
   Heritage Academic + Modern Premium UI
   ============================================================ */

/* ----- GOOGLE FONTS ----- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;900&family=DM+Sans:wght@300;400;500;600&family=Noto+Sans+Devanagari:wght@400;600;700&display=swap');

/* ----- CSS VARIABLES ----- */
:root {
  --navy: #1A237E;
  --navy-dark: #0D1757;
  --navy-light: #283593;
  --gold: #FFB300;
  --gold-dark: #FF8F00;
  --gold-light: #FFD54F;
  --white: #FFFFFF;
  --off-white: #F8F9FF;
  --soft-gray: #F0F2FA;
  --text-dark: #1C1C2E;
  --text-mid: #3D3D5C;
  --text-light: #6B7080;
  --border: rgba(26,35,126,0.12);
  --shadow-sm: 0 2px 12px rgba(26,35,126,0.08);
  --shadow-md: 0 6px 30px rgba(26,35,126,0.14);
  --shadow-lg: 0 12px 50px rgba(26,35,126,0.18);
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
  --font-d: 'Playfair Display', Georgia, serif;
  --font-b: 'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --font-h: 'Noto Sans Devanagari', 'Mangal', sans-serif;
  --tr: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----- RESET ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-b); color: var(--text-dark); background: var(--white); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }
::selection { background: var(--gold-light); color: var(--navy-dark); }
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--navy-light); border-radius: 4px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* ----- CONTAINER ----- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ----- BUTTONS ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 13px 28px; border-radius: var(--r-sm);
  font-size: .9rem; font-weight: 600; letter-spacing: .4px;
  transition: var(--tr); cursor: pointer; border: 2px solid transparent;
  position: relative; overflow: hidden;
}
.btn-gold { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255,179,0,.4); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-dark); transform: translateY(-2px); }
.btn-outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline-white:hover { background: rgba(255,255,255,.15); border-color: var(--white); }
.btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* ----- SECTION HEADER ----- */
.section-header { margin-bottom: 48px; }
.section-header.centered { text-align: center; }
.section-tag { display: inline-block; background: var(--soft-gray); color: var(--navy); font-size: .72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; padding: 5px 14px; border-radius: 30px; margin-bottom: 12px; border: 1px solid var(--border); }
.section-title { font-family: var(--font-d); font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 700; color: var(--navy-dark); line-height: 1.2; }
.section-title::after { content: ''; display: block; width: 50px; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-dark)); border-radius: 2px; margin-top: 12px; }
.section-header.centered .section-title::after { margin: 12px auto 0; }
.section-subtitle { margin-top: 10px; color: var(--text-light); font-size: .95rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 1000; transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 4px 24px rgba(13,23,87,.28); }

.header-top {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  padding: 12px 0; border-bottom: 3px solid var(--gold);
}
.header-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.header-logo-block { display: flex; align-items: center; gap: 14px; }
.header-logo-img { width: 62px; height: 62px; object-fit: contain; border-radius: 50%; filter: drop-shadow(0 2px 10px rgba(255,215,0,.4)); border: 2px solid rgba(255,179,0,.4); background: rgba(255,255,255,.06); }
.header-text { color: var(--white); }
.sn-hindi { font-family: var(--font-h); font-size: clamp(.72rem, 1.8vw, .96rem); font-weight: 600; color: var(--gold-light); line-height: 1.4; margin-bottom: 2px; }
.sn-english { font-family: var(--font-d); font-size: clamp(.78rem, 2vw, 1.05rem); font-weight: 700; color: var(--white); line-height: 1.3; }
.udise-badge { margin-top: 5px; display: inline-block; background: rgba(255,179,0,.15); border: 1px solid rgba(255,179,0,.4); color: var(--gold-light); font-size: .7rem; font-weight: 700; padding: 2px 10px; border-radius: 20px; letter-spacing: .5px; }
.header-affil { display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.affil-tag { background: rgba(255,255,255,.1); color: var(--gold-light); font-size: .68rem; font-weight: 600; padding: 3px 10px; border-radius: 20px; border: 1px solid rgba(255,179,0,.3); white-space: nowrap; }

/* NAV */
.site-nav { background: var(--navy-dark); border-bottom: 1px solid rgba(255,179,0,.2); }
.nav-inner { display: flex; align-items: center; justify-content: center; position: relative; min-height: 50px; }
.nav-links { display: flex; gap: 0; }
.nav-link { display: block; padding: 14px 18px; color: rgba(255,255,255,.78); font-size: .87rem; font-weight: 500; letter-spacing: .3px; transition: var(--tr); position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 50%; right: 50%; height: 2px; background: var(--gold); transition: var(--tr); }
.nav-link:hover, .nav-link.active { color: var(--gold-light); }
.nav-link:hover::after, .nav-link.active::after { left: 10px; right: 10px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; position: absolute; right: 0; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--tr); }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero { position: relative; height: clamp(440px, 82vh, 760px); overflow: hidden; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .9s cubic-bezier(.4,0,.2,1); }
.slide.active { opacity: 1; z-index: 1; }
/* Slides use real photo on slide-1, gradients on rest */
.slide-1 { background: linear-gradient(135deg, #0D1757 0%, #1A237E 40%, #1565C0 100%); }
.slide-2 { background: linear-gradient(135deg, #1B2A4A 0%, #1A237E 45%, #3949AB 100%); }
.slide-3 { background: linear-gradient(135deg, #0a1628 0%, #1A237E 45%, #1565C0 100%); }
.slide-4 { background: linear-gradient(135deg, #1A237E 0%, #283593 45%, #0288D1 100%); }

/* School photo slide */
.slide-1.has-photo { background: none; }
.slide-1.has-photo .slide-bg-photo { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; z-index: 0; }
.slide-overlay { position: absolute; inset: 0; background: rgba(8,16,60,.55); z-index: 1; }

/* Decorative patterns */
.slide::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background-image:
    radial-gradient(circle at 15% 85%, rgba(255,179,0,.07) 0%, transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(255,255,255,.04) 0%, transparent 40%),
    repeating-linear-gradient(0deg, transparent, transparent 50px, rgba(255,255,255,.02) 50px, rgba(255,255,255,.02) 51px),
    repeating-linear-gradient(90deg, transparent, transparent 50px, rgba(255,255,255,.02) 50px, rgba(255,255,255,.02) 51px);
}
.slide-content { position: relative; z-index: 2; text-align: center; color: var(--white); padding: 0 24px; max-width: 840px; }
.slide-badge { display: inline-block; background: rgba(255,179,0,.2); border: 1px solid rgba(255,179,0,.55); color: var(--gold-light); font-size: .74rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; padding: 6px 18px; border-radius: 30px; margin-bottom: 18px; backdrop-filter: blur(4px); }
.slide-content h1 { font-family: var(--font-d); font-size: clamp(1.9rem, 5.5vw, 4rem); font-weight: 900; line-height: 1.12; margin-bottom: 18px; text-shadow: 0 3px 24px rgba(0,0,0,.4); }
.slide-tagline { font-size: clamp(.95rem, 2vw, 1.22rem); color: rgba(255,255,255,.88); margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Active slide animations */
.slide.active .slide-badge { animation: fadeUp .6s ease both .2s; }
.slide.active h1 { animation: fadeUp .7s ease both .38s; }
.slide.active .slide-tagline { animation: fadeUp .7s ease both .55s; }
.slide.active .hero-cta { animation: fadeUp .7s ease both .72s; }

.slider-controls { position: absolute; bottom: 28px; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 20px; z-index: 10; }
.slider-btn { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.15); backdrop-filter: blur(10px); color: var(--white); font-size: 1.4rem; display: flex; align-items: center; justify-content: center; transition: var(--tr); border: 1px solid rgba(255,255,255,.3); cursor: pointer; }
.slider-btn:hover { background: var(--gold); color: var(--navy-dark); transform: scale(1.1); }
.slider-dots { display: flex; gap: 8px; align-items: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); transition: var(--tr); cursor: pointer; }
.dot.active { background: var(--gold); width: 26px; border-radius: 4px; }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); padding: 34px 0; border-bottom: 2px solid rgba(255,179,0,.2); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.stat-item { text-align: center; color: var(--white); padding: 8px; }
.stat-num-wrap { display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.stat-num { font-family: var(--font-d); font-size: clamp(2rem,4vw,2.9rem); font-weight: 900; color: var(--gold); line-height: 1; }
.stat-suffix { font-family: var(--font-d); font-size: 1.6rem; font-weight: 700; color: var(--gold); }
.stat-label { font-size: .78rem; color: rgba(255,255,255,.65); margin-top: 5px; letter-spacing: .8px; text-transform: uppercase; }

/* ============================================================
   HOME: Notice + Photo
   ============================================================ */
.home-main { padding: 76px 0 48px; background: var(--off-white); }
.home-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-bottom: 68px; align-items: start; }

/* School photo */
.school-photo-wrap { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.school-photo-img { width: 100%; height: 390px; object-fit: cover; display: block; transition: transform .6s ease; }
.school-photo-wrap:hover .school-photo-img { transform: scale(1.03); }
.school-photo-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 28px 22px 18px; background: linear-gradient(to top, rgba(13,23,87,.9) 0%, transparent 100%); color: var(--white); text-align: center; }
.photo-school-name { font-family: var(--font-d); font-size: 1.2rem; font-weight: 700; color: var(--gold-light); }
.photo-sub { font-size: .8rem; color: rgba(255,255,255,.72); margin-top: 4px; }
.photo-badge-corner { position: absolute; top: 16px; right: 16px; background: var(--gold); color: var(--navy-dark); font-size: .68rem; font-weight: 700; padding: 4px 11px; border-radius: 20px; }
.image-caption { margin-top: 14px; padding: 14px 18px; background: var(--white); border-radius: var(--r-sm); box-shadow: var(--shadow-sm); }
.image-caption strong { display: block; color: var(--navy); font-size: .94rem; margin-bottom: 2px; }
.image-caption span { color: var(--text-light); font-size: .8rem; }

/* Notice Board */
.notice-board { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-md); overflow: hidden; }
.notice-header { display: flex; align-items: center; gap: 12px; padding: 17px 22px; background: linear-gradient(135deg, var(--navy-dark), var(--navy)); color: var(--white); }
.notice-icon { font-size: 1.4rem; }
.notice-header h2 { font-family: var(--font-d); font-size: 1.18rem; font-weight: 700; flex: 1; }
.live-dot { display: flex; align-items: center; gap: 6px; font-size: .73rem; font-weight: 600; color: #69F0AE; }
.live-dot span { width: 8px; height: 8px; border-radius: 50%; background: #69F0AE; animation: pulseDot 1.6s infinite; }
.notice-scroll-wrapper { height: 340px; overflow: hidden; position: relative; }
.notice-list { padding: 8px 16px; }
.notice-item { display: flex; flex-direction: column; gap: 5px; padding: 12px 0; border-bottom: 1px solid var(--border); transition: var(--tr); }
.notice-item:hover { background: var(--soft-gray); margin: 0 -16px; padding: 12px 16px; border-radius: var(--r-sm); }
.notice-item:last-child { border-bottom: none; }
.ntag { display: inline-block; font-size: .63rem; font-weight: 700; padding: 2px 9px; border-radius: 10px; letter-spacing: .5px; text-transform: uppercase; width: fit-content; }
.nt-urgent { background: #FFEBEE; color: #C62828; }
.nt-admission { background: #E8F5E9; color: #2E7D32; }
.nt-event { background: #E3F2FD; color: #1565C0; }
.nt-result { background: #FFF3E0; color: #E65100; }
.nt-info { background: #F3E5F5; color: #6A1B9A; }
.notice-text { color: var(--text-dark); font-size: .84rem; line-height: 1.55; }
.notice-date { color: var(--text-light); font-size: .7rem; font-weight: 500; }

/* Events */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px,1fr)); gap: 20px; }
.event-card { background: var(--white); border-radius: var(--r-md); padding: 20px; display: flex; gap: 18px; align-items: flex-start; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: var(--tr); }
.event-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(26,35,126,.22); }
.event-date-box { flex-shrink: 0; background: var(--navy); color: var(--white); border-radius: var(--r-sm); padding: 10px 13px; text-align: center; min-width: 54px; }
.event-day { display: block; font-family: var(--font-d); font-size: 1.55rem; font-weight: 900; color: var(--gold); line-height: 1; }
.event-month { display: block; font-size: .62rem; font-weight: 700; letter-spacing: 1.2px; opacity: .82; margin-top: 2px; }
.event-info h3 { font-size: .93rem; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.event-info p { font-size: .79rem; color: var(--text-mid); line-height: 1.55; margin-bottom: 8px; }
.event-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: .72rem; color: var(--text-light); font-weight: 500; }

/* ============================================================
   PRINCIPAL'S MESSAGE (Homepage)
   ============================================================ */
.principal-section { padding: 80px 0; background: var(--white); }
.principal-card { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; background: linear-gradient(135deg, var(--soft-gray) 0%, var(--off-white) 100%); border-radius: var(--r-xl); padding: 48px; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.principal-photo-wrap { text-align: center; }
.principal-photo-img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; object-position: center top; border: 4px solid #f0a500; box-shadow: 0 8px 32px rgba(26,35,126,.2); margin: 0 auto 16px; display: block; }.principal-photo-placeholder { width: 200px; height: 200px; border-radius: 50%; background: linear-gradient(135deg, var(--navy-dark), var(--navy)); display: flex; align-items: center; justify-content: center; font-family: var(--font-d); font-size: 3rem; font-weight: 700; color: var(--gold); border: 5px solid var(--white); box-shadow: 0 8px 32px rgba(26,35,126,.2); margin: 0 auto 16px; }
.principal-name { font-family: var(--font-d); font-size: 1.1rem; font-weight: 700; color: var(--navy-dark); }
.principal-title { font-size: .8rem; color: var(--text-light); margin-top: 4px; font-weight: 500; }
.principal-sign { width: 120px; margin: 12px auto 0; opacity: .5; }
.principal-message h3 { font-family: var(--font-d); font-size: 1.5rem; font-weight: 700; color: var(--navy-dark); margin-bottom: 18px; }
.principal-message h3 span { color: var(--gold-dark); }
.principal-quote { font-size: 1.1rem; font-style: italic; color: var(--navy-light); font-family: var(--font-d); line-height: 1.6; margin-bottom: 20px; padding-left: 18px; border-left: 4px solid var(--gold); }
.principal-message p { font-size: .92rem; color: var(--text-mid); line-height: 1.82; margin-bottom: 14px; }
.principal-more-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-section { padding: 82px 0; background: var(--white); position: relative; overflow: hidden; }
.about-top-bar { position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--navy), var(--gold), var(--navy-light), var(--gold-dark), var(--navy)); }
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: start; }
.about-lead { font-family: var(--font-d); font-size: 1.14rem; color: var(--navy); line-height: 1.65; margin-bottom: 16px; }
.about-text p { color: var(--text-mid); line-height: 1.82; margin-bottom: 14px; font-size: .94rem; }
.about-highlights { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.highlight-item { display: flex; align-items: center; gap: 14px; }
.hi-icon { font-size: 1.5rem; width: 46px; height: 46px; background: var(--soft-gray); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: var(--tr); }
.highlight-item:hover .hi-icon { background: var(--navy); }
.highlight-item strong { display: block; color: var(--navy); font-weight: 600; font-size: .88rem; }
.highlight-item small { color: var(--text-light); font-size: .76rem; }
.about-vision-box { display: flex; flex-direction: column; gap: 18px; }
.vision-card { background: var(--soft-gray); border-radius: var(--r-md); padding: 22px; border-left: 4px solid var(--gold); transition: var(--tr); }
.vision-card:hover { background: var(--navy); transform: translateX(7px); }
.vision-card:hover h3 { color: var(--gold-light); }
.vision-card:hover p { color: rgba(255,255,255,.82); }
.v-icon { font-size: 1.7rem; margin-bottom: 10px; }
.vision-card h3 { font-family: var(--font-d); font-size: 1.07rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; transition: var(--tr); }
.vision-card p { font-size: .86rem; color: var(--text-mid); line-height: 1.62; transition: var(--tr); }

/* ============================================================
   FACILITIES
   ============================================================ */
.facilities-section { padding: 80px 0; background: var(--soft-gray); }
.facilities-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.facility-card { background: var(--white); border-radius: var(--r-md); padding: 30px 24px; text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: var(--tr); }
.facility-card:hover { transform: translateY(-9px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.facility-card:hover .fac-icon { background: var(--navy); transform: scale(1.12) rotate(-5deg); }
.fac-icon { font-size: 2.3rem; width: 72px; height: 72px; background: var(--soft-gray); border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; transition: var(--tr); }
.facility-card h3 { font-family: var(--font-d); font-size: 1.04rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.facility-card p { font-size: .83rem; color: var(--text-mid); line-height: 1.62; }

/* ============================================================
   ACADEMICS
   ============================================================ */
.academics-section { padding: 80px 0; background: var(--white); }
.academics-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.academic-card { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); transition: var(--tr); }
.academic-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.ac-header { padding: 26px 22px; }
.ac-secondary { background: linear-gradient(135deg, #0D1757, #1A237E); }
.ac-arts { background: linear-gradient(135deg, #4A148C, #7B1FA2); }
.ac-science { background: linear-gradient(135deg, #1565C0, #0288D1); }
.ac-level { color: rgba(255,255,255,.72); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px; }
.ac-classes { font-family: var(--font-d); color: var(--white); font-size: 1.24rem; font-weight: 700; }
.ac-body { padding: 22px; background: var(--white); }
.ac-desc { font-size: .84rem; color: var(--text-mid); line-height: 1.62; margin-bottom: 16px; }
.subject-list { display: flex; flex-wrap: wrap; gap: 7px; }
.stag { background: var(--soft-gray); color: var(--navy); font-size: .73rem; font-weight: 600; padding: 4px 12px; border-radius: 20px; border: 1px solid var(--border); transition: var(--tr); }
.stag:hover { background: var(--navy); color: var(--white); }

/* ============================================================
   EXTERNAL LINKS
   ============================================================ */
.links-section { padding: 66px 0; background: var(--navy-dark); }
.links-section .section-tag { background: rgba(255,179,0,.15); border-color: rgba(255,179,0,.3); color: var(--gold-light); }
.links-section .section-title { color: var(--white); }
.links-section .section-title::after { background: var(--gold); }
.links-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; }
.ext-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.11); border-radius: var(--r-md); padding: 22px 14px; text-align: center; color: var(--white); transition: var(--tr); display: block; }
.ext-card:hover { background: var(--gold); color: var(--navy-dark); transform: translateY(-5px); border-color: var(--gold); }
.ext-card:hover .ext-icon { transform: scale(1.15); }
.ext-icon { font-size: 2.1rem; margin-bottom: 10px; display: block; transition: var(--tr); }
.ext-name { font-weight: 700; font-size: .83rem; margin-bottom: 4px; }
.ext-desc { font-size: .7rem; opacity: .62; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { padding: 80px 0; background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.contact-info-col { display: flex; flex-direction: column; gap: 14px; }
.contact-card { display: flex; align-items: flex-start; gap: 14px; background: var(--soft-gray); border-radius: var(--r-md); padding: 18px 20px; transition: var(--tr); }
.contact-card:hover { background: var(--navy); transform: translateX(5px); }
.contact-card:hover h4 { color: var(--gold-light); }
.contact-card:hover p, .contact-card:hover a { color: rgba(255,255,255,.8); }
.cc-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.contact-card h4 { font-size: .77rem; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; transition: var(--tr); }
.contact-card p { font-size: .87rem; color: var(--text-mid); line-height: 1.5; transition: var(--tr); }
.contact-link { color: var(--navy); font-weight: 600; font-size: .93rem; transition: var(--tr); }
.map-container { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.map-caption { margin-top: 11px; font-size: .8rem; color: var(--text-light); text-align: center; }
.map-caption a { color: var(--navy); font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy-dark); color: var(--white); padding: 60px 0 0; position: relative; }
.site-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-dark), var(--gold)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-logo-block { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-logo-img { width: 48px; height: 48px; border-radius: 50%; object-fit: contain; border: 2px solid rgba(255,179,0,.3); }
.footer-logo-text { font-family: var(--font-d); font-size: 1.6rem; font-weight: 900; color: var(--gold); }
.footer-school-full { font-size: .78rem; color: rgba(255,255,255,.6); line-height: 1.45; }
.footer-tagline { margin-top: 10px; font-size: .8rem; color: rgba(255,255,255,.4); font-style: italic; }
.footer-udise { margin-top: 10px; display: inline-block; background: rgba(255,179,0,.15); border: 1px solid rgba(255,179,0,.3); color: var(--gold-light); font-size: .7rem; padding: 3px 10px; border-radius: 20px; font-weight: 600; }
.footer-col h4 { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--gold-light); margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: .83rem; color: rgba(255,255,255,.58); transition: var(--tr); }
.footer-links a:hover { color: var(--gold-light); padding-left: 5px; }
.footer-contact-list { display: flex; flex-direction: column; gap: 10px; font-size: .8rem; color: rgba(255,255,255,.58); line-height: 1.5; }
.footer-contact-list a { color: rgba(255,255,255,.58); transition: var(--tr); }
.footer-contact-list a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 18px 0; font-size: .73rem; color: rgba(255,255,255,.38); }

/* ============================================================
   INNER PAGE HERO (for staff, gallery, admission pages)
   ============================================================ */
.page-hero { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%); padding: 60px 0; text-align: center; color: var(--white); position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, transparent, transparent 30px, rgba(255,255,255,.015) 30px, rgba(255,255,255,.015) 31px); }
.page-hero-content { position: relative; z-index: 1; }
.page-hero-logo { width: 70px; height: 70px; border-radius: 50%; object-fit: contain; border: 2px solid rgba(255,179,0,.4); margin: 0 auto 16px; display: block; }
.page-hero h1 { font-family: var(--font-d); font-size: clamp(1.6rem,3.5vw,2.6rem); font-weight: 900; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.78); font-size: 1rem; }
.page-breadcrumb { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: .8rem; color: rgba(255,255,255,.55); }
.page-breadcrumb a { color: var(--gold-light); }
.page-breadcrumb span { opacity: .5; }

/* ============================================================
   STAFF PAGE
   ============================================================ */
.staff-page-section { padding: 72px 0; background: var(--soft-gray); }
.staff-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-btn { padding: 8px 18px; border-radius: 30px; font-size: .81rem; font-weight: 600; border: 2px solid var(--border); background: var(--white); color: var(--text-mid); transition: var(--tr); cursor: pointer; }
.filter-btn.active, .filter-btn:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.staff-search-input { padding: 9px 18px; border-radius: 30px; border: 2px solid var(--border); background: var(--white); width: 260px; outline: none; font-size: .87rem; transition: var(--tr); }
.staff-search-input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,35,126,.09); }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 22px; }

/* Staff Card with round photo */
.staff-card { background: var(--white); border-radius: var(--r-md); padding: 28px 22px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: var(--tr); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.staff-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(26,35,126,.2); }
.staff-photo-wrap { position: relative; margin-bottom: 4px; }
.staff-photo { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 3px solid var(--white); box-shadow: 0 4px 16px rgba(26,35,126,.18); display: block; }
.staff-avatar { width: 90px; height: 90px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-d); font-size: 1.8rem; font-weight: 700; color: var(--white); box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.staff-role-ring { position: absolute; inset: -4px; border-radius: 50%; border: 3px solid transparent; }
.ring-principal { border-color: var(--gold); }
.ring-pgt { border-color: #2E7D32; }
.ring-tgt { border-color: #1565C0; }
.ring-librarian { border-color: #6A1B9A; }
.ring-clerk { border-color: #BF360C; }
.s-badge { display: inline-block; font-size: .63rem; font-weight: 700; padding: 3px 10px; border-radius: 10px; letter-spacing: .5px; text-transform: uppercase; }
.b-principal { background: #FFF8E1; color: #F57F17; }
.b-pgt { background: #E8F5E9; color: #2E7D32; }
.b-tgt { background: #E3F2FD; color: #1565C0; }
.b-librarian { background: #F3E5F5; color: #6A1B9A; }
.b-clerk { background: #FBE9E7; color: #BF360C; }
.s-name { font-family: var(--font-d); font-size: 1rem; font-weight: 700; color: var(--navy-dark); line-height: 1.3; }
.s-details { display: flex; flex-direction: column; gap: 5px; font-size: .8rem; width: 100%; }
.s-row { display: flex; gap: 8px; color: var(--text-mid); align-items: flex-start; }
.s-contact { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); width: 100%; }
.s-contact-btn { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 14px; border-radius: var(--r-sm); font-size: .78rem; font-weight: 600; transition: var(--tr); text-decoration: none; }
.btn-call { background: var(--soft-gray); color: var(--navy); border: 1px solid var(--border); }
.btn-call:hover { background: var(--navy); color: var(--white); }
.btn-mail { background: var(--soft-gray); color: #C62828; border: 1px solid var(--border); }
.btn-mail:hover { background: #C62828; color: var(--white); }
.no-staff { text-align: center; color: var(--text-light); padding: 48px 0; font-size: 1rem; }

/* ============================================================
   GALLERY PAGE
   ============================================================ */
.gallery-page-section { padding: 72px 0; background: var(--soft-gray); }
.gallery-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.gitem:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gitem:nth-child(5) { grid-column: span 2; }
.gitem { border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.gimg { position: relative; width: 100%; height: 175px; cursor: pointer; overflow: hidden; }
.gitem:nth-child(1) .gimg, .gitem:nth-child(5) .gimg { height: 100%; min-height: 215px; }
.gimg-inner { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; display: block; }
.gimg:hover .gimg-inner { transform: scale(1.08); }
.gimg-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; opacity: .25; }
.gi-1 { background: linear-gradient(145deg,#0D1757,#1A237E,#283593); }
.gi-2 { background: linear-gradient(145deg,#1565C0,#0288D1); }
.gi-3 { background: linear-gradient(145deg,#1B5E20,#388E3C); }
.gi-4 { background: linear-gradient(145deg,#4A148C,#7B1FA2); }
.gi-5 { background: linear-gradient(145deg,#E65100,#F57C00); }
.gi-6 { background: linear-gradient(145deg,#006064,#00838F); }
.gi-7 { background: linear-gradient(145deg,#880E4F,#C2185B); }
.gi-8 { background: linear-gradient(145deg,#33691E,#558B2F); }
.g-label { position: absolute; bottom: 0; left: 0; right: 0; padding: 22px 14px 10px; background: linear-gradient(to top, rgba(0,0,0,.65),transparent); color: var(--white); font-size: .78rem; font-weight: 600; z-index: 2; }
.g-overlay { position: absolute; inset: 0; background: rgba(26,35,126,.8); display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--tr); z-index: 3; }
.g-overlay span { color: var(--white); font-size: .9rem; font-weight: 600; }
.gimg:hover .g-overlay { opacity: 1; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 9999; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; }
.lightbox.open { opacity: 1; pointer-events: all; }
.lightbox-img { max-width: 90vw; max-height: 85vh; border-radius: var(--r-md); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close { position: absolute; top: 20px; right: 24px; color: var(--white); font-size: 2rem; cursor: pointer; opacity: .7; transition: var(--tr); background: none; border: none; }
.lightbox-close:hover { opacity: 1; transform: scale(1.2); }
.lightbox-caption { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); font-size: .9rem; }

/* ============================================================
   ADMISSION PAGE
   ============================================================ */
.admission-page-section { padding: 72px 0; background: var(--off-white); }
.admission-wrapper { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; }
.admission-info { background: linear-gradient(145deg, var(--navy-dark), var(--navy)); color: var(--white); border-radius: var(--r-lg); padding: 28px 24px; position: sticky; top: 110px; }
.admission-info h3 { font-family: var(--font-d); font-size: 1.15rem; font-weight: 700; margin-bottom: 20px; color: var(--gold-light); }
.adm-steps { padding-left: 18px; display: flex; flex-direction: column; gap: 14px; }
.adm-steps li { font-size: .85rem; line-height: 1.65; color: rgba(255,255,255,.85); }
.adm-steps li strong { color: var(--gold-light); display: block; margin-bottom: 3px; }
.adm-steps ul { padding-left: 16px; margin-top: 5px; list-style: disc; }
.adm-steps ul li { margin-bottom: 3px; font-size: .8rem; }
.adm-contact { margin-top: 22px; padding: 16px; background: rgba(255,255,255,.08); border-radius: var(--r-sm); border: 1px solid rgba(255,179,0,.3); }
.adm-contact h4 { font-size: .87rem; font-weight: 700; color: var(--gold-light); margin-bottom: 8px; }
.adm-contact p { font-size: .8rem; color: rgba(255,255,255,.8); margin-bottom: 4px; }

/* Form Card */
.adm-form-card { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border); overflow: hidden; }
.form-hdr { background: linear-gradient(135deg, var(--navy-dark), var(--navy)); padding: 20px 28px; border-bottom: 3px solid var(--gold); }
.form-school-row { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.form-hdr-logo { width: 54px; height: 54px; border-radius: 50%; object-fit: contain; border: 2px solid rgba(255,179,0,.4); flex-shrink: 0; }
.form-sname { font-family: var(--font-d); color: var(--white); font-size: 1rem; font-weight: 700; }
.form-ssub { color: rgba(255,255,255,.68); font-size: .73rem; margin-top: 2px; }
.form-udise-tag { color: var(--gold-light); font-size: .7rem; font-weight: 600; margin-top: 3px; }
.form-title-blk { text-align: center; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.12); }
.form-title { font-family: var(--font-d); color: var(--gold); font-size: 1.1rem; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.form-session { color: rgba(255,255,255,.68); font-size: .78rem; margin-top: 3px; }

/* Form sections */
.form-section { padding: 22px 28px; border-bottom: 1px solid var(--border); }
.form-section:last-child { border-bottom: none; }
.form-section-title { font-family: var(--font-d); font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.form-section-title::before { content: ''; display: block; width: 4px; height: 18px; background: var(--gold); border-radius: 2px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.form-row:last-child { margin-bottom: 0; }
.form-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-row.cols-1 { grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: .78rem; font-weight: 600; color: var(--navy); letter-spacing: .2px; }
.req { color: #C62828; }
.opt { color: var(--text-light); font-weight: 400; }
.form-group input, .form-group select, .form-group textarea {
  padding: 10px 14px; border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-size: .87rem; color: var(--text-dark); background: var(--white); transition: var(--tr); outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(26,35,126,.08); }
.form-group textarea { resize: vertical; }
.form-group input.error { border-color: #C62828; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; padding: 22px 28px; background: var(--soft-gray); border-top: 1px solid var(--border); }

/* Photo upload placeholder */
.photo-upload-box { width: 100px; height: 120px; border: 2px dashed var(--border); border-radius: var(--r-sm); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: var(--tr); font-size: .72rem; color: var(--text-light); text-align: center; gap: 6px; }
.photo-upload-box:hover { border-color: var(--navy); background: var(--soft-gray); }

/* Print overlay */
.print-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.8); z-index: 9999; display: flex; flex-direction: column; align-items: center; padding: 30px 16px; overflow-y: auto; backdrop-filter: blur(6px); }
.print-close { position: sticky; top: 0; align-self: flex-end; background: var(--navy); color: var(--white); padding: 8px 18px; border-radius: 30px; font-size: .84rem; font-weight: 600; cursor: pointer; margin-bottom: 16px; z-index: 2; border: 1px solid rgba(255,255,255,.2); transition: var(--tr); }
.print-close:hover { background: var(--gold); color: var(--navy-dark); }
.print-sheet { background: white; width: 100%; max-width: 820px; padding: 36px 44px; border-radius: var(--r-sm); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
@media print { body > *:not(.print-overlay) { display: none; } .print-overlay { position: static; background: none; padding: 0; } .print-close { display: none; } .print-sheet { box-shadow: none; padding: 0; } }

/* Toast */
.rkhs-toast { position: fixed; top: 24px; right: 24px; z-index: 9998; max-width: 370px; padding: 14px 20px; border-radius: 10px; font-size: .87rem; font-weight: 600; box-shadow: 0 4px 24px rgba(0,0,0,.15); animation: slideDown .3s ease; display: flex; align-items: center; gap: 10px; }
.rkhs-toast button { background: none; border: none; cursor: pointer; font-size: .9rem; opacity: .6; margin-left: auto; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .links-grid { grid-template-columns: repeat(3,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .home-two-col { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .facilities-grid { grid-template-columns: repeat(2,1fr); }
  .academics-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .admission-wrapper { grid-template-columns: 1fr; }
  .principal-card { grid-template-columns: 1fr; text-align: center; }
  .principal-quote { text-align: left; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
  .gitem:nth-child(1) { grid-column: span 2; }
  .gitem:nth-child(5) { grid-column: span 2; }
}
@media (max-width: 700px) {
  .header-affil { display: none; }
  .nav-toggle { display: flex; }
  .nav-links { flex-direction: column; gap: 0; width: 100%; display: none; background: var(--navy-dark); }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 24px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-link::after { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .form-row.cols-3 { grid-template-columns: 1fr; }
  .links-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .staff-controls { flex-direction: column; align-items: stretch; }
  .staff-search-input { width: 100%; }
  .facilities-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .facilities-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gitem:nth-child(1), .gitem:nth-child(5) { grid-column: span 1; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}
