:root {
    --brand-dark: #0A2A43;
    --brand-accent: #1FB7C4;
    --brand-accent-hover: #8EE1E7;
    --brand-text-dark: #2A2A2A;
    --brand-text-muted: #607D8B;
    --brand-border: #CCE7EA;
    --brand-light: #F8FAFC;
    --brand-surface: #FFFFFF;
    --brand-shadow: rgba(0, 0, 0, 0.08);
    --primary-blue: #0b3c5d;
    --secondary-teal: #2ec4cc;
    --navbar-height: 64px;
    --navbar-height-sm: 80px;
    --content-offset: 0px;
    --filters-sidebar-width: 320px;
    --filters-fixed-left: auto;
    --filters-fixed-width: var(--filters-sidebar-width);
}

@media (min-width: 640px) {
    :root {
        --navbar-height: 80px;
    }
}

.content-region {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
    transition: grid-template-columns 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.posts-area {
    min-width: 0;
}

body.filters-open .content-region {
    grid-template-columns: minmax(0, 1fr) var(--filters-sidebar-width);
    will-change: grid-template-columns;
}

@media (max-width: 1023.98px) {
    .content-region,
    body.filters-open .content-region {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Layout */
html {
    overflow-x: hidden;
}

@font-face {
    font-family: 'Inter';
    font-display: swap;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--brand-text-dark);
    background: var(--brand-light);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Body padding for pages without hero section - handled in .site-main rule below */

/* ===== NEW NAVBAR STYLES - MATCHING PARENT SITE ===== */
.site-navbar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    width: 100%;
    transition: all 0.3s ease;
    background: #ffffff;
    border-bottom: 1px solid rgba(226, 232, 240, 0.3);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.site-navbar-fixed.navbar-scrolled {
    background: #ffffff;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    box-shadow: 0 10px 15px -3px rgba(11, 60, 93, 0.05), 0 4px 6px -2px rgba(11, 60, 93, 0.05);
}

.navbar-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .navbar-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .navbar-container {
        padding: 0 2rem;
    }
}

.navbar-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

@media (min-width: 640px) {
    .navbar-wrapper {
        height: 80px;
    }
}

.navbar-logo {
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.navbar-logo:hover {
    opacity: 0.9;
}

.navbar-logo-img {
    object-fit: contain;
    height: 40px;
    width: auto;
    transition: opacity 0.3s ease;
}

@media (min-width: 640px) {
    .navbar-logo-img {
        height: 48px;
    }
}

.navbar-menu-desktop {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

@media (min-width: 768px) {
    .navbar-menu-desktop {
        display: flex;
        gap: 0.5rem;
    }
}

@media (min-width: 1024px) {
    .navbar-menu-desktop {
        gap: 0.5rem;
    }
}

.navbar-menu-item {
    position: relative;
    padding: 0.625rem 1rem;
    color: #0f172a;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.navbar-menu-item:hover {
    color: #0f172a;
}

.navbar-menu-item-underline {
    position: absolute;
    bottom: 0;
    left: 1rem;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-blue), var(--secondary-teal));
    transition: width 0.5s ease;
}

.navbar-menu-item:hover .navbar-menu-item-underline,
.navbar-menu-item-active .navbar-menu-item-underline {
    width: 3rem;
}

.navbar-menu-item-active {
    color: var(--secondary-teal) !important;
    position: relative;
    font-weight: 700;
}

.navbar-menu-item-active:hover {
    color: var(--secondary-teal) !important;
}

.navbar-menu-item-active .navbar-menu-item-underline {
    width: 3rem !important;
    background: linear-gradient(to right, var(--secondary-teal), var(--primary-blue));
    height: 3px;
    box-shadow: 0 0 8px rgba(46, 196, 204, 0.6);
}

.navbar-menu-dropdown {
    position: relative;
}

.navbar-menu-dropdown-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.625rem 1rem;
    color: #0f172a;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-menu-dropdown-icon {
    transition: transform 0.3s ease;
}

.navbar-menu-dropdown:hover .navbar-menu-dropdown-icon {
    transform: rotate(180deg);
}

.navbar-menu-dropdown-content {
    position: absolute;
    left: 0;
    margin-top: 0;
    width: 224px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(24px);
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 0.75rem 0;
    z-index: 50;
}

.navbar-menu-dropdown:hover .navbar-menu-dropdown-content {
    opacity: 1;
    visibility: visible;
    margin-top: 0.5rem;
}

.navbar-menu-dropdown-item {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #0f172a;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-menu-dropdown-item:hover {
    background: linear-gradient(to right, rgba(11, 60, 93, 0.08), rgba(46, 196, 204, 0.08));
}

.navbar-menu-dropdown-item-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--secondary-teal);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar-menu-dropdown-item:hover .navbar-menu-dropdown-item-dot {
    opacity: 1;
}

.navbar-menu-dropdown-item-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--primary-blue), var(--secondary-teal));
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.navbar-menu-dropdown-item:hover .navbar-menu-dropdown-item-underline {
    transform: translateX(0);
}

.navbar-apply-btn {
    margin-left: 1rem;
    padding: 0.625rem 1.75rem;
    background: linear-gradient(to right, var(--primary-blue), var(--secondary-teal));
    color: #ffffff;
    border-radius: 0.75rem;
    border: none;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    transform: scale(1);
    position: relative;
    overflow: hidden;
}

.navbar-apply-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--secondary-teal), var(--primary-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar-apply-btn:hover {
    box-shadow: 0 25px 50px -12px rgba(46, 196, 204, 0.4);
    transform: scale(1.05);
}

.navbar-apply-btn:hover::before {
    opacity: 1;
}

.navbar-apply-btn svg,
.navbar-apply-btn span {
    position: relative;
    z-index: 10;
}

.navbar-mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem;
    color: var(--primary-blue);
    background: none;
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: scale(1);
}

@media (min-width: 768px) {
    .navbar-mobile-toggle {
        display: none;
    }
}

.navbar-mobile-toggle:hover {
    background: linear-gradient(to right, rgba(11, 60, 93, 0.1), rgba(46, 196, 204, 0.1));
    transform: scale(1.1);
}

.navbar-mobile-toggle-icon-close {
    display: none;
}

