/*
Theme Name: MortgageUnion
Theme URI: https://mortgageunion.co.il/
Author: DLions Digital & Ligateam
Author URI: https://dlions.co.il/
Description: פורטל פיננסים, משכנתאות, הלוואות ומשכנתא הפוכה יוקרתי עם הירו מסך מלא עוצמתי. תפריט וורדפרס דינמי מלא, גריד מאמרים עשיר, סרגל נגישות WCAG מובנה, עמודי פוסטים מותאמים עם קישורי עוגן כחולים ומודגשים, ללא תאריכים וללא טופסי יצירת קשר.
Version: 1.0.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: mortgageunion
*/

:root {
    --brand-navy: #091e3a;
    --brand-navy-deep: #051329;
    --brand-navy-light: #13315c;
    --brand-emerald: #10b981;
    --brand-emerald-dark: #059669;
    --brand-gold: #f59e0b;
    --brand-gold-dark: #d97706;

    --bg-dark: #07111e;
    --bg-dark-card: #0d1e33;
    --bg-light: #f8fafc;
    --bg-light-card: #ffffff;
    --bg-alt: #f1f5f9;

    --text-primary: #0f172a;
    --text-muted: #64748b;
    --text-light: #ffffff;
    --text-light-muted: #94a3b8;

    --border-dark: rgba(255, 255, 255, 0.12);
    --border-light: #e2e8f0;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-full: 9999px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 25px rgba(9, 30, 58, 0.08);
    --shadow-lg: 0 16px 40px rgba(9, 30, 58, 0.14);
    --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.25);

    --font-heading: 'Outfit', 'Heebo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Heebo', 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    direction: rtl;
    text-align: right;
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.25s ease;
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -50px;
    right: 20px;
    background: var(--brand-emerald);
    color: #ffffff;
    padding: 10px 18px;
    z-index: 99999;
    border-radius: var(--radius-sm);
    font-weight: 800;
}
.skip-link:focus {
    top: 20px;
}

/* =========================================
   TOP FINANCIAL TICKER BAR
   ========================================= */
.finance-top-ticker {
    background: #040c17;
    color: #cbd5e1;
    font-size: 0.86rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ticker-flex-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 42px;
    gap: 18px;
}

.ticker-pulse-badge {
    background: var(--brand-emerald);
    color: #ffffff;
    font-weight: 900;
    font-size: 0.8rem;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.ticker-pulsing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    animation: pulseDot 1.4s infinite;
}

@keyframes pulseDot {
    0% { opacity: 0.3; transform: scale(0.9); }
    50% { opacity: 1; transform: scale(1.15); }
    100% { opacity: 0.3; transform: scale(0.9); }
}

.ticker-headlines-slider {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex-grow: 1;
    font-weight: 600;
}

.ticker-headlines-slider span {
    margin-left: 28px;
}

.ticker-highlights-right {
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 700;
    font-size: 0.82rem;
    color: #94a3b8;
    flex-shrink: 0;
}

.highlight-stat-prime {
    color: var(--brand-emerald);
}

/* =========================================
   SITE HEADER & DYNAMIC NAVIGATION MENU
   ========================================= */
.site-header {
    background: rgba(9, 30, 58, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(16, 185, 129, 0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 86px;
}

.brand-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-shield-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--brand-emerald) 0%, var(--brand-emerald-dark) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.logo-text-block {
    display: flex;
    flex-direction: column;
}

.logo-primary-title {
    font-family: var(--font-heading);
    font-size: 1.95rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.logo-primary-title span {
    color: var(--brand-emerald);
}

.logo-sub-tagline {
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.3px;
}

/* DYNAMIC WORDPRESS PRIMARY MENU */
.primary-navigation-nav {
    display: flex;
    align-items: center;
}

.primary-menu-list {
    display: flex;
    align-items: center;
    gap: 6px;
}

.primary-menu-list li {
    position: relative;
}

.primary-menu-list li a {
    font-size: 0.98rem;
    font-weight: 700;
    color: #e2e8f0;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    display: block;
    transition: all 0.2s ease;
}

.primary-menu-list li a:hover,
.primary-menu-list li.current-menu-item > a,
.primary-menu-list li.active > a {
    color: var(--brand-emerald);
    background: rgba(16, 185, 129, 0.1);
}

/* Dropdown */
.primary-menu-list li .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    border-top: 2px solid var(--brand-emerald);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
    z-index: 100;
}

.primary-menu-list li:hover > .sub-menu {
    display: block;
}

.primary-menu-list .sub-menu li a {
    padding: 9px 18px;
    color: #cbd5e1;
    font-size: 0.92rem;
}

.primary-menu-list .sub-menu li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--brand-emerald);
}

