:root {
    --navy-dark: #0F172A;
    --navy-medium: #1E293B;
    --emerald: #10B981;
    --emerald-light: #D1FAE5;
    --slate-light: #F8FAFC;
    --slate-200: #E2E8F0;
    --white: #FFFFFF;
    --blue-action: #3B82F6;
    --blue-soft: #EFF6FF;
    --glass: rgba(255, 255, 255, 0.7);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--navy-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Job Aggregator Styles */
.jobs-hero h1 span {
    color: var(--blue-action);
}

.job-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: var(--blue-action);
}

.job-external {
    border-left: 4px solid var(--slate-200) !important;
}

.job-internal {
    border-left: 4px solid var(--emerald) !important;
}

.external-tag {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Inter', sans-serif;
}

.jobs-sidebar input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid var(--slate-200);
}

@media (max-width: 1024px) {
    .jobs-main-grid {
        grid-template-columns: 1fr;
    }
    .jobs-sidebar {
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
        background: var(--slate-light);
        padding: 2rem;
        border-radius: 20px;
    }
}

@media (max-width: 768px) {
    .job-filter-bar {
        flex-direction: column;
    }
    .job-filter-bar select {
        border-left: none;
        border-top: 1px solid var(--slate-200);
        padding: 1rem 0;
    }
    .job-card-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .job-card-modern div[style*="text-align: right"] {
        text-align: left !important;
        width: 100%;
    }
}

/* Calculators section */
h1, h2, h3, h4 {
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--navy-dark);
}

/* Header */
.site-header {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--slate-200);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header .container.header-container {
    max-width: 100%;
    padding-left: 5%;
    padding-right: 5%;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--navy-dark);
    text-decoration: none;
}

.logo span {
    color: var(--blue-action);
}

.main-navigation ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.main-navigation a {
    color: var(--navy-dark);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
}

.main-navigation a:hover {
    color: var(--blue-action);
    background: var(--blue-soft);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-switcher {
    margin-right: 0.75rem;
}

.uzd-language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem;
    border: 1px solid var(--slate-200);
    border-radius: 999px;
    background: var(--white);
    white-space: nowrap;
}

.uzd-language-switcher .lang-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    min-width: 1.95rem;
    min-height: 1.95rem;
    padding: 0.08rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--navy-medium);
    font-size: 1.22rem !important;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
    transition: all 0.2s ease;
    text-decoration: none;
}

.uzd-language-switcher .lang-emoji {
    font-size: 0.88rem;
    line-height: 1;
    display: inline-block;
}

.uzd-language-switcher .lang-code {
    line-height: 1;
}

.uzd-language-switcher .lang-separator {
    color: var(--slate-400);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    margin: 0 0.1rem;
}

.uzd-language-switcher .lang-link:hover {
    color: var(--blue-action);
    background: var(--blue-soft);
}

.uzd-language-switcher .lang-link.active {
    color: var(--white);
    background: var(--blue-action);
}

.btn-primary-sm {
    background: var(--navy-dark);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
}

/* Hero Modern Refinement */
.hero-modern {
    padding: 10rem 0 8rem;
    background: radial-gradient(circle at 100% 0%, #f0f9ff 0%, #ffffff 50%);
    overflow: hidden;
}

.hero-modern-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 6rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: var(--blue-soft);
    padding: 0.5rem;
    border-radius: 100px;
    margin-bottom: 2rem;
    border: 1px solid var(--slate-200);
}

.badge-new {
    background: var(--blue-action);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    margin-right: 0.75rem;
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy-medium);
    padding-right: 0.75rem;
}

.hero-modern-content h1 {
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 2rem;
    letter-spacing: -0.04em;
}

.hero-modern-content h1 span {
    color: var(--blue-action);
}

.hero-modern-content p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--navy-medium);
    margin-bottom: 3rem;
    max-width: 580px;
    opacity: 0.9;
}

.hero-modern-btns {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

.btn-primary-modern {
    background: var(--navy-dark);
    color: var(--white);
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.3);
}

.btn-primary-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.4);
    background: #000;
}

.btn-secondary-modern {
    background: var(--white);
    color: var(--navy-dark);
    padding: 1.25rem 2.5rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--slate-200);
    transition: all 0.2s;
}

.btn-secondary-modern:hover {
    background: var(--slate-light);
}

