:root {
  --ink: #162033;
  --muted: #657083;
  --primary: #0b6bcb;
  --primary-dark: #074f96;
  --accent: #19a46b;
  --warning: #f3b33d;
  --surface: #ffffff;
  --soft: #eef5fb;
  --line: #dfe8f1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  background: #fff;
}

a {
  text-decoration: none;
}

.topbar {
  background: #0d2948;
  color: #dceeff;
  font-size: .88rem;
  padding: .55rem 0;
}

.topbar i {
  color: var(--warning);
  margin-right: .25rem;
}

.topbar-link {
  color: #fff;
  font-weight: 600;
}

.main-navbar {
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 10px 30px rgba(13, 41, 72, .08);
  backdrop-filter: blur(12px);
}

.navbar-brand strong,
.navbar-brand small {
  display: block;
  line-height: 1.15;
}

.navbar-brand strong {
  color: var(--ink);
  font-size: 1rem;
}

.navbar-brand small {
  color: var(--muted);
  font-size: .78rem;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
  background: linear-gradient(145deg, var(--primary), var(--accent));
}

.nav-link {
  color: var(--ink);
  font-weight: 650;
  font-size: .94rem;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--primary);
}

.nav-cta {
  color: #fff !important;
  background: var(--primary);
  border-radius: 6px;
  padding: .55rem .9rem !important;
  margin-left: .35rem;
}

.dropdown-menu {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(13, 41, 72, .14);
}

.hero,
.carousel,
.carousel-inner,
.carousel-item {
  min-height: 620px;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-image {
  height: 620px;
  object-fit: cover;
  transform: scale(1.08);
  animation: imageDrift 10s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 30, 54, .9), rgba(8, 30, 54, .58) 48%, rgba(8, 30, 54, .18));
}

.carousel-caption {
  right: auto;
  left: 50%;
  bottom: auto;
  top: 50%;
  width: min(1120px, calc(100% - 32px));
  padding: 0;
  text-align: left;
  transform: translate(-50%, -45%);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: #0d2948;
  background: #f9c75f;
  padding: .42rem .7rem;
  border-radius: 6px;
  font-weight: 800;
  font-size: .84rem;
  text-transform: uppercase;
}

.carousel-caption h1 {
  max-width: 760px;
  margin: 1rem 0;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  font-weight: 850;
  line-height: 1.04;
}

.carousel-caption p {
  max-width: 690px;
  color: #e3edf6;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  margin-bottom: 1.4rem;
}