.navbar-mobile-toggle-active .navbar-mobile-toggle-icon-open {
    display: none;
}

.navbar-mobile-toggle-active .navbar-mobile-toggle-icon-close {
    display: block;
}

.navbar-menu-mobile {
    display: none;
    padding-bottom: 1.5rem;
    gap: 0.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.navbar-menu-mobile-open {
    display: flex;
    flex-direction: column;
}

.navbar-menu-mobile-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #0f172a;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.navbar-menu-mobile-item:hover {
    background: linear-gradient(to right, rgba(11, 60, 93, 0.1), rgba(46, 196, 204, 0.1));
    border-color: rgba(46, 196, 204, 0.3);
}

.navbar-menu-mobile-item-active {
    background: linear-gradient(to right, rgba(11, 60, 93, 0.15), rgba(46, 196, 204, 0.15)) !important;
    border-color: rgba(46, 196, 204, 0.5) !important;
    color: var(--primary-blue) !important;
    font-weight: 700;
}

.navbar-menu-mobile-item-active:hover {
    background: linear-gradient(to right, rgba(11, 60, 93, 0.2), rgba(46, 196, 204, 0.2)) !important;
    border-color: rgba(46, 196, 204, 0.6) !important;
}

.navbar-menu-mobile-dropdown {
    display: flex;
    flex-direction: column;
}

.navbar-menu-mobile-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    color: #0f172a;
    font-weight: 600;
    text-align: left;
    background: none;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.navbar-menu-mobile-dropdown-btn:hover {
    background: linear-gradient(to right, rgba(11, 60, 93, 0.1), rgba(46, 196, 204, 0.1));
    border-color: rgba(46, 196, 204, 0.3);
}

.navbar-menu-mobile-dropdown-icon {
    transition: transform 0.3s ease;
}

.navbar-menu-mobile-dropdown-open .navbar-menu-mobile-dropdown-icon {
    transform: rotate(180deg);
}

.navbar-menu-mobile-dropdown-content {
    padding-left: 1rem;
    margin-top: 0.5rem;
    gap: 0.25rem;
    display: none;
    flex-direction: column;
}

.navbar-menu-mobile-dropdown-open .navbar-menu-mobile-dropdown-content {
    display: flex;
}

.navbar-menu-mobile-dropdown-item {
    padding: 0.5rem 1rem;
    color: #64748b;
    font-weight: 500;
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.navbar-menu-mobile-dropdown-item:hover {
    color: var(--primary-blue);
    background: linear-gradient(to right, rgba(11, 60, 93, 0.05), rgba(46, 196, 204, 0.05));
}

.navbar-mobile-apply-btn {
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, var(--primary-blue), var(--secondary-teal));
    color: #ffffff;
    border-radius: 0.75rem;
    border: none;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    transform: scale(1);
}

.navbar-mobile-apply-btn:hover {
    box-shadow: 0 25px 50px -12px rgba(46, 196, 204, 0.4);
    transform: scale(1.05);
}

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

/* ===== OLD NAVBAR STYLES - KEPT FOR BACKWARD COMPATIBILITY ===== */
.site-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    background: #FFFFFF;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.site-main {
    min-height: 70vh;
    padding-top: var(--navbar-height);
}

@media (min-width: 640px) {
    .site-main {
        padding-top: var(--navbar-height-sm);
    }
}

/* Remove padding-top if hero section exists */
.site-main:has(.hero-blog-verivance) {
    padding-top: 0;
}

.section-block {
    padding: 5rem 0 3.75rem;
}

.section-alt {
    background: var(--brand-light);
}

.section-heading--has-divider::after {
    background: rgba(10, 42, 67, 0.08);
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.section-heading--has-divider {
    position: relative;
    padding-bottom: 1.25rem;
}

.section-heading--has-divider::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: rgba(15, 23, 42, 0.08);
}

.section-heading .btn {
    flex-shrink: 0;
}

.section-heading-center {
    justify-content: center;
    text-align: center;
}

.section-heading-center > div {
    max-width: 640px;
    margin: 0 auto;
}

.layout-grid .content-stack {
    width: 100%;
}

.content-stack {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.content-panel {
    padding: 2.5rem;
    border-radius: 14px;
    background: var(--brand-surface);
    box-shadow: 0 4px 20px var(--brand-shadow);
}

.content-panel + .content-panel {
    border-top: 1px solid rgba(15, 23, 42, 0.04);
}

.posts-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    transition: grid-template-columns 0.3s ease;
}

.posts-grid__item {
    height: auto;
}

.posts-grid__item > * {
    height: 100%;
}

