:root {
  --navy: #071f3d;
  --navy-2: #0d3768;
  --navy-soft: #edf4fb;
  --accent: #d99a1e;
  --text: #111827;
  --muted: #5f6b7a;
  --line: #e4eaf2;
  --soft: #f6f8fb;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(7, 31, 61, 0.1);
  --shadow-strong: 0 28px 80px rgba(7, 31, 61, 0.14);
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(228, 234, 242, 0.9);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 30px rgba(7, 31, 61, 0.05);
  backdrop-filter: blur(14px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
}

.brand {
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  border-radius: 999px;
  color: #25364d;
  font-size: 0.96rem;
  font-weight: 750;
  padding: 11px 16px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--navy-soft);
  color: var(--navy);
}

.nav-links a:hover {
  transform: translateY(-1px);
}

.nav-links .nav-cta {
  margin-left: 8px;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(7, 31, 61, 0.16);
}

.nav-links .nav-cta:hover {
  background: var(--navy-2);
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--navy);
}

.section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 86px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.78fr);
  align-items: center;
  gap: 64px;
  min-height: calc(100vh - 76px);
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  color: var(--navy);
  font-size: clamp(2.45rem, 5.6vw, 5.35rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: clamp(1.75rem, 3vw, 2.9rem);
  line-height: 1.12;
}

h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.18rem;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-subtitle {
  max-width: 610px;
  margin-bottom: 28px;
  color: #435064;
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 850;
  padding: 0 18px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.primary {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(7, 31, 61, 0.2);
}

.primary:hover {
  background: var(--navy-2);
}

.secondary,
.muted {
  border-color: #cdd7e3;
  background: var(--white);
  color: var(--navy);
}

.secondary:hover,
.muted:hover {
  border-color: var(--navy);
  background: var(--navy-soft);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 540px;
  margin-top: 34px;
}

.hero-stats div {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
  padding: 16px;
}

.hero-stats strong {
  display: block;
  color: var(--navy);
  font-size: 1.45rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-image,
.about-image {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 530px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, #eef4fb, #f9fbfd);
  box-shadow: var(--shadow-strong);
}

.hero-image:before,
.about-image:before {
  position: absolute;
  right: 11%;
  bottom: 11%;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.74);
  content: "";
}

.hero-image img,
.about-image img {
  position: relative;
  z-index: 1;
  width: min(84%, 390px);
  margin: 0 auto;
}

.feature-section {
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-heading.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.card-grid {
  display: grid;
  gap: 20px;
}

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

.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.note-card,
.content-panel,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover,
.note-card:hover,
.contact-card:hover {
  border-color: #bdd0e5;
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.feature-card,
.course-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.feature-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 14px;
  background: var(--navy-soft);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 900;
}

.split-section,
.two-column-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.split-section {
  border-top: 1px solid var(--line);
}

.page-hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fbff 0%, #f6f8fb 100%);
}

.page-hero .section {
  padding: 76px 0;
}

.page-hero p {
  max-width: 800px;
  color: #435064;
  font-size: 1.08rem;
}

.course-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
}

.course-card p {
  flex: 1;
}

.badge,
.file-type {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  border-radius: 999px;
  background: #fff6df;
  color: #8a5607;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  text-transform: uppercase;
}

.resources-list {
  display: grid;
  gap: 24px;
  padding-top: 34px;
}

.resource-group {
  display: grid;
  gap: 18px;
}

.resource-group h2 {
  margin-bottom: 0;
  font-size: 1.55rem;
}

.resources-filter-section {
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.resources-filter-inner {
  padding: 34px 0 28px;
}

.filter-card {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) minmax(210px, 0.75fr) auto;
  align-items: end;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(7, 31, 61, 0.07);
  padding: 20px;
}

.filter-field {
  display: grid;
  gap: 8px;
}

.filter-field span {
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 850;
}

.filter-field input,
.filter-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cdd7e3;
  border-radius: 12px;
  background: var(--white);
  color: var(--text);
  font: inherit;
  padding: 0 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-field select {
  cursor: pointer;
}

