/* ===== CSS Custom Properties ===== */
:root {
  --primary: #1b4f72;
  --primary-light: #2471a3;
  --primary-dark: #0e2f44;
  --accent: #d35400;
  --accent-light: #e67e22;
  --accent-hover: #ba4a00;
  --saffron: #f39c12;
  --green-india: #138d75;
  --white: #ffffff;
  --off-white: #f4f6f7;
  --cream: #fdf2e9;
  --gray-50: #f8f9fa;
  --gray-100: #ebedef;
  --gray-200: #d5d8dc;
  --gray-300: #b2babb;
  --gray-400: #85929e;
  --gray-500: #5d6d7e;
  --gray-600: #4a5568;
  --gray-700: #2c3e50;
  --gray-800: #1c2833;
  --gray-900: #0b1117;
  --success: #1e8449;
  --danger: #c0392b;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.14);
  --radius: 6px;
  --radius-lg: 10px;
  --transition: 0.3s ease;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;
  --max-width: 1140px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent-light);
  outline-offset: 2px;
}

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--gray-800);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: clamp(1.75rem, 4.5vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 2.1rem); }
h3 { font-size: clamp(1.05rem, 2.5vw, 1.35rem); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ===== Skip Link (Accessibility) ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--primary);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  z-index: 10000;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

/* ===== Top Bar ===== */
.top-bar {
  background: var(--primary-dark);
  color: var(--gray-200);
  font-size: 0.8rem;
  padding: 0.4rem 0;
  border-bottom: 3px solid var(--accent);
}

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

.top-bar a {
  color: var(--gray-200);
}

.top-bar a:hover {
  color: var(--saffron);
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ===== Header / Navigation ===== */
.header {
  background: var(--white);
  border-bottom: 2px solid var(--gray-100);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 800;
  font-family: var(--font-serif);
  flex-shrink: 0;
  border: 2px solid var(--accent);
}

.logo-img {
  height: clamp(28px, 4vw, 42px);
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.logo-text h1 {
  font-size: clamp(0.78rem, 1.8vw, 1.1rem);
  line-height: 1.2;
  color: var(--primary-dark);
  white-space: nowrap;
}

.logo-motto {
  display: block;
  font-size: clamp(0.48rem, 1vw, 0.65rem);
  color: var(--accent);
  font-style: italic;
  letter-spacing: 0.03em;
  line-height: 1.3;
  margin-top: 1px;
  white-space: nowrap;
}

.logo-text span {
  font-size: 0.7rem;
  color: var(--gray-500);
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-list a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--primary);
  background: var(--off-white);
}

.nav-list a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.65rem;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero Section ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  color: var(--white);
  padding: 4.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero--bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 6rem 0 5.5rem;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.hero--bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(14, 47, 68, 0.88) 0%,
    rgba(27, 79, 114, 0.72) 50%,
    rgba(14, 47, 68, 0.85) 100%
  );
  z-index: 0;
}

.hero:not(.hero--bg)::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(211, 84, 0, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(243, 156, 18, 0.08) 0%, transparent 50%);
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--saffron), var(--white), var(--green-india));
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.hero-content {
  flex: 1;
}

.hero-content--center {
  text-align: center;
  max-width: 750px;
  margin: 0 auto;
}

.hero-content--center .hero-title-row {
  justify-content: center;
}

.hero-content--center .hero-buttons {
  justify-content: center;
}

.hero-content--center p {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  opacity: 0.92;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-content--center h1 {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-motto {
  font-style: italic;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title-row {
  margin-bottom: 0.75rem;
}

.hero-title-row h1 {
  margin-bottom: 0;
}

.hero-logo {
  height: clamp(1.75rem, 4.5vw, 2.75rem);
  width: auto;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 0.5rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.05rem;
  opacity: 0.9;
  max-width: 520px;
  margin-bottom: 1.75rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-image {
  flex: 0 0 400px;
  position: relative;
}

.hero-photo {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--radius-lg);
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  object-fit: cover;
  display: block;
}

.hero-image-placeholder {
  width: 100%;
  max-width: 340px;
  height: 280px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}

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

.btn-secondary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

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

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
}

/* ===== Section Styles ===== */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--off-white);
}

