:root {
  --blue-900: #0b2d5c;
  --blue-700: #1e5aa8;
  --gold-500: #d4af37;
  --gold-600: #ba972a;
  --bg-page: #f7f9fc;
  --bg-card: #ffffff;
  --text-900: #1f2937;
  --text-700: #374151;
  --line: #d9e1ee;
  --shadow: 0 8px 24px rgba(11, 45, 92, 0.08);
  --radius: 14px;
  --header-height: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--text-900);
  background: var(--bg-page);
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  font-family: "Playfair Display", serif;
  line-height: 1.25;
  color: var(--blue-900);
}

p {
  margin: 0 0 0.8rem;
}

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

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue-900);
  color: #fff;
  padding: 0.6rem 0.9rem;
  z-index: 9999;
}

.skip-link:focus {
  left: 10px;
}

.gold-line {
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--gold-500),
    var(--gold-500) 18px,
    rgba(212, 175, 55, 0.35) 18px,
    rgba(212, 175, 55, 0.35) 32px
  );
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 4px 14px rgba(11, 45, 92, 0.08);
}

.navbar {
  max-width: 1300px;
  margin: 0 auto;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: var(--blue-900);
  font-size: 1.25rem;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid rgba(212, 175, 55, 0.7);
  background: #fff;
  padding: 2px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue-900);
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--text-700);
  border: 1px solid transparent;
  padding: 0.45rem 0.8rem;
}

.nav-link:hover,
.nav-link.active {
  border-color: rgba(212, 175, 55, 0.5);
  color: var(--blue-900);
  background: rgba(212, 175, 55, 0.12);
}

.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  width: 100%;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.dropdown-menu {
  list-style: none;
  margin: 0;
  padding: 0.55rem;
  min-width: 250px;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: none;
}

.nav-dropdown.open .dropdown-menu {
  display: block;
}

.dropdown-menu .nav-link {
  display: block;
  border-radius: 8px;
}

.toc {
  position: fixed;
  top: calc(var(--header-height) + 18px);
  left: 1rem;
  width: 250px;
  max-height: calc(100vh - var(--header-height) - 36px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 900;
}

.toc-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--blue-900);
  color: #fff;
  font-weight: 600;
  padding: 0.8rem;
  cursor: pointer;
}

.toc-body {
  display: flex;
  flex-direction: column;
  padding: 0.75rem;
}

.toc-link {
  border-left: 3px solid transparent;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  color: var(--text-700);
  font-size: 0.9rem;
}

.toc-link:hover,
.toc-link.active {
  border-left-color: var(--gold-500);
  background: #f2f6fd;
  color: var(--blue-900);
}

.toc.collapsed .toc-body {
  display: none;
}

main {
  width: min(1500px, calc(100% - 320px));
  margin: 1.2rem 1rem 2rem 290px;
  padding: 0;
}

.section {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.section-heading {
  margin-bottom: 0.9rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.45);
  padding-bottom: 0.55rem;
}

.section-heading i {
  color: var(--gold-500);
}

.hero {
  background:
    linear-gradient(120deg, rgba(11, 45, 92, 0.96), rgba(30, 90, 168, 0.9)),
    radial-gradient(circle at right top, rgba(212, 175, 55, 0.25), transparent 42%);
  color: #fff;
  border: none;
}

.hero h1,
.hero h3,
.hero p {
  color: #fff;
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f5df93;
  font-size: 0.82rem;
}

.subtitle {
  font-size: 1.12rem;
  margin-bottom: 1.1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-highlights {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.8rem;
}

.highlight-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 0.9rem;
}

.highlight-card i {
  color: #f5df93;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 0.55rem 1rem;
  transition: 0.2s ease;
}

.btn:focus-visible,
.nav-link:focus-visible,
.toc-link:focus-visible,
.accordion-trigger:focus-visible,
.tab-btn:focus-visible,
.filter-btn:focus-visible {
  outline: 3px solid rgba(212, 175, 55, 0.45);
  outline-offset: 2px;
}

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

.btn-primary:hover {
  background: var(--blue-700);
}

.btn-outline {
  border-color: var(--gold-500);
  color: var(--blue-900);
  background: #fff;
}

.btn-outline:hover {
  background: #fff7df;
}

.btn-gold {
  background: var(--gold-500);
  color: var(--blue-900);
}

.btn-gold:hover {
  background: var(--gold-600);
}

.about-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1rem;
}

.profile-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.profile-photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--gold-500);
  background: #dfe8f7;
}

.file-grid,
.card-grid,
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.8rem;
  margin: 0.9rem 0;
}

.file-card,
.dlp-card,
.material-card {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.9rem;
}

.hero .highlight-card {
  border-radius: 12px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  background: rgba(255, 255, 255, 0.95);
  padding: 0.9rem;
}

.hero .highlight-card h3,
.hero .highlight-card p {
  color: var(--blue-900);
}

.hero .highlight-card i {
  color: #b68912;
}

.file-card i {
  color: #b68912;
  font-size: 1.2rem;
}

