.reveal-on-scroll {
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 14px, 0);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
}

.document-attachment-link {
  border-color: #dbe4f0;
  background-color: #f8fafc;
  color: #1e40af;
}

.document-attachment-link:hover {
  border-color: #bfccdc;
  background-color: #f1f5f9;
  color: #1e3a8a;
}

.document-attachment-icon {
  color: #dc2626;
}

.news-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(20, 184, 166, 0.07), transparent 34rem),
    #f8fafc;
}

.news-section-intro {
  max-width: 44rem;
  margin: 0 auto 2.25rem;
  text-align: center;
}

.news-section-kicker {
  display: inline-block;
  color: #a16207;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.news-section-intro h2 {
  margin-top: 0.45rem;
  color: #0f172a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
}

.news-section-intro p {
  margin: 0.65rem 0 0;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
}

.news-feature-card {
  overflow: hidden;
  border-color: #e2e8f0;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.news-feature-card > div:first-child {
  border-color: #e8eef5;
}

.news-feature-card .fb-page {
  min-height: 24rem;
}

.news-updates-column {
  min-width: 0;
}

.news-updates-heading {
  min-height: 4.25rem;
  border-color: #dbe4ed;
}

.news-updates-heading h2 {
  margin-top: 0.2rem;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  line-height: 1.2;
}

.news-updates-heading > a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid #cce9e4;
  border-radius: 9999px;
  background: #fff;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.news-updates-heading > a::after {
  content: "\f061";
  font-family: "Font Awesome 7 Free";
  font-size: 0.65rem;
  font-weight: 900;
  transition: transform 160ms ease;
}

.news-updates-heading > a:hover {
  border-color: #0f766e;
  background: #0f766e;
  color: #fff;
}

.news-updates-heading > a:hover::after {
  transform: translateX(2px);
}

.news-announcement-card {
  overflow: hidden;
  padding: 1rem;
  border-color: #e2e8f0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.news-announcement-card:hover {
  transform: translateY(-2px);
  border-color: #99c9c2;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.09);
}

.news-announcement-image-frame {
  display: flex;
  width: 7.5rem;
  height: 7.5rem;
  flex: 0 0 7.5rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  border: 1px solid #e8edf2;
  border-radius: 0.75rem;
  background: #f8fafc;
}

.news-announcement-image {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0.25rem;
  object-fit: contain;
  object-position: center;
}

.news-announcement-layout {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.news-announcement-main {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: flex-start;
  gap: 1rem;
}

.news-announcement-calendar {
  display: flex;
  width: 3.5rem;
  min-height: 3.5rem;
  flex: 0 0 3.5rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  border: 1px solid #fcd34d;
  border-radius: 0.85rem;
  background: linear-gradient(160deg, #fffbeb, #fef3c7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.news-announcement-calendar span {
  color: #92400e;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.news-announcement-calendar strong {
  color: #451a03;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.15;
}

.news-announcement-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.news-announcement-title {
  margin-top: 0.15rem;
  font-size: 1rem;
  line-height: 1.4;
  transition: color 160ms ease;
}

.news-announcement-card:hover .news-announcement-title {
  color: #0f766e;
}

.news-announcement-footer {
  color: #0f766e;
}

.news-read-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #9a3412;
  font-size: 0.67rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.news-read-link i {
  transition: transform 160ms ease;
}

.news-announcement-card:hover .news-read-link i {
  transform: translateX(3px);
}

@media (max-width: 640px) {
  .news-announcement-card {
    padding: 0.8rem;
  }

  .news-announcement-layout {
    gap: 0.65rem;
  }

  .news-announcement-main {
    gap: 0.65rem;
  }

  .news-announcement-calendar {
    width: 2.8rem;
    min-height: 3.1rem;
    flex-basis: 2.8rem;
  }

  .news-announcement-image-frame {
    width: 5rem;
    height: 5rem;
    flex-basis: 5rem;
  }

  .news-announcement-footer {
    flex-wrap: wrap;
    font-size: 0.62rem;
  }
}

.news-empty-state {
  display: flex;
  min-height: 13rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border: 1px dashed #cbd5e1;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.news-empty-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 1rem;
  background: #ccfbf1;
  color: #0f766e;
  font-size: 1.2rem;
}

.news-empty-state h3 {
  margin-top: 0.9rem;
  color: #1e293b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.news-empty-state p {
  margin-top: 0.35rem;
  color: #64748b;
  font-size: 0.85rem;
}

.sb-updates-section {
  border-block: 1px solid #e2e8f0;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(36, 75, 187, 0.06), transparent 34rem),
    #f8fafc;
}

.sb-updates-container {
  width: 92%;
  max-width: 1280px;
  margin-inline: auto;
  padding-block: 4rem;
}

.sb-updates-intro {
  max-width: 44rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.sb-updates-kicker {
  color: #9a5a00;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.sb-updates-intro h2 {
  margin-top: 0.35rem;
  color: #142a39;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  font-weight: 700;
  line-height: 1.15;
}

.sb-updates-intro p {
  margin-top: 0.65rem;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.6;
}

.sb-updates-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: 2rem;
}

.sb-facebook-card {
  min-width: 0;
  padding: 1.4rem;
  border: 1px solid #dfe7ef;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.055);
}

.sb-facebook-heading {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e8eef5;
}

.sb-facebook-mark {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  place-items: center;
  border-radius: 50%;
  background: #1877f2;
  color: #fff;
  font-size: 1.15rem;
}

.sb-facebook-heading h3 {
  color: #172033;
  font-size: 0.95rem;
  font-weight: 800;
}

.sb-facebook-heading p {
  margin-top: 0.15rem;
  color: #64748b;
  font-size: 0.73rem;
}

.sb-facebook-heading > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  color: #1d4ed8;
  font-size: 0.7rem;
  font-weight: 800;
  white-space: nowrap;
}

.sb-facebook-heading > a:hover {
  color: #1e3a8a;
}

.sb-facebook-heading > a i {
  font-size: 0.6rem;
}

.sb-facebook-embed {
  position: relative;
  height: 25rem;
  overflow: hidden;
  border: 1px solid #e8eef5;
  border-radius: 0.9rem;
  background: #f8fafc;
}

.sb-facebook-embed > div {
  position: absolute;
  top: -4.375rem;
  left: 0;
  width: 100%;
}

.sb-updates-column {
  min-width: 0;
}

.sb-updates-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #dbe4ed;
}

