:root {
  --navy: #050d18;
  --ink: #122033;
  --muted: #5b6b80;
  --paper: #f4f7fb;
  --white: #ffffff;
  --blue: #1a6ef5;
  --blue-deep: #0d47c4;
  --orange: #ff7a18;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 22px 50px rgba(5, 13, 24, 0.12);
  --radius: 22px;
  --header: 84px;
  --font-display: "Outfit", sans-serif;
  --font-body: "Figtree", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 48px 0 96px; }
.eyebrow { color: var(--blue); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.78rem; margin-bottom: 12px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-display);
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
}
.btn-primary { background: var(--blue); color: var(--white); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: rgba(26, 110, 245, 0.08); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.site-header { position: sticky; top: 0; z-index: 40; background: rgba(5, 13, 24, 0.92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.header-inner { width: min(1160px, calc(100% - 32px)); margin: 0 auto; min-height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand img { width: 52px; height: 52px; object-fit: contain; background: #000; border-radius: 12px; }
.brand strong { display: block; font-family: var(--font-display); font-size: 1.05rem; }
.brand small { color: #9ab0c9; font-size: 0.75rem; }
.site-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: #d5e2f0; padding: 8px 10px; border-radius: 999px; font-weight: 600; font-size: 0.9rem; }
.site-nav a:hover, .site-nav a.active { color: var(--white); background: rgba(26, 110, 245, 0.18); }
.nav-cta { background: var(--blue) !important; color: var(--white) !important; padding-inline: 14px !important; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 10px;
  padding: 10px 8px;
  background: transparent !important;
  cursor: pointer;
  color: #ffffff !important;
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  z-index: 60;
  forced-color-adjust: none;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2.5px;
  margin: 5px 0;
  background: #ffffff !important;
  background-color: #ffffff !important;
  border-radius: 2px;
}

.hero {
  position: relative;
  overflow: hidden;
  /* Keep faces in frame for near-square group photos under cover */
  min-height: max(720px, min(90vh, 55vw));
  background: #050d18;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #050d18;
}
.hero-image {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 13, 24, 0.2) 0%, rgba(5, 13, 24, 0.82) 72%); }
.hero-content { position: relative; z-index: 1; width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 56px 0 56px; color: var(--white); max-width: 780px; display: flex; flex-direction: column; justify-content: flex-end; min-height: inherit; box-sizing: border-box; }
.hero-mark { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.hero-mark img { width: 92px; height: 92px; object-fit: contain; background: #000; border-radius: 18px; flex-shrink: 0; }
.hero-mark p { font-family: var(--font-display); font-size: clamp(2.4rem, 7vw, 5.2rem); font-weight: 800; line-height: 0.95; letter-spacing: 0.02em; color: var(--orange); }
.hero-content .eyebrow { color: #9cc2ff; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); margin-bottom: 18px; }
.hero-lead { font-size: 1.12rem; color: #d7e4f3; }
main > section:not(.hero), .site-footer { position: relative; z-index: 2; }
main > section:not(.hero) { background: var(--white); }

.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
  align-items: center;
}
.blog-toolbar input,
.blog-toolbar select {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #d5deea;
  border-radius: 12px;
  font: inherit;
  background: var(--white);
}
.blog-toolbar input { flex: 1; min-width: 200px; }
.blog-toolbar select { min-width: 180px; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(5, 13, 24, 0.06);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dce5f0;
}
.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.blog-card:hover .blog-card-media img { transform: scale(1.04); }

.blog-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.blog-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; font-size: 0.78rem; font-weight: 700; }
.blog-category { color: var(--blue); text-transform: uppercase; letter-spacing: 0.06em; }
.blog-date { color: var(--muted); }
.blog-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.blog-card h3 a:hover { color: var(--blue); }
.blog-card p { color: var(--muted); margin-bottom: 14px; flex: 1; }
.link-more { color: var(--blue); font-weight: 700; }
.link-more:hover { color: var(--blue-deep); }

.blog-loading, .blog-empty, .post-loading, .post-not-found {
  text-align: center;
  padding: 48px 20px;
  color: var(--muted);
  font-weight: 600;
}

.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 36px;
}

/* Blog post */
.post-breadcrumb {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 20px;
}
.post-breadcrumb a { color: var(--blue); font-weight: 600; }
.post-header { max-width: 760px; margin-bottom: 28px; }
.post-category {
  display: inline-block;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.post-header h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.post-meta { color: var(--muted); font-weight: 600; }
.post-featured { margin-bottom: 32px; border-radius: var(--radius); overflow: hidden; }
.post-featured img { width: 100%; max-height: 480px; object-fit: cover; }
.post-body { max-width: 760px; color: var(--ink); }
.post-body h2, .post-body h3 { margin: 1.5em 0 0.6em; }
.post-body p { margin-bottom: 1em; color: var(--muted); }
.post-body ul, .post-body ol { margin: 0 0 1em 1.2em; color: var(--muted); }
.post-body a { color: var(--blue); text-decoration: underline; }
.post-body blockquote {
  margin: 1.5em 0;
  padding: 16px 20px;
  border-left: 4px solid var(--blue);
  background: var(--paper);
  border-radius: 0 12px 12px 0;
  color: var(--ink);
}

.related-posts { margin-top: 56px; padding-top: 40px; border-top: 1px solid #e8edf4; }
.related-posts h2 { margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-card--compact .blog-card-media { aspect-ratio: 16 / 9; }

.site-footer { background: var(--navy); color: #c9d8ea; padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr; gap: 32px; padding-bottom: 36px; }
.footer-grid p { margin-top: 14px; }
.footer-grid h4 { color: var(--white); margin-bottom: 12px; }
.footer-grid a { display: block; margin-bottom: 8px; }
.footer-tag { margin-top: 18px; color: #8cb6ff; font-weight: 700; }
.footer-base { border-top: 1px solid var(--line); padding: 18px 0; text-align: center; }

@media (max-width: 980px) {
  .blog-grid, .related-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    top: var(--header);
    right: 0;
    bottom: 0;
    width: min(300px, 85vw);
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav a { padding: 12px 14px; }
  .blog-grid, .related-grid { grid-template-columns: 1fr; }
}
