
:root {
  --primary: #0875e8;
  --primary-dark: #074f9d;
  --primary-soft: #e8f3ff;
  --accent: #f6c343;
  --dark: #102033;
  --muted: #667085;
  --line: #e5eaf2;
  --light: #f5f8fc;
  --white: #ffffff;
  --success: #0e9f6e;
  --shadow: 0 18px 45px rgba(16, 32, 51, 0.12);
  --radius: 20px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

.image-bg {
  display: block;
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.official-photo {
  background-position: center 20%;
}

.crest-logo {
  background-size: contain;
}





.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.top-banner {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.banner-inner {
  min-height: 128px;
  display: grid;
  grid-template-columns: 220px 1fr 230px;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}

.officials {
  display: flex;
  align-items: end;
  gap: 10px;
}

.official-card {
  width: 92px;
  height: 108px;
  border-radius: 16px;
  background: linear-gradient(180deg, #eef6ff, #d7eaff);
  border: 2px solid rgba(255,255,255,0.85);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.official-card::before {
  content: "👨‍✈️";
  font-size: 52px;
}

.banner-title {
  text-align: center;
}

.banner-title h1 {
  font-family: Georgia, serif;
  font-size: clamp(34px, 5vw, 58px);
  color: #1b2b40;
  line-height: 1;
  text-shadow: 0 3px 0 rgba(255,255,255,0.8);
  margin-bottom: 10px;
}

.banner-title p {
  font-weight: 800;
  color: #293b52;
}

.brand-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  font-weight: 900;
  color: #1d2d42;
}

.crest {
  width: 58px;
  height: 68px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffdc55, #09864a);
  border: 3px solid #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,0.16);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 28px;
}

.brand-side span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.7px;
}

.brand-side strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--primary);
  box-shadow: 0 10px 24px rgba(5, 72, 145, 0.25);
}

.nav-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.logo-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffdc55, #08894a);
  border: 2px solid rgba(255,255,255,0.85);
  display: grid;
  place-items: center;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
}

.nav-menu a,
.dropdown-toggle {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 20px 11px;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active,
.dropdown-toggle:hover {
  background: rgba(255,255,255,0.16);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  list-style: none;
  background: #0757ae;
  border-radius: 0 0 16px 16px;
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(0,0,0,0.23);
  display: none;
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  white-space: nowrap;
}

.menu-btn {
  display: none;
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  padding: 10px 13px;
  font-weight: 900;
  cursor: pointer;
}

.hero,
.page-hero {
  position: relative;
  color: #fff;
  overflow: hidden;
}

.hero {
  min-height: 465px;
  display: flex;
  align-items: flex-end;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.page-hero {
  background:
    radial-gradient(circle at top right, rgba(246,195,67,0.22), transparent 34%),
    linear-gradient(135deg, #083d7c, #0875e8);
  padding: 72px 0 44px;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(850px, 100%);
  padding: 94px 0 58px;
}

.label,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #172234;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h2,
.page-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  margin: 16px 0 14px;
  text-shadow: 0 5px 20px rgba(0,0,0,0.22);
}

.hero p,
.page-hero p {
  max-width: 800px;
  color: rgba(255,255,255,0.9);
  font-size: 16px;
}

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

.btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.55);
}

.section {
  padding: 58px 0;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}

.section-title h3 {
  font-size: 30px;
  line-height: 1.15;
  position: relative;
  padding-bottom: 12px;
}

.section-title h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 72px;
  height: 4px;
  border-radius: 999px;
  background: var(--primary);
}

.section-title p {
  color: var(--muted);
  max-width: 560px;
}

.news-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 24px;
}

.card,
.featured-news,
.side-card,
.service-card,
.profile-card,
.info-card,
.document-card,
.stat-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.featured-news {
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
  padding: 28px;
}

.featured-news h4 {
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.13;
  margin: 10px 0;
}

.side-list {
  display: grid;
  gap: 16px;
}

.side-card {
  display: grid;
  grid-template-columns: 142px 1fr;
  min-height: 126px;
}