.section-warm {
  background: var(--cream);
}

.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  margin-bottom: 0.6rem;
}

.section-header p {
  color: var(--gray-500);
  font-size: 1rem;
}

.section-label {
  display: inline-block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.4rem;
}

/* ===== Quick Links / Stats Row ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 3px solid var(--accent);
}

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

.stat-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-serif);
}

.stat-label {
  color: var(--gray-500);
  font-size: 0.82rem;
  margin-top: 0.2rem;
}

/* ===== Feature Cards ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.feature-icon {
  width: 50px;
  height: 50px;
  background: var(--cream);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
}

.feature-card p {
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* ===== Notice / Events Cards ===== */
.notices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.notice-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: all var(--transition);
  border-left: 4px solid var(--accent);
}

.notice-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.notice-card-body {
  padding: 1.25rem;
}

.notice-date {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.notice-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.notice-card p {
  color: var(--gray-500);
  font-size: 0.85rem;
}

.notice-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 0.6rem;
}

.tag-announcement { background: #dbeafe; color: #1e40af; }
.tag-exam { background: #fef3c7; color: #92400e; }
.tag-event { background: #dcfce7; color: #166534; }
.tag-download { background: #f3e8ff; color: #6b21a8; }

/* ===== Page Banner ===== */
.page-banner {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 3rem 0 2.5rem;
  text-align: center;
  position: relative;
}

.page-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--saffron), var(--white), var(--green-india));
}

.page-banner--wave {
  padding-bottom: 3.5rem;
  overflow: hidden;
}

.page-banner--wave::after {
  display: none;
}

.banner-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 50px;
  display: block;
}

.page-banner h1 {
  color: var(--white);
  margin-bottom: 0.4rem;
  position: relative;
}

/* ===== School at a Glance Strip ===== */
.glance-strip {
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  padding: 1.25rem 0;
  position: relative;
  z-index: 2;
}

.glance-row {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.glance-item {
  text-align: center;
  min-width: 100px;
}

.glance-value {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-serif);
}

.glance-label {
  display: block;
  font-size: 0.72rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  margin-top: 0.15rem;
}

@media (max-width: 600px) {
  .glance-row {
    gap: 1.25rem 1.75rem;
  }
  .glance-item {
    min-width: 80px;
  }
}

/* ===== Mini Timeline ===== */
.mini-timeline {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}

.mini-timeline::before {
  content: '';
  position: absolute;
  top: 11px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: 2px;
}

.mini-tl-item {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 0.75rem;
}

.mini-tl-dot {
  width: 22px;
  height: 22px;
  background: var(--white);
  border: 3px solid var(--accent);
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  position: relative;
  z-index: 1;
  transition: background 0.3s ease, transform 0.3s ease;
}

.mini-tl-item:hover .mini-tl-dot {
  background: var(--accent);
  transform: scale(1.15);
}

.mini-tl-year {
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-serif);
  margin-bottom: 0.3rem;
}

.mini-tl-text {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.55;
}

@media (max-width: 700px) {
  .mini-timeline {
    flex-direction: column;
    gap: 1.5rem;
    padding-left: 2rem;
  }
  .mini-timeline::before {
    top: 0;
    bottom: 0;
    left: 10px;
    right: auto;
    width: 3px;
    height: auto;
  }
  .mini-tl-item {
    text-align: left;
    padding: 0 0 0 1rem;
  }
  .mini-tl-dot {
    position: absolute;
    left: -2rem;
    top: 0;
    margin: 0;
  }
}

/* ===== Explore More Cards ===== */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto;
}

.explore-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.explore-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  color: inherit;
}

.explore-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: 50%;
}