.pdf-preview {
  border: 2px dashed rgba(212, 175, 55, 0.7);
  background: #fff;
  border-radius: 12px;
  min-height: 320px;
  overflow: hidden;
  margin-top: 0.85rem;
  margin-bottom: 1rem;
}

.pdf-object {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

.tab-panel .pdf-object {
  height: 300px;
}

.pdf-fallback {
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.6rem;
  background: #fff9e8;
  padding: 1rem;
}

.pdf-fallback i {
  font-size: 2rem;
  color: #8b6b09;
}

.accordion {
  display: grid;
  gap: 0.7rem;
}

.accordion-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  border: none;
  background: #f8fbff;
  padding: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  text-align: left;
  color: var(--blue-900);
  font-weight: 600;
  cursor: pointer;
}

.accordion-trigger i {
  color: var(--gold-500);
}

.accordion-panel {
  display: none;
  padding: 0.9rem;
}

.accordion-item.open .accordion-panel {
  display: block;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
}

.tab-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue-900);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.tab-btn.active {
  border-color: var(--gold-500);
  background: #fff2c8;
}

.tab-panel {
  display: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem;
}

.tab-panel.active {
  display: block;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.7rem;
}

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.filters label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cdd9ea;
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(30, 90, 168, 0.25);
  border-color: var(--blue-700);
}

.no-results {
  margin-top: 0.6rem;
  color: #8a1c1c;
  font-weight: 600;
}

.timeline {
  position: relative;
  margin-left: 0.4rem;
  padding-left: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  bottom: 0.3rem;
  width: 3px;
  background: linear-gradient(var(--gold-500), var(--blue-700));
}

.timeline-item {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.85rem;
  margin-bottom: 0.8rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.55rem;
  top: 1rem;
  width: 12px;
  height: 12px;
  background: var(--gold-500);
  border-radius: 50%;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.filter-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue-900);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  font-weight: 600;
}

.filter-btn.active {
  border-color: var(--gold-500);
  background: #fff2c8;
}

.form-checklist {
  display: grid;
  gap: 0.65rem;
}

.form-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.status {
  display: inline-block;
  border-radius: 999px;
  font-size: 0.8rem;
  padding: 0.2rem 0.65rem;
  border: 1px solid transparent;
}

.status.complete {
  color: #0d5e21;
  background: #e8f8ec;
  border-color: #a4d8b0;
}

.download-grid .btn {
  width: 100%;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1rem;
}

.contact-form {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem;
  background: #fff;
  display: grid;
  gap: 0.5rem;
}

.contact-details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem;
  background: #f9fbff;
}

.contact-details i {
  color: #8b6b09;
  margin-right: 0.4rem;
}

.social-links {
  margin-top: 0.7rem;
  display: flex;
  gap: 0.55rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gold-500);
  display: grid;
  place-items: center;
  color: var(--blue-900);
  background: #fff;
}

.social-links a:hover {
  background: #fff4d0;
}

.form-status {
  min-height: 1.3rem;
  margin: 0;
  font-size: 0.92rem;
  color: var(--blue-900);
}

.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  text-align: center;
  padding-bottom: 1rem;
}

.site-footer p {
  margin: 0.8rem 1rem 0;
  color: var(--text-700);
}

#backToTop {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--gold-500);
  background: var(--blue-900);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.2s ease;
  z-index: 1000;
}

#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 30, 55, 0.62);
}

.modal-dialog {
  position: relative;
  width: min(92vw, 620px);
  max-height: 88vh;
  margin: 6vh auto;
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #d5dfef;
  padding: 1rem;
  box-shadow: 0 16px 36px rgba(10, 24, 44, 0.28);
}

.modal-close {
  position: absolute;
  right: 0.7rem;
  top: 0.7rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.modal-open {
  overflow: hidden;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1200px) {
  .toc {
    left: 0.6rem;
    width: 220px;
  }

  main {
    width: calc(100% - 270px);
    margin: 1.2rem 0.75rem 2rem 250px;
  }
}

@media (max-width: 992px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.8rem;
    flex-direction: column;
    align-items: stretch;
    display: none;
  }

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

  .nav-dropdown {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: 1px solid var(--line);
    margin-top: 0.4rem;
  }

  .toc {
    position: static;
    width: auto;
    margin: 0.9rem 1rem;
    max-height: none;
  }

  main {
    width: 100%;
    margin: 1.2rem auto 2rem;
    padding: 0 1rem;
  }

  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .navbar {
    padding: 0 0.75rem;
  }

  main {
    padding: 0 0.75rem;
  }

  .section {
    padding: 1rem;
  }

  .form-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .pdf-object {
    height: 340px;
  }

  .tab-panel .pdf-object {
    height: 260px;
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .site-header,
  .toc,
  #backToTop,
  .modal,
  .nav-toggle,
  .btn,
  .social-links {
    display: none !important;
  }

  main {
    margin: 0;
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .section {
    box-shadow: none;
    border: 1px solid #bbb;
    margin: 0 0 0.5rem;
    break-inside: avoid;
    background: #fff;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    color: #444;
  }
}
