/**
 * Everyday Money Guide - Main Public Publication Stylesheet
 * Brand Palette:
 * - Deep Navy Blue: #0F2942
 * - Financial Green: #1B7A43
 * - Gold / Accent: #C9932B
 * - Background Light: #F8FAFC
 * - Text Slate: #1E293B
 */

/* Google Material Symbols & Material Icons Rules */
.material-symbols-outlined,
.material-icons,
.material-icons-outlined {
    font-family: 'Material Symbols Outlined', 'Material Icons Outlined', 'Material Icons', sans-serif !important;
    font-weight: normal;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    vertical-align: middle;
}

:root {
    --emg-navy: #0F2942;
    --emg-navy-hover: #0A1C2E;
    --emg-green: #1B7A43;
    --emg-green-hover: #145E33;
    --emg-gold: #C9932B;
    --emg-bg: #F8FAFC;
    --emg-card-bg: #FFFFFF;
    --emg-text: #1E293B;
    --emg-text-muted: #64748B;
    --emg-border: #E2E8F0;
    --font-heading: 'Merriweather', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--emg-bg);
    color: var(--emg-text);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6, .font-serif {
    font-family: var(--font-heading);
    color: var(--emg-navy);
    font-weight: 700;
    line-height: 1.35;
}

/* Brand Utility Classes */
.bg-navy { background-color: var(--emg-navy) !important; }
.text-navy { color: var(--emg-navy) !important; }
.bg-green { background-color: var(--emg-green) !important; }
.text-green { color: var(--emg-green) !important; }
.bg-gold { background-color: var(--emg-gold) !important; }
.text-gold { color: var(--emg-gold) !important; }
.bg-slate-50 { background-color: #F8FAFC !important; }
.border-slate-200 { border-color: #E2E8F0 !important; }

/* Buttons */
.btn-primary {
    background-color: var(--emg-navy);
    border-color: var(--emg-navy);
    color: #ffffff;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--emg-navy-hover);
    border-color: var(--emg-navy-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 41, 66, 0.15);
}

.btn-green {
    background-color: var(--emg-green);
    border-color: var(--emg-green);
    color: #ffffff;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.btn-green:hover, .btn-green:focus {
    background-color: var(--emg-green-hover);
    border-color: var(--emg-green-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27, 122, 67, 0.2);
}

.btn-outline-navy {
    color: var(--emg-navy);
    border-color: var(--emg-navy);
    background: transparent;
    font-weight: 600;
}
.btn-outline-navy:hover {
    background-color: var(--emg-navy);
    color: #ffffff;
}

/* Header & Top Bar */
.site-topbar {
    background-color: #0A1C2E;
    color: #94A3B8;
    font-size: 0.85rem;
    padding: 6px 0;
}
.site-topbar a {
    color: #CBD5E1;
    text-decoration: none;
    transition: color 0.2s;
}
.site-topbar a:hover {
    color: #FFFFFF;
}

.site-navbar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--emg-border);
    padding: 0.85rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--emg-navy) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.5px;
}
.navbar-brand .brand-icon {
    color: var(--emg-green);
    font-size: 1.8rem;
}

.nav-link {
    font-weight: 600;
    color: #334155 !important;
    padding: 0.6rem 0.9rem !important;
    font-size: 0.92rem;
    transition: color 0.2s;
}
.nav-link:hover, .nav-link.active {
    color: var(--emg-green) !important;
}

/* Hero Section */
.hero-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--emg-border);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hero-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 41, 66, 0.08);
}
.hero-img {
    height: 100%;
    min-height: 380px;
    object-fit: cover;
    width: 100%;
}

/* Article Cards */
.article-card {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid var(--emg-border);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 41, 66, 0.06);
}
.article-card-img {
    height: 190px;
    object-fit: cover;
    width: 100%;
    background-color: #F1F5F9;
}
.article-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.article-card-title {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    line-height: 1.4;
}
.article-card-title a {
    color: var(--emg-navy);
    text-decoration: none;
    transition: color 0.2s;
}
.article-card-title a:hover {
    color: var(--emg-green);
}
.article-meta {
    font-size: 0.82rem;
    color: var(--emg-text-muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #F1F5F9;
}

/* Badges */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    text-decoration: none;
}
.country-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    background-color: #E2E8F0;
    color: #1E293B;
    text-decoration: none;
}

/* Article Reading View */
.reading-container {
    max-width: 820px;
    margin: 0 auto;
}
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background-color: var(--emg-green);
    width: 0%;
    z-index: 1040;
    transition: width 0.1s ease-out;
}
.article-title-hero {
    font-size: 2.5rem;
    line-height: 1.25;
    letter-spacing: -0.5px;
}
.article-content-body {
    font-size: 1.15rem;
    line-height: 1.85;
    color: #334155;
}
.article-content-body p {
    margin-bottom: 1.6rem;
}
.article-content-body h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1.1rem;
    border-bottom: 2px solid #E2E8F0;
    padding-bottom: 0.5rem;
}
.article-content-body h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.9rem;
}
.article-content-body ul, .article-content-body ol {
    margin-bottom: 1.8rem;
    padding-left: 1.5rem;
}
.article-content-body li {
    margin-bottom: 0.5rem;
}

/* Social Share Bar */
.social-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
    border: none;
}
.social-share-btn:hover {
    transform: translateY(-2px);
    color: #ffffff;
    opacity: 0.92;
}
.share-fb { background-color: #1877F2; }
.share-wa { background-color: #25D366; }
.share-x { background-color: #000000; }
.share-linkedin { background-color: #0A66C2; }
.share-email { background-color: #EA4335; }
.share-copy { background-color: var(--emg-navy); }

/* Financial Disclaimer Banner */
.disclaimer-banner {
    background-color: #FFFBEB;
    border: 1px solid #FDE68A;
    color: #92400E;
    font-size: 0.88rem;
    padding: 1.25rem;
    border-radius: 8px;
}

/* Footer */
.site-footer {
    background-color: #0A1C2E;
    color: #94A3B8;
    padding-top: 4.5rem;
    padding-bottom: 2rem;
    border-top: 4px solid var(--emg-green);
}
.site-footer h5 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1.4rem;
}
.site-footer a {
    color: #CBD5E1;
    text-decoration: none;
    transition: color 0.2s;
}
.site-footer a:hover {
    color: var(--emg-green);
}

@media (max-width: 768px) {
    .article-title-hero {
        font-size: 1.85rem;
    }
    .article-content-body {
        font-size: 1.05rem;
    }
}