.header-action-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.finance-badge-verified {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--brand-emerald);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.mobile-nav-toggle-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #ffffff;
}

/* =========================================================================
   SPECTACULAR FULL-SCREEN HERO SECTION
   ========================================================================= */
.fullscreen-epic-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: #ffffff;
    overflow: hidden;
    padding: 65px 0;
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(7, 17, 30, 0.72) 0%,
        rgba(7, 17, 30, 0.88) 60%,
        #07111e 100%
    );
    z-index: 1;
}

.hero-mesh-accent {
    position: absolute;
    top: 25%;
    right: 8%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(16, 185, 129, 0) 70%);
    border-radius: 50%;
    filter: blur(55px);
    z-index: 1;
    pointer-events: none;
}

.hero-content-box {
    position: relative;
    z-index: 2;
    max-width: 960px;
    text-align: center;
    margin: 0 auto;
}

.hero-top-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--brand-emerald);
    color: var(--brand-emerald);
    font-weight: 800;
    font-size: 0.88rem;
    padding: 7px 22px;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-main-title {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.18;
    margin-bottom: 22px;
    color: #ffffff;
    letter-spacing: -1px;
}

.hero-main-title .emerald-text {
    color: var(--brand-emerald);
    text-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
}

.hero-subtitle-lead {
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.65;
    color: #e2e8f0;
    margin-bottom: 35px;
    max-width: 840px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 42px;
}

.hero-stat-card {
    background: rgba(13, 30, 51, 0.78);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 22px 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.hero-stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-emerald);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.hero-stat-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--brand-emerald);
    line-height: 1;
    margin-bottom: 6px;
}

.hero-stat-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: #cbd5e1;
}

/* =========================================
   FOUR CORE PILLARS (משכנתא, מחזור, הפוכה, הלוואות)
   ========================================= */
.pillars-nav-strip {
    background: #07111e;
    padding: 25px 0 65px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.pillar-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pillar-card:hover {
    transform: translateY(-6px);
    border-color: var(--brand-emerald);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.pillar-img-frame {
    height: 190px;
    overflow: hidden;
    position: relative;
}

.pillar-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pillar-card:hover .pillar-img-frame img {
    transform: scale(1.08);
}

.pillar-icon-badge {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: var(--brand-emerald);
    color: #ffffff;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pillar-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pillar-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

.pillar-desc {
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 16px;
    flex-grow: 1;
}

.pillar-link-btn {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--brand-emerald);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pillar-link-btn:hover {
    gap: 9px;
}

/* =========================================
   FEATURED SPOTLIGHT & RECENT ARTICLES
   ========================================= */
.home-articles-section {
    padding: 70px 0;
}

.section-head-bar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 35px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-light);
}

.section-head-title {
    font-family: var(--font-heading);
    font-size: 2.1rem;
    font-weight: 900;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-head-title::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 28px;
    background: var(--brand-emerald);
    border-radius: 3px;
}

.section-head-sub {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Big Dual Spotlight Layout */
.home-spotlight-dual {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

.spotlight-hero-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.spotlight-hero-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.spotlight-hero-img-box {
    height: 380px;
    overflow: hidden;
    position: relative;
}

.spotlight-hero-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.spotlight-hero-card:hover .spotlight-hero-img-box img {
    transform: scale(1.05);
}

.spotlight-pill-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--brand-navy);
    color: var(--brand-emerald);
    font-weight: 800;
    font-size: 0.82rem;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--brand-emerald);
}

.spotlight-hero-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.spotlight-hero-title {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 14px;
}

.spotlight-hero-title a:hover {
    color: #2563eb;
}

.spotlight-hero-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 22px;
}

.spotlight-hero-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid var(--border-light);
    font-size: 0.9rem;
    font-weight: 800;
    color: #2563eb;
}

/* Secondary Editorial Cards Stack */
.spotlight-stack-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sub-editorial-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 20px;
    padding: 18px;
    transition: all 0.25s ease;
}

.sub-editorial-card:hover {
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
    transform: translateY(-3px);
}

.sub-editorial-thumb {
    width: 170px;
    height: 130px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.sub-editorial-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.sub-editorial-card:hover .sub-editorial-thumb img {
    transform: scale(1.08);
}

.sub-editorial-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sub-editorial-cat {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--brand-emerald-dark);
    margin-bottom: 4px;
}

.sub-editorial-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 6px;
}

.sub-editorial-title a:hover {
    color: #2563eb;
}

