:root {
  --green-dark: #1a4d2e;
  --green-mid: #2d7a4f;
  --green-light: #4caf7d;
  --green-pale: #e8f5ee;
  --gold: #c8922a;
  --gold-light: #f5e6c8;
  --cream: #fdfaf4;
  --white: #ffffff;
  --gray-dark: #1e2532;
  --gray-mid: #4a5568;
  --gray-light: #e2e8f0;
  --red-notice: #c0392b;
  --blue-info: #1a5276;
}

[data-theme="dark"] {
  --green-dark: #0f301c;
  --green-mid: #3a9b64;
  --green-light: #64d19b;
  --green-pale: #14281c;
  --gold: #dfa83d;
  --gold-light: #3a2e16;
  --cream: #121820;
  --white: #1a2330;
  --gray-dark: #f1f5f9;
  --gray-mid: #94a3b8;
  --gray-light: #334155;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

hr {
  border: none;
  border-top: 1px solid var(--gray-light);
  margin: 24px 0;
}

.topbar {
  background: var(--green-dark);
  color: #aed6b8;
  font-size: 12.5px;
  padding: 6px 0;
  border-bottom: 2px solid var(--gold);
}

.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.topbar a {
  color: #aed6b8;
  text-decoration: none;
}

.topbar a:hover {
  color: var(--gold);
}

.top-links,
.top-contact {
  display: flex;
  gap: 18px;
}

header {
  background: var(--white);
  border-bottom: 3px solid var(--green-mid);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 0 1 auto;
  min-width: 0;
}

.logo-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 3px solid var(--gold);
}

.logo-circle svg {
  width: 44px;
  height: 44px;
}

.school-name-block h1 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--green-dark);
  font-weight: 700;
  line-height: 1.2;
}

.school-name-block p {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 2px;
}

.school-name-block .est {
  font-size: 11px;
  color: var(--gray-mid);
  margin-top: 1px;
}

nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  padding: 5px;
  border: 1px solid var(--gray-light);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--white), var(--green-pale));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  flex-wrap: nowrap;
  max-width: 100%;
}

nav ul li {
  position: relative;
  flex: 0 0 auto;
}

nav ul li.has-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 8px;
}

nav ul li a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-dark);
  text-decoration: none;
  border-radius: 999px;
  line-height: 1;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
  background: var(--white);
  color: var(--green-dark);
  box-shadow: 0 6px 18px rgba(26, 77, 46, 0.12);
  transform: translateY(-1px);
}

nav ul li .dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 999;
  overflow: hidden;
}

nav ul li:hover .dropdown {
  display: block;
}

nav ul li .dropdown a {
  display: block;
  border-radius: 0;
  padding: 10px 18px;
  font-size: 13.5px;
  border-bottom: 1px solid #f0f0f0;
  min-height: 0;
  line-height: 1.35;
  white-space: normal;
  transform: none;
}

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

.caret {
  font-size: 10px;
  margin-left: 3px;
}

.admit-btn {
  background: var(--green-dark) !important;
  color: white !important;
  border-radius: 999px !important;
  padding: 8px 16px !important;
  box-shadow: 0 6px 18px rgba(26, 77, 46, 0.16);
}

.admit-btn:hover {
  background: var(--green-mid) !important;
  color: white !important;
}
/* Search Trigger */
.search-nav-item { display: flex; align-items: center; padding: 0 2px; }
.search-trigger { 
  background: var(--white); border: 1px solid var(--gray-light); cursor: pointer; color: var(--green-dark); 
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; 
  border-radius: 50%; transition: all 0.2s; 
  box-shadow: 0 6px 16px rgba(26, 77, 46, 0.09);
}
.search-trigger:hover { background: var(--green-dark); color: white; border-color: var(--green-dark); transform: translateY(-1px); }

