/*
Theme Name: Prime Capital Institution Suite
Theme URI: https://primeitsewa.com/themes/prime-capital-institution-suite
Author: Prime IT Sewa
Author URI: https://primeitsewa.com
Description: A luxury, premium WordPress theme for financial institutions and cooperatives, designed by Prime IT Sewa. Features high customization, responsive design, and premium UI.
Version: 1.0.1
Text Domain: prime-capital-institution-suite
*/

:root {
    --main-color: #ff5c36;
    --secondary-color: #059473;
    --third-color: #2980B9;
    --button-bg: #ff5c36;
    --button-hover-bg: #059473;
    --button-hover-text: #ffffff;
    --body-font: 'Inter', sans-serif;
    --heading-font: 'Inter', sans-serif;
    --heading-color: #242F65;
    --text-color: #111633;
    --bg-color: #f7f9fb;
    --bg1-color: #FFF4F2;
    --gradient-bg: linear-gradient(135deg, #ff5c36 0%, #059473 50%, #2980B9 100%);
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    color: var(--heading-color);
}

a {
    color: var(--main-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* Button Styles */
.btn, button, input[type="submit"], input[type="button"] {
    background-color: var(--button-bg);
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.btn:hover, button:hover, input[type="submit"]:hover, input[type="button"]:hover {
    background-color: var(--button-hover-bg);
    color: var(--button-hover-text);
}


/* Helper Classes */
.bg-gradient {
    background: var(--gradient-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================================================= *
 *  PREMIUM HEADER & NAVIGATION
 * ========================================================================= */

/* ========================================================================= *
 *  PREMIUM 3-ROW HEADER STYLES
 * ========================================================================= */

/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,600;1,500&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap');

:root {
    --main:      var(--main-color);
    --green:     var(--secondary-color);
    --blue:      var(--third-color);
    --navy:      var(--heading-color);
    --text:      var(--text-color);
    --bg:        var(--bg-color);
    --bg1:       color-mix(in srgb, var(--main) 8%, transparent);
    --grad:      var(--gradient-bg);
    --ease:      cubic-bezier(.4,0,.2,1);
    --font-heading: var(--heading-font);
    --font-body: var(--body-font);
}

/* Base resets for header elements */
.site-header *, .site-header *::before, .site-header *::after {
    box-sizing: border-box;
}

.site-header a {
    text-decoration: none;
    transition: color 0.2s;
}

.site-header ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ════════════════════════════════════════════════
   SITE HEADER WRAPPER
════════════════════════════════════════════════ */
#siteHeader {
    z-index: 1000;
    background: #fff;
    transition: box-shadow .35s var(--ease);
    width: 100%;
}

#siteHeader.scrolled .top-bar,
#siteHeader.scrolled .logo-band {
    display: flex;
}

#siteHeader.scrolled {
    box-shadow: 0 4px 40px rgba(36,47,101,.18);
}

/* ────────────────────────────────────────────────
   1. TOP UTILITY BAR
──────────────────────────────────────────────── */
.top-bar {
    background: var(--navy);
    height: 42px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Watermark pattern */
.top-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        112deg, transparent, transparent 54px,
        rgba(255,255,255,.03) 54px, rgba(255,255,255,.03) 55px
    );
    pointer-events: none;
}

.tb-inner {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.tb-left { display: flex; align-items: center; gap: 20px; }

/* ────────────────────────────────────────────────
   1. TOP UTILITY BAR (Restored)
   ──────────────────────────────────────────────── */
.tb-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .01em;
    color: rgba(255,255,255,0.95) !important; /* Fixed Color */
}

.tb-item svg { width: 12px; height: 12px; fill: rgba(255,255,255,0.95) !important; flex-shrink: 0; }
.tb-item a { color: rgba(255,255,255,0.95) !important; text-decoration: none; }
.tb-item a:hover { color: #fff; }

.tb-sep { width: 1px; height: 14px; background: rgba(255,255,255,.12); }

.tb-right { display: flex; align-items: center; gap: 14px; }

.tb-lang {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1em;
    color: rgba(255,255,255,0.95) !important; /* Fixed Color */
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 4px;
    padding: 3px 9px;
    cursor: pointer;
    transition: border-color .2s, color .2s;
}

.tb-lang:hover { border-color: rgba(255,255,255,.38); color: #fff; }
.tb-lang svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* Dropdown Icon Fix - Absolute Positioning */
.nav-list li.menu-item-has-children > a {
    position: relative !important;
    padding-right: 30px !important; /* Reserve space for icon */
    display: flex !important;
    align-items: center !important;
    white-space: nowrap !important;
}

/* Use SVG Data URI for realistic chevron - Absolute Positioned with Masking for Color */
.nav-list li.menu-item-has-children > a::after {
    content: '';
    position: absolute;
    right: 0; 
    top: 50%;
    transform: translateY(-50%);
    width: 10px; height: 6px;
    
    /* MASKING: Allows exact currentColor inheritance */
    background-color: currentColor; 
    -webkit-mask-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M1 1l4 4 4-4'/%3e%3c/svg%3e");
    mask-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M1 1l4 4 4-4'/%3e%3c/svg%3e");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
    
    background-image: none; /* No bg image needed */
    border: none;
    transition: transform 0.3s ease;
}

.nav-list li.menu-item-has-children:hover > a::after {
    transform: translateY(-50%) rotate(180deg); /* Maintain vertical center + rotate */
}

/* Submenu Hover Bridge to prevent blinking */
.nav-list ul.sub-menu::before {
    content: '';
    position: absolute;
    top: -20px; /* Bridge the gap */
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

/* Mobile Scroll Fix */
@media (max-width: 991px) {
    .nav-bar.toggled .nav-list {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        align-items: flex-start;
        height: auto;
        max-height: calc(100vh - 140px); /* Limit height to allow scrolling */
        overflow-y: auto; /* Enable vertical scroll */
        -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
        padding-bottom: 60px; /* Extra breathing room at bottom */
        gap: 0;
    }
    
    /* Reveal Submenus on Mobile */
    .nav-bar.toggled .nav-list ul.sub-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        padding-left: 20px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none; /* JS will toggle this */
        width: 100%; /* Ensure full width */
        background: rgba(0,0,0,0.03); /* Subtle bg distinction */
    }
    
    .nav-bar.toggled .nav-list li.toggled-on > ul.sub-menu {
        display: block;
    }

    /* Mobile Search Polish */
    .nav-bar.toggled .nav-search {
        display: flex;
        margin-top: 25px; /* More space above */
        margin-bottom: 10px;
        width: 100%;
        border: 1px solid rgba(0,0,0,0.1);
        background: #f9f9f9;
    }
    
    .nav-bar.toggled .nav-search input {
        color: var(--navy);
        width: 100%;
        opacity: 1;
        padding: 12px 14px; /* More padding */
    }
}
.tb-socials { display: flex; align-items: center; gap: 8px; }

.tb-socials a {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s;
}

.tb-socials a:hover { background: var(--main); transform: translateY(-1px); }
.tb-socials svg { width: 12px; height: 12px; fill: rgba(255,255,255,.75); }
.tb-socials i { font-size: 12px; color: rgba(255,255,255,.75); line-height: 1; }
.tb-socials a:hover i { color: #fff; }

/* ────────────────────────────────────────────────
   2. LOGO BAND
──────────────────────────────────────────────── */
.logo-band {
    background: #fff;
    padding: 0 32px;
    display: flex;
    align-items: center;
    height: 120px;
    border-bottom: 1px solid rgba(36,47,101,.07);
    position: relative;
}

.logo-band::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad);
    opacity: .5;
}

.lb-inner {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.site-branding {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.site-branding .site-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    margin: 0;
}

.site-branding .site-title a {
    color: var(--navy);
}

.site-branding .site-description {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* Custom branding if logo is used */
.custom-logo-link {
    display: block;
    max-width: 100%;
}

.custom-logo-link img {
    max-height: 100px;
    width: auto;
    max-width: 550px;
    height: auto;
    object-fit: contain;
}

.lb-right {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.nrb-badge {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
}

.badge-main {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 15px;
    color: var(--navy);
    letter-spacing: .01em;
    line-height: 1;
}

.badge-sub {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--green);
}

.lb-divider { width: 1px; height: 40px; background: rgba(36,47,101,.10); }

.quick-stats { display: flex; gap: 18px; }

.qs-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.qs-num {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.qs-label {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6b7280;
}

.lb-ctas { display: flex; align-items: center; gap: 10px; position: relative; }

/* Search in logo band */
.nav-search.nav-search-light {
    position: relative;
    background: #fff;
    border: 1px solid rgba(36,47,101,.12);
    border-radius: 10px;
    width: 40px;
    min-width: 40px;
    overflow: visible;
    z-index: 2;
}

.nav-search.nav-search-light:hover,
.nav-search.nav-search-light:focus-within {
    background: #fff;
    border-color: rgba(36,47,101,.22);
    box-shadow: 0 8px 20px rgba(36,47,101,.08);
    width: 40px;
}

.nav-search.nav-search-light .search-form {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nav-search.nav-search-light input {
    position: absolute;
    right: 0;
    width: 0;
    opacity: 0;
    padding: 0;
    border: none;
    color: var(--navy);
    background: transparent;
    transition: width .25s ease, padding .25s ease, opacity .2s ease;
    z-index: 1;
    height: 39px;
    line-height: 39px;
}

.nav-search.nav-search-light input::placeholder { color: rgba(36,47,101,.5); }

.nav-search.nav-search-light:hover input,
.nav-search.nav-search-light:focus-within input {
    width: 220px;
    opacity: 1;
    padding: 0 44px 0 14px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(36,47,101,.08);
}

.nav-search.nav-search-light.is-open input {
    width: 220px;
    opacity: 1;
    padding: 0 44px 0 14px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(36,47,101,.08);
}

.nav-search.nav-search-light button {
    position: relative;
    z-index: 2;
    width: 39px;
    height: 39px;
    color: #fff;
    background: var(--heading-color);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s var(--ease), color .2s var(--ease);
}

.nav-search.nav-search-light:hover button,
.nav-search.nav-search-light:focus-within button,
.nav-search.nav-search-light.is-open button {
    background: color-mix(in srgb, var(--heading-color) 18%, transparent);
    color: var(--heading-color);
}

.btn-fill {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 11px 22px;
    background: var(--main); color: #fff;
    font-family: var(--font-body); font-size: 13px; font-weight: 600;
    letter-spacing: .04em; border: none; border-radius: 6px; cursor: pointer;
    position: relative; overflow: hidden; text-decoration: none; white-space: nowrap;
    box-shadow: 0 4px 18px color-mix(in srgb, var(--main-color) 30%, transparent);
    transition: background .25s var(--ease), transform .2s, box-shadow .25s;
}

.btn-fill::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.2), transparent);
    transform: translateX(-100%); transition: transform .55s ease;
}

.btn-fill:hover::before { transform: translateX(100%); }
.btn-fill:hover { background: var(--green); box-shadow: 0 6px 24px color-mix(in srgb, var(--secondary-color) 35%, transparent); transform: translateY(-1px); color: #fff; }
.btn-fill svg { width: 14px; height: 14px; fill: #fff; }

.btn-out {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 20px;
    background: transparent; color: var(--navy);
    font-family: var(--font-body); font-size: 13px; font-weight: 600;
    letter-spacing: .04em; border: 1.5px solid rgba(36,47,101,.20); border-radius: 6px;
    cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: border-color .22s, color .22s, background .22s;
}

.btn-out:hover { border-color: var(--blue); color: var(--blue); }
.btn-out svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ────────────────────────────────────────────────
   3. NAV BAR
──────────────────────────────────────────────── */
.nav-bar {
    background: var(--navy);
    height: 52px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.nav-bar::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0;
    width: 4px; background: var(--grad);
}

.nav-bar::after {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 1px; background: rgba(255,255,255,.06);
}

.nav-inner {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.nav-list { list-style: none; display: flex; align-items: center; gap: 0; margin: 0; padding: 0; }
.nav-list > li { position: relative; }

.nav-list > li > a {
    display: flex; align-items: center; gap: 4px;
    height: 52px; padding: 0 15px;
    color: var(--nav-text-color, rgba(255,255,255,.78));
    font-family: var(--font-body);
    font-size: 13px; font-weight: 500; letter-spacing: .025em;
    text-decoration: none; white-space: nowrap; position: relative;
    transition: color .22s;
}

/* Underline Animation - Moved to ::before to avoid conflict with icon */
.nav-list > li > a::before {
    content: ''; position: absolute; bottom: 0; left: 1px; right: 1px;
    height: 2.5px; background: var(--grad);
    transform: scaleX(0); transform-origin: left; border-radius: 2px;
    transition: transform .28s var(--ease);
}

.nav-list > li > a:hover,
.nav-list > li.current-menu-item > a { color: var(--nav-hover-color, var(--main)); }

.nav-list > li > a:hover::before,
.nav-list > li.current-menu-item > a::before { transform: scaleX(1); }

/* Reset ::after to prevent ghost styles */
.nav-list > li > a::after { content: none; }

/* Dropdown Styles */
.nav-list ul.sub-menu {
    position: absolute; top: calc(100% + 1px); left: 0;
    min-width: 260px; 
    max-width: 360px;
    background: rgba(255, 255, 255, 0.95); /* Slightly more opaque for readability */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 8px; /* Consistent rounded corners on all sides */
    border-top: 3px solid var(--main); /* Accent top border */
    box-shadow: 0 15px 40px rgba(36,47,101,0.12); /* Softer, larger shadow */
    opacity: 0; visibility: hidden; transform: translateY(15px);
    transition: opacity .3s, transform .3s cubic-bezier(0.2, 0.8, 0.2, 1), visibility .3s;
    z-index: 500; overflow: hidden;
    padding: 8px 0;
}

.nav-list li:hover > ul.sub-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}

.nav-list ul.sub-menu li { display: block; }

.nav-list ul.sub-menu a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 24px; font-size: 14px; font-weight: 500;
    color: var(--text); text-decoration: none;
    border-bottom: 1px solid rgba(36,47,101,.04);
    transition: background .2s, color .2s, padding-left .2s;
}

.nav-list ul.sub-menu li:last-child a {
    border-bottom: none;
}

.nav-list ul.sub-menu a:hover {
    background: var(--bg1); color: var(--nav-hover-color, var(--main));
    padding-left: 24px;
}

/* Mobile Adjustments for Indicator */
@media (max-width: 991px) {
    .nav-list li.menu-item-has-children > a::after {
        margin-left: auto; /* Push to right edge */
    }
    
    .nav-list li.menu-item-has-children.toggled-on > a::after {
        transform: translateY(-50%) rotate(180deg); /* Maintain vertical center */
    }

    /* Keep underline indicator in sync with open submenu */
    .nav-list > li.toggled-on > a::before {
        transform: scaleX(1);
    }

    /* Prevent hover state from overriding toggle state on touch */
    .nav-list li.menu-item-has-children:hover:not(.toggled-on) > a::after {
        transform: translateY(-50%);
    }
    .nav-list > li:not(.toggled-on) > a:hover::before {
        transform: scaleX(0);
    }
}

/* Search */
.nav-search {
    display: flex; align-items: center;
    background: transparent; /* initially transparent */
    /* border: 1px solid transparent; */ /* cleaner look */
    border-radius: 6px; overflow: hidden;
    transition: background .25s, border-color .25s, width .25s ease;
    width: 34px; /* Icon width only initially */
    justify-content: flex-end; /* Keep icon to the right */
    position: relative;
    border: 1px solid rgba(255,255,255,0); /* invisible border for layout stability */
}

.nav-search:hover,
.nav-search:focus-within {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.2);
    width: 200px; /* Expand Width */
}

.nav-search input {
    background: transparent; border: none; outline: none;
    color: #fff; font-family: var(--font-body);
    font-size: 13px; 
    padding: 0;
    width: 0;
    opacity: 0;
    transition: width .25s ease, padding .25s ease, opacity .2s ease;
}

.nav-search input::placeholder { color: rgba(255,255,255,.5); }

.nav-search:hover input,
.nav-search:focus-within input {
    width: 100%; /* Fill available space */
    padding: 6px 0 6px 14px;
    opacity: 1;
}

.nav-search button {
    background: transparent; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0 9px;
    width: 34px; height: 34px;
    color: rgba(255,255,255,.75); 
    transition: color .2s;
    flex-shrink: 0;
}

.nav-search button:hover { color: #fff; }
.nav-search button svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    transition: background .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy); /* Dark color on white background */
    border-radius: 2px;
    transition: transform .22s, opacity .22s;
}

.hamburger:focus-visible {
    outline: 2px solid var(--main);
    outline-offset: 2px;
}

.hamburger:active {
    transform: scale(0.98);
}

.hamburger:hover {
    background: color-mix(in srgb, var(--navy) 6%, transparent);
}

.hamburger[aria-expanded="true"] {
    background: color-mix(in srgb, var(--main) 12%, transparent);
    box-shadow: 0 6px 18px rgba(36,47,101,.12);
}

.hamburger[aria-expanded="true"] span {
    background: var(--main);
}

/* ════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════ */
@media (max-width: 1200px) {
    .site-branding .site-title { font-size: 1.8rem; }
    .quick-stats { display: none; }
}

@media (max-width: 991px) {
    .nrb-badge, .lb-divider { display: none; }

    .nav-search.nav-search-light button {
    position: relative;
    z-index: 2;
    width: 36px;
    height: 36px;}
    
    .logo-band {
        height: 80px;
        padding: 0 20px;
    }
    
    .top-bar { padding: 0 20px; }
    
    .nav-bar {
        padding: 0;
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 0;
        background: transparent;
    }
    .nav-bar.toggled { display: block; height: auto; }
    
    .nav-list { display: none; }
    
    .logo-band .lb-right { display: flex; }
    
    .hamburger { display: flex; margin-left: 0; }

    /* Mobile Menu Overlay */
    /* Note: JS needs to handle toggling this via a class on parent */
    .nav-bar.toggled .nav-list {
        display: flex;
        flex-direction: column;
        position: static;
        width: 100%;
        background: #fff;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        align-items: flex-start;
        height: auto;
        max-height: calc(100vh - 140px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 80px;
        border-radius: 0 0 14px 14px;
        gap: 0;
    }

    .nav-bar.toggled .nav-list > li {
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .nav-bar.toggled .nav-list > li > a {
        color: var(--navy);
        width: 100%;
        padding: 14px 10px;
        height: auto;
    }

    .nav-bar.toggled .nav-list > li > a:hover {
        color: var(--nav-hover-color, var(--main));
    }
    
    /* Reveal Submenus on Mobile */
    .nav-bar.toggled .nav-list ul.sub-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        padding: 0;
        width: 100%;
        background: rgba(36,47,101,0.04);
        border-radius: 10px;
        display: block;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transform: translateY(-4px);
        transition: max-height .28s var(--ease), opacity .2s ease, transform .2s ease, padding .2s ease;
    }
    
    .nav-bar.toggled .nav-list li.toggled-on > ul.sub-menu {
        max-height: 600px;
        opacity: 1;
        transform: translateY(0);
        padding: 6px 0 10px 0;
    }

    .nav-bar.toggled .nav-list ul.sub-menu a {
        padding: 12px 14px;
        font-size: 13px;
        border-bottom: 1px solid rgba(36,47,101,.06);
    }

    .nav-bar.toggled .nav-list ul.sub-menu li:last-child a {
        border-bottom: none;
    }

    /* Mobile Search */
    /* Ensure only nav-inner content is visible in mobile menu if needed */
    .nav-bar.toggled .nav-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 991px) {
    #siteHeader.scrolled .logo-band {
        display: flex;
    }
}

@media (max-width: 768px) {
    .top-bar { height: auto; padding: 8px 16px; }
    .tb-inner { flex-wrap: wrap; gap: 10px; }
    .tb-left, .tb-right { flex-wrap: wrap; gap: 12px; }
    .tb-item { font-size: 11px; }
    .tb-lang { font-size: 10px; padding: 2px 7px; }
    .tb-sep { display: none; }
    
    .logo-band { height: auto; padding: 12px 12px; }
    .lb-inner { flex-wrap: nowrap; gap: 8px; }
    .site-branding .site-title { font-size: clamp(1.3rem, 2.8vw, 1.7rem); }
    .site-branding .site-description { font-size: 0.8rem; }
    
    .site-branding { flex: 1 1 0; min-width: 0; }
    .logo-band .lb-right { flex: 0 0 auto; justify-content: flex-end; gap: 6px; }
    .lb-ctas { width: auto; gap: 6px; justify-content: flex-end; }
    .hamburger { margin-left: 0; width: 36px; height: 36px; padding: 6px; }
    .btn-fill { padding: 10px 18px; font-size: 12px; }
    .btn-out { padding: 9px 16px; font-size: 12px; }
    
    .nav-bar { padding: 0 0px; }
    .nav-list > li > a { padding: 14px 0; height: auto; }
    
    .custom-logo-link img {
        max-height: 80px;
        max-width: 100%;
    }
    .nav-search.nav-search-light {
        width: 36px;
        max-width: 36px;
        min-width: 36px;
    }
    .nav-search.nav-search-light:hover,
    .nav-search.nav-search-light:focus-within {
        width: 36px;
    }
    .nav-search.nav-search-light:hover input,
    .nav-search.nav-search-light:focus-within input {
        width: 0;
        opacity: 0;
        padding: 0;
        box-shadow: none;
    }

    .nav-search.nav-search-light.is-open input {
        width: min(70vw, 220px);
        opacity: 1;
        padding: 8px 44px 8px 14px;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 8px 20px rgba(36,47,101,.08);
    }
}

@media (max-width: 600px) {
    .container { padding: 0 14px; }
    .post-grid { grid-template-columns: 1fr; gap: 22px; }
    .post-thumbnail img { height: 200px; }
    
    .container-single, .container-page {
        padding: 28px 20px;
        margin-top: 24px;
        margin-bottom: 24px;
    }
    
    .container-single .entry-title { font-size: 1.8rem; }
    .entry-content { font-size: 1rem; }

    .site-branding { flex: 1 1 0; min-width: 0; }
    .logo-band .lb-right { flex: 0 0 auto; max-width: none; }
    .lb-ctas { flex-direction: row; align-items: center; gap: 6px; }
    .site-header .btn-fill { display: none; }
}

@media (max-width: 480px) {
    .site-branding .site-title { font-size: 1.5rem; }
    .btn-out { display: none; }
    
    .tb-item:nth-child(n+3), .tb-sep:nth-child(n+3) { display: none; } /* Hide email on small screens */
}




/* ------------------------------------------------------------------------- *
 *  Premium UI Enhancements
 * ------------------------------------------------------------------------- */

/* Grid Layout */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Card Styling */
.post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.post-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.entry-header-image {
    overflow: hidden;
}

.entry-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Typography - Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-top: 0;
    line-height: 1.3;
}

.entry-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.entry-title a {
    color: var(--heading-color);
}

.entry-title a:hover {
    color: var(--main-color);
}

/* Meta Data */
.entry-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Content & Excerpt */
.entry-summary {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.entry-content {
    color: var(--text-color);
    font-size: 1.05rem;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1.5em;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin: 2.2em 0 0.8em;
    line-height: 1.25;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.25em;
}

.entry-content li {
    margin: 0.35em 0;
}

.entry-content a {
    color: var(--main-color);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.entry-content a:hover {
    color: var(--secondary-color);
}

.entry-content img,
.entry-content video,
.entry-content iframe {
    max-width: 100%;
}

.entry-content figure {
    margin: 1.6em 0;
}

.entry-content img {
    height: auto;
    border-radius: 14px;
}

.entry-content mark {
    background: rgba(255, 92, 54, 0.14);
    color: inherit;
    padding: 0.1em 0.25em;
    border-radius: 6px;
}

.entry-content blockquote {
    margin: 1.8em 0;
    padding: 0.6em 0 0.6em 1.1em;
    border-left: 4px solid rgba(255, 92, 54, 0.45);
    color: rgba(17, 22, 51, 0.85);
}

/* Read More Button */
.btn-read-more {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--main-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-read-more:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Single Post Specifics */
.container-single, .container-page {
    max-width: 900px; /* Optimal reading width */
    background: #fff;
    padding: 60px;
    margin-top: 40px;
    margin-bottom: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.03);
}

.container-single .entry-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.single-post-thumbnail {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.single-post-thumbnail img {
    width: 100%;
    height: auto;
}

/* Forms & Inputs */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--main-color);
}

/* Search Form */
.search-form {
    display: flex;
    gap: 10px;
}

.search-form label {
    flex-grow: 1;
}

/* 404 Page */
.error-404 {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

/* ========================================================================= *
 *  FOOTER
 * ========================================================================= */
.site-footer {
    background: radial-gradient(circle at top left, color-mix(in srgb, var(--main-color) 12%, transparent), transparent 45%),
                radial-gradient(circle at 80% 0%, color-mix(in srgb, var(--secondary-color) 15%, transparent), transparent 40%),
                linear-gradient(160deg, var(--footer-bg-color) 0%, color-mix(in srgb, var(--footer-bg-color) 85%, black) 60%, color-mix(in srgb, var(--footer-bg-color) 70%, black) 100%);
    color: rgba(255,255,255,0.85);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, color-mix(in srgb, #fff 5%, transparent), transparent 40%),
                radial-gradient(circle at 80% 0%, color-mix(in srgb, var(--main-color) 12%, transparent), transparent 45%);
    pointer-events: none;
}

.footer-top {
    padding: 70px 0 50px;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.05fr;
    gap: 36px;
    align-items: start;
}

.footer-logo .custom-logo-link img {
    max-height: 70px;
    width: auto;
    max-width: 220px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 8px 10px;
}

.footer-title {
    font-size: 1.5rem;
    color: #fff;
    margin: 0 0 12px;
}

.footer-text {
    color: rgba(255,255,255,0.75);
    margin: 0 0 18px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.footer-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.82);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-heading {
    color: #fff;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 16px;
}

.footer-menu,
.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.footer-menu a,
.footer-list a,
.footer-list li {
    color: rgba(255,255,255,0.78);
    font-size: 0.95rem;
}

.footer-menu a:hover,
.footer-list a:hover {
    color: #fff;
}

.footer-contact .footer-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    font-size: 12px;
}

.footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-socials a {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255,255,255,0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.85);
    transition: transform .2s ease, background .2s ease, color .2s ease;
}

.footer-socials a:hover {
    transform: translateY(-2px);
    background: var(--main-color);
    color: #fff;
}

.footer-highlights {
    display: grid;
    gap: 18px;
}

.footer-highlight {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.footer-highlight h5 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 0.95rem;
}

.footer-highlight p {
    margin: 0;
    color: rgba(255,255,255,0.68);
    font-size: 0.85rem;
    line-height: 1.5;
}

.footer-flag {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--main-color) 90%, transparent), color-mix(in srgb, var(--secondary-color) 85%, transparent));
    color: #fff;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-contact .footer-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-cta-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.footer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--main-color);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background .2s ease, transform .2s ease;
}

