/* Modern visual layer — intentionally loaded after the legacy theme. */
:root {
  --brand-navy: #002f63;
  --brand-blue: #005baa;
  --brand-sky: #0f9ed5;
  --brand-gold: #d7a928;
  --ink: #142033;
  --muted: #667085;
  --surface: #ffffff;
  --surface-soft: #f4f7fb;
  --line: #e3e9f1;
  --shadow-sm: 0 8px 24px rgba(16, 42, 67, 0.08);
  --shadow-md: 0 18px 46px rgba(16, 42, 67, 0.13);
  --radius: 18px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100vw;
  min-height: 100%;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--surface-soft) !important;
  line-height: 1.8;
}

main,
section,
.navbar,
.site-header,
.site-footer {
  width: 100%;
  max-width: 100vw;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 10%, rgba(15, 158, 213, 0.08), transparent 28rem),
    radial-gradient(circle at 90% 40%, rgba(0, 91, 170, 0.06), transparent 32rem);
}

::selection {
  color: #fff;
  background: var(--brand-blue);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(15, 158, 213, 0.35);
  outline-offset: 3px;
}

.site-header {
  position: relative;
  z-index: 10;
  padding: 7px 0;
  border: 0;
  background: linear-gradient(90deg, #002851 0%, var(--brand-navy) 52%, #06467e 100%) !important;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}

.site-header__content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 38px;
}

.site-header .site-header__item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 5px 9px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.site-header .site-header__item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.site-header__icon {
  display: inline-grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(125, 214, 244, 0.3);
  border-radius: 50%;
  background: rgba(125, 214, 244, 0.1);
}

.site-header__icon i {
  display: block;
  font-size: 14px;
  line-height: 1;
}

.site-header__divider {
  width: 1px;
  height: 24px;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.34), transparent);
}

.site-header i {
  color: #7dd6f4;
}

.navbar {
  min-height: 82px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0, 47, 99, 0.08);
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 8px 30px rgba(16, 42, 67, 0.08) !important;
  backdrop-filter: blur(14px);
}

.navbar-brand .logo,
.site-footer .logo {
  width: auto;
  height: 62px;
  object-fit: contain;
}

.navbar-brand {
  margin-right: 0;
  margin-left: 1rem;
}

.navbar-nav {
  gap: 6px;
}

.navbar-expand-lg .navbar-nav .nav-link {
  position: relative;
  padding: 10px 15px;
  border-radius: 12px;
  color: #26364d;
  font-size: 15px;
  font-weight: 700;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  right: 15px;
  bottom: 5px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-sky);
  transition: width 0.25s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--brand-blue);
  background: #eff8fd;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: calc(100% - 30px);
}

.hero-section,
.hero-section-full-height {
  min-height: min(640px, 78vh);
  background: var(--brand-navy) !important;
}

.hero-section .carousel,
.hero-section .carousel-inner,
.hero-section .carousel-item {
  min-height: min(640px, 78vh);
}

.hero-section .carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 30, 65, 0.25), rgba(0, 28, 59, 0.82));
}

.hero-section .designed-slide::after {
  display: none;
}

.carousel-slide-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.carousel-slide-link picture {
  display: block;
  width: 100%;
  height: 100%;
}

.intro-slide-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 150px;
  margin-top: 26px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
}

.carousel-slide-link:focus-visible {
  position: relative;
  z-index: 4;
  outline: 4px solid var(--brand-sky);
  outline-offset: -4px;
}

#hero-slide .carousel-indicators {
  z-index: 5;
  gap: 7px;
  margin-bottom: 20px;
}

#hero-slide .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  margin: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  opacity: 0.75;
}

#hero-slide .carousel-indicators .active {
  width: 30px;
  border-radius: 999px;
  background: #fff;
  opacity: 1;
}

#hero-slide .carousel-control-prev,
#hero-slide .carousel-control-next {
  z-index: 5;
  width: 8%;
}

#hero-slide .carousel-control-prev-icon,
#hero-slide .carousel-control-next-icon {
  width: 46px;
  height: 46px;
  background-color: rgba(0, 47, 99, 0.72);
  background-size: 48%;
  opacity: 1;
  backdrop-filter: blur(8px);
}

