@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    color-scheme: light;
    --bg: #eef5ef;
    --bg-warm: #f4f1e6;
    --ink: #10221f;
    --muted: rgba(16, 34, 31, 0.66);
    --primary: #236f65;
    --primary-hover: #1d574e;
    --primary-light: rgba(35, 111, 101, 0.10);
    --primary-glow: rgba(35, 111, 101, 0.16);
    --secondary: #174e75;
    --accent: #9a2f2b;
    --amber: #c18d2f;
    --card: #fbfaf2;
    --border: #b8c7bd;
    --border-light: rgba(184, 199, 189, 0.54);
    --shadow: 0 14px 28px rgba(18, 45, 39, 0.12);
    --shadow-sm: 0 1px 2px rgba(18, 45, 39, 0.08);
    --radius: 6px;
    --radius-sm: 4px;
    --max-width: 1200px;
    --gutter: clamp(20px, 4vw, 40px);
    --surface-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 90px), rgba(251, 250, 242, 0.93);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background:
        linear-gradient(90deg, rgba(22, 61, 55, 0.05) 1px, transparent 1px),
        linear-gradient(180deg, rgba(22, 61, 55, 0.045) 1px, transparent 1px),
        linear-gradient(180deg, #f7f6ed 0%, #eef5ef 100%);
    background-size: 42px 42px, 42px 42px, auto;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.page {
    position: relative;
    isolation: isolate;
    width: 100%;
    overflow-x: hidden;
}

.skip-link {
    position: absolute;
    left: 20px;
    top: -48px;
    padding: 10px 16px;
    background: var(--ink);
    color: #fff;
    border-radius: 999px;
    font-size: 14px;
    text-decoration: none;
    z-index: 999;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 16px;
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 70px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(251, 250, 242, 0.94);
    border-bottom: 1px solid rgba(16, 34, 31, 0.16);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.72),
        0 10px 24px rgba(16, 34, 31, 0.04);
}

.site-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(35, 111, 101, 0.26), transparent);
    opacity: 0.9;
    pointer-events: none;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
}

.header-inner::after {
    content: "";
    position: absolute;
    inset-inline-start: var(--gutter);
    bottom: -1px;
    width: 76px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--amber));
    pointer-events: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
    font-weight: 800;
}

.brand img {
    max-height: 45px;
    width: 45px;
    margin-right: -6px;
    transform: translateY(-2px);
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.brand-zap {
    color: var(--ink);
}

.brand-blog {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background: rgba(220, 233, 223, 0.9);
    border: 1px solid rgba(35, 111, 101, 0.28);
    padding: 3px 8px;
    border-radius: 4px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.nav > a:not(.button) {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

.nav > a:not(.button):hover {
    color: var(--ink);
}

.button, a.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 4px;
    background: linear-gradient(180deg, #2e8173, #1d574e);
    color: var(--card);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    border: 1px solid rgba(16, 34, 31, 0.24);
    box-shadow: 0 10px 22px rgba(35, 111, 101, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover, a.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(35, 111, 101, 0.22);
    background: linear-gradient(180deg, #338d7e, #1d574e);
    color: var(--card);
}

.button.secondary {
    background: rgba(251, 250, 242, 0.86);
    color: var(--primary-hover);
    border: 1px solid var(--border);
    box-shadow: none;
}

.button.secondary:hover {
    background: #eef5ef;
    border-color: var(--primary);
    transform: none;
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */

.lang-switcher {
    position: relative;
}

.lang-btn {
    background: rgba(251, 250, 242, 0.9);
    border: 1px solid var(--border);
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ink);
    font-family: inherit;
    min-height: 40px;
    font-weight: 750;
    transition: background 0.2s, border-color 0.2s;
}

.lang-btn:hover, .lang-btn:focus {
    background: #eef5ef;
    border-color: var(--primary);
    outline: none;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: var(--shadow);
    display: none;
    z-index: 1000;
    min-width: 200px;
    margin-top: 6px;
    overflow: hidden;
}

.lang-dropdown.show {
    display: block;
}

.lang-list {
    max-height: 300px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.lang-dropdown a {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--ink);
    font-size: 14px;
    transition: background 0.15s;
}

.lang-dropdown a:hover, .lang-dropdown a.active {
    background: #eef5ef;
}

.lang-dropdown a.hidden {
    display: none;
}

.lang-search-wrapper {
    position: relative;
    padding: 8px;
    border-bottom: 1px solid var(--border);
}

.lang-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--muted);
    pointer-events: none;
}

.lang-search-input {
    width: 100%;
    padding: 8px 8px 8px 32px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 13px;
    background: #eef5ef;
    color: var(--ink);
    font-family: inherit;
}

.lang-no-results {
    padding: 10px 14px;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter) 88px;
    width: 100%;
}

/* ============================================
   HERO
   ============================================ */

.hero {
    display: grid;
    gap: 36px;
    grid-template-columns: 1fr 1fr;
    padding: 72px 0 44px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    border: 1px solid rgba(35, 111, 101, 0.35);
    border-radius: 4px;
    background: rgba(220, 233, 223, 0.9);
    padding: 8px 12px;
}

.hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.25rem);
    font-weight: 800;
    margin: 14px 0 16px;
    letter-spacing: 0;
    line-height: 1.1;
    overflow-wrap: break-word;
    color: var(--ink);
}