/* Search Overlay */
.search-overlay {
  position: fixed; inset: 0; background: rgba(255,255,255,0.98); z-index: 9999;
  display: none; flex-direction: column; padding: 40px 24px; backdrop-filter: blur(10px);
}
.search-overlay.active { display: flex; }
.search-container { max-width: 800px; margin: 0 auto; width: 100%; }
.search-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.search-header h2 { font-family: 'Playfair Display', serif; color: var(--green-dark); }
.search-close { background: none; border: none; font-size: 40px; cursor: pointer; color: var(--gray-mid); }
.search-input-box { position: relative; margin-bottom: 30px; }
.search-input-box input {
  width: 100%; border: none; border-bottom: 3px solid var(--green-pale); padding: 15px 0;
  font-size: 28px; font-family: 'Playfair Display', serif; color: var(--green-dark); background: none;
  outline: none; transition: border-color 0.3s;
}
.search-input-box input:focus { border-color: var(--green-mid); }
.search-results { display: flex; flex-direction: column; gap: 15px; max-height: 60vh; overflow-y: auto; padding-right: 10px; }
.search-result-item {
  display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 12px;
  background: #fff; border: 1px solid var(--gray-light); text-decoration: none; transition: all 0.2s;
}
.search-result-item:hover { border-color: var(--green-mid); transform: translateX(5px); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.search-result-item .res-cat { font-size: 11px; font-weight: 700; color: var(--green-mid); text-transform: uppercase; letter-spacing: 1px; }
.search-result-item .res-title { font-size: 16px; font-weight: 600; color: var(--gray-dark); }
.search-result-item .res-date { font-size: 12px; color: var(--gray-mid); }
.search-empty { text-align: center; padding: 40px; color: var(--gray-mid); }

.hamburger {
  display: none;
  background: var(--green-pale);
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 38px;
  padding: 0 9px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-dark);
  border-radius: 2px;
}

.ticker-bar {
  background: var(--gold-light);
  border-bottom: 1px solid var(--gold);
  padding: 8px 0;
  overflow: hidden;
}

.ticker-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.ticker-label {
  background: var(--red-notice);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.ticker-track {
  overflow: hidden;
  flex: 1;
}

.ticker-content {
  display: flex;
  gap: 60px;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}

.ticker-content a {
  font-size: 13px;
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 500;
}

.ticker-content a:hover {
  color: var(--gold);
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, #2d5a3a 50%, #1a3d28 100%);
  color: white;
  position: relative;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 46px;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-text h2 span {
  color: var(--gold);
}

.hero-text p {
  font-size: 16px;
  line-height: 1.7;
  color: #b8d4be;
  margin-bottom: 32px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-dark,
.btn-green,
.btn-outline {
  display: inline-block;
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--green-dark);
  padding: 13px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #e0a830;
}

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: white;
  padding: 13px 28px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  backdrop-filter: blur(4px);
}

.stat-card .num {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
}

.stat-card .label {
  font-size: 13px;
  color: #a8c8b0;
  margin-top: 4px;
}

section {
  padding: 72px 0;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header .tagline {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-mid);
  font-weight: 600;
  margin-bottom: 10px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 14px;
}

.section-header p {
  font-size: 16px;
  color: var(--gray-mid);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

.divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 16px auto 0;
  border-radius: 2px;
}

.quick-strip {
  background: var(--green-mid);
  padding: 0;
}

.quick-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.quick-item {
  padding: 24px 20px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.quick-item:last-child {
  border-right: none;
}

.quick-item .icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.quick-item h3 {
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}

.quick-item p {
  font-size: 12.5px;
  color: #b8e0c8;
}

.programs {
  background: white;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.prog-card {
  border: 1px solid var(--gray-light);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.prog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.prog-header {
  padding: 28px 24px 20px;
}

.prog-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

.prog-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.prog-card p {
  font-size: 14px;
  color: var(--gray-mid);
  line-height: 1.65;
}

.prog-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-light);
  background: #fafafa;
}

.prog-footer .classes {
  font-size: 13px;
  font-weight: 500;
  color: var(--green-mid);
}

.pre-primary .prog-icon {
  background: #fff3e0;
}

.primary .prog-icon {
  background: #e8f5ee;
}

.secondary .prog-icon {
  background: #e3f2fd;
}

.higher .prog-icon {
  background: #fce4ec;
}

.stream-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.badge-science {
  background: #e3f2fd;
  color: #0d47a1;
}

.badge-mgmt {
  background: #e8f5e9;
  color: #1b5e20;
}

.news {
  background: var(--cream);
}

.news-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.news-tab {
  padding: 9px 20px;
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--gray-light);
  background: white;
  color: var(--gray-mid);
  transition: all 0.2s;
}

.news-tab.active {
  background: var(--green-dark);
  color: white;
  border-color: var(--green-dark);
}

.news-tab:hover:not(.active) {
  border-color: var(--green-mid);
  color: var(--green-mid);
}

.news-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
}

