/* ========================================
   SEAVALE Article Pages - CSS
   Mood: Elegant, Luxurious, Professional
   Color Palette: Deep Navy, Sand Gold, Soft White
======================================== */

/* ========== CSS Variables (inherited from main) ========== */
:root {
    --sea-turquoise: #2C5F6F;
    --sand-gold: #C9A961;
    --deep-navy: #1A2B48;
    --soft-white: #F5F3F0;
    --warm-beige: #E8E4DF;
    --charcoal: #2D2D2D;
    --focus-color: #977a37;
}

/* ========== Base Reset ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
    font-weight: 300;
    color: var(--focus-color);
    background: var(--soft-white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    color: var(--deep-navy);
    line-height: 1.3;
    font-variant-numeric: lining-nums;
    -webkit-font-feature-settings: "lnum" 1;
    font-feature-settings: "lnum" 1;
}

/* ========== Links ========== */
a {
    cursor: pointer;
    position: relative;
    z-index: 1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
}

/* ========== Article Navbar ========== */
.article-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1030;
    padding: 1rem 0;
    background: var(--deep-navy);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.article-navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.article-navbar .brand-logo {
    height: 40px;
    width: auto;
}

.article-navbar .logo-text,
.article-navbar .logo-wave {
    fill: #fff;
}

.article-navbar .back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--sand-gold);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.article-navbar .back-link:hover {
    color: #fff;
    transform: translateX(-5px);
}

/* ========== Article Hero ========== */
.article-hero {
    background: linear-gradient(135deg, var(--deep-navy) 0%, #0d1829 100%);
    padding: clamp(8rem, 15vw, 12rem) 0 clamp(4rem, 8vw, 6rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.article-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="wave" patternUnits="userSpaceOnUse" width="100" height="20"><path d="M0 10 Q25 0 50 10 T100 10" fill="none" stroke="rgba(201,169,97,0.1)" stroke-width="0.5"/></pattern></defs><rect fill="url(%23wave)" width="100" height="100"/></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.article-hero .container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.article-hero .breadcrumb {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.85rem;
}

.article-hero .breadcrumb a {
    color: var(--sand-gold);
    text-decoration: none;
    transition: color 0.3s;
}

.article-hero .breadcrumb a:hover {
    color: #fff;
}

.article-hero .breadcrumb span {
    color: rgba(255,255,255,0.5);
}

.article-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.article-hero .subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255,255,255,0.85);
    max-width: 700px;
    margin: 0 auto;
}

.article-hero .hero-badge {
    display: inline-block;
    background: var(--sand-gold);
    color: var(--deep-navy);
    padding: 0.5rem 1.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========== Article Content ========== */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 5rem) 1.5rem;
}

.article-content p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    color: #444;
}

.article-content h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--sand-gold);
}

.article-content h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    margin: 2rem 0 1rem;
    color: var(--sea-turquoise);
}

.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.article-content a {
    color: var(--sea-turquoise);
    text-decoration: none;
    border-bottom: 1px solid var(--sand-gold);
    transition: all 0.3s;
}

.article-content a:hover {
    color: var(--sand-gold);
    border-bottom-color: var(--sea-turquoise);
}

