/* Branding Font Family */
@font-face {
    font-family: 'Branding';
    src: url('../font/branding-2-webfont/Branding Semibold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Primary Brand Colors */
    --k-primary: #25C6FF;
    --k-primary-rgb: 37, 198, 255;
    --k-secondary: #030d2e;
    --k-secondary-rgb: 3, 13, 46;
    --k-accent: #E0001B;
    --k-accent-rgb: 224, 0, 27;
    --k-brand-orange: #FFB800;
    --k-brand-cyan: #25C6FF;

    /* Neutral Palette */
    --k-dark: #000a29;
    --k-white: #ffffff;
    --k-text: #ffffff;
    --k-text-muted: rgba(255, 255, 255, 0.7);
    --k-bg: #030d2e;

    /* Design Tokens */
    --k-font: 'Inter', system-ui, -apple-system, sans-serif;
    --k-font-branding: 'Branding', sans-serif;
    --k-container: 1440px;
    --k-radius-sm: 8px;
    --k-radius-md: 16px;
    --k-radius-lg: 24px;
    --k-radius-full: 100px;

    /* Shadows */
    --k-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
    --k-shadow-md: 0 12px 32px rgba(0, 0, 0, 0.12);
    --k-shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.16);
    --k-shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--k-font);
    background-color: var(--k-bg);
    color: var(--k-text);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

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

.container {
    max-width: var(--k-container);
    margin: 0 auto;
    padding: 0 48px;
}

/* Header & Navigation */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 19px 0;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #FFFFFF03;
}

.site-header--scrolled {
    backdrop-filter: blur(40px);
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    /* box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); */
}

.site-header--scrolled .keyrus-main-menu>.menu-item>a {
    color: #0F172A !important;
}

.site-header--scrolled .keyrus-main-menu>.menu-item>a:hover,
.site-header--scrolled .keyrus-main-menu>.current-menu-item>a,
.site-header--scrolled .keyrus-main-menu>.current-menu-ancestor>a,
.site-header--scrolled .keyrus-main-menu>.current_page_item>a {
    color: #25C6FF !important;
}

.site-header--scrolled .lang-current {
    color: var(--k-secondary);
}

.site-header--scrolled .nav-toggle span {
    background: var(--k-secondary);
}

.site-header__inner {
    display: flex;
    align-items: center;
}