/* Desktop: 3 columns normally, 2 columns when filters open */
@media (min-width: 1200px) {
    .posts-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.filters-open .posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Tablet: 2 columns always */
@media (max-width: 1199.98px) and (min-width: 768px) {
    .posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.filters-open .posts-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile: 1 column always */
@media (max-width: 767.98px) {
    .posts-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    body.filters-open .posts-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.layout-grid {
    width: 100%;
    display: grid;
    gap: 3rem;
}

/* ===== NEW HERO BANNER STYLES - MATCHING PARENT SITE ===== */
.hero-blog-verivance {
    position: relative;
    width: 100%;
    overflow: hidden;
    min-height: auto;
    padding-top: calc(var(--navbar-height) + 20px);
    padding-bottom: clamp(40px, 8vh, 60px);
}

@media (min-width: 640px) {
    .hero-blog-verivance {
        padding-top: calc(var(--navbar-height-sm) + 30px);
        min-height: min(100vh, 900px);
        max-height: 100vh;
    }
}

@media (min-width: 1024px) {
    .hero-blog-verivance {
        min-height: 100vh;
        max-height: none;
    }
}

@media (max-height: 700px) and (min-width: 640px) {
    .hero-blog-verivance {
        min-height: auto;
        padding-top: calc(var(--navbar-height-sm) + 20px);
        padding-bottom: 30px;
    }
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    min-height: 100%;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    filter: brightness(0.75) contrast(1.25) saturate(1.1);
}

@media (min-width: 1024px) {
    .hero-bg-image {
        background-attachment: fixed;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(11, 60, 93, 0.72) 0%, rgba(11, 60, 93, 0.68) 50%, rgba(43, 47, 51, 0.78) 100%);
}

.hero-gradient-1 {
    position: absolute;
    top: 0;
    right: 25%;
    width: min(30vw, 500px);
    height: min(30vw, 500px);
    background: radial-gradient(circle, rgba(46, 196, 204, 0.15), transparent);
    border-radius: 50%;
    filter: blur(60px);
}

.hero-gradient-2 {
    position: absolute;
    bottom: 25%;
    left: 0;
    width: min(25vw, 400px);
    height: min(25vw, 400px);
    background: radial-gradient(circle, rgba(46, 196, 204, 0.1), transparent);
    border-radius: 50%;
    filter: blur(60px);
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: auto;
    padding: clamp(20px, 4vh, 40px) clamp(16px, 3vw, 32px);
}

@media (min-width: 640px) {
    .hero-content-wrapper {
        min-height: calc(min(100vh, 900px) - var(--navbar-height-sm) - 60px);
        padding: clamp(30px, 6vh, 60px) clamp(24px, 4vw, 48px);
    }
}

@media (min-width: 1024px) {
    .hero-content-wrapper {
        min-height: calc(100vh - var(--navbar-height-sm) - 120px);
    }
}

@media (max-height: 700px) {
    .hero-content-wrapper {
        min-height: auto;
        padding: 20px clamp(16px, 3vw, 32px);
        justify-content: flex-start;
        padding-top: clamp(20px, 3vh, 30px);
    }
}

.hero-content {
    width: 100%;
    max-width: 896px;
    margin: 0 auto;
    text-align: center;
    box-sizing: border-box;
    padding: 0;
}

@media (min-width: 1024px) {
    .hero-content {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .hero-content {
        width: 100%;
        padding: 0 clamp(8px, 2vw, 16px);
    }
}

.hero-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: clamp(0.5rem, 1.5vw, 0.75rem);
    margin-bottom: clamp(0.75rem, 2vh, 1.5rem);
    padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(1rem, 3vw, 1.5rem);
    border-radius: 999px;
    border: 2px solid rgba(46, 196, 204, 0.6);
    backdrop-filter: blur(12px);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(46, 196, 204, 0.3), 0 0 20px rgba(46, 196, 204, 0.2);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out 0.1s, transform 0.8s ease-out 0.1s;
    width: fit-content;
    max-width: 100%;
}

@media (max-width: 480px) {
    .hero-badge {
        margin-bottom: clamp(0.5rem, 1.5vh, 1rem);
        padding: clamp(0.5rem, 2vw, 0.625rem) clamp(0.875rem, 4vw, 1.25rem);
    }
}

@media (max-height: 700px) {
    .hero-badge {
        margin-bottom: clamp(0.5rem, 1vh, 1rem);
        padding: clamp(0.5rem, 1.2vw, 0.625rem) clamp(0.875rem, 2.5vw, 1.25rem);
    }
}

.hero-badge[data-hero-animate="true"] {
    opacity: 1;
    transform: translateY(0);
}

.hero-badge-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(11, 60, 93, 0.4) 0%,
        rgba(11, 60, 93, 0.3) 20%,
        rgba(46, 196, 204, 0.6) 40%,
        rgba(46, 196, 204, 0.8) 50%,
        rgba(46, 196, 204, 0.6) 60%,
        rgba(11, 60, 93, 0.3) 80%,
        rgba(11, 60, 93, 0.4) 100%
    );
    background-size: 300% 100%;
    animation: gradient-shift 6s ease-in-out infinite;
    border-radius: 999px;
}

.hero-badge-content {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-badge-icon {
    width: clamp(16px, 2vw, 20px);
    height: clamp(16px, 2vw, 20px);
    color: var(--secondary-teal);
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(46, 196, 204, 0.8));
}

@media (max-width: 480px) {
    .hero-badge-icon {
        width: clamp(14px, 3.5vw, 18px);
        height: clamp(14px, 3.5vw, 18px);
    }
}

@media (max-height: 700px) {
    .hero-badge-icon {
        width: clamp(14px, 1.8vw, 18px);
        height: clamp(14px, 1.8vw, 18px);
    }
}

.hero-badge-text {
    font-size: clamp(0.75rem, 2vw, 1rem);
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.025em;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .hero-badge-text {
        font-size: clamp(0.875rem, 2.2vw, 1.125rem);
    }
}

@media (max-width: 480px) {
    .hero-badge-text {
        font-size: clamp(0.7rem, 3.5vw, 0.875rem);
        white-space: normal;
        text-align: center;
    }
}

@media (max-height: 700px) {
    .hero-badge-text {
        font-size: clamp(0.75rem, 1.8vw, 0.95rem);
    }
}

.hero-heading {
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 clamp(0.75rem, 2vh, 1.5rem) 0;
    padding-top: 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
    font-size: clamp(28px, 4.5vw + 0.5rem, 64px);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 480px) {
    .hero-heading {
        font-size: clamp(24px, 6vw, 32px);
        margin-bottom: clamp(0.5rem, 1.5vh, 1rem);
    }
}

@media (max-height: 700px) {
    .hero-heading {
        font-size: clamp(24px, 3.5vw + 0.5rem, 48px);
        margin-bottom: clamp(0.5rem, 1.5vh, 1rem);
    }
}

.hero-heading[data-hero-animate="true"] {
    opacity: 1;
    transform: translateY(0);
}

.hero-heading-line {
    display: block;
    margin-bottom: 0;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .hero-heading-line {
        white-space: normal;
        line-height: 1.15;
    }
}

@media (max-width: 480px) {
    .hero-heading-line {
        white-space: normal;
        line-height: 1.1;
    }
}

@media (max-height: 700px) {
    .hero-heading-line {
        line-height: 1.15;
    }
}

.hero-heading-blog {
    display: inline-block;
    color: var(--secondary-teal);
    position: relative;
    font-weight: 800;
    text-shadow: 
        0 0 20px rgba(46, 196, 204, 0.8),
        0 0 40px rgba(46, 196, 204, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.02em;
    animation: blog-glow 2s ease-in-out infinite alternate;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin-left: 0.25em;
}

@media (max-width: 768px) {
    .hero-heading-blog {
        margin-left: 0.15em;
        display: inline-block;
    }
}

@media (max-width: 480px) {
    .hero-heading-blog {
        letter-spacing: 0.01em;
    }
}

@media (max-height: 700px) {
    .hero-heading-blog {
        animation: none;
    }
}

.hero-heading-blog::before {
    content: '';
    position: absolute;
    inset: -4px;
    background: linear-gradient(135deg, rgba(46, 196, 204, 0.3), rgba(46, 196, 204, 0.1));
    border-radius: 8px;
    filter: blur(12px);
    z-index: -1;
    opacity: 0.6;
}

.hero-heading-blog::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-teal), rgba(46, 196, 204, 0.5), transparent);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(46, 196, 204, 0.8);
}