.news-featured {
  background: white;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(74, 85, 104, 0.14);
  box-shadow: 0 18px 40px rgba(26, 77, 46, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-featured:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 48px rgba(26, 77, 46, 0.12);
}

.news-feat-img {
  min-height: 220px;
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  display: flex;
  align-items: flex-end;
  padding: 28px 24px;
}

.news-feat-img .feat-cat {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  letter-spacing: 0.7px;
  margin-bottom: 12px;
  display: inline-flex;
}

.news-feat-img .feat-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: white;
  font-weight: 700;
  line-height: 1.2;
  max-width: 680px;
}

.news-feat-body {
  padding: 28px 30px 30px;
}

.news-feat-body .meta {
  font-size: 13px;
  color: var(--gray-mid);
  margin-bottom: 16px;
}

.news-feat-body p {
  font-size: 15px;
  color: var(--gray-mid);
  line-height: 1.8;
  margin-bottom: 22px;
}

.news-feat-body a {
  font-size: 14px;
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-feat-body a:hover {
  color: var(--green-mid);
}

.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
}

.news-card {
  display: block;
  position: relative;
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(74, 85, 104, 0.14);
  padding: 18px 18px 18px 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.news-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
  background: linear-gradient(180deg, var(--green-light), var(--green-dark));
}

.news-card:hover {
  transform: translateY(-2px);
  border-color: rgba(45, 122, 79, 0.35);
  box-shadow: 0 18px 40px rgba(26, 77, 46, 0.1);
}

.news-card .nc-cat {
  font-size: 10.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 6px;
}

.cat-academic {
  color: var(--blue-info);
}

.cat-event {
  color: #7b1fa2;
}

.cat-notice {
  color: var(--red-notice);
}

.cat-result {
  color: var(--green-mid);
}

.cat-sports {
  color: #e65100;
}

.cat-admission {
  color: var(--gold);
}

.cat-achievement,
.cat-general {
  color: var(--green-dark);
}

.news-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 6px;
  line-height: 1.4;
}

.news-card .nc-meta {
  font-size: 11.5px;
  color: var(--gray-mid);
}

.more-news-btn {
  margin-top: 20px;
  text-align: center;
}

.newsroom-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.newsroom-card {
  background: white;
  border: 1px solid var(--gray-light);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 28px rgba(30, 37, 50, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.newsroom-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(30, 37, 50, 0.12);
}

.newsroom-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--green-dark);
  margin-bottom: 10px;
}

.newsroom-card p {
  color: var(--gray-mid);
  line-height: 1.65;
  margin-bottom: 14px;
}

.newsroom-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--gray-mid);
}

.type-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.type-chip.news {
  background: #edf5ff;
  color: var(--blue-info);
}

.type-chip.notice {
  background: #fff4ec;
  color: #8d5300;
}