.site-logo {
    margin-right: 60px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.site-logo .custom-logo-link {
    display: block;
    line-height: 0;
}

.logo-img {
    height: 44px;
    width: auto;
    display: none;
    /* Hidden by default */
    transition: all 0.4s ease;
}

/* Logic: Show dark by default */
.logo-img--dark {
    display: block;
}

.header-has-hero {
    backdrop-filter: blur(100px);

}

/* Logic: If header has hero, show white and hide dark */
.header-has-hero:not(.site-header--scrolled) .logo-img--white {
    display: block;

}

.header-has-hero:not(.site-header--scrolled) .logo-img--dark {
    display: none;
}


/* Force dark logo on scroll */
.site-header--scrolled .logo-img--white {
    display: none !important;
}

.site-header--scrolled .logo-img--dark {
    display: block !important;
}

/* Text-only fallback styles for completeness */
.header-no-hero .logo-keyrus,
.header-no-hero .logo-nearshore,
.site-header--scrolled .logo-keyrus,
.site-header--scrolled .logo-nearshore {
    color: var(--k-secondary);
}

/* Main Menu */
.site-header .site-nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.site-header .keyrus-main-menu {
    display: flex;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header .keyrus-main-menu .menu-item {
    position: relative;
}

.site-header .keyrus-main-menu>.menu-item>a {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0px;
    color: #FFFFFF;
    display: block;
    transition: all 0.3s ease;
}

.site-header .keyrus-main-menu>.menu-item>a:hover,
.site-header .keyrus-main-menu>.current-menu-item>a,
.site-header .keyrus-main-menu>.current-menu-ancestor>a,
.site-header .keyrus-main-menu>.current_page_item>a {
    color: #25C6FF;
}

/* Header Actions & Lang Switcher */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 40px;
}

.keyrus-header-cta {
    background: #FFFFFF;
    color: var(--k-secondary);
    padding: 10px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.keyrus-header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background: #f8f9fa;
}

.keyrus-header-cta .cta-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.lang-switcher {
    position: relative;
    cursor: pointer;
    padding: 10px 0;
}

.lang-current {
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
}

.lang-current .arrow {
    font-size: 0.7rem;
    opacity: 0.6;
    transition: transform 0.3s ease;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #030d2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 60px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.lang-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-switcher:hover .lang-current .arrow {
    transform: rotate(180deg);
}

.lang-dropdown li {
    margin: 0;
}

.lang-dropdown li a {
    font-weight: 600;
    font-size: 0.85rem;
    color: #fff;
    opacity: 0.7;
    text-transform: uppercase;
    display: block;
    padding: 8px 15px;
    text-align: center;
    transition: all 0.2s ease;
}

.lang-dropdown li a:hover {
    opacity: 1;
    color: var(--k-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Fix for Mega Menu Z-index and Positioning */
.menu-item-has-mega-menu {
    position: static !important;
    /* Required for width: 100% mega menu */
}

/* Site Main */
.site-main {
    position: relative;
}

/* ==========================================================================
   HERO BLOCK
   ========================================================================== */

@media (max-width: 768px) {
    .keyrus-hero__trusted {
        margin-top: auto;
        padding: 50px 0 83px;
        text-align: center;
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        background: rgba(255, 255, 255, 0.02);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .keyrus-hero__chips {
        display: flex;
        justify-content: flex-start;
        gap: 8px;
        margin-bottom: 24px;
    }

    .keyrus-hero {
        padding: 100px 0 00px;
    }

    .keyrus-hero__container {
        padding: 0px 16px !important;
    }

    .keyrus-hero__title {
        font-size: 32px !important;
    }

    .keyrus-hero__subtitle {
        font-size: 14px !important;
    }

    .keyrus-hero__ctas {
        flex-direction: row !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
    }


    .keyrus-hero__ctas .keyrus-btn {
        width: 100% !important;
        padding: 8px 5px !important;
        font-size: 14px !important;
        white-space: nowrap !important;
    }

    /* Group Block Padding */
    :where(.wp-block-group.has-background) {
        padding: 1.25em 0em !important;
    }

    /* What We Do Block - Mobile */
    .kblock-what-we-do {
        padding: 50px 0 0 !important;
    }

    .kblock-what-we-do .container {
        padding: 0 16px !important;
    }

    .kblock-what-we-do .section-title {
        font-size: 32px !important;
    }

    .kblock-what-we-do .section-lead {
        font-size: 14px !important;
    }

    /* Slider behavior for the grid */
    .wwd__grid.wwd__grid-5 {
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        /* Forces same height */
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 15px !important;
        padding: 10px 0px 40px !important;
        margin: 0 0px !important;
        scrollbar-width: none !important;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .wwd__grid.wwd__grid-5::-webkit-scrollbar {
        display: none !important;
    }

    .wwd__grid.wwd__grid-5 .wwd__card {
        flex: 0 0 300px !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        /* Align children to the left/start */
        min-width: 300px !important;
        width: 300px !important;
        height: auto !important;
        min-height: 308px !important;
        scroll-snap-align: start !important;
        transform: translateY(-4px) !important;
        box-shadow: none;
        z-index: 2 !important;
        display: flex !important;
        flex-direction: column !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative !important;
        margin: 0 !important;
        padding: 24px !important;
        /* Ensure internal spacing */
    }

    /* Prevent any element from being pushed to the bottom */
    .wwd__grid.wwd__grid-5 .wwd__card>* {
        margin-top: 0 !important;
        margin-bottom: 12px !important;
        opacity: 1 !important;
        visibility: visible !important;
        text-align: left !important;
    }

    .wwd__grid.wwd__grid-5 .wwd__badge,
    .wwd__grid.wwd__grid-5 .wwd__tags {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Nav Toggle Button */
.nav-toggle {
    display: none;
}

@media (max-width: 1100px) {
    .keyrus-main-menu {
        gap: 20px;
    }

    .site-logo {
        margin-right: 30px;
    }
}

@media (max-width: 1024px) {
    .site-header {
        padding: 15px 0 !important;
    }

    .site-header__inner {
        justify-content: space-between !important;
        display: flex !important;
        width: 100% !important;
    }

    .site-logo {
        margin-right: 0 !important;
    }

    /* Nav Toggle Button (Burger) */
    .nav-toggle {
        display: block !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        width: 30px !important;
        height: 24px !important;
        position: relative !important;
        padding: 0 !important;
        z-index: 1000 !important;
    }

    .nav-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: #ffffff !important;
        /* Default white */
        border-radius: 2px;
        position: absolute;
        transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    }

    .nav-toggle span:nth-child(1) {
        top: 0;
    }

    .nav-toggle span:nth-child(2) {
        top: 11px;
    }

    .nav-toggle span:nth-child(3) {
        bottom: 0;
    }

    .site-header--scrolled .nav-toggle span,
    .site-header--menu-open .nav-toggle span {
        background: #030d2e !important;
    }

    /* Burger to X transition */
    .site-header--menu-open .nav-toggle span:nth-child(1) {
        top: 11px;
        transform: rotate(45deg);
    }

    .site-header--menu-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .site-header--menu-open .nav-toggle span:nth-child(3) {
        bottom: 11px;
        transform: rotate(-45deg);
    }

    .site-header--menu-open .logo-img--white {
        display: none !important;
    }

    .site-header--menu-open .logo-img--dark {
        display: block !important;
    }

    .site-header--menu-open .site-header__inner {
        display: grid !important;
        grid-template-columns: 1fr auto !important;
        grid-template-areas:
            "logo toggle"
            "nav nav" !important;
        gap: 20px 0 !important;
        padding-top: 10px !important;
        align-items: center !important;
    }

    .site-header--menu-open .site-logo {
        grid-area: logo !important;
    }

    .site-header--menu-open .nav-toggle {
        grid-area: toggle !important;
        margin-left: auto !important;
    }

    .site-header--menu-open .site-nav {
        grid-area: nav !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .site-header--menu-open {
        background: #ffffff !important;
        min-height: 100vh !important;
        height: 100vh !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        z-index: 9999 !important;
        overflow-y: auto !important;
        scrollbar-width: none !important; /* Hide scrollbar for Firefox */
        -ms-overflow-style: none !important;  /* Hide scrollbar for IE/Edge */
    }

    .site-header--menu-open::-webkit-scrollbar {
        display: none !important; /* Hide scrollbar for Chrome/Safari/Opera */
    }

    .site-nav {
        display: none !important;
        position: fixed !important;
        top: 80px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: #ffffff !important;
        padding: 20px 0 40px !important;
        box-shadow: none !important;
        max-height: none !important;
        overflow-y: auto !important;
        z-index: 999 !important;
        scrollbar-width: none !important; /* Hide scrollbar for Firefox */
        -ms-overflow-style: none !important;  /* Hide scrollbar for IE/Edge */
    }

    .site-nav::-webkit-scrollbar {
        display: none !important; /* Hide scrollbar for Chrome/Safari/Opera */
    }

    .site-header--menu-open .site-nav {
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        height: auto !important;
        min-height: 0 !important;
        overflow-y: visible !important;
        padding: 20px 0 !important;
        background: transparent !important;
    }

    .keyrus-main-menu {
        flex-direction: column !important;
        gap: 0 !important;
        width: 100% !important;
    }

    .site-header .keyrus-main-menu .menu-item {
        width: 100% !important;
        border: none !important;
    }

    .site-header .keyrus-main-menu .menu-item a {
        padding: 16px 24px !important;
        font-size: 22px !important;
        /* Matching image */
        font-weight: 700 !important;
        color: #030d2e !important;
        border-bottom: none !important;
        line-height: 1.2 !important;
    }

    .site-header .keyrus-main-menu .menu-item.current-menu-item a,
    .site-header .keyrus-main-menu .menu-item:first-child a {
        color: #25C6FF !important;
    }

    /* Mobile CTA & Lang inside the menu */
    .header-actions {
        display: none !important;
    }

    .site-header--menu-open .header-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        padding: 20px 24px 60px !important;
        gap: 28px !important;
        margin-left: 0 !important;
        margin-top: 20px !important;
        /* Follow menu flow */
        border-top: none !important;
        width: 100% !important;
    }

    .site-header--menu-open .keyrus-header-cta {
        display: inline-flex !important;
        background: #1447E6 !important;
        color: #ffffff !important;
        padding: 14px 28px !important;
        border-radius: 10px !important;
        font-weight: 700 !important;
        font-size: 16px !important;
        width: auto !important;
        justify-content: center !important;
        box-shadow: none !important;
    }

    .site-header--menu-open .keyrus-header-cta .cta-icon {
        filter: brightness(0) invert(1);
        /* Force white icon */
    }

    .site-header--menu-open .lang-switcher {
        width: 100% !important;
        padding: 0 !important;
    }

    .site-header--menu-open .lang-current,
    .site-header--menu-open .mea-switcher {
        color: #030d2e !important;
        font-size: 18px !important;
        font-weight: 700 !important;
        margin-right: 0 !important;
    }
}

@media (max-width: 768px) {
    .site-header .container {
        padding: 0 0px !important;
    }

    .site-logo {
        padding-left: 24px !important;
    }

    .nav-toggle {
        padding-right: 24px !important;
        margin-right: 12px !important;
        width: 24px !important;
        height: 24px !important;
    }

    .nav-toggle span {
        width: 24px !important;
    }
}

/* ==========================================================================
   PREMIUM FOOTER - DEEP NAVY AESTHETIC
   ========================================================================== */

.kblock-footer {
    background: linear-gradient(135deg, #1C398E 0%, #101828 100%);

    color: #ffffff;
    padding: 100px 0 60px;
    font-family: 'Inter', system-ui, sans-serif;
    position: relative;
    z-index: 10;
}

.kblock-footer .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Top Row: Brand & Multi-Menu --- */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 80px;
    margin-bottom: 64px;
}

.footer-brand {
    max-width: 320px;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-logo {
    height: 44px;
    width: auto;
    margin-bottom: 25px;
    display: block;
}

.footer-logo-placeholder {
    font-weight: 800;
    font-size: 2.2rem;
    margin-bottom: 15px;
    letter-spacing: -0.03em;
}

.footer-tagline {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-style: normal;
    font-size: 18px;
    line-height: 31.5px;
    letter-spacing: 0px;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 22px;
}


.footer-socials {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-icon:hover {
    background: #0066FF;
    border-color: #0066FF;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.3);
}

/* Menu Grid */
.footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
    flex-grow: 1;
}

.kblock-footer .footer-nav-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.kblock-footer .footer-nav-parent {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: #ffffff !important;
    text-decoration: none !important;
}

.kblock-footer .sub-menu {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.kblock-footer .sub-menu li {
    margin-bottom: 12px !important;
    list-style: none !important;
}

.kblock-footer .sub-menu a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.kblock-footer .sub-menu a:hover {
    color: #00D1FF;
    padding-left: 5px;
}

/* --- Middle Row: Office Cards --- */
.footer-offices {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 64px;
}

.office-card {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 12px 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease;
}



.office-card-bg-silhouette {
    position: absolute;
    right: 36px;
    bottom: 0;
    max-height: 100%;
    width: auto;
    filter: brightness(0.3);
    pointer-events: none;
    z-index: 1;
}

.office-card-content {
    position: relative;
    z-index: 2;
}

.office-name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 26px;
    line-height: 0px;
    letter-spacing: 0px;

}

.office-deco {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
}

.office-deco span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.office-deco span:nth-child(1) {
    background: #00D1FF;
}

.office-deco span:nth-child(2) {
    background: #FF4141;
}

.office-deco span:nth-child(3) {
    background: #FFC400;
}

.office-info {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.office-info li {
    display: flex;
    gap: 15px;
    margin-bottom: 10px !important;
    align-items: center;
    list-style: none !important;
}

.office-info i {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.office-info div .info-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 31.5px;
    letter-spacing: 0px;
    color: #ffffffa9;
}

.office-info svg {
    width: 24px;
    height: 24px;
}

.info-icon {
    width: 48px;
    height: 48px;
    padding: 12px;
    opacity: 1;
    border-radius: 16.4px;
    background: #FFFFFF0D;


}

.office-info strong {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0px;

}

.office-info div {
    font-family: 'Inter', sans-serif;
    font-weight: 200;
    font-size: 16px;
    line-height: 31.5px;
    letter-spacing: 0px;
    color: #ffffffa9;
}

/* --- Bottom Row: Copyright & Legal --- */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 33px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.copyright {
    opacity: 0.4;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 40px;
}

.footer-legal a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.4;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-legal a:hover {
    opacity: 1;
    color: #00D1FF;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .footer-top {
        flex-direction: column;
        gap: 60px;
    }

    .footer-nav-grid {
        gap: 40px;
        width: 100%;
    }
}

@media (max-width: 850px) {
    .footer-offices {
        grid-template-columns: 1fr;
    }

    .footer-nav-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .office-card {
        padding: 40px;
    }
}

@media (max-width: 600px) {
    .footer-bottom {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

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

/* ==========================================================================
   PREMIUM UTILITIES & GLASSMORPHISM
   ========================================================================== */

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--k-radius-lg);
    box-shadow: var(--k-shadow-glass);
}

.keyrus-chip {
    display: inline-flex;
    align-items: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    color: #ffffff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.keyrus-chip__label {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 20px;
    letter-spacing: 0px;
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--k-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
}

/* Section Spacing Standard */
.section-padding {
    padding: 120px 0;
}

@media (max-width: 991px) {
    .section-padding {
        padding: 80px 0;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--k-secondary);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 2px solid var(--k-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--k-primary);
}

/* ==========================================================================
   GLOBAL SECTION STYLING
   ========================================================================== */

/* .section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
} */

/* .section-kicker {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--k-primary);
    margin-bottom: 15px;
} */

/* .section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
} */

.section-lead {
    font-size: 1.2rem;
    color: var(--k-text-muted);
    line-height: 1.6;
}

/* Base Button Styles */
/* .keyrus-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    /* font-weight: 700; */
/* border-radius: var(--k-radius-md);
transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
cursor: pointer;
font-size: 1rem;
border: none;
text-decoration: none;
} */

*/
/* .keyrus-btn--primary {
    background: var(--k-primary);
    color: var(--k-secondary);
    box-shadow: 0 10px 20px rgba(var(--k-primary-rgb), 0.2);
}

.keyrus-btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(var(--k-primary-rgb), 0.3);
} */

.keyrus-btn--secondary {
    background: rgba(255, 255, 255, 0);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.keyrus-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* ==========================================================================
   MEA SIDEBAR MENU
   ========================================================================== */
.mea-switcher {
    color: #ffffff;
    margin-right: 15px;
    transition: color 0.3s ease;
}
.site-header--scrolled .mea-switcher,
.site-header-no-hero .mea-switcher {
    color: #030d2e;
}
.mea-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 13, 46, 0.4);
    backdrop-filter: blur(4px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.mea-sidebar-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}
.mea-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 380px;
    max-width: 100%;
    background: #ffffff;
    z-index: 99999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    font-family: 'Inter', sans-serif;
    color: #030d2e;
}
.mea-sidebar.is-open {
    transform: translateX(0);
}
.mea-sidebar-header {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(180deg, #EBF3FA 0%, rgba(235, 243, 250, 0) 100%);
}
.mea-search {
    flex-grow: 1;
    position: relative;
    display: flex;
    align-items: center;
}
.mea-search svg {
    position: absolute;
    left: 14px;
}
.mea-search input {
    width: 100%;
    padding: 14px 14px 14px 40px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    background: #ffffff;
    transition: border-color 0.2s;
}
.mea-search input:focus {
    border-color: #1447E6;
}
.mea-sidebar-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #030d2e;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.mea-sidebar-groups {
    padding: 0 24px;
}
.mea-group-item {
    padding: 16px;
    border-radius: 12px;
    background: #F8FAFC;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
}
.mea-group-item.is-active {
    background: #F0F5FA;
    border-color: #E2E8F0;
}
.mea-group-item .mea-group-lang {
    color: #64748B;
    font-weight: 400;
    margin-left: 6px;
}
.mea-group-item svg {
    margin-left: auto;
    color: #030d2e;
}
.mea-sidebar-sites-container {
    flex-grow: 1;
    overflow-y: auto;
    padding: 24px;
}
.mea-sidebar-title {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #030d2e;
}
.mea-sidebar-title svg {
    color: #1447E6;
}
.mea-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mea-site-item {
    margin-bottom: 8px;
}
.mea-site-item a {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: #F8FAFC;
    border-radius: 12px;
    text-decoration: none;
    color: #030d2e;
    transition: background 0.2s;
}
.mea-site-item a:hover {
    background: #F0F5FA;
}
.mea-site-country {
    font-weight: 600;
    font-size: 14px;
}
.mea-site-dot {
    margin: 0 8px;
    color: #94A3B8;
}
.mea-site-lang {
    font-size: 14px;
    color: #64748B;
}
@media (max-width: 400px) {
    .mea-sidebar {
        width: 100%;
    }
}

/* Hide scrollbar on submenus globally */
.sub-menu {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
.sub-menu::-webkit-scrollbar {
    display: none !important;
}

/* ==========================================================================
   SINGLE POST TEMPLATE STYLES (Light Reading Theme)
   ========================================================================== */
.single-post-wrapper {
    background: linear-gradient(180deg, #f0f7ff 0%, #fbfdff 300px, #fbfdff 100%);
    color: #1e293b;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

/* Post Hero Header */
.single-post-hero {
    padding: 160px 0 60px;
    text-align: center;
}

.post-back-link-wrap {
    margin-bottom: 24px;
}

.post-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1447E6;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-back-link svg {
    transition: transform 0.3s ease;
}

.post-back-link:hover {
    color: #0030bf;
}

.post-back-link:hover svg {
    transform: translateX(-4px);
}

.post-hero-category {
    margin-bottom: 16px;
}

.post-category-tag {
    background: #EBF2FF;
    color: #1447E6;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

.post-hero-title {
    font-family: 'Branding', sans-serif;
    font-weight: 600;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    color: #00095C;
    margin: 0 auto 24px;
    max-width: 900px;
}

.post-hero-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    color: #64748b;
    font-size: 14px;
    flex-wrap: wrap;
}

.post-hero-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-hero-meta .meta-item svg {
    color: #94a3b8;
}

/* Share Buttons */
.post-hero-share {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.post-hero-share .share-label {
    color: #64748b;
    font-weight: 600;
    font-size: 14px;
}

.post-hero-share .share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.share-btn svg {
    transition: transform 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.08);
}

.share-btn.share-linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    color: #ffffff;
}

.share-btn.share-twitter:hover {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

.share-btn.share-email:hover {
    background: #1447E6;
    border-color: #1447E6;
    color: #ffffff;
}

/* Post Body Content */
.single-post-body {
    padding-bottom: 80px;
}

.post-featured-image-wrap {
    max-width: 1000px;
    margin: 0 auto 48px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--k-shadow-md);
    background: #e2e8f0;
}

.post-featured-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 550px;
}

.post-content-inner {
    max-width: 820px;
    margin: 0 auto;
    background: #ffffff;
    padding: 56px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.post-entry-content {
    font-size: 18px;
    line-height: 1.75;
    color: #334155;
}

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

.post-entry-content h2,
.post-entry-content h3,
.post-entry-content h4 {
    font-family: 'Branding', sans-serif;
    color: #00095C;
    font-weight: 600;
    line-height: 1.3;
}

.post-entry-content h2 {
    font-size: 28px;
    margin-top: 48px;
    margin-bottom: 20px;
}

.post-entry-content h3 {
    font-size: 22px;
    margin-top: 36px;
    margin-bottom: 16px;
}

.post-entry-content ul,
.post-entry-content ol {
    margin-top: 0;
    margin-bottom: 24px;
    padding-left: 24px;
}

.post-entry-content li {
    margin-bottom: 8px;
}

.post-entry-content a {
    color: #1447E6;
    text-decoration: none;
    border-bottom: 1px solid rgba(20, 71, 230, 0.2);
}

.post-entry-content a:hover {
    color: #0030bf;
    border-bottom-color: #0030bf;
}

.post-entry-content blockquote {
    margin: 36px 0;
    padding: 24px 32px;
    border-left: 4px solid #1447E6;
    background: linear-gradient(90deg, #f8fafc 0%, rgba(248, 250, 252, 0) 100%);
    font-style: italic;
    font-size: 20px;
    color: #0f172a;
}

.post-entry-content blockquote p {
    margin-bottom: 0;
}

.post-entry-content pre {
    background: #f1f5f9;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin: 24px 0;
    border: 1px solid #e2e8f0;
}

.post-entry-content code {
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    color: #0f172a;
    background: #f1f5f9;
    padding: 3px 6px;
    border-radius: 4px;
}

.post-entry-content pre code {
    padding: 0;
    background: none;
    border-radius: 0;
}

.post-entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.post-entry-content th,
.post-entry-content td {
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.post-entry-content th {
    background: #f8fafc;
    font-weight: 600;
    color: #0f172a;
}

.post-entry-content figure {
    margin: 32px 0;
}

.post-entry-content figure img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.post-entry-content figcaption {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    margin-top: 10px;
}

/* Related Posts Section */
.post-related-section {
    background: linear-gradient(180deg, #fbfdff 0%, #f0f7ff 100%);
    padding: 100px 0;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.related-section-title {
    font-family: 'Branding', sans-serif;
    font-weight: 600;
    font-size: 32px;
    color: #00095C;
    margin-bottom: 48px;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Local fallback styles for .blog-card since it's defined in block-archive style */
.post-related-section .blog-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-related-section .blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.post-related-section .card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

.post-related-section .card-category-tag {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: #EBF2FF;
    color: #1447E6;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
}

.post-related-section .card-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-related-section .card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.post-related-section .meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-related-section .meta-item svg {
    flex-shrink: 0;
}

.post-related-section .card-title {
    font-weight: 700;
    font-size: 20px;
    line-height: 1.4;
    color: #00095C;
    margin-bottom: 12px;
    flex-grow: 0;
}

.post-related-section .card-excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 24px;
    flex-grow: 1;
}

.post-related-section .card-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1447E6;
    font-weight: 600;
    text-decoration: none;
    font-size: 15px;
    transition: gap 0.3s ease;
}

.post-related-section .card-read-more:hover {
    gap: 12px;
}

.post-related-section .thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1C398E 0%, #101828 100%);
    opacity: 0.1;
}

/* Single Post Responsive Adaptations */
@media (max-width: 1200px) {
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .single-post-hero {
        padding: 130px 0 40px;
    }
    .post-content-inner {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    .post-hero-title {
        font-size: 32px;
    }
    .post-hero-meta {
        gap: 16px;
    }
    .post-content-inner {
        padding: 30px 20px;
        border-radius: 16px;
        border: none;
        box-shadow: none;
        background: transparent;
    }
    .post-entry-content {
        font-size: 16px;
    }
    .post-featured-image-wrap {
        border-radius: 16px;
        margin-bottom: 30px;
    }
    .post-related-section {
        padding: 60px 0;
    }
}