.hero p {
    font-size: 17px;
    line-height: 1.65;
    color: var(--muted);
    margin: 0 0 24px;
}

.hero-card {
    background: var(--surface-gradient);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hero-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 0 3px rgba(35, 111, 101, 0.08), var(--shadow);
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px 12px;
}

.hero-card h2 {
    margin: 0;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    font-weight: 700;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--amber);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(193, 141, 47, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(193, 141, 47, 0.5); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(193, 141, 47, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(193, 141, 47, 0); }
}

.hero-card-image {
    display: block;
    overflow: hidden;
    margin: 0 20px 12px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.hero-card-image img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.hero-card-image:hover img {
    transform: scale(1.03);
}

.hero-card-content {
    padding: 0 20px 20px;
    display: grid;
    gap: 10px;
}

.hero-card h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.hero-card h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.hero-card h3 a:hover {
    color: var(--primary);
}

.hero-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.card-divider {
    border: 0;
    height: 1px;
    background: var(--border);
    margin: 4px 20px;
}

.highlights-list {
    list-style: none;
    padding: 0 20px 20px;
    margin: 0;
    display: grid;
    gap: 8px;
}

.highlights-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.highlights-list li span {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: 36px 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.section-header h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0;
}

.section-header p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
}

/* ============================================
   TOPICS
   ============================================ */

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.topic-card {
    background: var(--surface-gradient);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
}

button.topic-card {
    cursor: pointer;
    width: 100%;
    font-family: inherit;
    text-align: left;
    transition: all 0.2s ease;
}

button.topic-card:hover {
    border-color: var(--primary);
    background: var(--card);
    transform: translateY(-2px);
    box-shadow: 0 0 0 3px rgba(35, 111, 101, 0.08), var(--shadow-sm);
}

button.topic-card.active {
    background: linear-gradient(180deg, #2e8173, #1d574e);
    color: var(--card);
    border-color: var(--primary);
}

button.topic-card.active .topic-count {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.topic-count {
    font-size: 12px;
    color: var(--muted);
    background: #eef5ef;
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 500;
}

/* ============================================
   ARTICLE GRID / CARDS
   ============================================ */

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.article-card {
    position: relative;
    background: var(--surface-gradient);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 24px;
    display: grid;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    background: var(--card);
    box-shadow: 0 0 0 3px rgba(35, 111, 101, 0.08), var(--shadow);
}

.article-card.hidden {
    display: none;
}

.article-card h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.article-card h3 a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.article-card h3 a {
    text-decoration: none;
    color: inherit;
}

.article-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--muted);
}

.chip {
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 10px;
    border: 1px solid rgba(35, 111, 101, 0.22);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--muted);
}

.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.arrow-link span {
    display: inline-block;
    transition: transform 0.2s ease;
}

