:root{
  --text:#1f2937;      /* slate-800 */
  --bg:#ffffff;
  --brand:#055680;     /* Bootstrap-ish */
  --muted:#6b7280;     /* slate-500 */
  --border:#e5e7eb;    /* gray-200 */
}

*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; background:var(--bg); color:var(--text); font:16px/1.6 Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }

.container{ max-width:1100px; margin-inline:auto; padding:2rem 1rem; }

h1,h2,h3{ line-height:1.2; margin:0 0 .5rem; }
p{ margin:.5rem 0 1rem; }

.cta{ display:inline-block; background:var(--brand); color:#fff; padding:.7rem 1rem; border-radius:.6rem; text-decoration:none; }
.cta:hover{ opacity:.9; }

.hero{ padding:3rem 0 1rem; }
.grid{ display:grid; grid-template-columns:repeat(12,1fr); gap:1rem; }
.card{ border:1px solid var(--border); border-radius:.8rem; padding:1rem; background:#fff; }

/* === Header CSS START === */
:root{
  --header-bg:#055680;
  --header-fg:#ffffff;
  --header-hover:#044666;
  --header-active:#ffffff;
}

.site-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:0.35rem 1rem;
  padding-top: 1rem;
  padding-left: 1.75rem;
  background:var(--header-bg);
  border-bottom:1px solid rgba(0,0,0,.15);
}

/* Logo (icon-only SVG) */
.site-header .logo{
  display:flex;
  align-items:center;
  text-decoration:none;
  line-height: 0;
  padding-bottom: 1rem;
}
.site-header .logo img{
  width:256px;   /* adjust size as needed */
  display:block;
}

/* Primary nav */
.site-header .site-nav{
  display:flex;
  gap:.5rem;
}
.site-header .site-nav a{
  color:var(--header-fg);
  text-decoration:none;
  padding:.5rem .7rem;
  border-radius:.5rem;
  line-height:1;
}
.site-header .site-nav a:hover{
  background:var(--header-hover);
}
.site-header .site-nav a:focus-visible{
  outline:2px solid #fff;
  outline-offset:2px;
  border-radius:.5rem;
}
.site-header .site-nav a.active{
  color:var(--header-active);
  background:var(--header-hover);
  font-weight:600;
}

/* Optional: stack on very narrow screens */
@media (max-width:520px){
  .site-header{
    flex-wrap:wrap;
  }
  .site-header .site-nav{
    width:100%;
    justify-content:flex-end;
  }
}
/* === Header CSS END === */

/* === Footer CSS START === */
.site-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:1rem;
  padding:1rem;
  background:var(--header-bg);               /* #3e3e3c */
  color:var(--header-fg);                    /* #ffffff */
  border-top:1px solid rgba(0,0,0,.25);
  flex-wrap: wrap; /*new 13*/
}

.footer-left{
  display:flex;
  align-items:center;
  gap:.6rem;
}

.footer-logo img{
  width:28px; height:28px; display:block;
}

.footer-copy{ font-size:.95rem; }

/* Policies link */
.footer-nav a{
  color:var(--header-fg);
  text-decoration:none;
  padding:.25rem .4rem;
  border-radius:.4rem;
}
.footer-nav a:hover{ background:var(--header-hover); }

/* Social icons row */
.footer-social{
  display:flex; align-items:center; gap:1.5rem;
}
/* More spacing between icons */
.footer-social{
  display:flex;
  align-items:center;
  gap:.75rem; /* was .5rem */
}

/* “Raise” on hover (no lighter bg) */
.footer-social a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px; height:28px;
  border-radius:.4rem;
  text-decoration:none;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transform: translateY(0);
  transition: transform 160ms ease, box-shadow 160ms ease;
  will-change: transform;
  flex: 0 0 auto; /*new 13*/
}
.footer-social img{ /*new 13*/
  display:block;
  width:20px !important;     /* force a consistent icon size */
  height:20px !important;
  max-width:none;            /* ignore intrinsic SVG width */
  aspect-ratio: 1 / 1;       /* prevents odd aspect math on some mobiles */
  flex: 0 0 auto;
}
.footer-social a:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,.35);
}
.footer-social a:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 2px;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,.35);
}
/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .footer-social a{ transition: none; }
}

