: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;
}

* {
  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: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

.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 ul {
  list-style: none;
  display: flex;
  gap: 4px;
  align-items: center;
}

nav ul li {
  position: relative;
}

nav ul li a {
  display: block;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-dark);
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
  background: var(--green-pale);
  color: var(--green-dark);
}

nav ul li .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid var(--gray-light);
  border-radius: 8px;
  min-width: 200px;
  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 {
  border-radius: 0;
  padding: 10px 18px;
  font-size: 13.5px;
  border-bottom: 1px solid #f0f0f0;
}

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: 6px !important;
  padding: 9px 18px !important;
}

.admit-btn:hover {
  background: var(--green-mid) !important;
  color: white !important;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.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: 2fr 1fr;
  gap: 32px;
}

.news-featured {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--gray-light);
}

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

.news-feat-img .feat-cat {
  background: var(--gold);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: inline-block;
}

.news-feat-img .feat-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: white;
  font-weight: 600;
  line-height: 1.3;
}

.news-feat-body {
  padding: 22px 24px;
}

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

.news-feat-body p {
  font-size: 14.5px;
  color: var(--gray-mid);
  line-height: 1.7;
  margin-bottom: 16px;
}

.news-feat-body a {
  font-size: 13.5px;
  color: var(--green-mid);
  font-weight: 600;
  text-decoration: none;
}

.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-card {
  background: white;
  border-radius: 10px;
  border: 1px solid var(--gray-light);
  padding: 16px;
  transition: box-shadow 0.2s;
  cursor: pointer;
}

.news-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.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);
}

.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: 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;
  }
}
