/* ============================================================
   School CMS - Main Stylesheet
   Pixel-perfect layout for school website
   ============================================================ */

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

/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  /* ── Royal Blue + Golden Amber Palette ──────────────────── */
  --primary:        #1D4ED8;   /* Royal Blue 700 — nav, buttons, links    */
  --primary-dark:   #1E40AF;   /* Blue 800 — hover states                 */
  --primary-light:  #3B82F6;   /* Blue 500 — light highlights             */
  --secondary:      #1E3A8A;   /* Deep Navy Blue 900 — top bar, footer   */
  --secondary-light:#1D4ED8;   /* Blue 700 — lighter secondary            */
  --accent:         #F59E0B;   /* Golden Amber — badges, CTAs, notice    */
  --accent-dark:    #D97706;   /* Amber 600 — hover on accent             */
  --white:          #ffffff;
  --off-white:      #EFF6FF;   /* Very light blue tint                    */
  --light-gray:     #ecf0f1;
  --mid-gray:       #bdc3c7;
  --dark-gray:      #7f8c8d;
  --text-dark:      #0F172A;   /* Very dark blue-black text               */
  --text-mid:       #1E3A5F;   /* Dark blue text                          */
  --text-light:     #64748B;   /* Slate gray                              */
  --border:         #BFDBFE;   /* Light blue border                       */
  --shadow-sm:      0 2px 8px rgba(29,78,216,0.08);
  --shadow-md:      0 4px 20px rgba(29,78,216,0.14);
  --shadow-lg:      0 8px 40px rgba(29,78,216,0.18);
  --radius-sm:      4px;
  --radius-md:      8px;
  --radius-lg:      12px;
  --transition:     all 0.3s ease;
  --font-main:      'Poppins', sans-serif;
  --font-body:      'Roboto', sans-serif;
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 15px; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 15px; }
.section-padding { padding: 60px 0; }

/* ─── TOP INFORMATION BAR ───────────────────────────────────── */
.top-bar {
  background: var(--secondary);
  color: rgba(255,255,255,0.92);
  padding: 7px 0;
  font-size: 12.5px;
  font-family: var(--font-main);
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-item i {
  color: var(--accent);
  font-size: 12px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-social-links a {
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--white);
  transition: var(--transition);
}

.top-social-links a:hover { background: var(--accent); }

.top-bar-admission {
  background: var(--primary);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: var(--transition);
}

.top-bar-admission:hover { background: var(--primary-dark); }

/* ─── HEADER ────────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  position: relative;
  z-index: 100;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  padding: 10px 0;
  gap: 20px;
  min-height: 150px;
}

/* Logo (both left and right) — image only, no text beside */
.logo-area {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-area-right { flex-shrink: 0; }

.logo-placeholder {
  width: 160px;   /* mirrors the logo image width so grid stays symmetric */
  height: 160px;
  flex-shrink: 0;
}

.logo-img {
  width: 160px;
  height: 160px;
  min-width: 160px;
  object-fit: contain;
  border-radius: 0;
  border: none;
  padding: 0;
  background: transparent;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.12));
}

/* Center school-name text block */
.logo-center-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  min-width: 0;
  line-height: 1.3;
  padding: 0 10px;
}

.logo-center-text .school-name {
  font-family: var(--font-main);
  font-size: clamp(15px, 2vw, 26px);
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.3px;
  line-height: 1.2;
  display: block;
}

.logo-center-text .school-tagline {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.4px;
  display: block;
  margin-top: 6px;
}

.logo-center-text .school-affiliation {
  font-size: 11.5px;
  color: var(--dark-gray);
  margin-top: 4px;
  display: block;
}

/* Keep old .logo-text selector working (used elsewhere if any) */
.logo-text { line-height: 1.3; min-width: 0; }
.logo-text .school-name  { font-family:var(--font-main);font-size:clamp(16px,1.7vw,24px);font-weight:800;color:var(--secondary);letter-spacing:-0.3px;line-height:1.2;display:block; }
.logo-text .school-tagline  { font-size:12.5px;color:var(--primary);font-weight:600;letter-spacing:.4px;display:block;margin-top:4px; }
.logo-text .school-affiliation { font-size:11px;color:var(--dark-gray);margin-top:3px;display:block; }

/* Header Info Boxes */
.header-info-boxes {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

.header-info-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: var(--off-white);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary);
  white-space: nowrap;
}

.header-info-box .icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 13px;
  flex-shrink: 0;
}