.arrow-link:hover span {
    transform: translateX(4px);
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.pagination-controls button[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

#page-info {
    font-weight: 600;
    font-size: 14px;
    color: var(--muted);
}

/* ============================================
   ARTICLE HERO
   ============================================ */

.article-hero {
    padding: 48px 0 32px;
    max-width: 780px;
    margin: 0 auto;
}

.back-link {
    margin-bottom: 28px;
    color: var(--muted);
    font-weight: 500;
    font-size: 14px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.back-link:hover {
    opacity: 1;
    color: var(--primary);
}

.article-hero h1 {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    margin: 14px 0 16px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.article-excerpt {
    font-size: 18px;
    color: var(--muted);
    margin: 0 0 20px;
    line-height: 1.65;
}

.article-meta-compact {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
    font-size: 14px;
    color: var(--muted);
}

.meta-author-date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-author-date strong {
    color: var(--ink);
}

.meta-separator {
    color: var(--border);
}

.meta-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 12px;
    border: 1px solid rgba(35, 111, 101, 0.22);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}

/* ============================================
   TABLE OF CONTENTS
   ============================================ */

.article-toc {
    margin-top: 32px;
    background: var(--surface-gradient);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px 24px;
    backdrop-filter: blur(8px);
}

.toc-title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    font-weight: 700;
    margin: 0 0 14px 0;
}

.article-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.article-toc a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

.article-toc a:hover {
    color: var(--primary-hover);
}

/* ============================================
   ARTICLE CONTENT
   ============================================ */

.article-content {
    background: var(--surface-gradient);
    border-radius: var(--radius);
    padding: clamp(24px, 5vw, 56px) clamp(24px, 5vw, 48px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    line-height: 1.8;
    font-size: 17px;
    max-width: 780px;
    margin: 0 auto;
    width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.article-content h2 {
    margin-top: 48px;
    margin-bottom: 18px;
    font-size: 24px;
    font-weight: 800;
    color: var(--ink);
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    scroll-margin-top: 90px;
    letter-spacing: -0.02em;
}

.article-content h2:first-child {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.article-content h3 {
    margin-top: 28px;
    margin-bottom: 14px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.article-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(35, 111, 101, 0.3);
    transition: text-decoration-color 0.2s;
}

.article-content a:hover {
    text-decoration-color: var(--primary);
}

.article-content ul, .article-content ol {
    padding-left: 20px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    margin: 24px 0;
    padding: 18px 22px;
    border-left: 4px solid var(--primary);
    background: var(--primary-light);
    border-radius: 0 12px 12px 0;
    font-style: italic;
}

.article-content blockquote p {
    margin: 0;
}

/* Callout */
.article-callout {
    margin: 28px 0;
    padding: 22px 24px;
    border-radius: var(--radius);
    background: rgba(238, 245, 239, 0.72);
    border-left: 4px solid var(--primary);
}

.article-callout strong {
    display: block;
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.article-callout p {
    margin: 0;
}

.article-callout.warning {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.06), rgba(245, 158, 11, 0.02));
}

.article-callout.warning strong {
    color: #b45309;
}

.article-callout.alert {
    border-left-color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.06), rgba(239, 68, 68, 0.02));
}

.article-callout.alert strong {
    color: #dc2626;
}

/* Checklist */
.checklist-card {
    margin: 28px 0;
    padding: 24px;
    background: var(--surface-gradient);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.checklist-card h3 {
    margin-top: 0 !important;
    font-size: 17px !important;
    color: var(--primary);
}

.checklist-card ul {
    list-style: none;
    padding: 0 !important;
    margin: 0;
    display: grid;
    grid-template-columns: min-content minmax(min-content, 40%) 1fr;
    column-gap: 14px;
    row-gap: 14px;
    align-items: baseline;
}

.checklist-card li {
    display: contents;
}

.checklist-label {
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    overflow-wrap: break-word;
    min-width: 0;
}

.checklist-text {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
    overflow-wrap: break-word;
    min-width: 0;
}

.checklist-text.full-width {
    grid-column: 2 / -1;
}

.check-icon {
    color: #fff;
    background: var(--primary);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 3px;
    align-self: start;
}

/* Card list */
.card-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin: 28px 0;
}

.card-list-item {
    background: rgba(238, 245, 239, 0.68);
    border: 1px solid var(--border);
    padding: 18px;
    border-radius: var(--radius);
}

.card-list-item strong {
    display: block;
    font-size: 15px;
    margin-bottom: 6px;
    color: var(--ink);
}

.card-list-item p {
    font-size: 14px;
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

/* Article images */
.article-image {
    margin: 28px 0;
    width: 100%;
}

.article-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    display: block;
    border: 1px solid var(--border);
}

.article-image figcaption {
    font-size: 13px;
    color: var(--muted);
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

/* FAQ */
.faq-list {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.faq-item {
    background: var(--surface-gradient);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.faq-item summary {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-item summary::before {
    content: "+";
    font-size: 20px;
    font-weight: 300;
    color: var(--primary);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.faq-item[open] summary::before {
    content: "−";
}

.faq-answer {
    padding: 0 20px 16px;
    color: var(--muted);
    line-height: 1.7;
}

/* Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.tag {
    border: 1px solid var(--border);
    background: rgba(238, 245, 239, 0.72);
    color: var(--muted);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* ============================================
   READING PROGRESS BAR
   ============================================ */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--amber));
    width: 0;
    z-index: 100;
    transition: width 0.1s linear;
}

/* ============================================
   RELATED SECTION
   ============================================ */

.related-section {
    max-width: 780px;
    margin: 0 auto;
    padding-top: 48px;
}

/* ============================================
   FOOTER
   ============================================ */

.blog-footer {
    margin-top: 48px;
}

.footer-cta-band {
    background-color: var(--primary-hover);
    background-image:
        linear-gradient(90deg, rgba(251, 250, 242, 0.07) 1px, transparent 1px),
        linear-gradient(180deg, rgba(251, 250, 242, 0.06) 1px, transparent 1px),
        linear-gradient(180deg, #236f65, #163d37);
    background-size: 24px 24px, 24px 24px, auto;
    padding: 48px 0;
    position: relative;
    overflow: hidden;
}

.footer-cta-band::before {
    display: none;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
    position: relative;
}

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

.footer-cta-copy h2 {
    color: #fff;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
}

.footer-cta-copy p {
    color: rgba(251, 250, 242, 0.78);
    margin: 0;
    font-size: 15px;
    max-width: 480px;
}

.button-cta {
    background: var(--card);
    color: var(--primary-hover);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    font-size: 15px;
    padding: 12px 28px;
}

.button-cta:hover {
    background: #f4f1e6;
    color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.footer-main {
    background: #10221f;
    color: white;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(251, 250, 242, 0.16);
}

.lc-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.lc-footer-brand h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0;
}

.lc-footer-brand h3 img {
    margin-right: -6px;
    transform: translateY(-2px);
}

.lc-footer-brand p {
    color: rgba(251, 250, 242, 0.72);
    max-width: 300px;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 14px;
}

.lc-footer-col h4 {
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    margin: 0 0 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.lc-footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lc-footer-links a {
    color: rgba(251, 250, 242, 0.72);
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
}

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

.lc-footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(251, 250, 242, 0.16);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: rgba(251, 250, 242, 0.72);
    font-size: 0.85rem;
}

.lc-footer-bottom a {
    color: rgba(251, 250, 242, 0.72);
    text-decoration: none;
}

.lc-footer-bottom a:hover {
    color: white;
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 800px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 40px 0 24px;
    }

    .header-inner {
        gap: 12px;
    }

    .nav > a:not(.button) {
        display: none;
    }

    .nav .button {
        font-size: 13px;
        padding: 8px 14px;
    }

    .lang-btn {
        padding: 6px 10px;
        font-size: 12px;
    }

    .lang-dropdown {
        min-width: 180px;
        max-width: calc(100vw - 2rem);
    }

    .checklist-card ul {
        grid-template-columns: min-content minmax(0, 1fr);
        column-gap: 12px;
        row-gap: 12px;
    }

    .checklist-text {
        grid-column: 1 / -1;
        padding-left: 32px;
    }

    .check-icon {
        grid-row: span 2;
        align-self: start;
    }

    .footer-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-cta-copy p {
        max-width: none;
    }
}

@media (max-width: 600px) {
    .article-grid {
        grid-template-columns: 1fr;
    }

    .topics-grid {
        grid-template-columns: 1fr 1fr;
    }

    .article-content {
        padding: 20px 16px;
        font-size: 16px;
    }

    .header-inner {
        padding: 12px;
    }

    .brand img {
        max-height: 32px;
        width: 32px !important;
        height: 32px !important;
    }

    .brand-name {
        font-size: 16px;
    }

    .brand-blog {
        font-size: 10px;
        padding: 2px 6px;
    }

    .nav {
        gap: 8px;
    }

    .nav .button {
        font-size: 12px;
        padding: 7px 12px;
    }

    .lc-footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .lc-footer-brand p {
        margin: 0 auto 1.5rem;
    }

    .lc-footer-brand h3 {
        justify-content: center;
    }

    .lc-footer-links {
        align-items: center;
    }

    .lc-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto;
        transition: none !important;
        animation: none !important;
    }
}