@media (min-width: 768px) {
    .hero-heading-blog::after {
        height: 6px;
        bottom: -6px;
    }
}

@keyframes blog-glow {
    0% {
        text-shadow: 
            0 0 20px rgba(46, 196, 204, 0.8),
            0 0 40px rgba(46, 196, 204, 0.5),
            0 2px 4px rgba(0, 0, 0, 0.3);
    }
    100% {
        text-shadow: 
            0 0 30px rgba(46, 196, 204, 1),
            0 0 60px rgba(46, 196, 204, 0.7),
            0 0 80px rgba(46, 196, 204, 0.4),
            0 2px 4px rgba(0, 0, 0, 0.3);
    }
}

.hero-tagline {
    color: #cbd5e1;
    margin: 0 0 clamp(1rem, 3vh, 2rem) 0;
    line-height: 1.6;
    max-width: 768px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s;
    font-size: clamp(14px, 1.75vw + 0.25rem, 22px);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

@media (max-width: 480px) {
    .hero-tagline {
        font-size: clamp(13px, 3.5vw, 16px);
        line-height: 1.5;
        margin-bottom: clamp(0.75rem, 2vh, 1.5rem);
    }
}

@media (min-width: 1024px) {
    .hero-tagline {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-height: 700px) {
    .hero-tagline {
        font-size: clamp(13px, 1.5vw + 0.25rem, 18px);
        margin-bottom: clamp(0.75rem, 2vh, 1.5rem);
        line-height: 1.5;
    }
}

.hero-tagline[data-hero-animate="true"] {
    opacity: 1;
    transform: translateY(0);
}

.hero-tagline strong {
    color: #ffffff;
    font-weight: 600;
}

.hero-ctas {
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 1.5vw, 1rem);
    margin: 0 0 clamp(1rem, 3vh, 2rem) 0;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out 0.4s, transform 0.8s ease-out 0.4s;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 640px) {
    .hero-ctas {
        flex-direction: row;
        width: auto;
    }
}

@media (min-width: 1024px) {
    .hero-ctas {
        justify-content: flex-start;
    }
}

@media (max-height: 700px) {
    .hero-ctas {
        margin-bottom: clamp(0.75rem, 2vh, 1.5rem);
        gap: clamp(0.5rem, 1vw, 0.75rem);
    }
}

.hero-ctas[data-hero-animate="true"] {
    opacity: 1;
    transform: translateY(0);
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.375rem, 1vw, 0.5rem);
    padding: clamp(10px, 1.2vw, 14px) clamp(18px, 3vw, 28px);
    background: var(--secondary-teal);
    color: var(--primary-blue);
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: clamp(13px, 1.4vw + 0.25rem, 18px);
    text-decoration: none;
    transition: all 0.3s ease;
    transform: scale(1);
    box-shadow: 0 10px 15px -3px rgba(46, 196, 204, 0.3), 0 4px 6px -2px rgba(46, 196, 204, 0.2);
    width: 100%;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .hero-btn-primary {
        width: auto;
    }
}

@media (max-width: 480px) {
    .hero-btn-primary {
        font-size: clamp(12px, 3.5vw, 14px);
        padding: clamp(10px, 2vw, 12px) clamp(16px, 4vw, 22px);
    }
}

@media (max-height: 700px) {
    .hero-btn-primary {
        font-size: clamp(12px, 1.2vw + 0.25rem, 16px);
        padding: clamp(8px, 1vw, 12px) clamp(16px, 2.5vw, 24px);
    }
}

.hero-btn-primary:hover {
    background: #26b0b8;
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(46, 196, 204, 0.4), 0 10px 10px -5px rgba(46, 196, 204, 0.3);
    color: var(--primary-blue);
}

.hero-btn-icon {
    transition: transform 0.3s ease;
    width: clamp(14px, 1.5vw, 18px);
    height: clamp(14px, 1.5vw, 18px);
    flex-shrink: 0;
}

.hero-btn-primary:hover .hero-btn-icon {
    transform: translateX(4px);
}

@media (max-width: 480px) {
    .hero-btn-icon {
        width: clamp(12px, 3vw, 16px);
        height: clamp(12px, 3vw, 16px);
    }
}

@media (max-height: 700px) {
    .hero-btn-icon {
        width: clamp(12px, 1.2vw, 16px);
        height: clamp(12px, 1.2vw, 16px);
    }
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.375rem, 1vw, 0.5rem);
    padding: clamp(10px, 1.2vw, 14px) clamp(18px, 3vw, 28px);
    border: 2px solid var(--secondary-teal);
    color: var(--secondary-teal);
    background: transparent;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: clamp(13px, 1.4vw + 0.25rem, 18px);
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .hero-btn-secondary {
        width: auto;
    }
}

@media (max-width: 480px) {
    .hero-btn-secondary {
        font-size: clamp(12px, 3.5vw, 14px);
        padding: clamp(10px, 2vw, 12px) clamp(16px, 4vw, 22px);
    }
}

@media (max-height: 700px) {
    .hero-btn-secondary {
        font-size: clamp(12px, 1.2vw + 0.25rem, 16px);
        padding: clamp(8px, 1vw, 12px) clamp(16px, 2.5vw, 24px);
    }
}

.hero-btn-secondary:hover {
    background: rgba(46, 196, 204, 0.1);
    border-color: rgba(46, 196, 204, 0.8);
    color: var(--secondary-teal);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(46, 196, 204, 0.3);
    max-width: 672px;
    margin-left: auto;
    margin-right: auto;
    gap: clamp(8px, 1.5vw, 20px);
    padding-top: clamp(15px, 2.5vh, 32px);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out 0.5s, transform 0.8s ease-out 0.5s;
    width: 100%;
}