.footer-cta:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-1px);
}

.footer-cta.ghost {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
}

.footer-cta.ghost:hover {
    background: rgba(255,255,255,0.16);
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 0 22px;
    position: relative;
    z-index: 1;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
}

.footer-credit a {
    color: #fff;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-top {
        padding: 55px 0 40px;
    }
}

/* ========================================================================= *
   Single & Page Layouts
 * ========================================================================= */
.single-page,
.page-screen {
    background: var(--bg-color);
}

.single-post {
    margin: 0 auto;
    overflow: visible;
}

.single-hero {
    min-height: 150px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-start;
    border-radius: 0 0 36px 36px;
    background-color: var(--bg-color);
    overflow: hidden;
}

.single-hero.no-hero-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--main-color) 35%, rgba(255, 255, 255, 0.95)),
        color-mix(in srgb, var(--secondary-color) 35%, rgba(255, 255, 255, 0.95)));
    opacity: 0.6;
    mix-blend-mode: multiply;
    border-radius: inherit;
}

/* When the featured image already has a dark inline overlay, don't double-overlay it. */
.single-hero.has-hero-image::after {
    background: none;
}

.single-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 48px clamp(20px, 4vw, 60px) 54px;
    color: var(--heading-color);
}

/* Align title gutter with the content card when no featured image is used. */
.single-hero.no-hero-image .single-hero-inner {
    padding-left: clamp(20px, 4vw, 60px);
    padding-right: clamp(20px, 4vw, 60px);
}