/* Small screens */
@media (max-width:640px){
  .site-footer{ flex-wrap:wrap; }
  .footer-nav{ order:3; width:100%; margin-top:.25rem; }
}

/* === Homepage CSS START === */
/* Base tokens (add or merge with yours) */
:root{
  --grey:#3e3e3c;         /* Galea Grey */
  --blue:#055680;         /* Xperfecta accent */
  --text:#1f2937;
  --bg:#ffffff;
  --tint:#f7f8f9;         /* very light grey wash */
  --border:#e5e7eb;
}

/* Page background pattern: subtle dot grid (site-wide) */
html{
  background:
    radial-gradient(circle at 1px 1px, rgba(0,0,0,0.12) 1px, transparent 1.5px) 0 0/22px 22px,
    var(--bg);
}
body{
  background: transparent; /* let the root show through */
}
/* Section scaffolding */
.section{ padding: 64px 0; }
.section--tint{ background: var(--tint); }
.section--band{ background: #fcfcfd; } /* a second, slightly different light */
.section .container{ max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* Accent separators (use above a new section) */
.rule{
  height: 4px;
  background: var(--blue);
  width: 72px;
  border-radius: 999px;
  margin: 0 auto 24px; /* centered; or align-left by removing auto */
}

/* Gradient headline text */
.h-gradient{
  background: linear-gradient(90deg, #044666 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero sizing */
/* Center hero text */
.hero .container {
  text-align: center;
  /*max-width: 800px;/*         /* optional: keeps the text nicely readable */
  margin: 0 auto;
}

.hero p {
  margin-left: auto;
  margin-right: auto;
}

.hero h1{ font-size: clamp(32px, 6vw, 56px); margin: 0 0 12px; }

/* Card grid (Divisions, Platform tiles, etc.) */
.grid{ display: grid; gap: 16px; }
.grid-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 900px){ .grid-3{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px){ .grid-3{ grid-template-columns: 1fr; } }

.card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  transition: transform 160ms ease, box-shadow 160ms ease;
  display: flex;
  flex-direction: column;
}
.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
}

/* Tiny status chips (Divisions) */
.chip{
  display:inline-block; font-size:12px; line-height:1;
  padding:6px 8px; border-radius:999px;
  border:1px solid var(--blue); color: var(--blue); background: transparent;
  margin-bottom:10px;
}

/* Section titles */
.section h2{
  font-size: clamp(22px, 3.2vw, 28px);
  color: var(--grey);
  margin: 0 0 12px;
}
.section p{ color: var(--text); }

/* Buttons later (first used in Divisions) */
.btn{
  display:inline-block; text-decoration:none;
  background: var(--blue); color: #fff;
  padding: 10px 14px; border-radius: 10px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.btn:hover{ transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,.15); }
.card .btn{
  margin-top: auto;       /* occupies remaining space above */
  align-self: flex-start; /* keeps button left-aligned */
}
.card .btn{
  margin-top: auto;       /* occupies remaining space above */
  align-self: flex-start; /* keeps button left-aligned */
}
/* Optional: keep motion respectful */
@media (prefers-reduced-motion: reduce){
  .card, .btn{ transition: none; }
}
/* === Galea Button === */
.btn-galea{
  display:inline-block; text-decoration:none;
  background: #0066cc; color: #fff;
  padding: 10px 14px; border-radius: 10px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.btn-galea:hover{ transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,0,0,.15); }
.card .btn-galea{
  margin-top: auto;       /* occupies remaining space above */
  align-self: flex-start; /* keeps button left-aligned */
}
.card .btn-galea{
  margin-top: auto;       /* occupies remaining space above */
  align-self: flex-start; /* keeps button left-aligned */
}
/* Optional: keep motion respectful */
@media (prefers-reduced-motion: reduce){
  .card, .btn-galea{ transition: none; }
}
/* === Homepage CSS END === */

/* === Contact us CSS START === */
    /* --- Contact page additions --- */
    .contact-wrap { display:grid; gap:24px; grid-template-columns: 2fr 1fr; }
    @media (max-width: 900px){ .contact-wrap { grid-template-columns: 1fr; } }

    .form-card, .info-card {
      background:#fff; border:1px solid var(--border); border-radius:10px; padding:18px;
    }
    .form-row { display:grid; gap:12px; grid-template-columns: 1fr 1fr; }
    @media (max-width: 640px){ .form-row { grid-template-columns: 1fr; } }

    .field { display:flex; flex-direction:column; gap:6px; }
    .field label { font-weight:600; color:var(--grey); }
    .field input[type="text"],
    .field input[type="email"],
    .field input[type="tel"],
    .field select,
    .field textarea {
      border:1px solid var(--border);
      border-radius:10px;
      padding:10px 12px;
      font:inherit;
      background:#fff;
    }
    .field textarea { min-height:120px; resize:vertical; }

    .help { font-size:12px; color:#6b7280; }

    .radio-row { display:flex; gap:12px; flex-wrap:wrap; }
    .radio-row label { font-weight:500; color:var(--text); }

    .alert {
      display:none; margin:0 0 12px; padding:12px 14px; border-radius:10px;
      background:#ecf7ff; border:1px solid #cfeaff; color:#064d6a;
    }
    .alert.show { display:block; }

    .info-card h3 { margin:0 0 8px; color:var(--grey); }
    .info-line { margin:6px 0;}
    .info-line a { color: inherit; text-decoration: none; }
    .info-line a:hover {text-decoration: underline;}

    /* Card tint so it’s not plain */
.form-card, .info-card{
  background: var(--tint);           /* subtle grey wash */
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}

/* Layout helpers */
.form-row.two{ display:grid; gap:12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px){ .form-row.two{ grid-template-columns: 1fr; } }

/* Fields */
.field{ display:flex; flex-direction:column; gap:6px; }
.field label{ font-weight:600; color:var(--grey); }
.opt{ font-weight:500; font-size:12px; color:#6b7280; opacity:.85; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea{
  border:1px solid var(--border);
  border-radius:10px;
  padding:10px 12px;
  font:inherit;
  background:#fff;
}
.field textarea{ min-height:120px; resize:vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus{
  outline:none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(5,86,128,.15);
}

/* Phone type toggle buttons */
.toggle-group{
  display:flex; gap:8px; flex-wrap:wrap;
}
.toggle-group button{
  appearance:none; border:none; cursor:pointer;
  padding:8px 12px; border-radius:999px;
  background:#e9ecef; color:#1f2937;
  font:inherit; line-height:1;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
.toggle-group button:hover{ transform: translateY(-1px); box-shadow: 0 6px 12px rgba(0,0,0,.12); }
.toggle-group button.active{
  background:#fff; color:#111827;
  box-shadow: 0 8px 18px rgba(0,0,0,.15);
  border:1px solid var(--border);
}

/* Styled select with custom arrow */
.select-wrap{ position:relative; }
.select-wrap select{
  appearance:none; -webkit-appearance:none; -moz-appearance:none;
  background:#fff;
  padding-right: 42px;               /* room for the arrow */
}
.select-wrap::after{
  content:"";
  position:absolute; right:12px; top:50%; transform:translateY(-50%);
  width:0; height:0;
  border-left:6px solid transparent;
  border-right:6px solid transparent;
  border-top:7px solid var(--grey);   /* arrow color */
  pointer-events:none;
}

/* Dropdown menu highlight (limited cross-browser control) */
select:focus{ outline:none; }
select option:checked{ background: linear-gradient(var(--blue), var(--blue)); color:#fff; }
/* More vertical spacing between fields */
.form-card .field{
  margin-bottom: 14px;            /* was 0 */
}
.form-card .field:last-child{
  margin-bottom: 0;
}

/* Button: remove default black outline; keep accessible focus */
.btn{
  border: none;                    /* removes default border/outline look */
}
.btn:focus,
.btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(5,86,128,.35); /* branded focus halo */
}
/* Make all inputs/selects/textarea fill their container */
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  box-sizing: border-box;
}

/* Ensure the styled select wrapper also spans full width */
.select-wrap {
  display: block;
  width: 100%;
}

.select-wrap select {
  width: 100%;
}

/* === Our team CSS START === */

/* --- Layout wrappers --- */
.team-hero{
  display:grid;
  gap:24px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 960px){
  .team-hero{ grid-template-columns: 1fr; }
}

/* Optional intro paragraph under page title */
.team-intro{
  max-width: 70ch;
  color: var(--text);
}

/* --- Large profile cards (Fif / Mark) --- */
.team-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:14px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.team-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(0,0,0,.08);
}

/* Centered, natural-size image (transparent PNG/SVG friendly) */
.team-media{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px;
  min-height: 220px;          /* breathing room without fixing size */
}
.team-media img{
  display:block;
  height:auto;                 /* keep natural aspect */
  max-width: 85%;              /* avoid overflow */
  max-height: 260px;           /* prevent oversize */
}

/* Center names/titles */
.team-name,
.team-title{ text-align:center; }
.team-name{
  margin:0;
  font-size: clamp(22px, 3.2vw, 28px);
  color: var(--grey);
}
.team-title{
  margin: -4px 0 6px;
  color:#4b5563;
  font-weight:600;
}

/* Bio text */
.team-bio p{
  margin: 0 0 10px;
  color: var(--text);
}

/* --- Smaller people grid --- */
.people-grid{
  display:grid;
  gap:16px;
  grid-template-columns: repeat(3, minmax(0,1fr));
}
@media (max-width: 900px){
  .people-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px){
  .people-grid{ grid-template-columns: 1fr; }
}

.person-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.person-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
}

/* Centered, natural-size for icon-style portraits */
.person-media{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px;
  min-height: 160px;
}
.person-media img{
  display:block;
  height:auto;
  max-width: 75%;
  max-height: 160px;
}

/* Center names/titles + short blurb */
.person-name,
.person-title,
.person-bio{ text-align:center; }

.person-name{
  margin:0;
  color: var(--grey);
  font-weight:700;
}
.person-title{
  margin:-2px 0 0;
  color:#4b5563;
  font-size:.95rem;
  font-weight:600;
}
.person-bio{
  margin-top:6px;
  color: var(--text);
  font-size:.95rem;
}

/* --- Motion preference --- */
@media (prefers-reduced-motion: reduce){
  .team-card, .person-card{ transition: none; }
}
/* === Our team CSS END === */

/* === About us CSS START === */
    :root{
      /* relies on your existing tokens; these are just references */
      --grey:#3e3e3c;
      --blue:#055680;
      --border:#e5e7eb;
      --tint:#f7f8f9;
      --text:#1f2937;
    }

    .about-intro{
      max-width: 75ch;
      color: var(--text);
    }

    /* Timeline wrapper */
    .timeline{
      position: relative;
      display: grid;
      gap: 24px;
      grid-template-columns: 1fr;
      /* a soft band so it stands apart */
      background: var(--tint);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 24px;
    }

    /* Vertical center line on desktop */
    @media (min-width: 900px){
      .timeline{
        padding: 32px 24px;
      }
      .timeline::before{
        content:"";
        position: absolute;
        left: 50%;
        top: 0;
        bottom: 0;
        width: 2px;
        background: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.08));
        transform: translateX(-1px);
      }
    }

    .tl-item{
      position: relative;
      display: grid;
      gap: 12px;
      grid-template-columns: 1fr;
    }

    /* For desktop, alternate left/right */
    @media (min-width: 900px){
      .tl-item{
        grid-template-columns: 1fr 1fr;
        align-items: center;
      }
      .tl-item:nth-child(odd) .tl-content{ grid-column: 1; }
      .tl-item:nth-child(odd) .tl-year   { grid-column: 2; text-align: left; }
      .tl-item:nth-child(even) .tl-content{ grid-column: 2; }
      .tl-item:nth-child(even) .tl-year   { grid-column: 1; text-align: right; }
    }

    /* Year badge */
    .tl-year{
      font-weight: 800;
      color: var(--grey);
      font-size: clamp(22px, 3.2vw, 28px);
      padding: 6px 10px;
    }

    /* The dot connector */
    .tl-dot{
      position: absolute;
      left: 50%;
      top: 50%;
      transform: translate(-50%,-50%);
      width: 14px; height: 14px;
      border-radius: 50%;
      background: #fff;
      border: 3px solid var(--blue);
      box-shadow: 0 0 0 4px rgba(5,86,128,.1);
      display: none;
    }
    @media (min-width: 900px){
      .tl-dot{ display:block; }
    }

    /* Content cards */
    .tl-card{
      background:#fff;
      border:1px solid var(--border);
      border-radius:12px;
      padding:16px;
      transition: transform 160ms ease, box-shadow 160ms ease;
    }
    .tl-card:hover{
      transform: translateY(-2px);
      box-shadow: 0 12px 22px rgba(0,0,0,.08);
    }
    .tl-card h3{
      margin:0 0 6px;
      color: var(--grey);
      font-size: 1.1rem;
    }
    .tl-card p{ margin:0 0 8px; color: var(--text); }
    .tl-chip{
      display:inline-block;
      font-size:12px; line-height:1;
      padding:6px 8px;
      border-radius:999px;
      border:1px solid var(--blue);
      color: var(--blue);
      background: transparent;
      margin-bottom:8px;
    }

    /* Spacing between items */
    .tl-spacer{ height: 6px; }


    /* --- Policies page additions (uses your existing tokens/classes) --- */

    .policies-grid{
      display:grid;
      gap:16px;
      grid-template-columns: repeat(3, minmax(0,1fr));
    }
    @media (max-width: 900px){
      .policies-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
    }
    @media (max-width: 640px){
      .policies-grid{ grid-template-columns: 1fr; }
    }

    .policy-card{
      background:#fff;
      border:1px solid var(--border);
      border-radius:12px;
      padding:16px;
      display:flex;               /* so we can pin the button */
      flex-direction:column;
      gap:10px;
      transition: transform 160ms ease, box-shadow 160ms ease;
    }
    .policy-card:hover{
      transform: translateY(-2px);
      box-shadow: 0 10px 20px rgba(0,0,0,.08);
    }

    .policy-title{
      margin:0;
      color: var(--grey);
      font-size: 1.1rem;
    }
    .policy-desc{
      margin:0;
      color: var(--text);
    }
    .policy-actions{
      margin-top:auto;            /* pins actions to the bottom */
      display:flex;
      gap:10px;
    }
    .btn-outline{
      display:inline-block;
      text-decoration:none;
      background:#fff;
      color:var(--blue);
      border:1px solid var(--blue);
      padding:10px 14px;
      border-radius:10px;
      transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
    }
    .btn-outline:hover{
      transform: translateY(-2px);
      box-shadow: 0 10px 20px rgba(0,0,0,.12);
      background:#f7fbfe;
    }

    /* optional small label under heading */
    .policy-note{
      margin: 8px 0 0; font-size: .9rem; color:#4b5563;
    }

