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

  html { scroll-behavior: smooth; }
  body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
    font-size: 16px;
  }

  .btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.4px;
    padding: 11px 26px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
  }
  .btn-accent { background: var(--accent); color: var(--white); }
  .btn-accent:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(46,196,168,0.35); }
  .btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.6); }
  .btn-outline-white:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
  .btn-outline-navy { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
  .btn-outline-navy:hover { background: var(--navy); color: var(--white); }
  .btn-white { background: var(--white); color: var(--navy); }
  .btn-white:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }

  .breadcrumb-strip {
    background: var(--navy-deep);
    padding: 16px 40px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .breadcrumb {
    font-family: var(--font-head);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
  }
  .breadcrumb a { color: rgba(255,255,255,0.7); text-decoration: none; }
  .breadcrumb a:hover { color: var(--white); }
  .breadcrumb .sep { margin: 0 12px; opacity: 0.4; color: rgba(255,255,255,0.5); }
  .breadcrumb .current { color: var(--accent); }

  /* ── BLOG HERO ── */
  .blog-hero {
    background: linear-gradient(135deg, #0e2240 0%, #1c3a5f 45%, #254d7a 100%);
    color: var(--white);
    padding: 80px 40px 100px;
    position: relative;
    overflow: hidden;
  }
  .blog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
      radial-gradient(circle at 12% 20%, rgba(46,196,168,0.14) 0%, transparent 32%),
      radial-gradient(circle at 88% 80%, rgba(75,168,232,0.1) 0%, transparent 40%);
    pointer-events: none;
  }
  .blog-hero-inner {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 60px;
    align-items: end;
  }
  .blog-hero-label {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 7px 18px;
    border-radius: 20px;
    margin-bottom: 24px;
  }
  .blog-hero h1 {
    font-family: var(--font-head);
    font-size: clamp(40px, 5.4vw, 60px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    text-wrap: balance;
  }
  .blog-hero h1 em { color: var(--accent); font-style: normal; }
  .blog-hero-sub {
    font-size: 17px;
    color: rgba(255,255,255,0.82);
    max-width: 560px;
    line-height: 1.7;
  }
  /* Search/filter */
  .blog-search {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 22px;
    backdrop-filter: blur(8px);
  }
  .blog-search-label {
    font-family: var(--font-head);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 12px;
  }
  .blog-search-input {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 12px 14px;
    transition: border-color 0.2s, background 0.2s;
  }
  .blog-search-input:focus-within {
    border-color: var(--accent);
    background: rgba(255,255,255,0.14);
  }
  .blog-search-input svg { width: 18px; height: 18px; flex-shrink: 0; stroke: rgba(255,255,255,0.6); fill: none; stroke-width: 2; }
  .blog-search-input input {
    background: transparent;
    border: none;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 14.5px;
    outline: none;
    width: 100%;
  }
  .blog-search-input input::placeholder { color: rgba(255,255,255,0.45); }
  .blog-tags {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 24px;
    backdrop-filter: blur(8px);
  }
  .blog-tags-label {
    font-family: var(--font-head);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 16px;
  }
  .blog-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .chip {
    font-family: var(--font-head);
    font-size: 11.5px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 5px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.2px;
  }
  .chip:hover { color: var(--white); border-color: rgba(255,255,255,0.3); }
  .chip.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
  }

  /* ── FEATURED POST ── */
  section { padding: 90px 40px; }
  .section-inner { max-width: 1200px; margin: 0 auto; }
  .section-label {
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
  }
  h2 {
    font-family: var(--font-head);
    font-size: clamp(26px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    color: var(--navy);
  }
  p { color: var(--text-muted); line-height: 1.7; }

  .featured-section { background: var(--white); padding-top: 80px; padding-bottom: 60px; }
  .featured-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 36px;
  }
  .featured-head .label-wrap .section-label { margin-bottom: 6px; }
  .featured-head h2 { font-size: clamp(22px, 2.4vw, 28px); }
  .featured-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--gray-light);
    box-shadow: 0 12px 40px rgba(28,58,95,0.1);
    transition: transform 0.25s, box-shadow 0.25s;
    text-decoration: none;
    color: inherit;
  }
  .featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 50px rgba(28,58,95,0.16);
  }
  .featured-img {
    aspect-ratio: 16 / 11;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--accent) 150%);
    position: relative;
    overflow: hidden;
  }
  .featured-img-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.18;
  }
  .featured-img-pattern svg { width: 100%; height: 100%; }
  .featured-img-content {
    position: absolute;
    inset: 0;
    padding: 36px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--white);
  }
  .featured-img-tag {
    display: inline-block;
    align-self: flex-start;
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(46,196,168,0.85);
    padding: 6px 14px;
    border-radius: 4px;
    margin-bottom: auto;
  }
  .featured-img-headline {
    font-family: var(--font-head);
    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    text-wrap: balance;
    max-width: 90%;
  }
  .featured-body {
    padding: 44px 44px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .featured-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-head);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 18px;
  }
  .featured-meta .featured-cat {
    color: var(--accent);
    letter-spacing: 1.6px;
  }
  .featured-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gray-mid); }
  .featured-body h3 {
    font-family: var(--font-head);
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
    text-wrap: balance;
  }
  .featured-body p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
  }
  .featured-cta {
    font-family: var(--font-head);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s;
  }
  .featured-card:hover .featured-cta { gap: 12px; }
  .featured-cta .arrow { font-size: 18px; }
  .featured-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--gray-light);
  }
  .author-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy) 0%, var(--accent) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 800;
    flex-shrink: 0;
  }
  .author-info { font-family: var(--font-head); }
  .author-name { font-size: 13px; font-weight: 700; color: var(--navy); }
  .author-role { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

  /* ── POSTS GRID ── */
  .posts-section {
    background: var(--off-white);
    padding-top: 80px;
    padding-bottom: 100px;
  }
  .posts-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 16px;
  }
  .posts-toolbar h2 { font-size: clamp(20px, 2.2vw, 26px); }
  .posts-toolbar .toolbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-head);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
  }
  .posts-toolbar select {
    font-family: var(--font-head);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--navy);
    border: 1px solid var(--gray-light);
    background: var(--white);
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
  }

  .posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
  .post-card {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--gray-light);
    box-shadow: 0 2px 12px rgba(28,58,95,0.04);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.2s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
  }
  .post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(28,58,95,0.12);
    border-color: rgba(46,196,168,0.3);
  }
  .post-img {
    aspect-ratio: 16 / 10;
    position: relative;
    overflow: hidden;
    background: var(--gray-light);
  }
  /* Each card gets its own colorway via class */
  .post-img.theme-1 { background: linear-gradient(135deg, #1c3a5f 0%, #2f6396 100%); }
  .post-img.theme-2 { background: linear-gradient(135deg, #0e8fa3 0%, #2ec4a8 100%); }
  .post-img.theme-3 { background: linear-gradient(135deg, #254d7a 0%, #4ba8e8 100%); }
  .post-img.theme-4 { background: linear-gradient(135deg, #0e2240 0%, #1c3a5f 60%, #2ec4a8 140%); }
  .post-img.theme-5 { background: linear-gradient(135deg, #2ec4a8 0%, #1c3a5f 100%); }
  .post-img.theme-6 { background: linear-gradient(135deg, #1c3a5f 0%, #0e8fa3 100%); }
  .post-img-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.22;
  }
  .post-img-pattern svg { width: 100%; height: 100%; }
  .post-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    font-family: var(--font-head);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(14,34,64,0.65);
    backdrop-filter: blur(8px);
    padding: 5px 11px;
    border-radius: 4px;
  }
  .post-img-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    color: rgba(255,255,255,0.85);
    opacity: 0.65;
  }
  .post-img-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .post-body {
    padding: 24px 24px 22px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-head);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
  }
  .post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gray-mid); }
  .post-meta .read-time { color: var(--text-muted); }
  .post-card h3 {
    font-family: var(--font-head);
    font-size: 19px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.3;
    letter-spacing: -0.3px;
    margin-bottom: 12px;
    text-wrap: balance;
  }
  .post-card .post-excerpt {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 18px;
    flex: 1;
  }
  .post-card .post-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--gray-light);
  }
  .post-author { display: flex; align-items: center; gap: 8px; }
  .post-author .avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--accent));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 10px;
    font-weight: 800;
  }
  .post-author-name {
    font-family: var(--font-head);
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
  }
  .post-arrow {
    font-family: var(--font-head);
    font-size: 18px;
    color: var(--accent);
    transition: transform 0.2s;
  }
  .post-card:hover .post-arrow { transform: translateX(3px); }

  /* Pagination */
  .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 56px;
  }
  .pagination .page {
    min-width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--white);
    border: 1px solid var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--navy);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    padding: 0 12px;
  }
  .pagination .page:hover { border-color: var(--accent); color: var(--accent); }
  .pagination .page.active {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
  }
  .pagination .page.disabled { opacity: 0.4; cursor: not-allowed; }

  /* ── NEWSLETTER ── */
  .newsletter {
    background: var(--white);
    padding-top: 80px;
    padding-bottom: 100px;
  }
  .newsletter-card {
    max-width: 980px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-mid) 100%);
    border-radius: 20px;
    padding: 56px 56px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
  }
  .newsletter-card::before, .newsletter-card::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
  }
  .newsletter-card::before {
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(46,196,168,0.22) 0%, transparent 70%);
    top: -80px; right: -80px;
  }
  .newsletter-card::after {
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(75,168,232,0.18) 0%, transparent 70%);
    bottom: -60px; left: -50px;
  }
  .newsletter-copy { position: relative; z-index: 2; }
  .newsletter-copy .section-label { color: var(--accent); margin-bottom: 12px; }
  .newsletter-copy h2 { color: var(--white); font-size: clamp(24px, 3vw, 32px); margin-bottom: 12px; letter-spacing: -0.5px; }
  .newsletter-copy p { color: rgba(255,255,255,0.85); font-size: 15.5px; line-height: 1.65; }
  .newsletter-form {
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(8px);
  }
  .newsletter-form label {
    display: block;
    font-family: var(--font-head);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 10px;
  }
  .newsletter-form .row {
    display: flex;
    gap: 8px;
  }
  .newsletter-form input {
    flex: 1;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 14.5px;
    outline: none;
    transition: border-color 0.2s;
  }
  .newsletter-form input::placeholder { color: rgba(255,255,255,0.45); }
  .newsletter-form input:focus { border-color: var(--accent); }
  .newsletter-form .btn { font-size: 13px; padding: 12px 22px; white-space: nowrap; }
  .newsletter-note {
    margin-top: 10px;
    font-size: 11.5px;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
  }

  @media (max-width: 1080px) {
    .blog-hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .featured-card { grid-template-columns: 1fr; }
    .newsletter-card { grid-template-columns: 1fr; gap: 28px; padding: 40px 32px; }
  }
  @media (max-width: 980px) {
    .posts-grid { grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 640px) {
    .posts-grid { grid-template-columns: 1fr; }
    .featured-body { padding: 28px; }
    .newsletter-form .row { flex-direction: column; }
  }

  /* TWEAKS */
  #tweaks-panel {
    display: none; position: fixed; bottom: 24px; right: 24px;
    background: white; border-radius: 12px; padding: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    z-index: 9999; width: 260px;
    font-family: var(--font-body); border: 1px solid #e0e8f0;
  }
  #tweaks-panel h4 { font-family: var(--font-head); font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 16px; letter-spacing: 0.5px; }
  .tweak-row { margin-bottom: 14px; }
  .tweak-row label { display: block; font-size: 11px; font-weight: 600; color: #6b7f90; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
  .tweak-row input[type=color] { width: 100%; height: 32px; border: 1px solid #dde5ee; border-radius: 6px; cursor: pointer; padding: 2px; }
  .tweak-row select { width: 100%; padding: 7px 10px; border: 1px solid #dde5ee; border-radius: 6px; font-size: 13px; color: var(--navy); background: white; }

/* empty state + single-post (dynamic blog index) */
.blog-empty {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 20px 20px;
}
.blog-empty h2 {
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--navy-deep);
  margin: 0 0 16px;
}
.blog-empty p {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 28px;
}

/* card featured-image photos (override SVG pattern placeholders) */
.featured-img { position: relative; overflow: hidden; }
.featured-img-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.post-img { position: relative; overflow: hidden; }
.post-img-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