.hero-section .carousel-image {
  width: 100%;
  height: min(640px, 78vh);
  object-fit: cover;
}

#hero-slide .carousel-caption {
  inset: 0;
  z-index: 2;
  align-items: flex-start;
  justify-content: center !important;
  width: min(1180px, calc(100% - 48px));
  min-width: 0;
  min-height: 0;
  margin: auto;
  padding: 40px 5%;
  text-align: right;
  clip-path: none;
  background: transparent !important;
}

.hero-section .carousel-caption h1 {
  max-width: 720px;
  margin: 0 0 14px;
  padding: 0 !important;
  color: #fff;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.15;
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.24);
}

.hero-section .carousel-caption p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-actions .btn {
  min-width: 148px;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
}

.hero-secondary-btn {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.hero-secondary-btn:hover {
  color: var(--brand-navy);
  border-color: #fff;
  background: #fff;
}

.section-padding {
  padding-top: clamp(64px, 8vw, 104px);
  padding-bottom: clamp(64px, 8vw, 104px);
}

#section_3,
#section_6 {
  background: transparent !important;
}

#section_3 > .container {
  margin-top: 0 !important;
  padding-bottom: 0 !important;
}

.breaking-news {
  overflow: hidden;
  min-height: 68px;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.breaking-news marquee {
  min-width: 0;
  color: #304158;
  background: #fff;
}

.breaking-news .news {
  flex: 0 0 190px !important;
  width: 190px;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-sky)) !important;
}

.custom-text-box {
  padding: clamp(26px, 5vw, 58px);
  border: 1px solid rgba(0, 91, 170, 0.09);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
}

.custom-text-box h2,
#section_4 h2,
.contact-section h2 {
  margin-bottom: 24px !important;
  color: var(--brand-navy);
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.25;
}

.custom-text-box h2::after,
#section_4 h2::after,
.contact-section h2::after {
  content: "";
  display: block;
  width: 58px;
  height: 4px;
  margin-top: 12px;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--brand-sky), var(--brand-gold));
}

.custom-text-box p {
  color: #42526a;
  font-size: 17px !important;
  line-height: 2.05;
}

.custom-text-box img {
  width: 180px !important;
  aspect-ratio: 1;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

#section_4 {
  background: linear-gradient(180deg, #f6f9fc, #eef4f9);
}

#section_4 > .container > .row {
  row-gap: 20px;
}

#section_4 h2::after {
  margin-right: auto;
  margin-left: auto;
}

#section_4 h4 {
  display: inline-flex;
  align-items: center;
  margin: 28px 0 2px;
  padding: 8px 18px;
  border: 1px solid #cfe7f3;
  border-radius: 999px;
  color: var(--brand-blue);
  background: #eaf7fc;
  font-size: 20px;
}

#section_4 .pad {
  display: flex;
  padding-bottom: 0;
}

