:root {
  --bes-green: #608138;
  --bes-green-dark: #496629;
  --bes-orange: #b85d0d;
  --bes-cream: #f3f3df;
  --bes-soft: #f7f9f5;
  --bes-ink: #1a1a1a;
  --bes-muted: #5f655a;
  --bes-line: #dce4d4;
}

.content-main {
  overflow: hidden;
  /* Solid white strip behind the transparent navbar (like the rest of the
     site), plus a bit of breathing room below it before the cream hero
     starts. Keep .content-hero-copy's own top padding small (just internal
     spacing) — it should NOT also carry navbar clearance, or the two stack
     into a huge empty gap. */
  padding-top: 120px;
}

@media (max-width: 700px) {
  /* .header switches to position: relative below this breakpoint (see style.css),
     so it no longer overlays the content and doesn't need extra top padding. */
  .content-main {
    padding-top: 32px;
  }
}

@media (max-width: 550px) {
  /* style.css re-fixes .header at this breakpoint (overlaid navbar for the
     home hero), so .content-main needs its top clearance back here too. */
  .content-main {
    padding-top: 120px;
  }
}

.content-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  min-height: min(670px, calc(100vh - 80px));
  background: var(--bes-cream);
}

.content-hero--text-only {
  grid-template-columns: 1fr;
  min-height: 0;
}

.content-hero--text-only .content-hero-copy {
  padding-bottom: clamp(48px, 6vw, 88px);
}

/* News & Announcement / On-Going Projects: match the About Us heading
   style — the big title in the orange accent color instead of dark ink. */
#newsHero .content-title,
#ongoingHero .content-title {
  color: #000000;
}

.content-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(24px, 4vw, 64px) clamp(28px, 7vw, 112px) clamp(64px, 8vw, 132px);
  /* Grid items default to min-width: auto, so an unbreakable word in
     .content-title (e.g. "ANNOUNCEMENT") would otherwise force this whole
     column — and everything in it — wider than the viewport, which then
     gets sliced off by .content-main's overflow: hidden. */
  min-width: 0;
}

