:root {
  --gov-navy: #0b2e59;
  --gov-blue: #1b4f91;
  --gov-sky: #e9f1fb;
  --gov-saffron: #f28c28;
  --gov-green: #2f8f4e;
  --text: #1e2c3d;
  --muted: #5b6d82;
  --white: #ffffff;
  --line: #d7e1ee;
  --soft: #f4f7fb;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--soft);
  line-height: 1.55;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.container {
  width: min(1180px, 93%);
  margin: 0 auto;
}

.top-strip {
  background: #188038;
  color: #f3fff5;
  font-size: 0.78rem;
  padding: 0.35rem 0.8rem;
}

.top-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.top-strip-inner span {
  font-weight: 500;
}

.social-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.social-icon {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}

.social-icon svg {
  width: 13px;
  height: 13px;
}

.gov-identity {
  background: linear-gradient(90deg, #f28c28, #f4a142);
  border-bottom: 1px solid #d97b1d;
  box-shadow: inset 0 -1px 0 #d97b1d;
  position: relative;
  z-index: 90;
}

.gov-identity .container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.75rem 1rem;
}

.emblem {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: transparent;
  border: none;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.site-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.gov-identity h1 {
  font-size: 1.36rem;
  color: var(--gov-navy);
}

.gov-identity p {
  color: var(--muted);
  font-size: 0.8rem;
}

.utility {
  text-align: right;
  font-size: 0.76rem;
  color: #425871;
  max-width: 860px;
  display: block;
}

.identity-menu {
  display: block;
}

.identity-menu-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
  list-style: none;
  overflow: visible;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 10px;
  padding: 0.35rem 0.5rem;
}

.identity-menu-list > li {
  position: relative;
}

.identity-menu a {
  color: #214364;
  font-weight: 600;
  font-size: 0.82rem;
  white-space: nowrap;
  display: inline-block;
  padding: 0.22rem 0.45rem;
  border-radius: 6px;
}

.identity-menu a:hover {
  background: #ffffff;
}

.identity-submenu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 250px;
  list-style: none;
  background: #fff;
  border: 1px solid #d7e1ee;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(13, 42, 74, 0.1);
  padding: 0.4rem;
  display: none;
  z-index: 80;
}

.identity-submenu a {
  display: block;
  padding: 0.34rem 0.45rem;
  border-radius: 6px;
  font-size: 0.8rem;
}

.identity-submenu a:hover {
  background: #f1f6fd;
}

.identity-has-submenu:hover .identity-submenu,
.identity-has-submenu:focus-within .identity-submenu {
  display: block;
}

.identity-menu .menu-donate-inline {
  background: var(--gov-green);
  color: #fff;
  border-radius: 999px;
  padding: 0.24rem 0.6rem;
}

.notice-strip {
  background: #eef5ff;
  border-top: 1px solid #d5e2f4;
  border-bottom: 1px solid #d5e2f4;
  padding: 0.38rem 0;
}

.notice-strip-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
}

.notice-strip-inner strong,
.recent-donor-strip-inner strong {
  white-space: nowrap;
  font-size: 0.82rem;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.notice-strip-inner strong {
  color: #ffffff;
  background: var(--gov-saffron);
  border: 1px solid #d97b1d;
}

.notice-marquee {
  flex: 1;
  min-width: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  gap: 1.25rem;
  white-space: nowrap;
  color: #2a4566;
  font-size: 0.8rem;
  animation: noticeScroll 20s linear infinite;
  z-index: 1;
}

.notice-marquee::before,
.notice-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18px;
  pointer-events: none;
  z-index: 1;
}

.notice-marquee::before {
  left: 0;
  background: linear-gradient(to right, #eef5ff 60%, rgba(238, 245, 255, 0));
}

.notice-marquee::after {
  right: 0;
  background: linear-gradient(to left, #eef5ff 60%, rgba(238, 245, 255, 0));
}

@keyframes noticeScroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: none;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.8rem;
  min-height: 58px;
}

.brand {
  color: var(--gov-blue);
  font-weight: 800;
  display: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  font-size: 0.92rem;
}

.nav-links > li {
  position: relative;
}

.nav-links a {
  color: #2b3e54;
  font-weight: 600;
}

.submenu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 230px;
  list-style: none;
  background: #fff;
  border: 1px solid #d7e1ee;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(13, 42, 74, 0.08);
  display: none;
  padding: 0.45rem;
  z-index: 60;
}