.btn-green {
  background: var(--green-dark);
  color: white;
  padding: 11px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-green:hover {
  background: var(--green-mid);
}

.notice-board {
  background: white;
}

.notice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.notice-panel {
  border: 1px solid var(--gray-light);
  border-radius: 14px;
  overflow: hidden;
}

.notice-panel-header {
  background: var(--green-dark);
  color: white;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.notice-panel-header h3 {
  font-size: 16px;
  font-weight: 600;
}

.notice-list {
  padding: 8px 0;
}

.notice-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.2s;
}

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

.notice-item:hover {
  background: var(--green-pale);
}

.notice-date {
  background: var(--green-dark);
  color: white;
  border-radius: 8px;
  padding: 6px 10px;
  text-align: center;
  min-width: 46px;
  flex-shrink: 0;
}

.notice-date .d {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.notice-date .m {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

.notice-text h4 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 3px;
}

.notice-text p {
  font-size: 12px;
  color: var(--gray-mid);
}

.new-badge {
  background: var(--red-notice);
  color: white;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
  vertical-align: middle;
  margin-left: 6px;
}

.facilities {
  background: var(--green-pale);
}

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

.fac-card {
  background: white;
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.2s;
}

.fac-card:hover {
  transform: translateY(-3px);
}

.fac-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.fac-card h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.fac-card p {
  font-size: 12.5px;
  color: var(--gray-mid);
  line-height: 1.5;
}

.gallery-strip {
  background: var(--green-dark);
  padding: 0;
}

.gallery-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-title {
  text-align: center;
  padding: 40px 24px 24px;
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 28px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
}

.gallery-item {
  height: 160px;
  overflow: hidden;
  position: relative;
}

.gallery-item div {
  width: 100%;
  height: 100%;
  transition: transform 0.3s;
}

.gallery-item:hover div {
  transform: scale(1.07);
}

.g1 {
  background: linear-gradient(135deg, #2d5a3a, #4caf7d);
}

.g2 {
  background: linear-gradient(135deg, #1a4d2e, #2d7a4f);
}

.g3 {
  background: linear-gradient(135deg, #4caf7d, #80e5aa);
}

.g4 {
  background: linear-gradient(135deg, #2d7a4f, #3d9a64);
}

.g5 {
  background: linear-gradient(135deg, #1a3d28, #2d6040);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: rgba(255, 255, 255, 0.6);
}

.blog-section,
.testimonials {
  background: white;
}

.blog-grid,
.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  border: 1px solid var(--gray-light);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  background: white;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.blog-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

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

.blog-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.blog-cat-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bc-education {
  background: #e3f2fd;
  color: #0d47a1;
}

.bc-events {
  background: #f3e5f5;
  color: #6a1b9a;
}

.bc-tips {
  background: #e8f5e9;
  color: #1b5e20;
}

.bc-science {
  background: #fff3e0;
  color: #e65100;
}

.bc-culture {
  background: #fce4ec;
  color: #880e4f;
}

.bc-sports {
  background: #e0f7fa;
  color: #006064;
}

.bc-general {
  background: #f5f5f5;
  color: #424242;
}

.blog-card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 8px;
  line-height: 1.35;
}

.blog-card-body p {
  font-size: 13.5px;
  color: var(--gray-mid);
  line-height: 1.65;
  margin-bottom: 14px;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gray-mid);
}

.blog-author-chip {
  display: flex;
  align-items: center;
  gap: 7px;
}

.blog-avatar,
.test-avatar {
  border-radius: 50%;
  background: var(--green-mid);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.blog-avatar {
  width: 26px;
  height: 26px;
  font-size: 11px;
  font-weight: 600;
}

.read-more-link {
  color: var(--green-mid);
  font-weight: 600;
  font-size: 12.5px;
}

#blogPage,
#blogWritePage,
#blogPostPage {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 1500;
  overflow-y: auto;
}

#blogPostPage {
  z-index: 1600;
}

.blog-page-header {
  background: var(--green-dark);
  color: white;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 2px solid var(--gold);
}

.blog-page-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.blog-page-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: white;
}

.back-btn,
.write-btn-top,
.publish-btn,
.preview-btn,
.tb-btn,
.emoji-btn,
.share-btn {
  font-family: 'DM Sans', sans-serif;
}

.back-btn {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 7px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.write-btn-top {
  background: var(--gold);
  color: var(--green-dark);
  padding: 7px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  border: none;
}

.blog-listing-inner,
.write-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.blog-listing-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 14px;
}

.blog-listing-top h3,
.write-inner h3,
.related-posts h3,
.contact-info h3,
.contact-form h3,
.cta-inner h2,
.gallery-title,
.footer-brand h2 {
  font-family: 'Playfair Display', serif;
}

.blog-listing-top h3 {
  font-size: 28px;
  color: var(--green-dark);
}

.blog-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-filter-btn {
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  border: 1.5px solid var(--gray-light);
  background: white;
  color: var(--gray-mid);
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'DM Sans', sans-serif;
}

.blog-filter-btn.active {
  background: var(--green-dark);
  color: white;
  border-color: var(--green-dark);
}

.blog-listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.no-posts-msg {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--gray-mid);
  padding: 60px 0;
  font-size: 15px;
}

.post-reader-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.post-reader-cat,
.modal-cat {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green-mid);
  margin-bottom: 12px;
}

.post-reader-title,
.modal-title {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--green-dark);
}