.explore-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.explore-card p {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.explore-arrow {
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 700;
  transition: transform 0.3s ease;
}

.explore-card:hover .explore-arrow {
  transform: translateX(4px);
}

.breadcrumb {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

.breadcrumb a {
  color: var(--gray-200);
}

.breadcrumb a:hover {
  color: var(--white);
}

/* ===== About Page ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.about-image-placeholder {
  width: 100%;
  height: 350px;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  border: 1px solid var(--gray-200);
}

/* ===== Mission / Vision / Values – stacked cards ===== */
.mv-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 820px;
  margin: 0 auto;
}

.mv-card-v2 {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: var(--white);
  padding: 2rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.mv-card-v2:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.mv-icon-wrap {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.mv-icon-wrap.mission {
  background: rgba(211, 84, 0, 0.1);
  border: 2px solid var(--accent);
}

.mv-icon-wrap.vision {
  background: rgba(19, 141, 117, 0.1);
  border: 2px solid var(--green-india);
}

.mv-icon-wrap.values {
  background: rgba(27, 79, 114, 0.1);
  border: 2px solid var(--primary);
}

.mv-card-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--gray-800);
}

.mv-card-content p {
  color: var(--gray-600);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* ===== Committee Section ===== */
.committee-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.committee-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: all var(--transition);
}

.committee-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.committee-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
}

.committee-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.committee-header h3 {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--white);
}

.committee-table {
  width: 100%;
  border-collapse: collapse;
}

.committee-table thead {
  background: var(--gray-50);
}

.committee-table th {
  padding: 0.6rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-500);
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.committee-table td {
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}

.committee-table th:first-child,
.committee-table td:first-child {
  width: 40px;
  text-align: center;
}

.committee-table tbody tr:last-child td {
  border-bottom: none;
}

.committee-table tbody tr:hover {
  background: var(--gray-50);
}

@media (max-width: 768px) {
  .committee-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .committee-header {
    padding: 1rem;
    gap: 0.5rem;
  }

  .committee-header h3 {
    font-size: 0.82rem;
  }

  .committee-table th,
  .committee-table td {
    padding: 0.5rem 0.6rem;
    font-size: 0.78rem;
  }

  .committee-table th:first-child,
  .committee-table td:first-child {
    width: 30px;
  }
}

/* ===== Vision Banner ===== */
.vision-banner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 3rem 3rem 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.vision-deco {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(27, 79, 114, 0.03);
  pointer-events: none;
}

.vision-deco--left {
  top: -60px;
  left: -60px;
  width: 220px;
  height: 220px;
}

.vision-deco--right {
  bottom: -80px;
  right: -50px;
  width: 260px;
  height: 260px;
}

.vision-icon {
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.vision-quote-mark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 4rem;
  line-height: 1;
  color: rgba(27, 79, 114, 0.1);
  position: absolute;
  pointer-events: none;
}

.vision-quote--open {
  top: 1rem;
  left: 1.5rem;
}

.vision-quote--close {
  bottom: 1rem;
  right: 1.5rem;
}

.vision-banner p {
  font-size: 1.15rem;
  line-height: 1.9;
  font-style: italic;
  color: var(--gray-700);
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.vision-divider {
  width: 50px;
  height: 2px;
  background: var(--accent);
  margin: 1.25rem auto 0.75rem;
  border-radius: 2px;
}

.vision-tagline {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-400);
  position: relative;
}

@media (max-width: 768px) {
  .vision-banner {
    padding: 2.5rem 2rem 2rem;
  }

  .vision-quote-mark {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  .vision-banner {
    padding: 2rem 1.25rem 1.5rem;
    border-radius: 12px;
  }

  .vision-icon {
    font-size: 2rem;
  }

  .vision-banner p {
    font-size: 0.92rem;
    line-height: 1.75;
  }

  .vision-quote-mark {
    font-size: 2.5rem;
  }

  .vision-quote--open {
    top: 0.5rem;
    left: 0.75rem;
  }

  .vision-quote--close {
    bottom: 0.5rem;
    right: 0.75rem;
  }

  .vision-tagline {
    font-size: 0.7rem;
  }
}

/* ===== Mission Grid ===== */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.mission-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
}

.mission-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: var(--accent);
}

.mission-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.mission-card h3 {
  font-size: 0.95rem;
  color: var(--primary-dark);
  margin-bottom: 0.4rem;
}

.mission-card p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.65;
}

@media (max-width: 480px) {
  .mission-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .mission-card {
    padding: 1rem 0.75rem;
  }

  .mission-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .mission-card h3 {
    font-size: 0.82rem;
  }

  .mission-card p {
    font-size: 0.78rem;
  }
}