.header-info-box .info-text span {
  display: block;
  font-size: 9.5px;
  color: var(--dark-gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.header-info-box .info-text strong {
  font-size: 12px;
  color: var(--text-dark);
  font-weight: 700;
  display: block;
}

/* ─── NAVIGATION BAR ───────────────────────────────────────────────── */
.navbar {
  background: var(--primary);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  overflow: visible;
}

.navbar .container {
  max-width: 100%;
  padding: 0 10px;
  overflow: visible;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  overflow: visible;
}

.nav-list {
  display: flex;
  align-items: stretch;
  list-style: none;
  flex-wrap: nowrap;
  overflow: visible;
  flex: 1;
  justify-content: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 12px 7px;
  color: var(--white);
  font-family: var(--font-main);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
  letter-spacing: 0;
}

.nav-link:hover,
.nav-item.active > .nav-link {
  background: var(--primary-dark);
  color: var(--white);
}

.nav-arrow {
  font-size: 8px;
  margin-left: 1px;
  transition: transform 0.3s;
}

.nav-item:hover .nav-arrow { transform: rotate(180deg); }

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--primary);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 9999;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.dropdown-menu li:last-child > a { border-bottom: none; }

.dropdown-menu li > a:hover {
  background: var(--primary);
  color: var(--white);
  padding-left: 24px;
}

/* Sub-dropdown */
.dropdown-menu .has-submenu { position: relative; }

.dropdown-menu .submenu {
  position: absolute;
  left: 100%;
  top: 0;
  background: var(--white);
  min-width: 200px;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--primary);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 9999;
}

.dropdown-menu .has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
}

.dropdown-menu .submenu li > a {
  padding: 9px 16px;
  font-size: 12.5px;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* Nav Search */
.nav-search-btn {
  padding: 13px 12px;
  color: var(--white);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.nav-search-btn:hover { background: var(--primary-dark); }

/* ─── NOTICE BOARD ────────────────────────────────────────────────── */
.notice-board {
  background: var(--secondary);
  border-top: none;
  border-bottom: none;
}

.notice-board .container {
  display: flex;
  align-items: stretch;
  min-height: 38px;
}

.notice-label {
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 11.5px;
  font-weight: 700;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.notice-ticker-wrap {
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 15px;
}

.notice-ticker {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
}

.notice-ticker:hover { animation-play-state: paused; }

.notice-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px 0 0;
  font-size: 13px;
  color: #ffffff;
  font-weight: 400;
}

.notice-item .new-badge {
  background: var(--primary);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  text-transform: uppercase;
}

.notice-item a { color: #FDE68A; font-weight: 600; }
.notice-item a:hover { color: var(--white); text-decoration: underline; }
.notice-item span { color: #ffffff; }

.notice-separator {
  color: var(--accent);
  margin: 0 12px;
  font-size: 12px;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── PRINCIPAL WISHES / QUOTE STRIP ────────────────────────── */
.wishes-strip {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  padding: 10px 0;
  overflow: hidden;
}

.wishes-strip .container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.wishes-label {
  background: var(--primary);
  color: var(--white);
  padding: 5px 16px;
  border-radius: 20px;
  font-family: var(--font-main);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.wishes-text {
  color: rgba(255,255,255,0.95);
  font-size: 13px;
  font-style: italic;
  font-family: var(--font-main);
  animation: wishes-fade 8s ease-in-out infinite alternate;
}

@keyframes wishes-fade {
  0%   { opacity: 0.8; }
  100% { opacity: 1; }
}

/* ─── HERO SLIDER ───────────────────────────────────────────── */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 480px;
  background: #111;
}

.slides-wrapper {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.77, 0, 0.175, 1);
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  flex-shrink: 0;
}

.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
}

.slide-content {
  position: absolute;
  bottom: 60px;
  left: 60px;
  max-width: 520px;
  color: var(--white);
  animation: slideUp 0.8s ease forwards;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.slide-content h2 {
  font-family: var(--font-main);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

.slide-content p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 22px;
  opacity: 0.95;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

.slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--primary);
  color: var(--white);
  border-radius: 30px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(29,78,216,0.35);
}

.slide-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* Slider Controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50%;
  color: var(--white);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.slider-btn:hover { background: var(--primary); border-color: var(--primary); }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.slider-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active { background: var(--white); transform: scale(1.3); }

/* ─── FEATURE CARDS ─────────────────────────────────────────── */
.feature-cards-section {
  background: var(--off-white);
  padding: 35px 0;
  border-bottom: 3px solid var(--border);
}

.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--primary);
  transition: var(--transition);
  cursor: pointer;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--secondary);
}