.submenu li a {
  display: block;
  padding: 0.42rem 0.5rem;
  font-size: 0.86rem;
  font-weight: 500;
  border-radius: 6px;
}

.submenu li a:hover {
  background: #f1f6fd;
}

.has-submenu:hover > .submenu {
  display: block;
}

.menu-donate a {
  background: var(--gov-green);
  color: #fff;
  border-radius: 999px;
  padding: 0.34rem 0.75rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}

.menu-btn {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.25rem;
}

.translate-widget {
  min-width: 96px;
}

#google_translate_element .goog-te-gadget {
  font-size: 0 !important;
}

#google_translate_element .goog-te-gadget > span {
  display: none;
}

#google_translate_element .goog-te-combo {
  border: 1px solid #cad7e8;
  border-radius: 999px;
  padding: 0.33rem 0.45rem;
  font-size: 0.74rem;
  color: #244261;
  max-width: 102px;
}

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.55rem 1rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--gov-green);
  color: var(--white);
}

.btn-secondary {
  background: var(--gov-saffron);
  color: #fff;
}

.btn-outline {
  border-color: #bccdde;
  color: #214364;
  background: #fff;
}

.hero-slider {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
}

.hero-slides {
  position: relative;
  min-height: 70vh;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.8s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-overlay-content {
  min-height: 70vh;
  display: grid;
  align-content: center;
  gap: 0.65rem;
  color: #eff5ff;
  max-width: 760px;
}

.hero-tag {
  display: inline-flex;
  width: fit-content;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #fff;
  background: rgba(242, 140, 40, 0.92);
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
}

.hero-overlay-content h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  line-height: 1.2;
}

.hero-overlay-content p {
  color: #d5e4fa;
}

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(11, 46, 89, 0.45);
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  z-index: 2;
}

.hero-control.prev {
  left: 12px;
}

.hero-control.next {
  right: 12px;
}

.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  z-index: 2;
}

.hero-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.hero-dot.active {
  background: #fff;
}

.hero {
  background: linear-gradient(120deg, rgba(11, 46, 89, 0.92), rgba(27, 79, 145, 0.88)),
    url('assets/sections/pexels-photo-20344348.jpeg') center/cover;
  color: #edf3ff;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.2rem;
  align-items: center;
  min-height: 58vh;
  padding: 2.2rem 0;
}

.hero h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.hero p {
  color: #d9e7fd;
}

.hero-card {
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  border-radius: 12px;
  padding: 1rem;
  border-top: 4px solid var(--gov-saffron);
}

.hero-card h3 {
  color: var(--gov-navy);
  margin-bottom: 0.5rem;
}

section {
  padding: 2.4rem 0;
}

.notice-strip + .hero-slider,
.notice-strip + .hero,
.notice-strip + .page-hero,
.notice-strip + .dept-hero {
  padding-top: 0;
  margin-top: 0;
}

.section-title {
  margin-bottom: 1rem;
}

.section-title h3 {
  color: var(--gov-navy);
  font-size: clamp(1.35rem, 2vw, 1.95rem);
}

.section-title p {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 0.9rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
}

.card h4 {
  color: var(--gov-navy);
  margin-bottom: 0.4rem;
}

.card p,
.card li {
  color: var(--muted);
  font-size: 0.92rem;
}

.recent-donor-list {
  list-style: none;
  min-height: 22px;
  padding-left: 0 !important;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 1.1rem;
  white-space: nowrap;
  width: max-content;
}

.recent-donor-item {
  display: inline-flex;
  align-items: center;
  color: #2a4566;
}

.recent-donor-list.is-animated {
  animation: recentDonorScroll 32s linear infinite;
}