@media (max-width: 360px) {
  .mission-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .mv-card-v2 {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding: 1.25rem;
  }

  .mv-icon-wrap {
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
  }

  .mv-card-content h3 {
    font-size: 1rem;
  }

  .mv-card-content p {
    font-size: 0.88rem;
  }
}

.timeline {
  position: relative;
  padding-left: 2rem;
  max-width: 680px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), var(--primary));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 2.25rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.3rem;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--accent);
  transform: translateX(-50%);
  margin-left: 1.5px;
}

.timeline-year {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.timeline-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.timeline-item p {
  color: var(--gray-500);
  font-size: 0.9rem;
}

/* ===== Staff Page ===== */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 260px));
  gap: 1.5rem;
  justify-content: center;
}

.staff-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  text-align: center;
  max-width: 300px;
  margin: 0 auto;
  width: 100%;
}

.staff-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.staff-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--off-white), var(--gray-100));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--gray-400);
  overflow: hidden;
}

.staff-photo--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.staff-photo--img.no-img::after {
  content: '\1F464';
  font-size: 3.5rem;
}

.staff-grid--admin {
  grid-template-columns: 260px;
}

.staff-info {
  padding: 0.85rem 1rem;
}

.staff-info h3 {
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.staff-role {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.staff-bio {
  color: var(--gray-400);
  font-size: 0.75rem;
  margin-top: 0.3rem;
}

.staff-sub {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--gray-200);
  font-size: 0.8rem;
  color: var(--gray-500);
}

.staff-sub-label {
  font-weight: 600;
  color: var(--gray-600);
}

.staff-social {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.staff-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 0.8rem;
  transition: all var(--transition);
}

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

/* ===== Facilities Page ===== */
.facility-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
}

.facility-showcase:nth-child(even) {
  direction: rtl;
}

.facility-showcase:nth-child(even) > * {
  direction: ltr;
}

.facility-image {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, var(--off-white), var(--gray-100));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  border: 1px solid var(--gray-200);
}

.facility-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.facility-photo img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.facility-content h3 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.facility-content p {
  color: var(--gray-600);
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
}

.facility-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.facility-tag {
  background: var(--cream);
  color: var(--gray-600);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(211, 84, 0, 0.15);
}

/* ===== Gallery Page ===== */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
}

.filter-btn {
  padding: 0.45rem 1.1rem;
  border: 2px solid var(--gray-200);
  background: var(--white);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-sans);
  color: var(--gray-600);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}

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

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

.gallery-placeholder {
  background: linear-gradient(135deg, var(--off-white), var(--gray-100));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--gray-400);
}

.gallery-item:hover .gallery-placeholder,
.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: var(--white);
  font-weight: 500;
  font-size: 0.88rem;
}

/* ===== Lightbox ===== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
}

.lightbox-content img,
.lightbox-placeholder {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius);
  object-fit: contain;
}

.lightbox-placeholder {
  width: 70vw;
  height: 55vh;
  max-width: 750px;
  max-height: 550px;
  background: var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--gray-500);
  border-radius: var(--radius-lg);
}

.lightbox-caption {
  text-align: center;
  color: var(--gray-300);
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }

/* ===== Notice Page Full ===== */
.notice-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.notice-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: all var(--transition);
  border-left: 4px solid transparent;
}

.notice-row:hover {
  box-shadow: var(--shadow);
  border-left-color: var(--accent);
}

.notice-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.notice-icon.blue { background: #dbeafe; }
.notice-icon.yellow { background: #fef3c7; }
.notice-icon.green { background: #dcfce7; }
.notice-icon.purple { background: #f3e8ff; }

.notice-row-content {
  flex: 1;
}

.notice-row-content h3 {
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}

.notice-row-content p {
  color: var(--gray-500);
  font-size: 0.85rem;
}

.notice-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-top: 0.3rem;
}

.notice-row-action {
  flex-shrink: 0;
}

/* ===== Contact Page ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.contact-info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.contact-info-card {
  background: var(--off-white);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid var(--gray-100);
}

.contact-info-card .icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.contact-info-card h4 {
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.contact-info-card p {
  color: var(--gray-500);
  font-size: 0.82rem;
}

.map-placeholder {
  width: 100%;
  height: 220px;
  background: var(--gray-100);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--gray-400);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.map-placeholder iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-form h3 {
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  color: var(--gray-700);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--gray-700);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(27, 79, 114, 0.1);
  outline: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.doc-list {
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(211, 84, 0, 0.12);
}

.doc-list h4 {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.doc-list ul {
  color: var(--gray-600);
  font-size: 0.85rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.doc-list li {
  margin-bottom: 0.25rem;
}

/* ===== Footer ===== */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 3.5rem 0 0;
  border-top: 4px solid var(--accent);
}

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

.footer-about .logo-text h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 0.6rem;
}

.footer-about p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--gray-400);
}

.footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-weight: 600;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--gray-400);
  font-size: 0.85rem;
  transition: all var(--transition);
}

.footer-links a:hover {
  color: var(--saffron);
  padding-left: 3px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
  font-size: 0.85rem;
  color: var(--gray-400);
}

.footer-bottom {
  padding: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--gray-500);
}

.footer-social {
  display: flex;
  gap: 0.5rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: all var(--transition);
  font-size: 0.85rem;
}

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

/* ===== Scroll-to-Top Button ===== */
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--accent);
  transform: translateY(-2px);
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */

/* --- Tablet landscape & small desktop --- */
@media (max-width: 1024px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }


  .hero p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    flex: unset;
  }

  .about-grid,
  .facility-showcase {
    grid-template-columns: 1fr;
  }

  .facility-showcase:nth-child(even) {
    direction: ltr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Tablet portrait & large mobile --- */
@media (max-width: 768px) {
  .top-bar {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 0.75rem;
    border-top: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
  }

  .nav-list.active {
    display: flex;
  }

  .nav-list a {
    padding: 0.75rem 1rem;
    width: 100%;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--gray-100);
  }

  .nav-list li:last-child a {
    border-bottom: none;
  }

  .logo-text h1 {
    font-size: 0.85rem;
  }

  .logo-text span {
    font-size: 0.65rem;
  }

  .logo-icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }


  .hero {
    padding: 2.5rem 0 2rem;
  }

  .hero--bg {
    padding: 4rem 0 3.5rem;
    min-height: 350px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero-content--center p {
    font-size: 0.95rem;
  }

  .hero-image-placeholder {
    width: 100%;
    max-width: 240px;
    height: 180px;
    margin: 0 auto;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
    margin-top: -1.5rem;
    gap: 0.75rem;
  }

  .stat-card {
    padding: 1.25rem 1rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .page-banner--wave {
    padding-bottom: 2.5rem;
  }

  .page-banner h1 {
    font-size: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-info-cards {
    grid-template-columns: 1fr 1fr;
  }

  .staff-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 220px));
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .gallery-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .notices-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
  }
}