.feature-card:nth-child(2) { border-top-color: var(--secondary); }
.feature-card:nth-child(3) { border-top-color: var(--accent); }
.feature-card:nth-child(4) { border-top-color: #27ae60; }

.feature-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--white);
  transition: var(--transition);
}

.feature-card:nth-child(2) .feature-card-icon { background: linear-gradient(135deg, var(--secondary), var(--secondary-light)); }
.feature-card:nth-child(3) .feature-card-icon { background: linear-gradient(135deg, var(--accent-dark), var(--accent)); }
.feature-card:nth-child(4) .feature-card-icon { background: linear-gradient(135deg, #219a52, #27ae60); }

.feature-card:hover .feature-card-icon { transform: scale(1.1) rotate(5deg); }

.feature-card h3 {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.feature-card p {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
}

/* ─── MAIN CONTENT AREA ─────────────────────────────────────── */
.main-content-area {
  padding: 35px 0;
  background: var(--white);
}

.main-content-area .container {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 30px;
  align-items: start;
}

/* ─── SECTION HEADINGS ──────────────────────────────────────── */
.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  position: relative;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background: var(--primary);
}

.section-heading h2, .section-heading h3 {
  font-family: var(--font-main);
  font-size: 17px;
  font-weight: 700;
  color: var(--secondary);
  white-space: nowrap;
}

.section-heading .heading-icon {
  width: 34px;
  height: 34px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 14px;
  flex-shrink: 0;
}

.view-all-link {
  margin-left: auto;
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.view-all-link:hover { color: var(--primary-dark); }

/* ─── DOWNLOADS SECTION ─────────────────────────────────────── */
.downloads-section { margin-bottom: 30px; }

.download-list { display: flex; flex-direction: column; gap: 8px; }

.download-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--secondary);
  transition: var(--transition);
}

.download-item:hover {
  background: #DBEAFE;
  border-left-color: var(--primary);
  transform: translateX(4px);
}

.download-item .dl-icon {
  width: 38px;
  height: 38px;
  background: var(--secondary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 16px;
  flex-shrink: 0;
  transition: var(--transition);
}

.download-item:hover .dl-icon { background: var(--primary); }

.download-item .dl-info { flex: 1; min-width: 0; }

.download-item .dl-info h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.download-item .dl-info span {
  font-size: 11px;
  color: var(--text-light);
}

.dl-download-btn {
  background: var(--primary);
  color: var(--white);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  transition: var(--transition);
}

.dl-download-btn:hover { background: var(--primary-dark); color: var(--white); }

/* ─── LATEST ANNOUNCEMENTS ──────────────────────────────────── */
.announcements-section { margin-bottom: 30px; }

.announcement-list { display: flex; flex-direction: column; gap: 12px; }

.announcement-item {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.announcement-item:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.announcement-date {
  text-align: center;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  min-width: 52px;
  flex-shrink: 0;
}

.announcement-date .day {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  font-family: var(--font-main);
}

.announcement-date .month {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
}

.announcement-body h4 {
  font-family: var(--font-main);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
  line-height: 1.4;
}

.announcement-body p {
  font-size: 12px;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 6px;
}

.announcement-body a {
  font-size: 11.5px;
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.announcement-body a:hover { color: var(--primary-dark); }

/* ─── SIDEBAR ────────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 22px; }

.sidebar-widget {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

.sidebar-widget-header {
  background: var(--secondary);
  color: var(--white);
  padding: 12px 16px;
  font-family: var(--font-main);
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.sidebar-widget-header.accent { background: var(--primary); }
.sidebar-widget-header.gold { background: var(--accent-dark); }

.sidebar-widget-body { padding: 14px; }

/* School Links Widget */
.school-links-list { display: flex; flex-direction: column; gap: 6px; }

.school-link-item a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: var(--off-white);
  font-size: 12.5px;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.school-link-item a:hover {
  background: #e8eaf6;
  border-left-color: var(--secondary);
  color: var(--secondary);
}

.school-link-item a i {
  color: var(--secondary);
  font-size: 13px;
  transition: var(--transition);
  flex-shrink: 0;
}

.school-link-item a:hover i { color: var(--primary); }

/* Notice Sidebar Widget */
.notice-sidebar-list { display: flex; flex-direction: column; }

.notice-sidebar-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 12px;
  line-height: 1.45;
}

.notice-sidebar-item:last-child { border-bottom: none; }

.notice-sidebar-item::before {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--primary);
  font-size: 9px;
  margin-top: 3px;
  flex-shrink: 0;
}

.notice-sidebar-item a { color: var(--text-dark); }
.notice-sidebar-item a:hover { color: var(--primary); }

/* ─── LEADERSHIP CARDS ──────────────────────────────────────── */
.leadership-section {
  background: linear-gradient(135deg, #f0f2ff 0%, #fff0f0 100%);
  padding: 45px 0;
  border-top: 3px solid var(--border);
}

.leadership-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.leadership-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  text-align: center;
}

.leadership-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.leadership-card-header {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  padding: 30px 20px 20px;
  position: relative;
}

.leadership-card:nth-child(2) .leadership-card-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.leadership-card:nth-child(3) .leadership-card-header {
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
}

.leadership-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255,255,255,0.8);
  margin: 0 auto;
  display: block;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.leadership-card-body { padding: 20px; }

.leadership-card-body h3 {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.leadership-designation {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: block;
}

.leadership-card-body p {
  font-size: 12.5px;
  color: var(--text-light);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.leadership-read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--secondary);
  font-weight: 600;
}

.leadership-read-more:hover { color: var(--primary); }

/* ─── WELCOME / ABOUT SECTION ───────────────────────────────── */
.welcome-section {
  padding: 50px 0;
  background: var(--white);
}

.welcome-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.welcome-image-box {
  position: relative;
}

.welcome-main-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.welcome-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--primary);
  color: var(--white);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.welcome-badge .years {
  font-family: var(--font-main);
  font-size: 36px;
  font-weight: 800;
  display: block;
  line-height: 1;
}