.single-hero.has-hero-image .single-hero-inner {
    color: rgba(255, 255, 255, 0.92);
}

.single-hero-inner .container {
    max-width: 1200px;
}

.single-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 14px;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.7);
}

.single-hero.has-hero-image .single-hero-meta {
    color: rgba(255, 255, 255, 0.75);
}

.single-hero-title {
    font-size: clamp(2.4rem, 3vw, 3.2rem);
    margin: 0;
    color: var(--heading-color);
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
    text-wrap: balance;
}

.single-hero.has-hero-image .single-hero-title {
    color: #ffffff;
    text-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.single-hero-actions {
    display: flex;
    margin-top: 18px;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
}

.hero-metadata {
    font-size: 0.9rem;
    color: rgba(15, 23, 42, 0.72);
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.single-hero.has-hero-image .hero-metadata {
    color: rgba(255, 255, 255, 0.85);
}

.hero-cta-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    color: var(--heading-color);
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.hero-cta.secondary {
    background: var(--bg-color);
    border-color: rgba(15, 23, 42, 0.15);
    color: var(--heading-color);
}

.single-hero.has-hero-image .hero-cta {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
}

.single-hero.has-hero-image .hero-cta.secondary {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.92);
}

.single-hero.has-hero-image .hero-cta.secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.hero-cta:hover {
    transform: translateY(-1px);
}

.single-layout {
    max-width: 1200px;
    margin: 36px auto 80px;
    padding: 0 20px 60px;
}

.single-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 32px;
}