.recent-donor-marquee {
  flex: 1;
  overflow: hidden;
}

@keyframes recentDonorScroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.recent-donor-strip {
  background: #eef5ff;
  border-top: 1px solid #d5e2f4;
  border-bottom: 1px solid #d5e2f4;
  padding: 0.45rem 0;
}

.recent-donor-strip-inner {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: #2a4566;
}

.recent-donor-strip-inner strong {
  color: #ffffff;
  background: #2f8f4e;
  border: 1px solid #1f6f3a;
}

.recent-donor-empty {
  margin: 0;
  color: #5b6d82;
  font-size: 0.85rem;
}

.clickable-card {
  cursor: pointer;
}

.clickable-card:focus-visible {
  outline: 2px solid var(--gov-blue);
  outline-offset: 2px;
}

.initiative-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.55rem;
}

.initiative-actions .dept-link {
  margin-top: 0;
}

.initiative-actions .btn {
  padding: 0.38rem 0.7rem;
  font-size: 0.8rem;
}

.profile-card {
  text-align: center;
}

.profile-frame {
  width: 140px;
  height: 160px;
  margin: 0 auto 0.75rem;
  border: 2px solid #d4e0ee;
  border-radius: 12px;
  background: #f8fbff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.profile-frame span {
  color: #7b8ea6;
  font-size: 0.8rem;
  font-weight: 500;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.departments-section {
  background: #eef4fb;
  border-top: 1px solid #d4e0ee;
  border-bottom: 1px solid #d4e0ee;
}

.departments-grid {
  gap: 0.75rem;
}

.dept-card {
  border-top: 3px solid #1b4f91;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dept-card:nth-child(2n) {
  border-top-color: #f28c28;
}

.dept-card:nth-child(3n) {
  border-top-color: #2f8f4e;
}

.dept-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(18, 48, 82, 0.08);
}

.dept-link {
  display: inline-block;
  margin-top: 0.55rem;
  color: #1d4f90;
  font-weight: 600;
  font-size: 0.86rem;
}

.notice {
  border-left: 4px solid var(--gov-blue);
}

.service-link {
  display: block;
  border: 1px solid #d4e0ef;
  border-radius: 8px;
  padding: 0.65rem;
  font-size: 0.9rem;
  color: #214464;
  background: #f8fbff;
  font-weight: 600;
}

.highlight-band {
  background: linear-gradient(90deg, #0f3a6f, #1f5aa3);
  color: #eef4ff;
}

.highlight-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.kpi {
  text-align: center;
}

.kpi h5 {
  font-size: 1.45rem;
}

.program-placeholder {
  border: 2px dashed #9ab1cd;
  background: #f8fbff;
}

.program-placeholder strong {
  color: #1f4974;
}

.gallery img {
  height: 190px;
  object-fit: cover;
}

.footer {
  background: #0d2a4a;
  color: #d8e5f7;
}

.footer .container {
  padding: 2rem 0 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
}

.footer p,
.footer li,
.footer a {
  color: #bfd0e7;
  font-size: 0.88rem;
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.copy {
  border-top: 1px solid #284969;
  text-align: center;
  margin-top: 1rem;
  padding-top: 0.7rem;
  font-size: 0.8rem;
}

.page-hero {
  background: linear-gradient(120deg, #0f3768, #21579b);
  color: #e8f1ff;
}

.page-hero .container {
  padding: 2rem 0;
}

.dept-hero {
  position: relative;
  color: #e8f1ff;
  min-height: 44vh;
  background-size: cover;
  background-position: center;
}

.dept-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(10, 40, 77, 0.84), rgba(10, 40, 77, 0.52));
}

.dept-hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.7rem;
  align-content: center;
  min-height: 44vh;
  padding: 1.8rem 0;
  max-width: 900px;
}