/* ========== Info Box / Highlight Box ========== */
.info-box {
    background: linear-gradient(135deg, rgba(201,169,97,0.1) 0%, rgba(201,169,97,0.05) 100%);
    border-left: 4px solid var(--sand-gold);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.info-box h4 {
    color: var(--deep-navy);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.info-box p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.warning-box {
    background: linear-gradient(135deg, rgba(220,53,69,0.1) 0%, rgba(220,53,69,0.05) 100%);
    border-left: 4px solid #dc3545;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.success-box {
    background: linear-gradient(135deg, rgba(40,167,69,0.1) 0%, rgba(40,167,69,0.05) 100%);
    border-left: 4px solid #28a745;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

/* ========== Feature Cards ========== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.feature-card {
    background: #fff;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(201,169,97,0.2);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border-color: var(--sand-gold);
}

.feature-card .icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--sand-gold) 0%, #d4af6a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-card .icon i {
    font-size: 1.5rem;
    color: var(--deep-navy);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.feature-card p {
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}

/* ========== Step Cards (Process) ========== */
.step-list {
    counter-reset: step;
    margin: 3rem 0;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: relative;
    transition: all 0.3s ease;
}

.step-item:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.step-item::before {
    counter-increment: step;
    content: counter(step);
    width: 50px;
    height: 50px;
    background: var(--deep-navy);
    color: var(--sand-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-item .step-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.step-item .step-content p {
    margin: 0;
    font-size: 0.95rem;
    color: #666;
}

/* ========== CTA Section ========== */
.cta-section {
    background: linear-gradient(135deg, var(--deep-navy) 0%, #0d1829 100%);
    padding: clamp(4rem, 8vw, 6rem) 1.5rem;
    text-align: center;
    margin-top: 4rem;
}

.cta-section .container {
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    color: #fff;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255,255,255,0.85);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-primary-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--sand-gold) 0%, #d4af6a 100%);
    color: var(--deep-navy);
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(201,169,97,0.4);
    border: none;
    cursor: pointer;
}

.btn-primary-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(201,169,97,0.5);
    color: var(--deep-navy);
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #fff;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.4s ease;
    border: 2px solid rgba(255,255,255,0.3);
    cursor: pointer;
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--sand-gold);
    color: var(--sand-gold);
}

/* ========== Article Footer ========== */
.article-footer {
    background: var(--deep-navy);
    color: #fff;
    padding: 3rem 1.5rem;
    text-align: center;
}

.article-footer .container {
    max-width: 1200px;
    margin: 0 auto;
}

.article-footer .footer-logo {
    height: 50px;
    margin-bottom: 1.5rem;
}

.article-footer .footer-logo .logo-text {
    fill: var(--warm-beige);
}

.article-footer .footer-logo .logo-wave {
    fill: var(--sand-gold);
}

.article-footer p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.article-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.article-footer .footer-links a {
    color: var(--sand-gold);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    display: inline-block;
}

.article-footer .footer-links a:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.article-footer .copyright {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* ========== Table of Contents ========== */
.toc {
    background: #fff;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.toc h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--deep-navy);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc li {
    margin-bottom: 0.5rem;
}

.toc a {
    color: var(--charcoal);
    text-decoration: none;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: none;
    transition: all 0.3s;
}

.toc a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--sand-gold);
    border-radius: 50%;
    flex-shrink: 0;
}

.toc a:hover {
    color: var(--sand-gold);
    padding-left: 0.5rem;
}

/* ========== Related Articles ========== */
.related-articles {
    background: var(--warm-beige);
    padding: clamp(3rem, 6vw, 5rem) 1.5rem;
}

.related-articles .container {
    max-width: 1000px;
    margin: 0 auto;
}

.related-articles h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.related-card {
    display: block;
    background: #fff;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #eee;
    cursor: pointer;
    color: var(--charcoal);
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(201,169,97,0.2);
    border-color: var(--sand-gold);
    background: linear-gradient(135deg, rgba(201,169,97,0.05) 0%, #fff 100%);
}

.related-card:active {
    transform: translateY(-2px);
}

.related-card h3 {
    font-size: 1.1rem;
    color: var(--deep-navy);
    margin-bottom: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.related-card p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* ========== Page Loader ========== */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--deep-navy) 0%, #0f1a2e 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.page-loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.loader-logo {
    width: 500px;
    height: auto;
    margin-bottom: 1.5rem;
    animation: loaderPulse 2s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.loader-wave {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 6px;
    height: 50px;
    margin-bottom: 2rem;
}

.loader-wave span {
    width: 4px;
    height: 10px;
    background: linear-gradient(to top, var(--sand-gold), #e8d5a3);
    border-radius: 2px;
    animation: wave 1.2s ease-in-out infinite;
}

.loader-wave span:nth-child(1) { animation-delay: 0s; }
.loader-wave span:nth-child(2) { animation-delay: 0.1s; }
.loader-wave span:nth-child(3) { animation-delay: 0.2s; }
.loader-wave span:nth-child(4) { animation-delay: 0.3s; }
.loader-wave span:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
    0%, 100% {
        height: 10px;
        opacity: 0.5;
    }
    50% {
        height: 40px;
        opacity: 1;
    }
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(201, 169, 97, 0.2);
    border-top-color: var(--sand-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    color: var(--sand-gold);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .article-navbar .container {
        padding: 0 1rem;
    }

    .article-hero {
        padding: 7rem 0 3rem;
    }

    .step-item {
        flex-direction: column;
        text-align: center;
    }

    .step-item::before {
        margin: 0 auto;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .article-footer .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ========== Accessibility ========== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

*:focus-visible {
    outline: 3px solid var(--sand-gold);
    outline-offset: 3px;
}

/* ========== Print Styles ========== */
@media print {
    .article-navbar,
    .cta-section,
    .related-articles {
        display: none;
    }

    .article-hero {
        background: none;
        color: #000;
        padding: 2rem 0;
    }

    .article-hero h1 {
        color: #000;
    }
}

/* ========================================
   Dark Guide Pages — shared utilities
   Used by: patong-investment-guide.html
   and any future dark-theme guide pages
======================================== */

/* ── Extra CSS variables (dark theme) ── */
:root {
    --navy-mid:   #223559;
    --navy-light: #2d4470;
    --gold-light: #e0c278;
    --text-muted: #94a3b8;
}

/* Fix loader-logo size for guide pages */
.loader-logo { width: 200px; }

/* ── Guide Topbar ───────────────────── */
.guide-topbar {
    background: rgba(26, 43, 72, 0.97);
    border-bottom: 1px solid rgba(201, 169, 97, 0.25);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}
.topbar-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.topbar-logo .brand-svg {
    height: 44px;
    width: auto;
    fill: var(--sand-gold);
}
.topbar-logo .brand-svg .logo-text { fill: var(--sand-gold); }
.topbar-logo .brand-svg .logo-wave path { fill: var(--sand-gold); }
.topbar-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--sand-gold);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}
.topbar-back:hover { opacity: 0.75; color: var(--sand-gold); }

/* ── Section eyebrow / divider ──────── */
.section-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.section-eyebrow .line {
    flex: 1;
    height: 1px;
    background: rgba(201, 169, 97, 0.3);
}
.section-eyebrow span {
    color: var(--sand-gold);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    white-space: nowrap;
}
.section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}
.section-subtitle {
    margin-bottom: 2.5rem;
    line-height: 1.6;
}
.section-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin: 0;
}

/* ── Dark info / warning / success boxes */
.dark-info-box {
    background: rgba(201, 169, 97, 0.06);
    border: 1px solid rgba(201, 169, 97, 0.2);
    border-left: 4px solid var(--sand-gold);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}
.dark-info-box h2{

    font-weight: 700;
    color: var(--sand-gold);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dark-info-box ul,
.dark-info-box ol { padding-left: 1.25rem; }
.dark-info-box li { margin-bottom: 0.4rem; }

.dark-warning-box {
    background: rgba(248, 113, 113, 0.06);
    border: 1px solid rgba(248, 113, 113, 0.2);
    border-left: 4px solid #f87171;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}
.dark-warning-box h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #f87171;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dark-warning-box p,
.dark-warning-box ul,
.dark-warning-box ol {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}
.dark-warning-box ul,
.dark-warning-box ol { padding-left: 1.25rem; }
.dark-warning-box li { margin-bottom: 0.5rem; }

.dark-success-box {
    background: rgba(52, 211, 153, 0.06);
    border: 1px solid rgba(52, 211, 153, 0.2);
    border-left: 4px solid #34d399;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}
.dark-success-box h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #34d399;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.dark-success-box p,
.dark-success-box ul {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0;
}
.dark-success-box ul { padding-left: 1.25rem; }
.dark-success-box li { margin-bottom: 0.4rem; }

/* ── Dark text utilities ────────────── */
.dark-body-text {
    font-size: 0.875rem;
    color: #cbd5e1;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}
.dark-h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}
.dark-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.25rem;
}
.dark-list li {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.65;
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.dark-list li:last-child { border-bottom: none; }
.dark-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--sand-gold);
    opacity: 0.7;
}
.dark-list li strong { color: #e2e8f0; font-weight: 600; }

.dark-ordered-list {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}
.dark-ordered-list li {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 0.5rem;
}
.dark-ordered-list li strong { color: #e2e8f0; font-weight: 600; }

/* ── Dark table ─────────────────────── */
.dark-table-wrapper {
    overflow-x: auto;
    margin-bottom: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.dark-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}
.dark-table thead tr { background: var(--navy-mid); }
.dark-table thead th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--sand-gold);
    border-bottom: 1px solid rgba(201, 169, 97, 0.2);
    white-space: nowrap;
}
.dark-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.15s;
}
.dark-table tbody tr:last-child { border-bottom: none; }
.dark-table tbody tr:hover { background: rgba(201, 169, 97, 0.04); }
.dark-table tbody td {
    padding: 0.9rem 1.25rem;
    color: var(--text-muted);
    vertical-align: middle;
}
.dark-table tbody td:first-child { color: #cbd5e1; font-weight: 500; }
.dark-table .highlight-cell { color: #34d399; font-weight: 700; }

@media (max-width: 640px) {
    .dark-table tbody tr:hover { background: var(--deep-navy) !important; }
    .dark-table-wrapper {
        overflow-x: visible;
        border: none;
        background: none;
    }
    .dark-table thead { display: none; }
    .dark-table,
    .dark-table tbody { display: block; }

    /* Each row = navy card */
    .dark-table tbody tr {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto auto;
        border-radius: 12px;
        margin-bottom: 0.85rem;
        overflow: hidden;
        background: var(--deep-navy);
        box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    }

    /* Metric — title bar: gold text on slightly lighter navy */
    .dark-table tbody td:first-child {
        grid-column: 1 / -1;
        grid-row: 1;
        padding: 0.7rem 1rem;
        background: var(--navy-mid);
        border-bottom: 2px solid var(--sand-gold);
        font-size: 0.85rem;
        font-weight: 700;
        color: var(--sand-gold) !important;
        letter-spacing: 0.2px;
    }
    .dark-table tbody td:first-child::before { display: none; }

    /* 3 value cells */
    .dark-table tbody td:nth-child(2),
    .dark-table tbody td:nth-child(3),
    .dark-table tbody td:nth-child(4) {
        grid-row: 2;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0.8rem 0.4rem;
        color: #e2e8f0;
        font-size: 0.88rem;
        font-weight: 600;
        border-right: 1px solid rgba(255,255,255,0.07);
    }
    .dark-table tbody td:nth-child(2) { grid-column: 1; }
    .dark-table tbody td:nth-child(3) { grid-column: 2; }
    .dark-table tbody td:nth-child(4) {
        grid-column: 3;
        border-right: none;
        color: var(--sand-gold);
        background: rgba(201,169,97,0.1);
        font-weight: 700;
    }

    /* Label above each value */
    .dark-table tbody td:not(:first-child)::before {
        content: attr(data-label);
        font-size: 0.56rem;
        font-weight: 600;
        letter-spacing: 0.8px;
        text-transform: uppercase;
        color: rgba(255,255,255,0.4);
        margin-bottom: 0.3rem;
        white-space: nowrap;
    }
    .dark-table tbody td:nth-child(4)::before {
        color: rgba(201,169,97,0.7);
    }

    /* highlight-cell */
    .dark-table tbody td.highlight-cell { color: #34d399; }
    .dark-table tbody td:nth-child(4).highlight-cell { color: var(--sand-gold); }
}

/* ── Dark CTA buttons ───────────────── */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}
.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--sand-gold) 0%, #b8943e 100%);
    color: var(--deep-navy);
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.85rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(201, 169, 97, 0.35);
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(201, 169, 97, 0.5);
    color: var(--deep-navy);
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.85rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    transform: translateY(-2px);
}

/* ── Related articles (dark) ────────── */
.related-articles-dark {
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 3rem 1.5rem;
}
.related-articles-dark .inner {
    max-width: 960px;
    margin: 0 auto;
}
.related-articles-dark h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #e2e8f0;
}
.related-articles-dark .related-sub {
    margin-bottom: 2rem;
}
.related-dark-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}
.related-dark-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s, border-color 0.2s;
    display: block;
}
.related-dark-card:hover {
    background: rgba(201, 169, 97, 0.07);
    border-color: rgba(201, 169, 97, 0.3);
    transform: translateY(-2px);
}
.related-dark-card h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}
.related-dark-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}
.related-dark-card .card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--sand-gold);
    margin-top: 0.75rem;
    letter-spacing: 0.5px;
}

/* ── Site footer (dark) ─────────────── */
.site-footer-dark {
    background: #0f1a2e;
    border-top: 1px solid rgba(201, 169, 97, 0.12);
    padding: 2.5rem 1.5rem;
    text-align: center;
}
.site-footer-dark .footer-logo-svg {
    width: 140px;
    height: auto;
    margin-bottom: 0.75rem;
    fill: rgba(201, 169, 97, 0.7);
}
.site-footer-dark .footer-logo-svg .logo-text { fill: rgba(201, 169, 97, 0.7); }
.site-footer-dark .footer-logo-svg .logo-wave path { fill: rgba(201, 169, 97, 0.7); }
.site-footer-dark p {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.footer-dark-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}
.footer-dark-links a {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-dark-links a:hover { color: var(--sand-gold); }
.footer-copyright { font-size: 0.7rem; color: #475569; }