.single-main {
    background: #ffffff;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.single-post-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px 18px;
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.single-post-meta .single-hero-meta {
    margin: 0;
}

.single-post-meta .hero-metadata {
    margin: 0;
}

.single-post-meta .hero-metadata span {
    color: rgba(15, 23, 42, 0.72);
}

.single-sidebar .hero-cta-group {
    margin-top: 16px;
    flex-direction: column;
    align-items: stretch;
}

.single-sidebar .hero-cta {
    width: 100%;
    justify-content: center;
}

.single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 40px;
    align-self: start;
}

.sidebar-card {
    background: #fff;
    color: var(--heading-color);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.sidebar-card h4 {
    margin-top: 0;
    font-size: 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.7);
}

.sidebar-stats {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.sidebar-stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--heading-color);
}

.sidebar-stat-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(15, 23, 42, 0.55);
}

.sidebar-card a {
    display: block;
    margin-top: 8px;
    color: var(--main-color);
    font-weight: 600;
    text-decoration: none;
}

.sidebar-card a:hover {
    color: var(--secondary-color);
}

.sidebar-contact-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: rgba(15, 23, 42, 0.8);
    line-height: 1.5;
}

.sidebar-contact-list i {
    width: 28px;
    height: 28px;
    background: rgba(36, 47, 101, 0.06);
    color: var(--main-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: -2px;
}

.sidebar-contact-list a {
    margin: 0 !important;
    display: inline !important;
    color: rgba(15, 23, 42, 0.8);
    font-weight: 500;
}

.sidebar-contact-list a:hover {
    color: var(--main-color);
}

/* Sidebar Widget Generic Styles */
.sidebar-card img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 20px;
    display: block;
}