@media (min-width: 1024px) {
    .hero-stats {
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        gap: clamp(6px, 2vw, 12px);
        padding-top: clamp(12px, 2vh, 20px);
    }
}

@media (max-height: 700px) {
    .hero-stats {
        padding-top: clamp(12px, 2vh, 20px);
        gap: clamp(8px, 1.2vw, 16px);
    }
}

.hero-stats[data-hero-animate="true"] {
    opacity: 1;
    transform: translateY(0);
}

.hero-stat-item {
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-stat-item {
        text-align: left;
    }
}

.hero-stat-number {
    font-weight: 700;
    color: var(--secondary-teal);
    margin: 0 0 clamp(0.125rem, 0.5vh, 0.25rem) 0;
    font-size: clamp(18px, 2.5vw + 0.5rem, 32px);
    line-height: 1.1;
    word-break: break-word;
}

@media (max-width: 480px) {
    .hero-stat-number {
        font-size: clamp(16px, 4vw, 22px);
    }
}

@media (max-height: 700px) {
    .hero-stat-number {
        font-size: clamp(16px, 2vw + 0.5rem, 24px);
    }
}

.hero-stat-label {
    color: #cbd5e1;
    margin: 0;
    line-height: 1.2;
    font-size: clamp(11px, 1.1vw + 0.25rem, 16px);
    word-break: break-word;
}

@media (max-width: 480px) {
    .hero-stat-label {
        font-size: clamp(10px, 2.8vw, 13px);
    }
}

@media (max-height: 700px) {
    .hero-stat-label {
        font-size: clamp(10px, 1vw + 0.25rem, 14px);
    }
}