.side-thumb {
  width: 100%;
  height: 100%;
  min-height: 126px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.side-content {
  padding: 14px;
}

.tag {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  border-radius: 7px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 900;
  margin: 6px 0;
}

.side-date {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.side-content h4 {
  font-size: 15px;
  line-height: 1.25;
}

.services,
.gallery,
.ppid-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.ppid-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-card,
.document-card,
.stat-card {
  padding: 24px;
}

.service-icon,
.doc-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 26px;
  margin-bottom: 16px;
}

.service-card h4,
.document-card h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.service-card p,
.document-card p,
.info-card p,
.info-card li {
  color: var(--muted);
  font-size: 14px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
}

.profile-card {
  background: linear-gradient(180deg, #fff, #eef6ff);
  padding: 26px;
  text-align: center;
}

.avatar {
  width: 175px;
  height: 210px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #203a58, #111827);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 76px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.info-card {
  padding: 22px;
}

.info-card h4 {
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.info-card ul {
  padding-left: 18px;
  margin-top: 8px;
}

.gallery-item {
  height: 190px;
  width: 100%;
  border: 0;
  font: inherit;
  text-align: left;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.gallery-item {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  transition: transform 0.25s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
}





.gallery-item span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: #fff;
  font-weight: 900;
  text-shadow: 0 2px 8px rgba(0,0,0,0.72);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255,255,255,0.86);
  font-size: 14px;
  margin-bottom: 14px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 24px;
  align-items: start;
}

.detail-card {
  background: #fff;
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 30px;
}

.detail-card h2 {
  font-size: 30px;
  margin-bottom: 12px;
}

.detail-card p {
  color: var(--muted);
  margin-bottom: 14px;
}

.modern-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.modern-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f9fbff);
}

.modern-item .number {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 900;
}

.modern-item h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.modern-item p {
  margin: 0;
  font-size: 14px;
}

.pill {
  border-radius: 999px;
  background: #eef6ff;
  color: var(--primary-dark);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.sidebar {
  display: grid;
  gap: 18px;
}

.sidebar-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.sidebar-card h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

.sidebar-card ul {
  list-style: none;
  display: grid;
  gap: 10px;
}

.sidebar-card a {
  display: block;
  padding: 12px 13px;
  border-radius: 13px;
  background: #f4f8fd;
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 14px;
}

.sidebar-card a.active,
.sidebar-card a:hover {
  background: var(--primary);
  color: #fff;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: -36px;
  position: relative;
  z-index: 3;
}

.stat-card strong {
  display: block;
  font-size: 34px;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card span {
  color: var(--muted);
  font-weight: 800;
}

.timeline {
  margin-top: 26px;
  display: grid;
  gap: 16px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
}

.timeline-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--success);
  margin-top: 4px;
  box-shadow: 0 0 0 6px rgba(14,159,110,0.12);
}

.timeline-content {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.timeline-content h4 {
  margin-bottom: 4px;
}

.timeline-content p {
  color: var(--muted);
  font-size: 14px;
}

.contact {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-radius: 28px;
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  box-shadow: var(--shadow);
}

.contact p {
  color: rgba(255,255,255,0.88);
  margin: 10px 0 18px;
}

.contact-list {
  display: grid;
  gap: 10px;
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  outline: none;
}

.contact-form textarea {
  min-height: 118px;
  resize: vertical;
}

footer {
  background: #0d1b2a;
  color: rgba(255,255,255,0.78);
  padding: 34px 0;
  margin-top: 58px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  box-shadow: var(--shadow);
  cursor: pointer;
  display: none;
  z-index: 99;
}

.back-to-top.show {
  display: grid;
  place-items: center;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal.show {
  display: flex;
}

.modal-content {
  width: min(860px, 100%);
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.modal-image {
  width: 100%;
  min-height: 420px;
  max-height: 72vh;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  background-color: #0d1b2a;
}

body.modal-open {
  overflow: hidden;
}

.article-image {
  height: min(430px, 58vw);
  border-radius: 24px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin: 18px 0 24px;
  box-shadow: var(--shadow);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
  margin: 8px 0 16px;
}

.article-card p {
  font-size: 16px;
  line-height: 1.8;
}

.close-modal {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 22px;
  font-weight: 900;
}

@media (max-width: 980px) {
  .banner-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .officials,
  .brand-side {
    justify-content: center;
  }

  .menu-btn {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    top: 58px;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    align-items: stretch;
    display: none;
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu a,
  .dropdown-toggle {
    width: 100%;
    text-align: left;
    padding: 14px 24px;
    border-top: 1px solid rgba(255,255,255,0.12);
  }

  .dropdown-menu {
    position: static;
    min-width: 100%;
    border-radius: 0;
    box-shadow: none;
    background: rgba(0,0,0,0.16);
  }

  .dropdown-menu a {
    padding-left: 42px;
  }

  .news-layout,
  .profile-grid,
  .contact,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .services,
  .gallery,
  .info-grid,
  .ppid-grid,
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .top-banner {
    display: none;
  }

  .hero {
    min-height: 520px;
  }

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .services,
  .gallery,
  .info-grid,
  .ppid-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .side-card {
    grid-template-columns: 112px 1fr;
  }

  .modern-item {
    grid-template-columns: 48px 1fr;
  }

  .modern-item .pill {
    grid-column: 2;
    justify-self: start;
  }

  .contact,
  .detail-card {
    padding: 24px;
  }
}

.modal-caption {
  padding: 14px 18px 16px;
  background: #fff;
  color: var(--dark);
  font-weight: 900;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .modal-image {
    min-height: 280px;
  }
}