/* Ensure images inside links don't get text decoration */
.sidebar-card a:has(img) {
    text-decoration: none !important;
    border-bottom: none !important;
}

/* WP Block Buttons in Sidebar */
.sidebar-card .wp-block-button__link {
    display: inline-block;
    padding: 10px 24px;
    background: var(--main-color);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s ease, transform 0.2s ease;
    text-align: center;
}

.sidebar-card .wp-block-button__link:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Text Links in Paragraphs and Lists (excluding buttons) */
.sidebar-card p a:not(.wp-block-button__link):not(.btn),
.sidebar-card li a:not(.wp-block-button__link):not(.btn) {
    color: var(--main-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    font-weight: 500;
}

.sidebar-card p a:not(.wp-block-button__link):not(.btn):hover,
.sidebar-card li a:not(.wp-block-button__link):not(.btn):hover {
    color: var(--secondary-color);
    text-decoration-thickness: 2px;
}

.sidebar-card h5 {
    font-size: 0.95rem;
    color: var(--heading-color);
    margin: 20px 0 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-card p {
    font-size: 0.95rem;
    color: rgba(15, 23, 42, 0.75);
    line-height: 1.6;
    margin-bottom: 20px;
}

.sidebar-card ul, 
.sidebar-card ol {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.sidebar-card ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: rgba(15, 23, 42, 0.8);
}

.sidebar-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 6px;
    height: 6px;
    background: var(--main-color);
    border-radius: 50%;
}

.sidebar-card ol {
    counter-reset: sidebar-counter;
}

.sidebar-card ol li {
    position: relative;
    padding-left: 0;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: rgba(15, 23, 42, 0.8);
    display: flex;
    gap: 12px;
}

.sidebar-card ol li::before {
    counter-increment: sidebar-counter;
    content: counter(sidebar-counter);
    width: 24px;
    height: 24px;
    background: rgba(36, 47, 101, 0.08);
    color: var(--main-color);
    font-size: 12px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: -2px;
}

.sidebar-card li a {
    margin: 0;
    display: inline;
    font-weight: normal;
    color: inherit;
}

.sidebar-card li a:hover {
    color: var(--main-color);
    text-decoration: underline;
}

.single-share {
    margin-top: 40px;
    padding: 24px;
    border-radius: 20px;
    background: #f6f7fd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.share-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.share-links a {
    color: var(--heading-color);
    font-weight: 600;
    text-decoration: none;
}

.navigation.post-navigation {
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.single-main .navigation.post-navigation {
    margin-top: 28px;
}

.navigation.post-navigation .nav-links {
    width: 100%;
}

.navigation.post-navigation .nav-previous,
.navigation.post-navigation .nav-next {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    flex: 1 1 280px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-label {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.65rem;
    color: rgba(36, 47, 101, 0.7);
}

.nav-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--heading-color);
}

.single-comments {
    margin-top: 28px;
    background: #fff;
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

/* When comments are inside the main article card, use a softer inset surface. */
.single-main .single-comments {
    background: #f6f7fd;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: none;
}

.single-comments .comment-reply-title {
    margin: 0 0 14px;
    color: var(--heading-color);
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.single-comments .comment-form {
    display: grid;
    gap: 14px;
}

.single-comments .comment-notes,
.single-comments .logged-in-as {
    margin: 0;
    color: rgba(15, 23, 42, 0.7);
    font-size: 0.95rem;
}

.single-comments .comment-form p {
    margin: 0;
}

.single-comments .comment-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: rgba(15, 23, 42, 0.8);
}

.single-comments .comment-form textarea,
.single-comments .comment-form input[type="text"],
.single-comments .comment-form input[type="email"],
.single-comments .comment-form input[type="url"] {
    width: 100%;
    box-sizing: border-box;
}

.single-comments .form-submit {
    margin-top: 4px;
}

.single-comments input[type="submit"] {
    width: auto;
}

.page-hero {
    min-height: 150px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-start;
    position: relative;
    border-radius: 0 0 36px 36px;
    background-color: var(--bg-color);
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--main-color) 35%, rgba(255, 255, 255, 0.95)),
        color-mix(in srgb, var(--secondary-color) 35%, rgba(255, 255, 255, 0.95)));
    opacity: 0.6;
    mix-blend-mode: multiply;
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    padding: 48px clamp(20px, 4vw, 60px) 54px;
}