.post-reader-title {
  font-size: 36px;
  margin-bottom: 16px;
  font-weight: 700;
}

.post-reader-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.post-reader-meta .blog-avatar {
  width: 40px;
  height: 40px;
  font-size: 14px;
}

.post-reader-meta-text h5 {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-dark);
}

.post-reader-meta-text p,
.modal-meta {
  font-size: 12.5px;
  color: var(--gray-mid);
}

.post-hero {
  height: 320px;
  border-radius: 14px;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}

.post-reader-body,
.modal-body {
  font-size: 16px;
  line-height: 1.85;
  color: var(--gray-dark);
}

.post-reader-body p,
.modal-body p {
  margin-bottom: 20px;
}

.post-reader-body h2,
.modal-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  color: var(--green-dark);
  margin: 32px 0 14px;
}

.post-reader-body h3,
.modal-body h3 {
  font-size: 19px;
  color: var(--green-dark);
  font-weight: 600;
  margin: 24px 0 10px;
}

.post-reader-body ul,
.post-reader-body ol,
.modal-body ul,
.modal-body ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.post-reader-body li,
.modal-body li {
  margin-bottom: 6px;
}

.post-reader-body blockquote,
.modal-body blockquote {
  border-left: 4px solid var(--gold);
  padding: 14px 20px;
  background: var(--gold-light);
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-style: italic;
  color: var(--gray-dark);
}

.post-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-light);
}

.post-tag {
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 500;
}

.post-share {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.post-share span {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-mid);
}

.share-btn {
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
}

.related-posts {
  margin-top: 48px;
}

.related-posts h3 {
  font-size: 22px;
  color: var(--green-dark);
  margin-bottom: 20px;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.write-inner h3 {
  font-size: 28px;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.write-inner .subtitle {
  font-size: 14px;
  color: var(--gray-mid);
  margin-bottom: 32px;
}

.write-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.write-group,
.form-group {
  margin-bottom: 20px;
}

.write-group label,
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 7px;
  letter-spacing: 0.3px;
}

.write-group input,
.write-group select,
.write-group textarea,
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-light);
  border-radius: 8px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--gray-dark);
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
  background: white;
}

.write-group input:focus,
.write-group select:focus,
.write-group textarea:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(45, 122, 79, 0.1);
}

.write-group textarea {
  resize: vertical;
  min-height: 320px;
  line-height: 1.7;
}

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