.welcome-badge .years-text {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.welcome-text .pre-title {
  font-family: var(--font-main);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  display: block;
}

.welcome-text h2 {
  font-family: var(--font-main);
  font-size: 28px;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.25;
  margin-bottom: 16px;
}

.welcome-text p {
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 12px;
  font-size: 14px;
}

.welcome-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.stat-item {
  text-align: center;
  padding: 14px 10px;
  background: var(--off-white);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--primary);
}

.stat-item .stat-number {
  font-family: var(--font-main);
  font-size: 26px;
  font-weight: 800;
  color: var(--secondary);
  display: block;
}

.stat-item .stat-label {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--primary);
  color: var(--white);
  border-radius: 30px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(29,78,216,0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 26px;
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
  border-radius: 30px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--secondary);
  color: var(--white);
  transform: translateY(-2px);
}

/* ─── THOUGHT OF THE DAY ────────────────────────────────────── */
.thought-section {
  background: linear-gradient(135deg, var(--secondary) 0%, #0c1d5e 100%);
  padding: 40px 0;
  text-align: center;
}

.thought-inner {
  max-width: 700px;
  margin: 0 auto;
}

.thought-icon {
  font-size: 40px;
  color: var(--accent);
  margin-bottom: 16px;
  display: block;
}

.thought-quote {
  font-family: var(--font-main);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 16px;
}

.thought-author {
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ─── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: #0A1628;
  color: rgba(255,255,255,0.85);
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand .footer-logo img {
  width: 72px;
  height: 72px;
  min-width: 72px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 4px;
  border: 2px solid rgba(255,255,255,0.25);
}

.footer-brand .footer-logo .school-name {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
  margin-bottom: 18px;
}

.footer-social { display: flex; gap: 10px; }

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  transition: var(--transition);
}

.footer-social a:hover { background: var(--primary); color: var(--white); }

.footer-col h4 {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--primary);
}

.footer-links-list { display: flex; flex-direction: column; gap: 8px; }

.footer-links-list a {
  font-size: 12.5px;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.footer-links-list a i { font-size: 10px; color: var(--primary); }

.footer-links-list a:hover { color: var(--white); padding-left: 5px; }

.footer-contact-list { display: flex; flex-direction: column; gap: 12px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.65);
}

.footer-contact-item i {
  color: var(--accent);
  margin-top: 2px;
  flex-shrink: 0;
}

/* Footer Map */
.footer-map-section {
  background: #080f22;
  padding: 0;
}

.footer-map-section iframe {
  width: 100%;
  height: 220px;
  border: none;
  display: block;
  filter: grayscale(0.3);
}

/* Footer Bottom */
.footer-bottom {
  background: #060c1c;
  padding: 14px 0;
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}

.footer-bottom-links {
  display: flex;
  gap: 18px;
}

.footer-bottom-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}

.footer-bottom-links a:hover { color: var(--white); }

/* ─── PAGE BANNER ───────────────────────────────────────────── */
.page-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  padding: 45px 0;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60"><circle cx="30" cy="30" r="25" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></svg>') center/60px repeat;
}

.page-banner-inner {
  position: relative;
  text-align: center;
}

.page-banner h1 {
  font-family: var(--font-main);
  font-size: 30px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}