.hero-trust {
    border-top: 1px solid var(--slate-200);
    padding-top: 2rem;
}

.hero-trust p {
    font-size: 0.85rem !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem !important;
    opacity: 0.5;
}

.trust-icons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy-dark);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid var(--slate-200);
}

/* Visuals */
.hero-modern-visual {
    position: relative;
}

.visual-card.main-card {
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(0,0,0,0.15);
    border: 8px solid var(--white);
}

.visual-card.main-card img {
    display: block;
    width: 100%;
    filter: saturate(1.1);
}

.floating-card {
    position: absolute;
    bottom: -30px;
    left: -40px;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--slate-200);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--emerald-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.card-info {
    display: flex;
    flex-direction: column;
}

.card-label {
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.6;
    text-transform: uppercase;
}

.card-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--emerald);
}

@media (max-width: 1024px) {
    .hero-modern-grid { grid-template-columns: 1fr; gap: 4rem; text-align: center; }
    .hero-modern-content h1 { font-size: 3.5rem; }
    .hero-modern-content p { margin-left: auto; margin-right: auto; }
    .hero-modern-btns, .trust-icons { justify-content: center; }
    .floating-card { left: 50%; transform: translateX(-50%); bottom: -40px; animation: none; }
}

/* Features (Temos) */
.features {
    padding: 8rem 0;
    background: var(--slate-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 3rem;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 24px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--blue-action);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.news-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.news-card:hover {
    border-color: var(--blue-action);
    box-shadow: var(--shadow-md);
}

.news-content {
    padding: 2rem;
}

.news-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--blue-action);
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.news-card h3 a {
    text-decoration: none;
    color: var(--navy-dark);
}

.read-more {
    color: var(--blue-action);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    display: inline-block;
}

/* CTA Bar */
.cta-bar {
    background: var(--navy-dark);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.cta-bar h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

/* Footer */
.site-footer {
    background: var(--white);
    padding: 6rem 0 0;
    border-top: 1px solid var(--slate-200);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    padding-bottom: 4rem;
}

.footer-logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--navy-dark);
    text-decoration: none;
    margin-bottom: 1rem;
    display: block;
}

.footer-logo span {
    color: var(--blue-action);
}

.footer-source-badge {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--emerald);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-source-badge::before {
    content: '✓';
    background: var(--emerald-light);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-info p {
    color: var(--navy-medium);
    opacity: 0.8;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.footer-source-badge {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--blue-soft);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--slate-200);
}

.footer-source-badge .badge-icon {
    font-size: 1.5rem;
}

.footer-source-badge .badge-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy-dark);
    line-height: 1.2;
}

.footer-source-badge .badge-text small {
    display: block;
    color: var(--blue-action);
    font-weight: 600;
    opacity: 0.8;
    margin-top: 2px;
}

.footer-links h4, .footer-contact h4 {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--navy-medium);
    text-decoration: none;
    opacity: 0.8;
}

.footer-links a:hover {
    color: var(--blue-action);
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid var(--slate-200);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--navy-medium);
    opacity: 0.6;
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .footer-grid, .news-grid, .features-grid { grid-template-columns: 1fr; }
}

/* Article & Content Styling */
.entry-header {
    margin-bottom: 4rem;
    text-align: center;
}

.entry-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--navy-dark);
}

.entry-meta {
    font-size: 0.9rem;
    color: var(--navy-medium);
    opacity: 0.6;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.entry-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--navy-medium);
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
}

.entry-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
}

.entry-content ul, .entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content blockquote {
    border-left: 4px solid var(--blue-action);
    padding: 1rem 0 1rem 2rem;
    margin-bottom: 2rem;
    font-style: italic;
    background: var(--blue-soft);
    border-radius: 0 12px 12px 0;
}

/* WP Block Table - Financial Style */
.wp-block-table {
    margin-bottom: 3rem;
    overflow-x: auto;
}

.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    border: 1px solid var(--slate-200);
}

.wp-block-table th {
    background: var(--slate-light);
    color: var(--navy-dark);
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    border: 1px solid var(--slate-200);
}

.wp-block-table td {
    padding: 1rem;
    border: 1px solid var(--slate-200);
}

.wp-block-table tr:nth-child(even) {
    background: #fdfdfd;
}