.sb-updates-heading h3 {
  margin-top: 0.15rem;
  color: #142a39;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.2;
}

.sb-updates-heading > a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.8rem;
  border: 1px solid #d7e6e7;
  border-radius: 9999px;
  background: #fff;
  color: #0f766e;
  font-size: 0.7rem;
  font-weight: 800;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.sb-updates-heading > a::after {
  content: "\f061";
  font-family: "Font Awesome 7 Free";
  font-size: 0.6rem;
  font-weight: 900;
  transition: transform 160ms ease;
}

.sb-updates-heading > a:hover {
  border-color: #641116;
  background: #641116;
  color: #fff;
}

.sb-updates-heading > a:hover::after {
  transform: translateX(2px);
}

.sb-news-list {
  display: grid;
  gap: 0.7rem;
}

.sb-news-card {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem;
  border: 1px solid #e1e8ef;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.035);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.sb-news-card:hover {
  transform: translateY(-2px);
  border-color: #c8a963;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.sb-news-date {
  display: flex;
  width: 3.5rem;
  min-height: 3.5rem;
  flex: 0 0 3.5rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #f4d37a;
  border-radius: 0.8rem;
  background: linear-gradient(150deg, #fffbeb, #fef3c7);
}

.sb-news-date span {
  color: #92400e;
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.sb-news-date strong {
  color: #451a03;
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.1;
}

.sb-news-copy {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
}

.sb-news-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.25rem;
  color: #8a4b08;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sb-news-copy > strong {
  display: -webkit-box;
  overflow: hidden;
  color: #142a39;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.sb-news-summary {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 0.2rem;
  color: #64748b;
  font-size: 0.72rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sb-news-published {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.45rem;
  color: #0f766e;
  font-size: 0.63rem;
  font-weight: 800;
}

.sb-news-thumbnail {
  display: grid;
  width: 5.75rem;
  height: 5.75rem;
  flex: 0 0 5.75rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e5ebf0;
  border-radius: 0.75rem;
  background: #f8fafc;
  color: #9a5a00;
  font-size: 1.35rem;
}

.sb-news-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sb-news-empty {
  display: flex;
  min-height: 12rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border: 1px dashed #cbd5e1;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.85);
  text-align: center;
}

.sb-news-empty > span {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border-radius: 0.85rem;
  background: #fef3c7;
  color: #854d0e;
  font-size: 1.1rem;
}

.sb-news-empty h4 {
  margin-top: 0.65rem;
  color: #142a39;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.sb-news-empty p {
  margin-top: 0.3rem;
  color: #64748b;
  font-size: 0.75rem;
}

.sb-ex-officio-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.sb-ex-officio-grid > article {
  width: calc(25% - 1rem);
}

@media (max-width: 900px) {
  .sb-updates-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sb-facebook-card {
    max-width: 40rem;
    width: 100%;
    margin-inline: auto;
  }

  .sb-ex-officio-grid > article {
    width: calc(50% - 0.625rem);
  }
}

@media (max-width: 640px) {
  .sb-updates-container {
    padding-block: 2.75rem;
  }

  .sb-updates-intro {
    margin-bottom: 1.75rem;
  }

  .sb-ex-officio-grid > article {
    width: 100%;
  }

  .sb-facebook-card {
    padding: 1rem;
    border-radius: 1.15rem;
  }

  .sb-facebook-heading {
    flex-wrap: wrap;
    gap: 0.65rem;
  }

  .sb-facebook-heading > a {
    margin-left: auto;
  }

  .sb-facebook-embed {
    height: 24rem;
  }

  .sb-news-card {
    gap: 0.6rem;
    padding: 0.65rem;
  }

  .sb-news-date {
    width: 2.8rem;
    min-height: 3.1rem;
    flex-basis: 2.8rem;
  }

  .sb-news-thumbnail {
    width: 4.5rem;
    height: 4.5rem;
    flex-basis: 4.5rem;
  }

  .sb-news-copy > strong {
    font-size: 0.8rem;
  }

  .sb-news-summary {
    font-size: 0.66rem;
  }

}

.announcement-modal-backdrop {
  background: rgba(15, 23, 42, 0.64);
  backdrop-filter: blur(5px);
  padding: 1rem;
  z-index: 100;
}

.announcement-modal-panel {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 52rem;
  max-height: min(88vh, 56rem);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.3);
}

.announcement-modal-header {
  flex: 0 0 auto;
  align-items: flex-start;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}

.announcement-modal-type {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid #d1fae5;
  border-radius: 0.4rem;
  background: #ecfdf5;
  color: #0f766e;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.announcement-modal-title {
  max-width: 68rem;
  margin-top: 0.65rem;
  color: #0f172a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.announcement-modal-close {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0.75rem;
  background: #f8fafc;
  color: #475569;
  font-size: 1.1rem;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
  cursor: pointer;
}

.announcement-modal-close:hover {
  background: #e2e8f0;
  color: #0f766e;
}

.announcement-modal-close:focus-visible {
  outline: 3px solid #14b8a6;
  outline-offset: 3px;
}

.announcement-modal-body {
  overflow-y: auto;
  padding: 1.5rem 2rem 2rem;
}

.announcement-modal-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 64rem;
  margin: 0 auto 1.75rem;
}