.btn {
  border-radius: 6px;
  font-weight: 750;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.section-pad {
  padding: 78px 0;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 2.2rem;
  text-align: center;
}

.section-heading span {
  color: var(--primary);
  display: inline-block;
  font-weight: 850;
  margin-bottom: .35rem;
  text-transform: uppercase;
  font-size: .82rem;
}

.section-heading h2 {
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  font-weight: 850;
  margin-bottom: .7rem;
}

.section-heading p {
  color: var(--muted);
  margin: 0;
}

.service-band {
  background: linear-gradient(180deg, #f5fbff, #fff);
}

.service-tile {
  display: grid;
  min-height: 175px;
  padding: 1.4rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(13, 41, 72, .08);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.service-tile:hover {
  color: var(--ink);
  border-color: rgba(11, 107, 203, .3);
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(13, 41, 72, .12);
}

.service-tile i {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--primary);
  border-radius: 8px;
  font-size: 1.35rem;
  margin-bottom: .9rem;
}

.service-tile strong {
  font-size: 1.08rem;
}

.service-tile small {
  color: var(--muted);
}

.profile-media {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  min-height: 440px;
}

.profile-media img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.info-panel,
.org-chart,
.sdm-box,
.opinion-form {
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.35rem;
  box-shadow: 0 14px 38px rgba(13, 41, 72, .07);
}

.info-panel i {
  color: var(--accent);
  font-size: 2rem;
}

.info-panel h3,
.org-chart h3,
.sdm-box h3 {
  font-size: 1.24rem;
  font-weight: 800;
  margin: .75rem 0 .45rem;
}

.info-panel p {
  color: var(--muted);
  margin: 0;
}

.org-chart {
  background: #f8fbfe;
}

.org-node {
  padding: .9rem 1rem;
  text-align: center;
  color: #0d2948;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-weight: 800;
}

.org-node.top {
  color: #fff;
  background: var(--primary);
  margin-bottom: 1rem;
}

.org-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .8rem;
}

.sdm-stat {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.sdm-stat:last-child {
  border-bottom: 0;
}

.sdm-stat strong {
  min-width: 78px;
  color: var(--primary);
  font-size: 2rem;
  line-height: 1;
}

.sdm-stat span {
  color: var(--muted);
  font-weight: 650;
}

.muted-section {
  background: var(--soft);
}

.news-card {
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(13, 41, 72, .08);
}

.news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.news-body {
  padding: 1.25rem;
}

.news-body span {
  color: var(--accent);
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.news-body h3 {
  font-size: 1.22rem;
  font-weight: 800;
  margin: .45rem 0 .65rem;
}

.news-body p {
  color: var(--muted);
}

.news-body a {
  color: var(--primary);
  font-weight: 800;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 1 / .82;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(13, 41, 72, .1);
}

.video-frame {
  display: grid;
  min-height: 360px;
  place-items: center;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  background:
    linear-gradient(rgba(11, 39, 70, .72), rgba(11, 39, 70, .72)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1200&q=80") center/cover;
}

.video-frame i {
  color: #f9c75f;
  font-size: 4.2rem;
}

.video-frame h3 {
  font-weight: 850;
}

.document-list {
  display: grid;
  gap: .8rem;
}

.document-list a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  transition: border-color .2s ease, transform .2s ease;
}

.document-list a:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}

.document-list i {
  color: var(--primary);
  font-size: 1.65rem;
}

.document-list strong {
  color: #fff;
  background: var(--accent);
  border-radius: 6px;
  padding: .25rem .55rem;
  font-size: .78rem;
}

.opinion-section {
  background: #f8fbfe;
}

.form-control,
.form-select {
  border-color: var(--line);
  border-radius: 6px;
  padding: .78rem .85rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 .2rem rgba(11, 107, 203, .12);
}

.footer {
  color: #d9e7f6;
  background: #0d2948;
  padding: 64px 0 24px;
}

.footer h2,
.footer h3 {
  color: #fff;
  font-weight: 850;
}

.footer h2 {
  font-size: 1.8rem;
}

.footer h3 {
  font-size: 1.05rem;
}

.footer p {
  max-width: 470px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer li {
  margin-bottom: .65rem;
}

.footer a {
  color: #d9e7f6;
}

.footer i {
  color: #f9c75f;
  margin-right: .35rem;
}

.social-links {
  display: flex;
  gap: .65rem;
}

.social-links a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: rgba(255, 255, 255, .1);
  border-radius: 8px;
}

.social-links i {
  margin: 0;
}

.footer-bottom {
  color: #aac0d8;
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 2.4rem;
  padding-top: 1.2rem;
  font-size: .92rem;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: none;
  width: 46px;
  height: 46px;
  color: #fff;
  background: var(--primary);
  border: 0;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(13, 41, 72, .2);
  z-index: 30;
}

.back-to-top.show {
  display: grid;
  place-items: center;
}

@keyframes imageDrift {
  from {
    transform: scale(1.06) translateX(-1.2%);
  }
  to {
    transform: scale(1.14) translateX(1.4%);
  }
}

@media (max-width: 991.98px) {
  .topbar .container {
    justify-content: center !important;
  }

  .navbar-nav {
    align-items: stretch !important;
    padding-top: 1rem;
  }

  .nav-cta {
    margin: .4rem 0 0;
    text-align: center;
  }

  .hero,
  .carousel,
  .carousel-inner,
  .carousel-item {
    min-height: 560px;
  }

  .hero-image {
    height: 560px;
  }

  .carousel-caption {
    transform: translate(-50%, -43%);
  }

  .org-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .topbar {
    display: none;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .navbar-brand strong {
    max-width: 210px;
    font-size: .92rem;
  }

  .hero,
  .carousel,
  .carousel-inner,
  .carousel-item {
    min-height: 0;
  }

  .carousel-item {
    background: #0d2948;
  }

  .hero-image {
    width: 100%;
    height: clamp(220px, 64vw, 340px);
    max-height: 340px;
    object-fit: contain;
    object-position: center;
    background: #0d2948;
    transform: none;
    animation: none;
  }

  .hero-overlay {
    display: none;
  }

  .carousel-caption {
    position: static;
    width: 100%;
    padding: 1.15rem 1rem 3.25rem;
    transform: none;
    background: linear-gradient(180deg, #0d2948, #102f52);
  }

  .carousel-caption h1 {
    font-size: 1.72rem;
    line-height: 1.16;
    margin: .75rem 0 .65rem;
  }

  .carousel-caption p {
    font-size: .94rem;
    margin-bottom: 1rem;
  }

  .carousel-control-prev,
  .carousel-control-next {
    top: clamp(92px, 31vw, 150px);
    bottom: auto;
    width: 42px;
    height: 42px;
    background: rgba(13, 41, 72, .55);
    border-radius: 8px;
  }

  .carousel-control-prev {
    left: 10px;
  }

  .carousel-control-next {
    right: 10px;
  }

  .btn-lg {
    width: 100%;
    padding: .78rem 1rem;
    font-size: 1rem;
  }

  .section-pad {
    padding: 56px 0;
  }

  .service-tile {
    min-height: 162px;
    padding: 1rem;
  }

  .org-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .document-list a {
    grid-template-columns: auto 1fr;
  }

  .document-list strong {
    grid-column: 2;
    justify-self: start;
  }
}