html, body { height: 100%; }
body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

/* Your main content wrapper should expand; if you use <main>, target that */
main { flex: 1; }

/* Ensure no unexpected gaps */
body, main { margin: 0; }

/* === Cookie Toggle CSS START === */
/* Layout */
.pref-row{display:flex;flex-direction:column;align-items:start;justify-content:space-between;gap:16px;margin:16px 0;padding:12px 0;border-top:1px solid #eee}
.pref-row:first-child{border-top:0}
.pref-copy{flex:1 1 auto}
.pref-title{margin:0 0 6px;font-size:1.05rem}
.pref-desc{margin:0;color:#444}
.pref-status{margin:6px 0 0;color:#333;font-size:.95rem}

/* Switch */
.switch{--on:#055680; --off:#3e3e3c; --thumb:#fff; --text:#111;
  appearance:none; border:0; background:transparent; padding:0; cursor:pointer;
  position:relative; inline-size:220px; block-size:40px; border-radius:999px;
}
.switch:focus-visible{outline:2px solid #055680; outline-offset:2px}
.switch[aria-checked="true"] .switch-track{background:var(--on)}
.switch[aria-checked="false"] .switch-track{background:var(--off)}

.switch-track{
  position:relative; inline-size:100%; block-size:100%;
  border-radius:999px; display:flex; align-items:center; overflow:hidden;
  transition:background-color .2s ease;
}

/* Labels inside the track */
.switch-label{position:absolute; inset-block:0; display:flex; align-items:center;
  font:500 14px/1.2 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; color:#fff;
  padding:0 14px; pointer-events:none; user-select:none;
}
.switch-label.off{inset-inline-start:52px; opacity:1}
.switch[aria-checked="true"] .switch-label.off{opacity:0}
.switch-label.on{inset-inline-end:52px; opacity:0}
.switch[aria-checked="true"] .switch-label.on{opacity:1}

/* Thumb */
.switch-thumb{
  position:absolute; inset-block:4px; inset-inline-start:4px;
  inline-size:32px; block-size:32px; border-radius:50%;
  background:var(--thumb); box-shadow:0 2px 8px rgba(0,0,0,.18);
  transform:translateX(0); transition:transform .22s ease;
}
.switch[aria-checked="true"] .switch-thumb{ transform:translateX(180px) } /* 220 - (4+32+4) */

/* Motion-respect */
@media (prefers-reduced-motion: reduce){
  .switch-track,.switch-thumb{transition:none}
}
/* === Cookie Toggle CSS END === */

/* === blog CSS START === */
/* === Blog === */
.blog-grid{
  display:grid;
  gap:16px;
  grid-template-columns: repeat(3, minmax(0,1fr));
}
@media (max-width: 992px){ .blog-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px){ .blog-grid{ grid-template-columns: 1fr; } }

/* Reuse .card base; add blog specifics */
.blog-card{
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.blog-card .thumb{
  width:100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display:block;
  background:#e5e7eb;
  border-radius:8px;
}
.blog-card h3{
  margin:10px 0 6px;
  color: var(--grey);
  font-size: 1.1rem;
}
.blog-card .excerpt{
  color: var(--text);
  margin:0 0 10px;
}
.blog-meta{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  color:#6b7280;
  font-size:.9rem;
  margin-top:auto;             /* pushes meta to the bottom before the button */
}
.blog-meta time{ color:#6b7280; }
.blog-card .btn{
  margin-top:10px;
}

/* Single post layout */
.post-hero{
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}
.post-hero img{
  width:100%;
  display:block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background:#e5e7eb;
}
.post-title{
  margin:14px 0 6px;
  color: var(--grey);
}
.post-meta{
  color:#6b7280;
  font-size:.95rem;
  margin-bottom:16px;
}
.post-content{
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  padding:18px;
}
.post-content h2, .post-content h3{ color: var(--grey); }
.post-nav{
  display:flex; justify-content:space-between; gap:12px; margin-top:16px;
}
.post-nav a{ text-decoration:none; }

/* Tiny tag/badge if you want it later */
.post-tag{
  display:inline-block; font-size:12px; line-height:1;
  padding:6px 8px; border-radius:999px;
  border:1px solid var(--blue); color: var(--blue);
}
/* === blog CSS END === */

/* === Single Blog Post === */
.post-wrap { max-width: 900px; margin: 0 auto; }

.post-head { margin-bottom: 16px; }
.post-title { margin: 0 0 6px; color: var(--grey); font-size: clamp(28px, 4.6vw, 40px); }
.post-meta { color:#6b7280; font-size:.95rem; display:flex; gap:.5rem; flex-wrap:wrap; align-items:center; }

/* Small, cinematic hero */
.post-hero {
  border:1px solid var(--border);
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}
.post-hero img {
  width:100%; display:block;
  aspect-ratio: 21 / 9;    /* shorter than 16:9 */
  object-fit: cover;
  background:#e5e7eb;
}

/* Content */
.post-content {
  margin-top: 16px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  padding: 22px;
}
.post-content p { margin: 0 0 12px; color: var(--text); }
.post-content h2, .post-content h3 { color: var(--grey); margin: 18px 0 8px; }

/* Lead paragraph */
.post-lead { font-size: 1.12rem; line-height: 1.7; }

/* Figure + caption */
.post-figure { margin: 16px 0; }
.post-figure img { width:100%; border-radius:10px; border:1px solid var(--border); }
.post-figcap { font-size:.9rem; color:#6b7280; margin-top: 6px; }

/* Callout */
.callout {
  margin: 14px 0;
  padding: 12px 14px;
  border:1px solid var(--blue);
  background: #f7fbfe;
  border-radius:10px;
}

/* Pull quote */
.pullquote {
  margin: 16px 0;
  padding-left: 14px;
  border-left: 4px solid var(--blue);
  color: var(--grey);
  font-size: 1.05rem;
  font-style: italic;
}

/* Inline code / pre (optional) */
.post-content code { background:#f3f4f6; padding: 0 4px; border-radius: 4px; }
.post-content pre { background:#0b0b0c; color:#f6f7f9; padding:12px; border-radius:10px; overflow:auto; }

/* Breadcrumb back link (small, unobtrusive) */
.post-breadcrumb { margin: 0 0 8px; font-size:.95rem; }
.post-breadcrumb a { color: var(--blue); text-decoration: none; }
.post-breadcrumb a:hover { text-decoration: underline; }

/* Spacing rhythm */
.section.post { padding-top: 40px; padding-bottom: 64px; }