.page-hero-title {
    font-size: clamp(2.4rem, 3vw, 3.2rem);
    color: var(--heading-color);
    margin-bottom: 16px;
}

.page-hero-subtitle {
    max-width: 680px;
    color: rgba(15, 23, 42, 0.8);
    font-size: 1rem;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .page-hero {
        min-height: auto;
        border-radius: 0 0 28px 28px;
    }

    .page-hero-inner {
        padding: 40px 20px 48px;
    }

    .page-hero-title {
        font-size: clamp(2.1rem, 4vw, 2.6rem);
    }

    .page-hero-subtitle {
        max-width: 100%;
        font-size: 0.95rem;
    }
}

@media (max-width: 640px) {
    .page-hero-inner {
        padding: 32px 16px 40px;
    }

    .page-hero-title {
        font-size: 1.8rem;
    }

    .page-hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

.page-layout {
    max-width: 1100px;
    margin: 40px auto 60px;
    background: #ffffff;
    border-radius: 36px;
    padding: 50px clamp(20px, 4vw, 60px) 60px;
    box-shadow: 0 40px 65px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.page-content {
    line-height: 1.8;
    color: var(--text-color);
}

.page-empty-state {
    background: rgba(255, 255, 255, 0.8);
    border: 1px dashed rgba(15, 23, 42, 0.18);
    border-radius: 18px;
    padding: 30px;
    text-align: center;
    margin-bottom: 24px;
    /* box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08); */
}

.page-empty-state h3 {
    margin: 0 0 12px;
    font-size: 1.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--heading-color);
}

.page-empty-state p {
    margin: 0;
    color: rgba(15, 23, 42, 0.7);
    font-size: 1rem;
    line-height: 1.8;
}

.page-footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 40px;
    width: 100%;
    box-sizing: border-box;
}