/* --- Mobile --- */
@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .container {
    padding: 0 1rem;
  }

  .hero {
    padding: 2rem 0 1.75rem;
  }

  .hero--bg {
    padding: 3.5rem 0 3rem;
    min-height: 320px;
  }

  .hero h1 {
    font-size: 1.3rem;
  }

  .hero p {
    font-size: 0.88rem;
  }

  .hero-content--center p {
    font-size: 0.88rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .stat-card {
    padding: 1rem 0.75rem;
  }

  .stat-icon {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
  }

  .stat-number {
    font-size: 1.3rem;
  }

  .stat-label {
    font-size: 0.72rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 1.25rem;
  }

  .notice-row {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.85rem;
    align-items: flex-start;
  }

  .notice-icon {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .notice-row-content h3 {
    font-size: 0.88rem;
  }

  .notice-row-content p {
    font-size: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .notice-meta {
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.72rem;
  }

  .notice-row-action {
    width: 100%;
  }

  .notice-row-action .btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }

  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .staff-grid--admin {
    grid-template-columns: 1fr;
    max-width: 220px;
    margin: 0 auto;
  }

  .staff-card {
    max-width: 100%;
  }

  .facility-showcase {
    gap: 1.25rem;
    margin-bottom: 2rem;
  }

  .facility-image {
    height: 200px;
    font-size: 2.5rem;
  }

  .facility-content h3 {
    font-size: 1.15rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .gallery-filters {
    gap: 0.3rem;
  }

  .filter-btn {
    padding: 0.55rem 1rem;
    font-size: 0.78rem;
    min-height: 44px;
  }

  .contact-info-cards {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 1.25rem;
  }

  .map-placeholder {
    height: 180px;
  }

  .section {
    padding: 2rem 0;
  }

  .section-header h2 {
    font-size: 1.2rem;
  }

  .section-header p {
    font-size: 0.88rem;
  }

  .section-label {
    font-size: 0.7rem;
  }

  .footer {
    padding-top: 2.5rem;
  }

  .footer-about p,
  .footer-links a,
  .footer-contact-item {
    font-size: 0.82rem;
  }

  .footer-links a {
    display: inline-block;
    padding: 0.35rem 0;
    min-height: 44px;
    line-height: 2;
  }

  .footer-links li {
    margin-bottom: 0;
  }

  .page-banner--wave {
    padding: 2rem 0 2.5rem;
  }

  .page-banner h1 {
    font-size: 1.3rem;
  }

  .breadcrumb {
    font-size: 0.78rem;
  }

  .doc-list {
    padding: 1rem;
  }

  .doc-list ul {
    font-size: 0.82rem;
  }

  /* Lightbox mobile */
  .lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }

  .lightbox-nav {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
    background: rgba(255,255,255,0.2);
  }

  .lightbox-prev { left: 0.4rem; }
  .lightbox-next { right: 0.4rem; }

  .lightbox-content {
    max-width: 95vw;
  }

  .lightbox-content img,
  .lightbox-placeholder {
    max-width: 95vw;
    max-height: 70vh;
  }

  .lightbox-placeholder {
    width: 85vw;
    height: 50vh;
    font-size: 3rem;
  }

  .lightbox-caption {
    font-size: 0.8rem;
    padding: 0 0.5rem;
  }
}

/* --- Very small mobile (320px) --- */
@media (max-width: 360px) {
  .logo-text h1 {
    font-size: 0.75rem;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }


  .hero h1 {
    font-size: 1.15rem;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }

  .stat-number {
    font-size: 1.15rem;
  }

  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .staff-info {
    padding: 0.6rem 0.5rem;
  }

  .staff-info h3 {
    font-size: 0.82rem;
  }

  .staff-role {
    font-size: 0.68rem;
  }

  .staff-bio {
    font-size: 0.68rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
  }
}

/* ===== Headmaster Side-by-Side Layout ===== */
.hm-side {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  max-width: 880px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.hm-side-photo {
  flex-shrink: 0;
  width: 170px;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--off-white), var(--gray-100));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.hm-side-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hm-side-photo.no-photo::after {
  content: '\1F468\200D\1F4BC';
  font-size: 3.5rem;
}

.hm-side-content {
  flex: 1;
  position: relative;
}

.hm-side-content::before {
  content: '\201C';
  position: absolute;
  top: -1rem;
  left: -0.25rem;
  font-size: 4rem;
  color: var(--accent);
  font-family: var(--font-serif);
  line-height: 1;
  opacity: 0.15;
}

.hm-side-quote {
  border: none;
  margin: 0;
  padding: 0;
}

.hm-side-quote p {
  font-style: italic;
  color: var(--gray-600);
  font-size: 0.93rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.hm-side-quote p:last-child {
  margin-bottom: 0;
}

.hm-side-author {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-200);
}

.hm-side-author strong {
  display: block;
  font-size: 0.95rem;
  color: var(--gray-800);
  font-family: var(--font-serif);
}

.hm-side-author span {
  font-size: 0.8rem;
  color: var(--gray-400);
}

@media (max-width: 700px) {
  .hm-side {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1.25rem;
    gap: 1.25rem;
  }

  .hm-side-photo {
    width: 140px;
    height: 175px;
  }

  .hm-side-content::before {
    left: 50%;
    transform: translateX(-50%);
    font-size: 3rem;
    top: -0.75rem;
  }

  .hm-side-quote p {
    font-size: 0.88rem;
    line-height: 1.7;
  }

  .hm-side-author strong {
    font-size: 0.9rem;
  }

  .hm-side-author span {
    font-size: 0.75rem;
  }
}