.content-kicker,
.article-kicker {
  margin-bottom: 18px;
  color: var(--bes-green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.content-title,
.article-title {
  max-width: 900px;
  color: #000000;
  font-size: clamp(42px, 6vw, 92px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

.content-title .accent {
  color: #000000;
}

.content-intro {
  max-width: 720px;
  margin-top: 28px;
  color: #3b4137;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.75;
}

.content-hero-media {
  min-height: 520px;
  position: relative;
}

.content-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.content-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(243, 243, 223, 0.18), transparent 32%);
  pointer-events: none;
}

.content-body {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(70px, 9vw, 128px) 0;
}

.content-section + .content-section {
  margin-top: clamp(72px, 9vw, 118px);
  padding-top: clamp(60px, 7vw, 90px);
  border-top: 1px solid var(--bes-line);
}

.content-section-head {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(36px, 7vw, 108px);
  align-items: start;
}

.content-section-head-plain {
  text-align: left;
}

.content-section-label {
  color: var(--bes-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.content-section-title {
  max-width: 760px;
  color: #000000;
  font-size: clamp(30px, 4.1vw, 58px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.04;
  text-transform: uppercase;
}

.content-copy {
  max-width: 780px;
  margin-top: 28px;
  color: #353a32;
  font-size: 16px;
  line-height: 1.8;
}

.content-copy p + p {
  margin-top: 20px;
}

.content-copy ul {
  display: grid;
  gap: 14px;
  margin: 22px 0 0 20px;
}

.content-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 54px;
  background: var(--bes-line);
  border: 1px solid var(--bes-line);
}

.content-stat {
  min-height: 200px;
  padding: 30px;
  background: #fff;
}

.content-stat-value {
  display: block;
  color: var(--bes-green);
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.content-stat-label {
  display: block;
  margin-top: 18px;
  color: var(--bes-muted);
  font-size: 13px;
  line-height: 1.55;
}

.content-timeline {
  display: grid;
  gap: 0;
  margin-top: 42px;
  border-top: 1px solid var(--bes-line);
}

.content-timeline-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--bes-line);
}

.content-year {
  color: #000000;
  font-weight: 700;
}

.content-program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.content-program-card {
  min-height: 285px;
  padding: 30px;
  border: 1px solid var(--bes-line);
  border-radius: 14px;
  background: var(--bes-soft);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.content-program-card:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 129, 56, 0.45);
  box-shadow: 0 18px 38px rgba(39, 58, 24, 0.12);
}

.content-card-number {
  color: var(--bes-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.content-card-title {
  margin-top: 26px;
  color: #000000;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  text-transform: uppercase;
}

.content-card-link {
  margin-top: auto;
  padding-top: 40px;
  color: var(--bes-orange);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.content-action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 7px;
  background: var(--bes-green);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s ease, transform 0.2s ease;
}

.content-action:hover {
  background: var(--bes-green-dark);
  transform: translateY(-2px);
}

.content-action--secondary {
  background: var(--bes-orange);
}

.article-page {
  background: #fff;
}

.article-hero {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0 0 40px;
}

/* Standalone article pages (news-board-meeting-2026.html etc.) have no
   .content-main wrapper, so .article-back — now the first element in
   <main> — carries the navbar clearance that used to live on .article-hero. */
.article-page .article-back {
  display: flex;
  width: min(1180px, calc(100% - 48px));
  margin: clamp(72px, 9vw, 128px) auto 24px;
}

.article-title {
  max-width: 1060px;
  font-size: clamp(28px, 3.6vw, 44px);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  color: var(--bes-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.article-meta::before {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--bes-orange);
}

.article-image {
  width: min(1180px, calc(100% - 48px));
  max-height: 480px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 16px;
}

.article-image img {
  width: 100%;
  height: min(42vw, 480px);
  min-height: 260px;
  object-fit: cover;
  display: block;
}

.article-body {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(60px, 8vw, 105px) 0 clamp(82px, 10vw, 140px);
  color: #31362e;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.9;
}

.article-body p + p {
  margin-top: 26px;
}

.article-body a {
  color: var(--bes-green);
  text-decoration: underline;
}

.article-body a:hover {
  color: var(--bes-green-dark);
}

.article-back {
  display: inline-flex;
  margin-bottom: 38px;
  color: var(--bes-green);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* ===== SUBMIT AN ARTICLE FORM ===== */
.submit-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.article-form {
  display: grid;
  gap: 20px;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field--full {
  grid-column: 1 / -1;
}

.form-label {
  color: var(--bes-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.form-label .required {
  color: var(--bes-orange);
}

.form-input {
  width: 100%;
  border: 1px solid var(--bes-line);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--bes-ink);
  background: #fff;
}

.form-input:focus {
  outline: none;
  border-color: var(--bes-green);
  box-shadow: 0 0 0 3px rgba(96, 129, 56, 0.15);
}

.form-file-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.form-file-wrap input[type="file"] {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
}

.form-note {
  font-size: 12px;
  color: var(--bes-muted);
  margin-top: -2px;
}

.form-submit-btn {
  justify-self: start;
  min-width: 160px;
  height: 48px;
  padding: 0 28px;
  border: none;
  border-radius: 0;
  background: var(--bes-green);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.form-submit-btn:hover {
  background: var(--bes-green-dark);
}

.form-status {
  font-size: 13px;
  font-weight: 600;
  margin-top: -6px;
}

.form-status.is-success { color: var(--bes-green); }
.form-status.is-error { color: #b3261e; }

.guidelines-box {
  border: 1px solid var(--bes-line);
  border-radius: 14px;
  padding: 28px;
  background: var(--bes-soft);
}

.guidelines-heading {
  color: var(--bes-green);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.guideline-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid var(--bes-line);
  border-radius: 8px;
  color: var(--bes-green-dark);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.guideline-link:last-child {
  margin-bottom: 0;
}

.guideline-link:hover {
  background: #edf4e7;
  border-color: var(--bes-green);
}

.guideline-link iconify-icon {
  font-size: 18px;
  color: var(--bes-green);
}

@media (max-width: 980px) {
  .submit-article-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-submit-btn {
    justify-self: stretch;
  }
}

/* ===== NEWS & ANNOUNCEMENTS LISTING ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.news-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 56px;
}

.news-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 6px;
  border: 1px solid var(--bes-line);
  border-radius: 8px;
  background: #fff;
  color: var(--bes-ink);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.news-page-btn:hover:not(:disabled) {
  background: var(--bes-green);
  border-color: var(--bes-green);
  color: #fff;
}

.news-page-btn.active {
  background: var(--bes-green);
  border-color: var(--bes-green);
  color: #fff;
  cursor: default;
}

.news-page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.news-jump {
  width: 44px;
  height: 36px;
  border: 1px dashed var(--bes-line);
  border-radius: 8px;
  text-align: center;
  font: inherit;
  font-weight: 600;
  color: var(--bes-ink);
  background: #fff;
}

.news-jump::placeholder {
  color: #9aa08e;
}

.news-jump:focus {
  outline: none;
  border-style: solid;
  border-color: var(--bes-green);
}

.news-jump::-webkit-outer-spin-button,
.news-jump::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* ===== NEWS DETAIL (dynamic, in-page) ===== */
/* .content-body's top padding exists to clear the hero above it; the detail
   view hides that hero, so without this the padding becomes dead space
   above "Back to News". */
.content-body.is-detail-view {
  padding-top: 16px;
}

#newsDetail .article-back {
  margin-bottom: 18px;
}

#newsDetail .article-hero {
  padding: 0 0 28px;
}

#newsDetail .article-title {
  font-size: clamp(28px, 3.6vw, 44px);
}

#newsDetail .article-meta {
  margin-top: 16px;
}

.na-detail-wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.na-detail-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 56px;
  align-items: start;
}

.na-detail-main .article-body {
  width: auto;
  max-width: 760px;
  margin: 0;
  padding-top: 0;
}

.na-detail-main .article-body,
.na-detail-main .article-body * {
  font-family: 'Inter', system-ui, sans-serif;
}

.na-gal-title {
  color: #000000;
  font-size: 22px;
  font-weight: 600;
  margin: 40px 0 18px;
  letter-spacing: -0.02em;
}

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

.na-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  background: #e8ece1;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}

.na-gallery img:hover {
  transform: translateY(-3px);
}

.na-related {
  position: sticky;
  top: 130px;
  border: 1px solid var(--bes-line);
  border-radius: 14px;
  padding: 22px;
  background: #fafbf7;
}

.na-related-title {
  color: var(--bes-green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--bes-line);
}

.na-related-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--bes-line);
  cursor: pointer;
}

.na-related-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.na-related-thumb {
  width: 84px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  flex: none;
  background: #e8ece1;
}

.na-related-info h3 {
  font-size: 13px;
  line-height: 1.35;
  color: #1a1a1a;
  margin: 0 0 6px;
  font-weight: 600;
}

.na-related-date {
  color: var(--bes-green);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.na-related-item:hover .na-related-info h3 {
  color: var(--bes-green);
}

.na-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 12, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 24px;
  cursor: zoom-out;
}

.na-lightbox.open {
  display: flex;
}

.na-lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
}

@media (max-width: 960px) {
  .na-detail-cols {
    grid-template-columns: 1fr;
  }

  .na-related {
    position: static;
  }
}

@media (max-width: 620px) {
  .na-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .content-hero {
    grid-template-columns: 1fr;
  }

  .content-hero-media {
    min-height: 430px;
    order: -1;
  }

  .content-section-head {
    grid-template-columns: 1fr;
  }

  .content-stats,
  .content-program-grid,
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .content-hero-media {
    min-height: 300px;
  }

  .content-hero-copy {
    padding: 24px 24px 66px;
  }

  .content-body,
  .article-hero,
  .article-image,
  .article-body {
    width: min(100% - 32px, 1180px);
  }

  .content-title,
  .article-title {
    font-size: clamp(38px, 13vw, 58px);
  }

  .article-title {
    font-size: clamp(28px, 8vw, 38px);
  }

  /* "NEWS & ANNOUNCEMENT" / "ON-GOING PROJECTS" are long two-word titles —
     give them a tighter clamp than the shared .content-title so they don't
     need to wrap onto a 3rd line or break mid-word on narrow phones. */
  #newsHero .content-title,
  #ongoingHero .content-title {
    font-size: clamp(28px, 9vw, 40px);
  }

  .content-stats,
  .content-program-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .content-stat {
    min-height: 160px;
  }

  .content-timeline-row {
    grid-template-columns: 72px 1fr;
    gap: 18px;
  }

  .article-image img {
    min-height: 260px;
  }
}