.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .separator { color: rgba(255,255,255,0.4); }

/* ─── INNER PAGE CONTENT ────────────────────────────────────── */
.inner-page {
  padding: 40px 0;
  background: var(--white);
}

.inner-page-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  align-items: start;
}

.page-content-box {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 30px;
}

.page-content-box h1, .page-content-box h2, .page-content-box h3 {
  font-family: var(--font-main);
  color: var(--secondary);
  margin-bottom: 14px;
}

.page-content-box p {
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 14px;
  font-size: 14px;
}

.page-content-box img { border-radius: var(--radius-md); margin-bottom: 14px; }
.page-content-box ul, .page-content-box ol {
  padding-left: 20px;
  margin-bottom: 14px;
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.8;
}

.page-content-box table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 14px;
  font-size: 13.5px;
}

.page-content-box table th {
  background: var(--secondary);
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-family: var(--font-main);
  font-size: 13px;
}

.page-content-box table td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
}

.page-content-box table tr:nth-child(even) td { background: var(--off-white); }

/* ─── GALLERY ───────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img { transform: scale(1.08); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay i { color: var(--white); font-size: 30px; }

/* ─── NEWS CARDS ────────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.news-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-card-body { padding: 16px; }

.news-category-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.news-card-body h3 {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.45;
  margin-bottom: 8px;
}

.news-card-body p { font-size: 12.5px; color: var(--text-light); line-height: 1.6; }

.news-card-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  color: var(--text-light);
}

.news-read-more { color: var(--primary); font-weight: 600; }

/* ─── FORMS ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(26,35,126,0.1);
}

textarea.form-control { resize: vertical; min-height: 120px; }

/* ─── ALERTS & NOTICES ──────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert-success { background: #d4edda; color: #155724; border-left: 4px solid #28a745; }
.alert-error   { background: #f8d7da; color: #721c24; border-left: 4px solid #dc3545; }
.alert-info    { background: #d1ecf1; color: #0c5460; border-left: 4px solid #17a2b8; }
.alert-warning { background: #fff3cd; color: #856404; border-left: 4px solid #ffc107; }

/* ─── BACK TO TOP ───────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 9999;
  cursor: pointer;
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ─── SEARCH ─────────────────────────────────────────────────── */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.search-overlay.active { opacity: 1; visibility: visible; }

.search-box {
  width: 100%;
  max-width: 600px;
  padding: 0 20px;
}

.search-input-wrap {
  position: relative;
  display: flex;
  background: var(--white);
  border-radius: 40px;
  overflow: hidden;
}

.search-input-wrap input {
  flex: 1;
  border: none;
  padding: 16px 24px;
  font-size: 16px;
  background: transparent;
  color: var(--text-dark);
}

.search-input-wrap input:focus { outline: none; }

.search-input-wrap button {
  background: var(--primary);
  color: var(--white);
  padding: 0 28px;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
}

.search-input-wrap button:hover { background: var(--primary-dark); }

.search-close {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--white);
  font-size: 28px;
  cursor: pointer;
  background: none;
  border: none;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .feature-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .welcome-inner { gap: 30px; }
  .header-info-boxes { display: none; }
}

@media (max-width: 900px) {
  .main-content-area .container { grid-template-columns: 1fr; }
  .leadership-grid { grid-template-columns: 1fr 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .inner-page-grid { grid-template-columns: 1fr; }
  .hero-slider { height: 320px; }
  .slide-content { left: 30px; bottom: 40px; }
  .slide-content h2 { font-size: 22px; }
}

@media (max-width: 768px) {
  .top-bar-left { display: none; }
  .header-inner { flex-wrap: wrap; }
  .nav-list { display: none; flex-direction: column; width: 100%; }
  .nav-list.open { display: flex; }
  .nav-item { width: 100%; }
  .nav-link { justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; border-top: none; background: rgba(0,0,0,0.15); display: none; }
  .nav-item.open .dropdown-menu { display: block; }
  .nav-toggle { display: flex; }
  .welcome-inner { grid-template-columns: 1fr; }
  .welcome-stats { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .leadership-grid { grid-template-columns: 1fr; max-width: 380px; margin: 30px auto 0; }
  .news-grid { grid-template-columns: 1fr; }
  .hero-slider { height: 260px; }
  .slide-content { left: 20px; right: 20px; bottom: 30px; }
  .slide-content h2 { font-size: 18px; }
  .slide-content p { display: none; }
  .feature-cards-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .feature-cards-grid { grid-template-columns: 1fr; }
  .welcome-stats { grid-template-columns: 1fr 1fr; }
  .hero-slider { height: 200px; }
}