.announcement-modal-image {
  display: block;
  width: 100%;
  height: min(48vh, 34rem);
  min-height: 16rem;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  background: #fff;
  object-fit: contain;
  object-position: center;
}

.announcement-modal-content {
  max-width: 58rem;
  margin: 0;
  margin-right: auto;
  margin-left: auto;
  color: #334155;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.9;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.announcement-modal-date {
  margin-top: 0.8rem;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.announcement-modal-date::before {
  margin-right: 0.45rem;
  color: #0f766e;
  content: "\f017";
  font-family: "Font Awesome 7 Free";
  font-weight: 400;
}

.announcement-modal-backdrop.has-image {
  align-items: center;
  padding: 1.5rem;
}

.announcement-modal-backdrop.has-image .announcement-modal-panel {
  width: 100%;
  max-width: 76rem;
  height: auto;
  max-height: min(90vh, 64rem);
  border: 1px solid #e2e8f0;
  border-radius: 1.25rem;
}

@media (max-width: 640px) {
  .announcement-modal-backdrop {
    align-items: flex-end;
    padding: 0.5rem;
  }

  .announcement-modal-panel {
    max-height: 92vh;
    border-radius: 1.25rem;
  }

  .announcement-modal-backdrop.has-image {
    align-items: center;
    padding: 0.75rem;
  }

  .announcement-modal-backdrop.has-image .announcement-modal-panel {
    max-height: 92vh;
    border-radius: 1.25rem;
  }

  .announcement-modal-header,
  .announcement-modal-body {
    padding: 1.1rem;
  }

  .announcement-modal-image {
    height: min(42vh, 24rem);
    min-height: 12rem;
    padding: 0.5rem;
  }
}

.hero-backdrop {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: #0d9488;
}

.hero-backdrop::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Top-down gradient: subtle teal at the top, amber dominating from 30% down */
  /* background-image: 
    linear-gradient(to bottom, rgba(13, 148, 136, 0.22) 0%, rgba(217, 119, 6, 0.40) 30%, rgba(217, 119, 6, 0.40) 100%),
    url('/img/backdrop.webp'); */
  background-image: url('/img/backdrop.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: backdropPan 28s ease-in-out infinite alternate;
  transform-origin: center center;
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.12), transparent 38%);
  pointer-events: none;
  z-index: 1;
}

.hero-banner-image {
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  animation: heroBannerFadeUp 0.8s ease-out forwards;
  animation-delay: 120ms;
}

.hero-banner-graphic {
  width: 100%;
  display: block;
  aspect-ratio: 1904 / 650;
  background-image: url('/img/hero_banner.webp');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;
}

.hero-backdrop {
  line-height: 0;
  display: block;
}

.department-hero {
  min-height: 340px;
  line-height: normal;
  display: flex;
  align-items: center;
}

.department-hero-content {
  position: relative;
  z-index: 2;
}

.department-hero-compact {
  line-height: normal;
}

.department-hero-compact::before {
  background-image: linear-gradient(45deg, rgba(0, 65, 65, 0.9), rgba(145, 72, 0, 0.78)), url('/img/backdrop.webp');
  background-position: center;
  transform: none;
  animation: none;
}

@keyframes heroBannerFadeUp {
  0% {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes backdropPan {
  0% {
    background-position: center;
    transform: scale(1);
  }
  50% {
    background-position: 52% 48%;
    transform: scale(1.03);
  }
  100% {
    background-position: 48% 52%;
    transform: scale(1.06);
  }
}