.page-footer-cta p {
    margin: 0;
    color: rgba(17, 22, 51, 0.9);
    font-size: 1rem;
    line-height: 1.8;
    flex: 1 1 60%;
    min-width: 0;
    max-width: 640px;
}

.page-footer-cta .btn-fill,
.page-footer-cta .page-footer-cta-btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
    box-shadow: none;
    padding: 12px 20px;
    flex: 0 1 auto;
    min-width: 0;
    box-sizing: border-box;
    max-width: 100%;
    width: auto;
    overflow-wrap: anywhere;
}

@media (max-width: 820px) {
    .page-footer-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .page-footer-cta .btn-fill,
    .page-footer-cta .page-footer-cta-btn {
        width: 100%;
        max-width: none;
    }
}

/* ========================================================================= *
   Archive & Pagination
 * ========================================================================= */
.archive-hero {
    background: linear-gradient(140deg, color-mix(in srgb, var(--main-color) 25%, rgba(255, 255, 255, 0.9)), color-mix(in srgb, var(--secondary-color) 20%, rgba(255, 255, 255, 0.85)));
    padding: 80px 0;
    color: var(--heading-color);
}

.archive-desc {
    max-width: 720px;
    color: rgba(15, 23, 42, 0.8);
    line-height: 1.6;
}