.sub-editorial-read {
    font-size: 0.85rem;
    font-weight: 700;
    color: #2563eb;
    margin-top: auto;
}

/* Magazine Cards 4-Grid */
.magazine-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.mag-article-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
}

.mag-article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.mag-card-img-wrap {
    height: 180px;
    overflow: hidden;
    position: relative;
}

.mag-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.mag-article-card:hover .mag-card-img-wrap img {
    transform: scale(1.06);
}

.mag-cat-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(9, 30, 58, 0.9);
    color: var(--brand-emerald);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-sm);
}

.mag-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.mag-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 8px;
}

.mag-card-title a:hover {
    color: #2563eb;
}

.mag-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 14px;
    flex-grow: 1;
}

.mag-card-more {
    font-size: 0.85rem;
    font-weight: 800;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* =========================================================================
   RICH CONTENT EDITORIAL SECTIONS (OVER 1500 WORDS OF EXPERT FINANCE KNOWLEDGE)
   ========================================================================= */
.deep-content-section {
    background: #ffffff;
    padding: 75px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.deep-grid-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 70px;
}

.deep-grid-two-col.reverse {
    direction: ltr;
}

.deep-grid-two-col.reverse > * {
    direction: rtl;
}

.deep-media-frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.deep-media-frame img {
    width: 100%;
    max-height: 440px;
    object-fit: cover;
}

.deep-text-block {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.deep-tagline {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--brand-emerald-dark);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.deep-section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.25;
}

.deep-paragraph {
    font-size: 1.05rem;
    color: #334155;
    line-height: 1.8;
}

.deep-features-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.deep-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.98rem;
    font-weight: 600;
    color: #1e293b;
}

.deep-feature-item span.icon {
    color: var(--brand-emerald-dark);
    font-weight: 900;
}

/* =========================================================================
   SINGLE POST REQUIREMENTS: ZERO DATES & BLUE UNDERLINED ANCHORS
   ========================================================================= */
.single-post-wrapper {
    padding: 60px 0 90px;
    background: #ffffff;
}

.post-layout-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 45px;
    align-items: start;
}

.single-post-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.25;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.single-post-featured-img {
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 35px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.single-post-featured-img img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.entry-content {
    font-size: 1.15rem;
    line-height: 1.95;
    color: #1e293b;
}

.entry-content p {
    margin-bottom: 24px;
}

.entry-content h2 {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 42px 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.entry-content h3 {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--brand-navy);
    margin: 32px 0 14px;
}

.entry-content ul,
.entry-content ol {
    margin: 0 24px 24px 0;
}

.entry-content ul li {
    list-style-type: disc;
    margin-bottom: 10px;
}

.entry-content ol li {
    list-style-type: decimal;
    margin-bottom: 10px;
}

.entry-content blockquote {
    background: #f8fafc;
    border-right: 5px solid var(--brand-emerald);
    padding: 22px 28px;
    border-radius: var(--radius-sm);
    font-style: italic;
    font-size: 1.15rem;
    margin: 32px 0;
    color: var(--brand-navy);
}

/* MANDATORY ANCHOR TEXT RULE: BLUE WITH UNDERLINE */
.entry-content a,
.single-post-wrapper .entry-content a,
.post-main-content .entry-content a {
    color: #2563eb !important;
    text-decoration: underline !important;
    text-underline-offset: 3.5px;
    text-decoration-thickness: 1.5px;
    font-weight: 600;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.entry-content a:hover,
.single-post-wrapper .entry-content a:hover,
.post-main-content .entry-content a:hover {
    color: #1d4ed8 !important;
    text-decoration: underline !important;
    text-decoration-color: #1d4ed8 !important;
}

/* POST SIDEBAR */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 120px;
}

.sidebar-widget {
    background: var(--bg-alt);
    border-radius: var(--radius-md);
    padding: 26px;
    border: 1px solid var(--border-light);
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-primary);
    padding-bottom: 10px;
    margin-bottom: 18px;
    border-bottom: 2px solid var(--brand-emerald);
}

.sidebar-posts-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.sidebar-post-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.5;
}

.sidebar-post-item a {
    color: var(--text-primary);
}

.sidebar-post-item a:hover {
    color: #2563eb;
}

/* =========================================
   FOOTER (EXACT 3 UPPER COLS + DLIONS BUTTON)
   ========================================= */
.site-footer {
    background: #051329;
    color: #cbd5e1;
    padding: 70px 0 35px;
    border-top: 3px solid var(--brand-emerald);
}