.custom-block-wrap {
  display: flex;
  width: 100%;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 22px rgba(16, 42, 67, 0.055);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.custom-block-wrap:hover {
  transform: translateY(-6px);
  border-color: rgba(15, 158, 213, 0.35);
  box-shadow: var(--shadow-md);
}

.custom-block {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.custom-block-body {
  flex: 1;
  padding: 24px 22px 20px;
}

.custom-block-body h5 {
  color: var(--brand-navy);
  font-size: 20px;
}

.custom-block-body a {
  color: #526174;
  font-size: 14px;
  line-height: 1.8;
}

.custom-block-body .fa {
  width: 25px;
  color: var(--brand-sky);
}

.custom-block .custom-btn,
.custom-btn {
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-blue), #087fc1);
  box-shadow: 0 8px 18px rgba(0, 91, 170, 0.2);
}

.custom-block .custom-btn {
  margin: 0 18px 18px;
  padding: 11px 16px;
  font-size: 14px;
}

.custom-btn:hover {
  transform: translateY(-2px);
  color: #fff;
  background: linear-gradient(135deg, #087fc1, var(--brand-sky));
  box-shadow: 0 10px 24px rgba(0, 91, 170, 0.28);
}

#shbutton {
  display: table;
  min-width: 180px;
  margin: 34px auto 0;
  padding: 12px 28px;
  text-align: center;
  cursor: pointer;
}

.volunteer-section {
  padding: 0;
  background: #e9f0f6;
}

.volunteer-section .container {
  max-width: none;
  padding: 0;
}

#map {
  height: clamp(430px, 60vw, 650px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-section .row {
  align-items: stretch;
  gap: 28px 0;
}

.contact-info-wrap,
.contact-form {
  height: 100%;
  padding: clamp(25px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.contact-info p {
  align-items: flex-start;
  color: #4b5b70;
}

.contact-info i {
  flex: 0 0 22px;
  margin-top: 7px;
  color: var(--brand-sky);
}

.contact-form .form-control {
  min-height: 52px;
  margin-bottom: 16px;
  border: 1px solid #dce5ee;
  border-radius: 12px;
  background: #f9fbfd;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form textarea.form-control {
  min-height: 135px;
}

.contact-form .form-control:focus {
  border-color: var(--brand-sky);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(15, 158, 213, 0.11);
}

.contact-form button.form-control {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-sky));
  font-weight: 700;
}

.site-footer {
  padding-top: 66px;
  background: #082746 !important;
}

.site-footer-title {
  color: #fff;
}

.site-footer a,
.site-footer p,
.site-footer i {
  color: rgba(255, 255, 255, 0.76);
}

.site-footer a:hover {
  color: #7dd6f4;
}

.site-footer-bottom {
  margin-top: 46px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #041b31;
}

@media (max-width: 991.98px) {
  .site-header {
    display: none;
  }

  .navbar {
    min-height: 70px;
  }

  .navbar-brand .logo {
    width: 170px;
    max-width: 100%;
    height: auto;
  }

  .navbar > .container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding-right: 18px;
    padding-left: 18px;
  }

  .navbar-collapse {
    margin-top: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-sm);
  }

  .hero-section,
  .hero-section-full-height,
  .hero-section .carousel,
  .hero-section .carousel-inner,
  .hero-section .carousel-item {
    min-height: 560px;
  }

  .hero-section .carousel-image {
    height: 560px;
  }
}

@media (max-width: 767.98px) {
  .hero-section .container-fluid,
  .hero-section .row,
  .hero-section [class*="col-"] {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
  }

  .hero-section .container-fluid,
  .hero-section [class*="col-"] {
    padding-right: 0;
    padding-left: 0;
  }

  #hero-slide .carousel-caption {
    right: 18px;
    left: 18px;
    width: auto;
    max-width: calc(100% - 36px);
    margin: 0;
    padding: 32px 0;
    overflow: hidden;
    align-items: stretch;
  }

  .hero-section .carousel-caption h1,
  .hero-section .carousel-caption p {
    width: 100%;
    max-width: 100%;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .hero-actions .btn {
    min-width: 0;
    padding-right: 12px;
    padding-left: 12px;
  }

  .hero-section,
  .hero-section-full-height,
  .hero-section .carousel,
  .hero-section .carousel-inner,
  .hero-section .carousel-item {
    min-height: 260px;
    height: 260px;
  }

  .hero-section .designed-slide .carousel-image {
    height: 260px;
    object-fit: cover;
    object-position: left center;
  }

  #hero-slide .carousel-control-prev,
  #hero-slide .carousel-control-next {
    width: 12%;
  }

  #hero-slide .carousel-control-prev-icon,
  #hero-slide .carousel-control-next-icon {
    width: 36px;
    height: 36px;
  }

  #hero-slide .carousel-indicators {
    margin-bottom: 12px;
  }

  .breaking-news {
    flex-direction: column-reverse;
  }

  .breaking-news .news {
    width: 100%;
    flex-basis: auto !important;
  }

  .breaking-news marquee {
    width: 100%;
  }

  .custom-text-box {
    padding: 24px 20px;
  }

  .custom-text-box p {
    font-size: 15px !important;
    line-height: 1.9;
  }

  #section_4 h4 {
    margin-top: 18px;
  }

  .contact-info-wrap,
  .contact-form {
    padding: 24px 20px;
  }

  .site-footer {
    text-align: center;
  }

  .site-footer .d-flex {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