.archive-page {
    padding-top: 40px;
    padding-bottom: 80px;
    background: #f2f5fb;
}

.archive-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(280px, 1fr);
    gap: 32px;
}

.archive-posts {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.archive-aside {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.aside-panel {
    background: #fff;
    border-radius: 26px;
    padding: 28px;
    box-shadow: 0 25px 40px rgba(15, 23, 42, 0.08);
}

.aside-panel h4 {
    margin-top: 0;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--heading-color);
}

.aside-panel .search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.aside-panel .search-form input {
    flex: 1;
    min-width: 150px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.15);
    font-family: inherit;
}

.aside-panel .search-form button {
    border: none;
    border-radius: 12px;
    padding: 10px 18px;
    background: var(--main-color);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.footer-newsletter {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-newsletter input {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.footer-newsletter button {
    border: none;
    background: var(--main-color);
    color: #fff;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.archive-contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.archive-contact a {
    color: var(--main-color);
    text-decoration: none;
    font-weight: 600;
}

.aside-cta {
    display: inline-flex;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--secondary-color);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    justify-content: center;
}

.post-grid + .navigation.pagination,
.archive-posts .navigation.pagination {
    margin-top: 20px;
}

.navigation.pagination,
.navigation.posts-navigation {
    display: flex;
    justify-content: center;
}

/* Keep pagination visually separated from footer across listing pages */
.site-main .navigation.pagination:last-child,
.site-main .navigation.posts-navigation:last-child {
    margin-bottom: clamp(28px, 4vw, 48px);
}

.navigation.pagination .nav-links,
.navigation.posts-navigation .nav-links {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.navigation.pagination .page-numbers,
.navigation.posts-navigation a {
    color: var(--heading-color);
    font-weight: 500;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid transparent;
    line-height: 1.4;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.navigation.pagination .page-numbers:hover,
.navigation.pagination .page-numbers.current,
.navigation.posts-navigation a:hover {
    background: rgba(5, 148, 115, 0.08);
    border-color: rgba(5, 148, 115, 0.22);
    color: var(--main-color);
}

/* Search result spacing below sticky header */
.search-results-page {
    padding-top: clamp(24px, 4vw, 52px);
    padding-bottom: clamp(28px, 4vw, 48px);
}

/* ========================================================================= *
   No Results & 404
 * ========================================================================= */
.no-results {
    padding: 60px 0;
    text-align: center;
}

.no-results h2 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.no-results p {
    max-width: 600px;
    margin: 0 auto 24px;
}

.no-results-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.premium-error {
    padding: 120px 0;
    background: linear-gradient(160deg, #f8fafc 60%, #e6e9f5 100%);
    color: var(--heading-color);
    border-radius: 50px;
}

.error-panel {
    background: #fff;
    padding: 60px;
    border-radius: 36px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 30px 65px rgba(15, 23, 42, 0.12);
}

.error-code {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    color: rgba(15, 23, 42, 0.45);
}

.error-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.premium-error .search-form {
    width: 100%;
    max-width: 360px;
    display: flex;
    gap: 10px;
}

.premium-error .search-form input {
    flex: 1;
    padding: 12px 14px;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.premium-error .search-form button {
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    background: #fff;
    color: var(--heading-color);
    font-weight: 600;
    cursor: pointer;
}

.error-support {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 20px;
    padding: 18px 20px;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
}

.error-support p {
    margin: 0 0 4px;
    color: rgba(15, 23, 42, 0.75);
    font-weight: 600;
}

.error-support-link {
    color: var(--main-color);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.error-support-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.error-support-link::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .single-grid {
        grid-template-columns: 1fr;
    }

    .single-layout {
        margin: 28px auto 60px;
    }

    .archive-grid {
        grid-template-columns: 1fr;
    }

    .error-panel {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .single-hero {
        border-radius: 0;
    }

    .single-hero-inner {
        padding: 32px 16px 40px;
    }

    .single-hero-title {
        font-size: 2rem;
        line-height: 1.15;
    }

    .single-hero-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .single-layout {
        margin: 18px auto 50px;
        padding: 0 16px 40px;
    }

    .single-main {
        padding: 26px 18px;
        border-radius: 22px;
    }

    .sidebar-card {
        padding: 20px;
        border-radius: 18px;
    }

    .single-share {
        padding: 18px;
        border-radius: 18px;
    }

    .single-comments {
        padding: 20px;
        border-radius: 18px;
    }

    .page-hero-inner {
        padding: 32px clamp(16px, 4vw, 24px) 40px;
    }

    .page-layout {
        margin-top: 20px;
        padding: 30px clamp(16px, 4vw, 24px) 40px;
    }
}