.footer-top-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px;
    padding-bottom: 45px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--brand-emerald);
    border-radius: var(--radius-full);
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #94a3b8;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.footer-links-list a {
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links-list a:hover {
    color: var(--brand-emerald);
    transform: translateX(-5px);
}

.footer-bottom-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 35px;
    text-align: center;
}

.credit-btn-dlions {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--brand-emerald) 0%, var(--brand-emerald-dark) 100%);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 14px 36px;
    border-radius: var(--radius-full);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
    transition: all 0.3s ease;
}

.credit-btn-dlions:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.55);
}

.footer-copyright {
    font-size: 0.88rem;
    color: #64748b;
}

/* =========================================
   COOKIE BANNER
   ========================================= */
.mortgageunion-cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 580px;
    background: rgba(5, 19, 41, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-right: 4px solid var(--brand-emerald);
    backdrop-filter: blur(14px);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    z-index: 9999;
}

.cookie-banner-text {
    font-size: 0.92rem;
    color: #f1f5f9;
    line-height: 1.5;
}

.cookie-banner-text a {
    color: var(--brand-emerald);
    text-decoration: underline;
}

.cookie-accept-btn {
    background: var(--brand-emerald);
    color: #ffffff;
    font-weight: 800;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.cookie-accept-btn:hover {
    background: var(--brand-emerald-dark);
}

/* =========================================
   WCAG ACCESSIBILITY COMPONENT
   ========================================= */
.wcag-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--brand-navy);
    color: var(--brand-emerald);
    font-size: 1.5rem;
    border: 2px solid var(--brand-emerald);
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.wcag-toggle-btn:hover {
    transform: scale(1.1);
    background: var(--brand-emerald);
    color: #ffffff;
}

.wcag-panel {
    position: fixed;
    bottom: 94px;
    right: 30px;
    width: 310px;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    border: 2px solid var(--brand-navy);
    padding: 20px;
    z-index: 99991;
    display: none;
}

.wcag-panel.open {
    display: block;
    animation: wcagSlideIn 0.3s ease;
}

@keyframes wcagSlideIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.wcag-panel-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 14px;
    text-align: center;
    border-bottom: 1.5px solid var(--border-light);
    padding-bottom: 8px;
}

.wcag-controls-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.wcag-btn {
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    padding: 9px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.wcag-btn:hover,
.wcag-btn.active {
    background: var(--brand-navy);
    color: var(--brand-emerald);
    border-color: var(--brand-navy);
}

/* WCAG Active Modes */
body.wcag-contrast {
    background-color: #000000 !important;
    color: #ffffff !important;
}
body.wcag-contrast .site-header,
body.wcag-contrast .spotlight-hero-card,
body.wcag-contrast .sub-editorial-card,
body.wcag-contrast .mag-article-card,
body.wcag-contrast .pillar-card {
    background: #111111 !important;
    color: #ffffff !important;
    border-color: #ffd700 !important;
}
body.wcag-contrast a {
    color: #ffff00 !important;
}
body.wcag-grayscale {
    filter: grayscale(100%) !important;
}
body.wcag-font-large,
body.wcag-large-font {
    font-size: 120% !important;
}
body.wcag-readable-font {
    font-family: Arial, Helvetica, sans-serif !important;
}
body.wcag-highlight-links a {
    background-color: #ffeb3b !important;
    color: #000000 !important;
    text-decoration: underline !important;
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 1024px) {
    .home-spotlight-dual,
    .post-layout-grid,
    .deep-grid-two-col {
        grid-template-columns: 1fr;
    }

    .pillars-grid,
    .magazine-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top-columns {
        grid-template-columns: 1fr 1fr;
    }

    .hero-main-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .primary-navigation-nav {
        display: none;
        position: absolute;
        top: 86px;
        right: 0;
        left: 0;
        background: #091e3a;
        padding: 20px 24px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
        border-top: 2px solid var(--brand-emerald);
    }

    .primary-navigation-nav.open,
    .primary-navigation-nav.active {
        display: block;
    }

    .primary-menu-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .primary-menu-list li {
        width: 100%;
    }

    .primary-menu-list li a {
        width: 100%;
    }

    .mobile-nav-toggle-btn {
        display: block;
    }

    .hero-main-title {
        font-size: 2.3rem;
    }

    .hero-stats-row,
    .pillars-grid,
    .magazine-cards-grid,
    .footer-top-columns {
        grid-template-columns: 1fr;
    }

    .sub-editorial-card {
        flex-direction: column;
    }

    .sub-editorial-thumb {
        width: 100%;
        height: 180px;
    }
}