.dept-badge {
  width: fit-content;
  background: rgba(242, 140, 40, 0.95);
  color: #fff;
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.dept-hero h2 {
  font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.dept-hero p {
  color: #d7e7ff;
}

.initiative-donate-card {
  text-align: center;
}

.initiative-donate-btn {
  width: 220px;
  min-height: 44px;
}

@media (min-width: 761px) {
  .initiative-hero .container {
    text-align: center;
    justify-items: center;
  }

  .dept-hero .initiative-donate-btn {
    justify-self: center;
  }
}

.dept-visual img {
  height: 220px;
  object-fit: cover;
}

.lang-float {
  position: fixed;
  right: 12px;
  top: 112px;
  z-index: 120;
}

.lang-toggle {
  background: #1b4f91;
  color: #fff;
  border: none;
  border-radius: 8px 8px 0 0;
  padding: 0.42rem 0.7rem;
  font-size: 0.78rem;
  cursor: pointer;
}

.lang-menu {
  width: 165px;
  max-height: 240px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #cfdceb;
  border-top: none;
  border-radius: 0 0 8px 8px;
  display: none;
}

.lang-menu.open {
  display: block;
}

.lang-item {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  padding: 0.42rem 0.55rem;
  font-size: 0.78rem;
  color: #264566;
  cursor: pointer;
}

.lang-item:hover {
  background: #eff5fd;
}

.contact-form {
  display: grid;
  gap: 0.5rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  border: 1px solid #cfd9e8;
  border-radius: 8px;
  padding: 0.65rem 0.7rem;
  font-family: inherit;
}

@media (max-width: 980px) {
  .gov-identity .container {
    grid-template-columns: 1fr;
  }

  .utility {
    text-align: left;
  }

  .identity-menu {
    width: 100%;
  }

  .identity-menu-list {
    justify-content: flex-start;
    flex-wrap: nowrap;
    white-space: nowrap;
    padding-bottom: 0.2rem;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }

  .lang-float {
    top: auto;
    bottom: 14px;
    right: 10px;
  }

  .identity-submenu {
    position: static;
    display: none;
    border: none;
    box-shadow: none;
    padding: 0.15rem 0 0.2rem 0.55rem;
    min-width: 0;
  }

  .identity-has-submenu.open .identity-submenu {
    display: block;
  }

  .notice-strip-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .notice-marquee {
    animation-duration: 28s;
  }

  .hero-slider,
  .hero-slides,
  .hero-overlay-content {
    min-height: 58vh;
  }

  .hero .container,
  .grid-4,
  .grid-3,
  .grid-2,
  .footer-grid,
  .gov-identity .container {
    grid-template-columns: 1fr;
  }

  .utility {
    text-align: left;
  }

  .nav-links {
    position: absolute;
    right: 3.5%;
    top: 62px;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    min-width: 200px;
    padding: 0.75rem;
    display: none;
  }

  .submenu {
    position: static;
    display: block;
    border: none;
    box-shadow: none;
    padding: 0.15rem 0 0.25rem 0.55rem;
    min-width: 0;
    background: transparent;
  }

  .submenu li a {
    font-size: 0.8rem;
    padding: 0.2rem 0;
  }

  .menu-donate a {
    display: inline-block;
    margin-top: 0.2rem;
  }

  .nav-links.open {
    display: flex;
  }

  .menu-btn {
    display: block;
  }

  .btn-primary.nav-btn {
    display: none;
  }

  .top-strip-inner {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .hero-slider,
  .hero-slides,
  .hero-overlay-content {
    min-height: 52vh;
  }

  .dept-hero {
    min-height: 40vh;
    background-position: center top;
  }

  .dept-hero .container {
    min-height: 40vh;
    padding: 1.4rem 0;
  }

  .initiative-donate-btn {
    width: 100%;
    max-width: 240px;
    min-height: 44px;
    margin-top: 0.35rem;
  }

  .dept-hero .initiative-donate-btn,
  .initiative-donate-card .initiative-donate-btn {
    display: inline-flex;
    justify-content: center;
  }

  .initiative-donate-card {
    padding: 1rem;
  }

  .recent-donor-strip-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .recent-donor-marquee {
    width: 100%;
  }

  .hero-control {
    width: 32px;
    height: 32px;
  }
}