/* Special Highlighting for Financial Lists */
.entry-content ul li {
    position: relative;
    list-style: none;
    padding-left: 1.5rem;
}

.entry-content ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--emerald);
    font-weight: bold;
}

.entry-footer {
    max-width: 800px;
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--slate-200);
}

/* Comments Styling */
.comment-list .comment {
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--slate-light);
    border-radius: 12px;
}

.comment-list .children {
    margin-left: 2rem;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.comment-meta img {
    border-radius: 50%;
}

.comment-author cite {
    font-style: normal;
    font-weight: 700;
}

.comment-metadata {
    opacity: 0.6;
}

.comment-content {
    line-height: 1.6;
}

.reply {
    margin-top: 1rem;
}

.comment-reply-link {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--blue-action);
    text-decoration: none;
}

/* Comment Form */
#commentform p {
    margin-bottom: 1.5rem;
}

#commentform label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    font-family: inherit;
}

#commentform textarea {
    min-height: 150px;
}

/* Transition Header for Articles */
.article-header {
    background: linear-gradient(135deg, var(--navy-dark) 0%, #1e293b 100%);
    color: var(--white);
    padding: 10rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.article-header h1 {
    color: var(--white);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 2rem;
}

/* Article content area – overlap card on subtle grey */
.article-view {
    background-color: #f1f5f9;
    padding-bottom: 4rem;
}

.article-content-wrapper {
    margin-top: -4rem;
    position: relative;
    z-index: 10;
}

.article-view .with-sidebar {
    background: var(--white);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* TT5 Section Style Overrides */
.is-style-section-1 {
    background-color: var(--white) !important;
    color: var(--navy-dark) !important;
}

.is-style-section-2 {
    background-color: var(--slate-light) !important;
    color: var(--navy-dark) !important;
}

.is-style-section-3 {
    background-color: var(--navy-dark) !important;
    color: var(--white) !important;
}

.is-style-section-4 {
    background-color: var(--emerald) !important;
    color: var(--white) !important;
}

.is-style-section-5 {
    background-color: var(--navy-medium) !important;
    color: var(--white) !important;
}

.is-style-section-3 h2, .is-style-section-3 p,
.is-style-section-4 h2, .is-style-section-4 p,
.is-style-section-5 h2, .is-style-section-5 p {
    color: var(--white) !important;
}

/* Breadcrumbs (Optional but nice) */
.breadcrumbs {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
}

.breadcrumbs a {
    color: inherit;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* Entry content refinement */
.entry-content > * {
    margin-bottom: 1.5rem;
}

.entry-content figure {
    margin: 3rem 0;
}

.entry-content figcaption {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
    margin-top: 0.5rem;
}

/* Pagination */
.pagination {
    margin-top: 4rem;
    display: flex;
    justify-content: center;
}

.pagination .page-numbers {
    padding: 0.5rem 1rem;
    border: 1px solid var(--slate-200);
    border-radius: 8px;
    text-decoration: none;
    color: var(--navy-dark);
    transition: all 0.2s;
}

.pagination .page-numbers.current {
    background: var(--blue-action);
    color: var(--white);
    border-color: var(--blue-action);
}

.pagination .page-numbers:hover:not(.current) {
    background: var(--slate-light);
}

/* Sidebar Placeholder (for future) */
.with-sidebar {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

@media (max-width: 768px) {
    .entry-title { font-size: 2.5rem; }
    .with-sidebar { grid-template-columns: 1fr; }

    .article-header {
        padding: 7rem 0 5rem;
    }

    .article-header h1 {
        font-size: 2rem;
    }

    .article-view .with-sidebar {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .article-content-wrapper {
        margin-top: -2.5rem;
    }
}

/* Block Support & Pattern Alignment */
.is-style-section-1 { background-color: var(--white); color: var(--navy-dark); }
.is-style-section-2 { background-color: var(--slate-light); color: var(--navy-dark); }
.is-style-section-3 { background-color: var(--navy-dark); color: var(--white); }
.is-style-section-4 { background-color: var(--blue-action); color: var(--white); }
.is-style-section-5 { background-color: var(--emerald); color: var(--white); }

/* Core Block Styles */
.wp-block-group.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.wp-block-columns.alignwide {
    max-width: 1340px;
    margin: 0 auto;
}

.wp-block-heading.has-xx-large-font-size {
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.wp-block-button__link {
    background-color: var(--blue-action);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    border: none;
    transition: all 0.2s;
}

.wp-block-button__link:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
}

/* Fix for standard WP alignment classes */
.aligncenter { text-align: center; }
.alignwide { max-width: 1340px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100%; max-width: 100%; }

/* Related Posts */
.related-posts {
    margin-top: 6rem;
    padding-top: 4rem;
    border-top: 1px solid var(--slate-200);
}

.related-posts h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.related-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.related-card:hover h4 {
    color: var(--blue-action);
}

.related-card .thumbnail {
    aspect-ratio: 16/9;
    background: var(--slate-light);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.related-card .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card h4 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin: 0;
    transition: color 0.2s;
}

.related-card .date {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-bottom: 0.5rem;
}

/* Mobile Menu & Search Overlay */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy-dark);
    position: relative;
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--navy-dark);
    left: 0;
    transition: 0.3s;
}

.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.search-toggle {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 10vh 2rem;
    overflow-y: auto;
}

.search-modal {
    background: var(--white);
    width: 100%;
    max-width: 1200px;
    padding: 5rem;
    border-radius: 40px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-overlay.active {
    display: flex;
}

.search-overlay.active .search-modal {
    transform: translateY(0);
    opacity: 1;
}

.search-header {
    text-align: left;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--slate-200);
    padding-bottom: 1.5rem;
}

.search-header h3,
.search-header .search-modal-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--navy-dark);
}

.search-header p {
    font-size: 1rem;
    opacity: 0.6;
}

.search-form-overlay {
    margin-bottom: 1.5rem;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-field {
    width: 100%;
    padding: 1.5rem 2rem;
    font-size: 1.25rem;
    border: 2px solid var(--slate-200);
    border-radius: 20px;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
    background: var(--slate-light);
}

.search-field:focus {
    border-color: var(--blue-action);
    background: var(--white);
    box-shadow: 0 0 0 4px var(--blue-soft);
}

.search-spinner {
    position: absolute;
    right: 1.5rem;
    width: 20px;
    height: 20px;
    border: 2px solid var(--slate-200);
    border-top-color: var(--blue-action);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.search-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--slate-light);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--navy-dark);
    transition: all 0.2s;
    z-index: 10;
}