@keyframes gradient-shift {
    0% {
        background-position: 200% 0;
    }
    50% {
        background-position: 0% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ===== OLD HERO STYLES - KEPT FOR BACKWARD COMPATIBILITY ===== */
.hero-modern {
    position: relative;
    padding: 6rem 0 5rem;
    background: linear-gradient(135deg, #D0E6E8, #D8EDEF);
    overflow: hidden;
}

.navbar {
    background: #fff;
    border-bottom: 1px solid rgba(10, 42, 67, 0.08);
    position: sticky;
    top: 0;
    z-index: 1200;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 48px;
    width: auto;
    max-height: 48px;
}

.navbar-brand span {
    font-size: 0.95rem;
    letter-spacing: 0.2em;
}

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

.navbar-nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.nav-link-blog {
    font-weight: 800 !important;
    color: var(--brand-accent) !important;
    font-size: 1.3rem;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    padding: 0.5rem 1rem;
    letter-spacing: 0.5px;
}

.nav-link-blog:hover,
.nav-link-blog:focus {
    color: var(--brand-accent) !important;
    transform: scale(1.05);
}

.navbar-nav-right {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--brand-dark);
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--brand-accent);
}

.btn-training-academy {
    background: linear-gradient(90deg, var(--brand-dark), var(--brand-accent));
    color: #fff;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-training-academy:hover,
.btn-training-academy:focus {
    background: linear-gradient(90deg, var(--brand-accent), var(--brand-accent-hover));
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(31, 183, 196, 0.4);
}

/* Responsive navbar styles */
@media (max-width: 991.98px) {
    .navbar-nav-center {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        z-index: 5;
    }
    
    .navbar-nav-right {
        width: 100%;
        justify-content: center;
        margin-left: 0 !important;
        padding: 0.75rem 0;
    }
    
    .navbar-toggler {
        z-index: 10;
    }
}

.pagination .page-link {
    color: var(--brand-dark);
    border-color: var(--brand-border);
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    color: var(--brand-accent);
    border-color: var(--brand-accent);
}

.pagination .page-item.active .page-link {
    background: var(--brand-accent);
    border-color: var(--brand-accent);
    color: #fff;
}

.post-hero {
    padding: 3rem 0 2rem;
}

.post-cover {
    width: 100%;
    height: 420px;
    border-radius: 1.25rem;
}

.post-content {
    border-radius: 1.25rem;
    background: var(--brand-surface);
}

/* ===== NEW FOOTER STYLES - MATCHING PARENT SITE ===== */
.site-footer-verivance {
    background: linear-gradient(to bottom, #0f1419, #0a2240, #051e2f);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.footer-gradient-bg-1 {
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(46, 196, 204, 0.15), transparent);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.footer-gradient-bg-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(46, 196, 204, 0.1), transparent);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.footer-container {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

@media (min-width: 640px) {
    .footer-container {
        padding: 4rem 1.5rem;
    }
}

@media (min-width: 768px) {
    .footer-container {
        padding: 5rem 1.5rem;
    }
}

@media (min-width: 1024px) {
    .footer-container {
        padding: 5rem 2rem;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
        margin-bottom: 4rem;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
        margin-bottom: 4rem;
    }
}

.footer-brand-section {
    animation: fadeInUp 0.8s ease-out;
}

.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--secondary-teal), var(--primary-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(46, 196, 204, 0.3);
}

.footer-logo-text {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.125rem;
}

.footer-brand-name {
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-description {
    color: #cbd5e1;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
}

.footer-section {
    animation: fadeInUp 0.8s ease-out;
}

.footer-section:nth-child(2) {
    animation-delay: 100ms;
}

.footer-section:nth-child(3) {
    animation-delay: 200ms;
}

.footer-section:nth-child(4) {
    animation-delay: 300ms;
}

.footer-section-title {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--secondary-teal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.footer-title-indicator {
    width: 4px;
    height: 16px;
    background: linear-gradient(to bottom, var(--secondary-teal), transparent);
    border-radius: 999px;
    display: block;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link-item {
    color: #cbd5e1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.footer-link-item:hover {
    color: var(--secondary-teal);
    transform: translateX(4px);
}

.footer-link-indicator {
    width: 0;
    height: 2px;
    background: var(--secondary-teal);
    transition: width 0.3s ease;
    display: block;
}

.footer-link-item:hover .footer-link-indicator {
    width: 8px;
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.footer-contact-item:hover {
    transform: translateX(4px);
}

.footer-contact-icon {
    padding: 0.5rem;
    background: linear-gradient(135deg, rgba(46, 196, 204, 0.2), transparent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.footer-contact-icon svg {
    color: var(--secondary-teal);
}

.footer-contact-item:hover .footer-contact-icon {
    background: linear-gradient(135deg, rgba(46, 196, 204, 0.4), transparent);
}

.footer-contact-link {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-contact-link:hover {
    color: var(--secondary-teal);
}

.footer-contact-item span {
    color: #cbd5e1;
    font-size: 0.875rem;
}

.footer-bottom {
    border-top: 1px solid rgba(46, 196, 204, 0.2);
    padding-top: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        padding-top: 3rem;
        margin-top: 3rem;
    }
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-bottom-content {
        flex-direction: row;
        gap: 1.5rem;
    }
}

.footer-bottom-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .footer-bottom-left {
        align-items: flex-start;
    }
}

.footer-copyright {
    color: #cbd5e1;
    font-size: 0.875rem;
    margin: 0;
}

.footer-developed-by {
    color: #94a3b8;
    font-size: 0.75rem;
    margin: 0;
}

.footer-developed-link {
    color: var(--secondary-teal);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-developed-link:hover {
    color: var(--secondary-teal);
    text-decoration: underline;
}

.footer-social-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-social-icon {
    padding: 0.5rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(46, 196, 204, 0.2), transparent);
    color: var(--secondary-teal);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
}

.footer-social-icon svg {
    color: var(--secondary-teal);
}

.footer-social-icon:hover {
    background: linear-gradient(135deg, rgba(46, 196, 204, 0.4), transparent);
    transform: scale(1.25) translateY(-4px);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .footer-container {
        padding: 3rem 1rem 1.5rem;
    }
    
    .footer-gradient-bg-1,
    .footer-gradient-bg-2 {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 767.98px) {
    .footer-bottom-content {
        text-align: center;
    }
    
    .footer-social-icons {
        justify-content: center;
    }
}

/* ===== OLD FOOTER STYLES - KEPT FOR BACKWARD COMPATIBILITY ===== */
.site-footer-modern {
    background: linear-gradient(to bottom, #0f1419, #0a2240, #051e2f);
    color: #fff;
    position: relative;
    overflow: hidden;
    padding: 4rem 0 2rem;
}

.search-head form .input-group-text,
.search-head .form-control {
    border-color: var(--brand-border);
}

/* Typography */
.hero-title {
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--brand-dark);
    letter-spacing: -0.02em;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--brand-dark);
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-weight: 500;
}

.hero-support {
    max-width: 640px;
    margin: 0 auto;
    color: var(--brand-text-muted);
}

.hero-label,
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.75rem;
    color: var(--brand-text-muted);
}

p {
    margin-bottom: 1rem;
}

.lead {
    color: var(--brand-text-dark);
}

.post-content p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.post-content ul {
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--brand-accent);
    padding-left: 1.5rem;
    font-style: italic;
    color: var(--brand-text-dark);
    margin: 2rem 0;
}

.post-content pre {
    background: var(--brand-dark);
    color: var(--brand-light);
    padding: 1.25rem;
    border-radius: 1rem;
    overflow-x: auto;
}

.post-content code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Buttons */
.btn-hero {
    padding: 0.85rem 2.25rem;
    border-radius: 999px;
    font-weight: 600;
    text-transform: none;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.2s ease;
}

.btn-hero-primary {
    background: var(--brand-accent);
    color: #fff;
    border: none;
}

.btn-hero-primary:hover {
    background: var(--brand-dark);
    color: #fff;
}

.btn-hero-secondary {
    border: 2px solid var(--brand-accent);
    color: var(--brand-dark);
    background: transparent;
}

.btn-hero-secondary:hover {
    background: var(--brand-accent);
    color: #fff;
    border-color: var(--brand-accent);
}

.btn-hero-ghost {
    border: 2px solid var(--brand-accent);
    color: var(--brand-dark);
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.btn-hero-ghost:hover {
    background: var(--brand-accent);
    color: #fff;
    border-color: var(--brand-accent);
}

.btn-hero-filter {
    border: 2px solid var(--brand-accent);
    color: var(--brand-dark);
    background: rgba(255, 255, 255, 0.65);
    box-shadow: none;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-hero-filter:hover {
    border-color: var(--brand-dark);
    background: var(--brand-dark);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(31, 183, 196, 0.15);
}

.btn-hero-filter i {
    width: 16px;
    height: 16px;
}

.btn-md {
    padding: 0.65rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 999px;
}

.btn-dark {
    background: var(--brand-accent);
    color: #fff;
    border: none;
    transition: all 0.2s ease;
}

.btn-dark:hover {
    background: var(--brand-dark);
    color: #fff;
}

.btn-outline-dark {
    border: 2px solid var(--brand-accent);
    color: var(--brand-dark);
    background: transparent;
    transition: all 0.2s ease;
}

.btn-outline-dark:hover {
    background: var(--brand-accent);
    color: #fff;
    border-color: var(--brand-accent);
}

.btn-ghost-dark {
    border: 2px solid var(--brand-accent);
    background: transparent;
    color: var(--brand-dark);
    transition: all 0.2s ease;
}

.btn-ghost-dark:hover {
    background: var(--brand-accent);
    color: #fff;
    border-color: var(--brand-accent);
}

.btn-filter-outline {
    border: 2px solid var(--brand-accent);
    background: rgba(255, 255, 255, 0.9);
    color: var(--brand-dark);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    box-shadow: none;
    transition: all 0.2s ease;
}

.btn-filter-outline:hover {
    border-color: var(--brand-dark);
    background: var(--brand-dark);
    color: #fff;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.btn-filter-outline i {
    width: 16px;
    height: 16px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--brand-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.link-arrow:hover {
    color: var(--brand-accent);
    text-decoration: underline;
}

.link-arrow::after {
    content: '->';
    font-size: 0.9em;
    transition: transform 0.2s ease;
}

.link-arrow:hover::after {
    transform: translateX(4px);
}

/* Cards */
.story-card,
.article-card,
.category-card {
    position: relative;
    border-radius: 14px;
    background: var(--brand-surface);
    box-shadow: 0 4px 20px var(--brand-shadow);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.story-card,
.article-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}

.story-card:hover,
.article-card:hover {
    border-color: rgba(0, 0, 0, 0.15);
}

.story-card:hover,
.article-card:hover,
.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 55px rgba(15, 23, 42, 0.18);
}

.story-card__media,
.article-card__media {
    height: 180px;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
}

.story-card__media img,
.article-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.story-card:hover .story-card__media img,
.article-card:hover .article-card__media img {
    transform: scale(1.05);
}

.article-card .card-body,
.story-card .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1rem 1.125rem;
}

.category-badge {
    font-weight: 600;
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--brand-dark);
}

.featured-badge {
    display: inline-block;
    background: #f1c40f;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: #000;
}

.post-meta-info {
    font-size: 13px;
    color: var(--brand-text-muted);
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-meta-info i {
    flex-shrink: 0;
    opacity: 0.7;
}

.post-meta-info span {
    white-space: nowrap;
}

.badge-indigo {
    background: var(--brand-accent);
    color: var(--brand-dark);
}

.badge-amber {
    background: var(--brand-accent-hover);
    color: var(--brand-dark);
}

.badge-emerald {
    background: var(--brand-accent-hover);
    color: var(--brand-dark);
}

.badge-rose {
    background: var(--brand-accent);
    color: var(--brand-dark);
}

.badge-sky {
    background: var(--brand-accent);
    color: var(--brand-dark);
}

.badge-slate {
    background: var(--brand-accent-hover);
    color: var(--brand-dark);
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--brand-text-muted);
    font-size: 0.85rem;
}

.story-card .card-title,
.article-card .card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.3em * 2);
    font-size: 1.125rem;
    line-height: 1.3;
    color: var(--brand-dark);
    font-weight: 600;
}

.story-card .card-text,
.article-card .card-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.95rem;
    line-height: 1.55;
}

.empty-card {
    padding: 2.75rem;
    border-radius: 14px;
    background: #fff;
    border: 1px dashed var(--brand-border);
    text-align: center;
    color: var(--brand-text-muted);
    font-weight: 500;
}

/* Hover */
.btn-hero {
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 32px rgba(15, 23, 42, 0.18);
}

.article-card .btn,
.story-card .btn {
    font-size: 0.9rem;
    padding: 0.55rem 0.75rem;
    transition: all 0.2s ease;
}

.article-card .btn:hover,
.story-card .btn:hover {
    background: var(--brand-dark);
    color: #fff;
    border-color: var(--brand-dark);
}

/* Sidebar */
.blog-sidebar .card {
    border: none;
    border-radius: 14px;
    padding: 1.75rem;
    background: var(--brand-surface);
    box-shadow: 0 4px 20px var(--brand-shadow);
    margin-bottom: 1.5rem;
}

.blog-sidebar .card:last-child {
    margin-bottom: 0;
}

.blog-sidebar .card-title {
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: var(--brand-text-muted);
}

.blog-sidebar ul li {
    border-bottom: 1px solid var(--brand-border);
}

.blog-sidebar ul li:last-child {
    border-bottom: none;
}

.blog-sidebar .badge {
    font-weight: 500;
}

.filter-category-link.is-active {
    color: var(--brand-accent);
    font-weight: 600;
    position: relative;
}

.filter-category-link.is-active::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 80%;
    background: var(--brand-accent);
    border-radius: 2px;
}

.filter-tag-link.is-active {
    background: var(--brand-accent) !important;
    color: var(--brand-dark) !important;
    border-color: transparent !important;
    font-weight: 600;
}

.filter-tag-link.is-active:hover {
    background: var(--brand-dark) !important;
    color: #fff !important;
}

[data-filter-search-input]:not(:placeholder-shown),
[data-filter-search-input].has-filter {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 0.15rem rgba(31, 183, 196, 0.1);
}

[data-filter-search-input].has-filter {
    background-color: rgba(31, 183, 196, 0.05);
}

.form-check-input[data-filter-author-name]:checked {
    background-color: var(--brand-accent);
    border-color: var(--brand-accent);
}

.form-check-input[data-filter-author-name]:checked + label,
.form-check-label:has(input[data-filter-author-name]:checked) {
    color: var(--brand-accent);
    font-weight: 600;
}

[data-author-clear-all].authors-inactive {
    opacity: 0.4;
    cursor: not-allowed;
}

[data-author-clear-all].authors-active {
    border-color: var(--brand-accent) !important;
    color: var(--brand-accent) !important;
    background: transparent;
}

[data-author-clear-all].authors-active:hover {
    background: var(--brand-accent) !important;
    color: #fff !important;
    border-color: var(--brand-accent) !important;
}

/* Authors filter styling */
.authors-list {
    max-height: 200px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.authors-list::-webkit-scrollbar {
    width: 6px;
}

.authors-list::-webkit-scrollbar-track {
    background: transparent;
}

.authors-list::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.authors-list::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

.authors-list .form-check {
    margin-bottom: 0;
}

.authors-list .form-check-label {
    user-select: none;
}

.authors-list .form-check-input {
    margin-top: 0.25rem;
    cursor: pointer;
}

.authors-list .form-check-input:checked {
    background-color: var(--brand-accent);
    border-color: var(--brand-accent);
}

.filter-tag-link {
    transition: all 0.2s ease;
    background: #f8f9fa !important;
    color: var(--brand-text-dark) !important;
    border: 1px solid var(--brand-border) !important;
}

.filter-tag-link:hover {
    background: var(--brand-accent-hover) !important;
    color: var(--brand-dark) !important;
    border-color: var(--brand-accent-hover) !important;
}

/* Filter drawer */
body.no-scroll {
    overflow: hidden;
}

.filters-sidebar {
    align-self: stretch;
    position: sticky;
    top: calc(var(--navbar-height) + 1.5rem);
    width: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    background: #FFFFFF;
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px var(--brand-shadow);
    overflow: hidden;
    pointer-events: none;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s 0.3s;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1;
    will-change: width, opacity, padding;
}

@media (min-width: 1024px) {
    body.filters-open .filters-sidebar {
        position: fixed !important;
    }
}

body.filters-open .filters-sidebar {
    width: var(--filters-sidebar-width);
    padding: 1.5rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    will-change: auto;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s;
}

@media (min-width: 1024px) {
    .filters-sidebar {
        height: 0;
        max-height: 0;
    }

    body.filters-open .filters-sidebar {
        position: fixed;
        top: calc(var(--navbar-height) + 1rem);
        right: var(--filters-sidebar-right, 1.5rem);
        left: auto;
        height: calc(100vh - var(--navbar-height) - 2rem);
        max-height: calc(100vh - var(--navbar-height) - 2rem);
        z-index: 1050;
        overflow: hidden;
    }

    body.filters-locked .filters-sidebar {
        position: fixed;
        top: calc(var(--navbar-height) + 1rem);
        left: var(--filters-fixed-left);
        right: auto;
        width: var(--filters-fixed-width);
        padding: 1.5rem;
        opacity: 1;
        pointer-events: auto;
        z-index: 1050;
        max-height: var(--filters-locked-max-height, calc(100vh - var(--navbar-height) - 2rem));
    }

    body.filters-locked .filters-sidebar__body {
        max-height: calc(var(--filters-locked-max-height, calc(100vh - var(--navbar-height) - 2rem)) - 4rem);
    }
    
    body.filters-open .filters-sidebar__body {
        max-height: calc(100vh - var(--navbar-height) - 2rem - 4rem);
        overflow-y: auto;
        overflow-x: hidden;
    }
}

.filter-sidebar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-top: 0.25rem;
    gap: 0.75rem;
    flex-shrink: 0;
}

.filter-sidebar__header h5 {
    margin: 0;
    flex: 1;
    color: var(--brand-dark);
}

.filter-sidebar__header .btn-close {
    position: static;
    margin: 0;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
    padding: 0.25rem;
}

.filter-sidebar__header .btn-close:hover {
    opacity: 1;
}

.filter-sidebar__header [data-filter-clear] {
    flex-shrink: 0;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.filter-sidebar__header [data-filter-clear]:disabled,
.filter-sidebar__header [data-filter-clear].filters-inactive {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.filter-sidebar__header [data-filter-clear]:not(:disabled):not(.filters-inactive) {
    border-color: var(--brand-accent);
    color: var(--brand-accent);
}

.filter-sidebar__header [data-filter-clear]:not(:disabled):not(.filters-inactive):hover {
    background: var(--brand-accent);
    color: #fff;
    border-color: var(--brand-accent);
}

.filters-sidebar__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.filters-scroll-area {
    flex: 1;
    overflow-y: auto;
    padding-right: 6px;
}

.filters-sidebar .blog-sidebar {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.filters-sidebar .blog-sidebar .card {
    box-shadow: none;
    border: 1px solid var(--brand-border);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.filters-sidebar .blog-sidebar .card-title {
    color: var(--brand-dark);
}

.filters-sidebar .blog-sidebar i {
    color: var(--brand-accent);
}

.filters-sidebar .form-control {
    border-color: var(--brand-border);
}

.filters-sidebar .form-control:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 0.2rem rgba(31, 183, 196, 0.15);
}

.filter-toggle-btn {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: var(--brand-dark);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.25);
    z-index: 1060;
    transition: all 0.2s ease;
}

.filter-toggle-btn:hover {
    background: var(--brand-accent);
    transform: scale(1.05);
}

.filter-toggle-btn.has-filters {
    background: var(--brand-accent);
    box-shadow: 0 25px 45px rgba(31, 183, 196, 0.35);
}

.filter-toggle-btn.has-filters:hover {
    background: var(--brand-dark);
    transform: scale(1.05);
}

.filter-toggle-btn.is-hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

.filter-toggle-btn i {
    width: 20px;
    height: 20px;
}

@media (max-width: 1023.98px) {
    .filters-sidebar {
        position: fixed;
        top: var(--content-offset);
        right: 0;
        left: 0;
        width: 100%;
        max-width: none;
        height: calc(100vh - var(--content-offset));
        max-height: none;
        padding: 1.5rem;
        border-radius: 1.5rem 1.5rem 0 0;
        box-shadow: 0 25px 45px rgba(15, 23, 42, 0.18);
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 1060;
    }

    body.filters-open .filters-sidebar {
        width: 100%;
        transform: translateX(0);
        pointer-events: auto;
        will-change: auto;
    }

    .filters-sidebar__body {
        max-height: calc(100vh - var(--content-offset) - 120px);
    }
}

/* Utilities */
.object-fit-cover,
.blog-sidebar img,
.card img,
.post-cover {
    object-fit: cover;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

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

.hero-ctas {
    gap: 1rem;
}

.hero-ctas .btn {
    min-width: 220px;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-modern {
        padding: 5rem 0 4rem;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .post-cover {
        height: 320px;
    }
}

@media (max-width: 767.98px) {
    .section-heading {
        text-align: left;
    }
}

@media (max-width: 575.98px) {
    .section-block {
        padding: 3.5rem 0 2.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-ctas .btn {
        width: 100%;
    }

    .navbar-brand span {
        letter-spacing: 0.1em;
    }
}

/* Reading progress */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(15, 23, 42, 0.08);
    z-index: 1100;
    pointer-events: none;
}

.reading-progress__bar {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--brand-accent), var(--brand-accent-hover));
    transition: width 0.15s ease;
}

/* Full iPhone Safari overflow fix */
@supports (-webkit-touch-callout: none) {
    .section-block,
    .content-panel,
    .posts-grid,
    .posts-area,
    .content-region {
        overflow: visible !important;
    }
}

/* Strong Featured Stories fix for iPhone */
@media (max-width: 768px) {
    .posts-grid[data-posts-grid="featured"],
    .content-panel:has(.posts-grid[data-posts-grid="featured"]) {
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
        will-change: transform;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        opacity: 1 !important;
        visibility: visible !important;
        position: relative;
        z-index: 5;
    }
}

/* Prevent iPhone Safari from collapsing filter sidebar */
@supports (-webkit-touch-callout: none) {
    .filters-sidebar {
        position: fixed !important;
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
        will-change: transform;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
}

/* Search page default posts: 2 columns on desktop/tablet */
@media (min-width: 768px) {
    .search-default-posts {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    
    /* Search results also in 2 columns */
    .posts-grid[data-posts-grid="search"] {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

/* Hide default posts on search page for mobile view */
@media (max-width: 767.98px) {
    .search-default-posts {
        display: none !important;
    }
}