.filter-field input:focus,
.filter-field select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(7, 31, 61, 0.1);
}

.clear-filters {
  width: 100%;
  min-width: 132px;
}

.notes-count {
  margin: 14px 0 0;
  color: #435064;
  font-size: 0.94rem;
  font-weight: 800;
}

.notes-grid {
  width: 100%;
}

.category-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  border-radius: 999px;
  background: #e8f2ff;
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  text-transform: uppercase;
}

.note-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: space-between;
}

.note-card h3 {
  margin-bottom: 10px;
  line-height: 1.35;
}

.note-card p {
  flex: 1;
  margin-bottom: 22px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.empty-state {
  border: 1px dashed #b5c4d5;
  border-radius: 18px;
  background: var(--soft);
  padding: 28px;
  text-align: center;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1fr);
  align-items: center;
  gap: 60px;
}

.about-content p {
  font-size: 1.05rem;
}

.content-panel {
  background: var(--soft);
}

.navy-panel {
  background: var(--navy);
  color: var(--white);
}

.navy-panel h2,
.navy-panel p {
  color: var(--white);
}

.navy-panel p {
  opacity: 0.82;
}

.contact-section {
  padding-top: 0;
}

.contact-card {
  background: var(--soft);
}

.contact-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 14px;
  background: var(--navy);
  color: var(--white);
  font-weight: 900;
}

.contact-card a {
  color: var(--navy);
  font-weight: 800;
}

.viewer-shell {
  padding-top: 58px;
}

.viewer-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 24px;
}

.viewer-heading h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.pdf-frame-wrap {
  overflow: hidden;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.pdf-frame {
  display: block;
  width: 100%;
  height: 85vh;
  min-height: 620px;
  border: none;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.mobile-pdf-container {
  display: none;
  width: 100%;
  border-radius: 14px;
  background: #f3f6fb;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  padding: 14px;
}

.pdf-page-wrapper {
  margin-bottom: 22px;
  text-align: center;
}

.pdf-page-label {
  margin-bottom: 8px;
  color: #06264a;
  font-weight: 700;
}

.pdf-page-wrapper canvas {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  background: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.viewer-message {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
  text-align: center;
}

.site-footer {
  margin-top: 20px;
  background: var(--navy);
  color: var(--white);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.7fr) minmax(260px, 1fr);
  gap: 34px;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0 32px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--white);
  font-size: 1.26rem;
  font-weight: 900;
}

.footer-column h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 1rem;
}

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

.site-footer p {
  margin: 0 0 10px;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a,
.footer-column a {
  width: fit-content;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover,
.footer-column a:hover {
  color: var(--white);
  transform: translateX(2px);
}

.copyright {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 18px 0 24px;
  font-size: 0.92rem;
}

@media (max-width: 1040px) {
  .hero,
  .about-layout,
  .split-section,
  .two-column-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .three,
  .four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .viewer-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-card {
    grid-template-columns: 1fr 1fr;
  }

  .clear-filters {
    grid-column: 1 / -1;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .navbar,
  .section,
  .footer-inner,
  .copyright {
    width: min(100% - 28px, 1160px);
  }

  .navbar {
    min-height: 66px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 66px;
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 8px;
  }

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

  .nav-links a {
    border-radius: 12px;
    padding: 13px 14px;
  }

  .nav-links .nav-cta {
    width: 100%;
    margin-left: 0;
  }

  .section {
    padding: 58px 0;
  }

  .page-hero .section {
    padding: 56px 0;
  }

  .hero {
    gap: 38px;
  }

  .hero-actions,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
  }

  .hero-image,
  .about-image {
    min-height: 360px;
  }

  .three,
  .four,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .filter-card {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .clear-filters {
    grid-column: auto;
  }

  .pdf-frame {
    width: 100%;
    height: 75vh;
    min-height: 520px;
    border-radius: 12px;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2.2rem;
  }

  .card,
  .note-card,
  .content-panel,
  .contact-card {
    padding: 22px;
  }

  .brand {
    font-size: 1.02rem;
  }
}