.search-close:hover {
    background: var(--navy-dark);
    color: var(--white);
    transform: rotate(90deg);
}

/* Live Results Styling */
#live-search-results {
    max-height: 480px;
    overflow-y: auto;
    padding-right: 5px;
}

#live-search-results::-webkit-scrollbar {
    width: 6px;
}

#live-search-results::-webkit-scrollbar-thumb {
    background: var(--slate-200);
    border-radius: 10px;
}

.live-search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.live-search-results-list li {
    margin-bottom: 0.5rem;
}

.live-search-results-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 16px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.live-search-results-list a:hover {
    background: var(--blue-soft);
    border-color: var(--blue-action);
    transform: translateX(4px);
}

.result-content {
    display: flex;
    flex-direction: column;
}

.result-title {
    font-weight: 700;
    color: var(--navy-dark);
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}

.result-cat {
    font-size: 0.75rem;
    color: var(--blue-action);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.result-arrow {
    opacity: 0;
    transition: all 0.2s;
    font-size: 1.25rem;
    color: var(--blue-action);
}

.live-search-results-list a:hover .result-arrow {
    opacity: 1;
    transform: translateX(4px);
}

.live-search-view-all {
    margin-top: 1.5rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--slate-200);
}

.no-results {
    text-align: center;
    padding: 2rem;
    opacity: 0.6;
}

/* Reading Progress Bar */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 1001;
}

.reading-progress-bar {
    height: 100%;
    background: var(--emerald);
    width: 0%;
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .main-navigation ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        border-bottom: 1px solid var(--slate-200);
        box-shadow: var(--shadow-lg);
    }
    .main-navigation.is-active ul { display: flex; }
    .header-actions .btn-primary-sm { display: none; }

    .header-actions {
        gap: 0.6rem;
    }

    .lang-switcher {
        margin-right: 0;
    }

    .uzd-language-switcher {
        gap: 0.2rem;
        padding: 0.15rem;
    }

    .uzd-language-switcher .lang-link {
        min-width: 1.75rem;
        min-height: 1.75rem;
        font-size: 1.08rem !important;
        padding: 0.06rem;
    }

    .uzd-language-switcher .lang-separator {
        font-size: 0.65rem;
    }
}

