:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #eff3f8;
  --text: #1e293b;
  --muted: #B4CAE0;
  --brand: #366592;
  --brand-dark: #113658;
  --border: #dde5ee;
  --shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0;
}

a {
  color: var(--brand);
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: 0.2px;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 600;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu > li > a {
  display: inline-block;
  color: #27364a;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
  color: var(--brand-dark);
  background: #e9eff6;
}

.jump-strip {
  margin-top: 20px;
  padding: 34px 0;
  background: linear-gradient(180deg, #f4f7fb 0%, #edf2f8 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.jump-strip .jump-label {
  margin: 0 0 12px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}

.jump-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.btn-outline {
  display: inline-block;
  margin-top: 0;
  background: var(--surface);
  color: var(--brand-dark);
  border: 1px solid #b8c8d6;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(29, 63, 71, 0.08);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-outline:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: translateY(-1px);
}

.section-intro {
  max-width: 640px;
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.card code {
  font-size: 0.88em;
  padding: 2px 6px;
  background: var(--surface-soft);
  border-radius: 6px;
}

a.card {
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

a.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

a.card h3 {
  color: var(--brand-dark);
}

a.card .card-meta {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
}

.hero {
  min-height: 50vh;
  display: grid;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(12, 22, 33, 0.78), rgba(12, 22, 33, 0.35));
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.hero p {
  margin: 0;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
}

.section {
  padding: 74px 0;
}

.section.alt {
  background: var(--surface-soft);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 24px;
}

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

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

img.media {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
}

.btn {
  display: inline-block;
  margin-top: 8px;
  background: var(--brand);
  color: #fff;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 700;
  transition: filter 0.15s ease;
}

.btn:hover {
  filter: brightness(1.08);
}

.article-body p {
  margin-bottom: 0.9rem;
}

.article-body h3 {
  margin: 1.5rem 0 0.55rem;
  color: var(--brand-dark);
  font-size: 1.18rem;
}

.article-body ul {
  margin: 0.25rem 0 1rem 1.2rem;
  padding: 0;
}

.article-body li {
  margin: 0.35rem 0;
}

.article-strong-lead {
  margin-bottom: 0.4rem;
  font-size: 1.16rem;
}

.article-soft-lead {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

audio,
video {
  width: 100%;
  border-radius: 10px;
}

/* No media element may ever exceed its container (prevents mobile zoom-out). */
img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* YouTube embeds: fluid below 560px (mobile), constant 16:9 shape. */
.article-body iframe {
  display: block;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  margin: 0 0 1.25rem;
  border: 0;
  border-radius: 10px;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.email-link svg {
  width: 18px;
  height: 18px;
}

.footer {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 22px 0;
}

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

.footer-wrap p {
  margin: 0;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 14px 4%;
    display: none;
  }

  .nav-menu.open {
    display: flex;
    align-items: stretch;
  }

  .nav-menu.open > li > a {
    width: 100%;
    text-align: left;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  img.media {
    height: 220px;
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================================
   OUR OTHER SECTIONS  —  Seven-card responsive grid
   Self-contained block. Uses its own class names so it never clashes with
   the existing .card / .grid-2 / .grid-3 / .btn rules above.
   ========================================================================= */

/* The grid auto-fits as many cards as will fit at a min width of 240px,
   so it shows ~4 per row on desktop, 2–3 on tablet, and 1–2 on mobile
   with no extra media queries needed. */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 18px;
}

/* Each card is a clickable link styled as a card. */
.feature-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden; /* keeps the image corners rounded with the card */
  box-shadow: var(--shadow);
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

/* Image sits flush at the top. A fixed height (not aspect-ratio) keeps every
   card's image uniform and reliable inside the flex card; object-fit: cover
   fills the area neatly. The height roughly matches the images' 3:2 shape,
   so wide images show with little or no cropping.
   To make the images taller/shorter, change the height value below. */
.feature-card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.feature-card-body {
  padding: 18px 20px 20px;
}

.feature-card-title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: var(--brand-dark);
}

.feature-card-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-card-cta {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand);
}

/* On small phones, drop the minimum so cards never get cramped. */
@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  /* Cards are full-width here, so give the image a bit more height. */
  .feature-card-img {
    height: 220px;
  }

  /* Free up room so text/media get the widest possible column. */
  .section {
    padding: 54px 0;
  }

  .card {
    padding: 20px 16px;
  }

  .hero {
    min-height: 42vh;
  }

  /* Floated article images would hog a narrow column; center them instead. */
  .article-body img[style*="float"] {
    float: none !important;
    display: block;
    width: auto !important;
    max-width: 100%;
    height: auto;
    margin: 0 auto 1rem !important;
  }
}
a {
  color: #cc0000;
  text-decoration: none;
}

a:hover {
  color: #8b0000;
}