.write-toolbar {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.tb-btn {
  background: var(--green-pale);
  border: 1px solid var(--gray-light);
  border-radius: 5px;
  padding: 5px 10px;
  font-size: 12.5px;
  cursor: pointer;
  color: var(--green-dark);
  font-weight: 500;
  transition: background 0.15s;
}

.tb-btn:hover {
  background: #c8e6d4;
}

.emoji-picker {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.emoji-btn {
  background: white;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.emoji-btn:hover {
  transform: scale(1.2);
  background: var(--green-pale);
}

.write-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.publish-btn {
  background: var(--green-dark);
  color: white;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.publish-btn:hover {
  background: var(--green-mid);
}

.preview-btn {
  background: white;
  color: var(--green-dark);
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  border: 2px solid var(--green-mid);
  cursor: pointer;
}

.char-count {
  font-size: 12px;
  color: var(--gray-mid);
  text-align: right;
  margin-top: 4px;
}

.draft-notice {
  background: var(--gold-light);
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--green-dark);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.post-success {
  background: var(--green-pale);
  border: 1px solid var(--green-mid);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  display: none;
}

.post-success h4 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--green-dark);
  margin-bottom: 8px;
}

.post-success p {
  color: var(--gray-mid);
  margin-bottom: 16px;
  font-size: 14px;
}

.test-card {
  background: var(--green-pale);
  border-radius: 14px;
  padding: 28px;
  border-left: 4px solid var(--green-mid);
}

.test-card .quote {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  color: var(--green-mid);
  line-height: 1;
  margin-bottom: 12px;
}

.test-card p {
  font-size: 14px;
  color: var(--gray-mid);
  line-height: 1.7;
  margin-bottom: 18px;
  font-style: italic;
}

.test-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.test-avatar {
  width: 42px;
  height: 42px;
  font-weight: 600;
  font-size: 14px;
}

.test-author-info h5 {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green-dark);
}

.test-author-info p {
  font-size: 12px;
  color: var(--gray-mid);
  margin: 0;
}

.cta-strip {
  background: var(--gold);
  padding: 56px 0;
}

.cta-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.cta-inner h2 {
  font-size: 34px;
  color: var(--green-dark);
  font-weight: 700;
  margin-bottom: 14px;
}

.cta-inner p {
  font-size: 16px;
  color: var(--green-dark);
  opacity: 0.8;
  margin-bottom: 28px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-dark {
  background: var(--green-dark);
  color: white;
  padding: 13px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 15px;
}

.contact {
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-size: 26px;
  color: var(--green-dark);
  margin-bottom: 20px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-icon {
  width: 42px;
  height: 42px;
  background: var(--green-pale);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-detail h5 {
  font-size: 13px;
  color: var(--gray-mid);
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-detail p {
  font-size: 14.5px;
  color: var(--gray-dark);
  font-weight: 500;
}

.contact-form {
  background: white;
  border-radius: 14px;
  padding: 32px;
  border: 1px solid var(--gray-light);
}

.contact-form h3 {
  font-size: 22px;
  color: var(--green-dark);
  margin-bottom: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.map-box {
  height: 260px;
  background: linear-gradient(135deg, #e8f5ee, #c8e6d4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 24px;
  border: 1px solid var(--gray-light);
  flex-direction: column;
  gap: 10px;
}

.map-box p {
  color: var(--green-mid);
  font-size: 14px;
  font-weight: 500;
}

.map-box a {
  color: var(--green-dark);
  font-size: 13px;
  text-decoration: underline;
}

footer {
  background: var(--green-dark);
  color: #a8c8b0;
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 36px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand h2 {
  font-size: 20px;
  color: white;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 20px;
}

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

.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  font-size: 15px;
  transition: background 0.2s;
}

.social-link:hover {
  background: var(--gold);
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: white;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 13.5px;
  color: #a8c8b0;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 12.5px;
  color: #7a9e88;
}

.neb-badge {
  font-size: 12px;
  color: var(--gold);
  font-weight: 500;
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.open {
  display: flex;
}

.modal-box {
  background: white;
  border-radius: 16px;
  max-width: 640px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 36px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gray-light);
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-mid);
}

.modal-title {
  font-size: 26px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.modal-meta {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--gray-light);
  padding-bottom: 16px;
}

@media (max-width: 1120px) and (min-width: 981px) {
  .header-inner {
    padding-left: 18px;
    padding-right: 18px;
    gap: 12px;
  }

  .logo-area {
    gap: 10px;
  }

  .logo-circle {
    width: 58px;
    height: 58px;
    border-width: 2px;
  }

  .school-name-block h1 {
    font-size: 19px;
  }

  .school-name-block p {
    font-size: 10px;
    letter-spacing: 0.8px;
  }

  .school-name-block .est {
    font-size: 10px;
  }

  nav ul {
    gap: 2px;
    padding: 4px;
  }

  nav ul li a {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 12.5px;
  }

  .admit-btn {
    padding: 7px 12px !important;
  }

  .search-nav-item {
    padding: 0 1px;
  }

  .search-trigger {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 980px) {
  nav ul {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 900px) {
  .hero-inner,
  .news-layout,
  .notice-grid,
  .contact-grid,
  .write-grid {
    grid-template-columns: 1fr;
  }

  .hero-text h2 {
    font-size: 34px;
  }

  .hero-stats {
    grid-template-columns: repeat(4, 1fr);
  }

  nav ul {
    display: none;
  }

  .hamburger {
    display: flex;
  }

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

  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .blog-grid,
  .blog-listing-grid,
  .test-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-main,
  .quick-strip-inner {
    grid-template-columns: 1fr 1fr;
  }

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

  .post-reader-title {
    font-size: 26px;
  }
}

@media (max-width: 600px) {
  .programs-grid,
  .blog-grid,
  .blog-listing-grid,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .hero-stats,
  .facilities-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .header-inner,
  .topbar-inner,
  .blog-page-header-inner {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  background: var(--green-dark);
  color: white;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-category {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--gold);
  color: var(--green-dark);
  padding: 4px 12px;
  border-radius: 20px;
}

.modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 24px;
  max-height: calc(90vh - 80px);
  overflow-y: auto;
}

.modal-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--green-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.modal-meta {
  font-size: 14px;
  color: var(--gray-mid);
  margin-bottom: 20px;
}

.modal-text {
  line-height: 1.7;
  color: var(--gray-dark);
  font-size: 16px;
}

.modal-text img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 16px 0;
}

.modal-text iframe {
  max-width: 100%;
  border-radius: 8px;
}
/* Newsroom Page Styles */
.newsroom-hero {
  background: linear-gradient(135deg, var(--green-dark), #2d5a3a);
  padding: 80px 0 60px;
  color: white;
  text-align: center;
}

.newsroom-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  margin-bottom: 16px;
}

.newsroom-hero p {
  color: #b8d4be;
  max-width: 700px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.6;
}

.newsroom-container {
  max-width: 1200px;
  margin: -40px auto 80px;
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.05);
  position: relative;
  z-index: 10;
}

.newsroom-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
  border-bottom: 1px solid var(--gray-light);
  padding-bottom: 24px;
}

.newsroom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.nr-card {
  background: white;
  border-radius: 14px;
  border: 1px solid var(--gray-light);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.nr-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  border-color: var(--green-light);
}

.nr-img {
  height: 180px;
  background: var(--green-pale);
  position: relative;
}

.nr-cat-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: white;
  color: var(--green-dark);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.nr-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.nr-body h3 {
  font-size: 19px;
  color: var(--green-dark);
  margin-bottom: 12px;
  line-height: 1.4;
}

.nr-body p {
  font-size: 14.5px;
  color: var(--gray-mid);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.nr-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid #f5f5f5;
  font-size: 13px;
  color: var(--gray-mid);
}

.nr-read-btn {
  color: var(--green-mid);
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nr-read-btn:hover {
  color: var(--green-dark);
}

@media (max-width: 768px) {
  .newsroom-container {
    margin: 0;
    border-radius: 0;
    padding: 24px;
  }
  .newsroom-hero {
    padding: 60px 24px 80px;
  }
  .newsroom-hero h1 {
    font-size: 32px;
  }
}

/* Careers Section */
.careers {
  background: var(--white);
  padding: 80px 0;
}

.career-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.career-card {
  background: var(--cream);
  padding: 40px;
  border-radius: 16px;
  border: 1px solid var(--gray-light);
  border-bottom: 4px solid var(--green-mid);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.career-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(26, 77, 46, 0.1);
  border-bottom-color: var(--gold);
}

.career-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--green-dark);
  margin: 15px 0 12px;
}

.career-card p {
  font-size: 14.5px;
  color: var(--gray-mid);
  line-height: 1.7;
  margin-bottom: 25px;
  flex-grow: 1;
}

.career-card .btn-link {
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.2s;
}

.career-card .btn-link:hover {
  gap: 12px;
}

@media (max-width: 768px) {
  .careers {
    padding: 60px 0;
  }
}

/* Floating Admission Button */
.floating-admission-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--gold);
  color: var(--green-dark);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(200, 146, 42, 0.3);
  z-index: 9999;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 2px solid var(--white);
  animation: pulse-gold 2s infinite;
}

@keyframes pulse-gold {
  0% { box-shadow: 0 0 0 0 rgba(200, 146, 42, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(200, 146, 42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 146, 42, 0); }
}

.floating-admission-btn:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 15px 35px rgba(200, 146, 42, 0.4);
  background: var(--green-dark);
  color: var(--gold);
  border-color: var(--gold);
  animation: none;
}

.floating-admission-btn .icon {
  font-size: 22px;
}

@media (max-width: 768px) {
  .floating-admission-btn {
    bottom: 20px;
    right: 20px;
    padding: 12px 22px;
    font-size: 14px;
  }
}