/* =====================================================================
   ADSENSE — Ad Container Styles
   ===================================================================== */

/* Base ad wrapper */
.uzd-ad {
    margin: 2rem 0;
    text-align: center;
    overflow: hidden;
    clear: both;
}

/* "Advertisement" micro-label */
.uzd-ad__label {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--navy-medium);
    opacity: 0.35;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

/* Placeholder shown when slot ID is not yet configured */
.uzd-ad__placeholder {
    background: var(--slate-light);
    border: 2px dashed var(--slate-200);
    border-radius: 12px;
    padding: 2rem;
    color: var(--navy-medium);
    opacity: 0.5;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-height: 90px;
    justify-content: center;
}
.uzd-ad__placeholder small {
    font-size: 0.7rem;
    opacity: 0.6;
}

/* --- In-article ads --- */
.uzd-ad--in-article-1,
.uzd-ad--in-article-2 {
    margin: 2.5rem auto;
    max-width: 800px;
    min-height: 250px;
}

/* --- Sidebar sticky ad --- */
.sidebar-ad-sticky {
    position: sticky;
    top: 100px;
    margin-top: 2rem;
}
.uzd-ad--sidebar-sticky {
    margin: 0;
    min-height: 250px;
}

/* --- After-content ad --- */
.uzd-ad--after-content {
    margin: 3rem 0;
    min-height: 90px;
}

/* --- Header banner (desktop leaderboard) --- */
.uzd-ad--header-banner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    min-height: 90px;
}

/* --- In-feed ad card (blends with news-grid) --- */
.uzd-ad--in-feed-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}
.uzd-ad--in-feed {
    margin: 0;
    width: 100%;
}

/* --- Before-footer ad --- */
.uzd-ad--before-footer {
    max-width: 1240px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
    min-height: 90px;
}

/* --- Front page section ad --- */
.uzd-ad--front-page {
    margin: 1rem 0;
    min-height: 90px;
}

/* --- Between sections (related-to-comments) --- */
.uzd-ad--between-sections {
    margin: 3rem 0;
    min-height: 90px;
}

/* Hide header banner on mobile to prevent layout shift */
@media (max-width: 768px) {
    .uzd-ad--header-banner {
        display: none;
    }
    .sidebar-ad-sticky {
        position: static;
    }
    .uzd-ad--sidebar-sticky {
        min-height: 200px;
    }
    .uzd-ad--in-article-1,
    .uzd-ad--in-article-2 {
        min-height: 200px;
        margin: 2rem auto;
    }
}

/* =====================================================================
   RAIL ADS — Left / Right side ads outside article content
   ===================================================================== */

/* Wrapper that holds: rail-left | article-container | rail-right */
.article-rails-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    position: relative;
}

/* The centre content takes its natural width */
.article-rails-wrapper > .article-content-wrapper {
    flex: 1;
    min-width: 0;
    max-width: 1240px;
}

/* Individual rail column */
.ad-rail {
    width: 160px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    padding: 1rem 0;
}

/* Auto-collapse: invisible when ad wrapper is empty / no ad loaded */
.ad-rail:empty,
.ad-rail .uzd-ad:empty {
    display: none;
}

/* Rail ad unit styling */
.uzd-ad--rail {
    margin: 0;
    min-height: 600px;
    width: 160px;
}

/* Sidebar sticky ad – collapse when empty (invisible placeholder) */
.sidebar-ad-sticky:empty {
    display: none;
}
.sidebar-ad-sticky .uzd-ad:empty {
    display: none;
}

/* Hide rails on screens narrower than 1600px (not enough room) */
@media (max-width: 1599px) {
    .ad-rail {
        display: none;
    }
    .article-rails-wrapper {
        display: block;
    }
}

/* Show only one rail (right) on very wide but not ultra-wide */
@media (min-width: 1600px) and (max-width: 1799px) {
    .ad-rail--left {
        display: none;
    }
    .ad-rail--right {
        width: 160px;
    }
}

/* Both rails visible on ultra-wide */
@media (min-width: 1800px) {
    .ad-rail {
        width: 160px;
    }
}
