/* ============================
   REUSABLE BLOCK HEADER STYLES
   ============================ */

.block-header {
    text-align: center;
    margin-bottom: 3rem;
    
    @media (max-width: 767px) {
        margin-bottom: 2rem;
    }
}

.usps-content .block-header {
    text-align: left;
    margin-bottom: 1.5rem;
}

.block-subtitle {
    display: inline-block;
    margin-bottom: 1rem;
}

.block-title {
    font-size: clamp(1.7rem, 1.1rem + 2vw, 2.4rem);
    margin: 0;
    margin-top: 0 !important;
    color: var(--secondary);
    font-weight: 700; /* Force h2 weight even if h1 */
    line-height: 1.2; /* Force h2 line-height even if h1 */
}

/* ============================
   IMAGE TITLE BLOCK
   ============================ */

section.image-title {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 7rem 0 8rem;
    overflow: hidden;
    color: white;
    
    @media (max-width: 767px) {
        padding: 7rem 0 7rem;
    }
    
    /* Video Background */
    &.has-video-bg {
        background-image: none !important; /* Ensure image doesn't override video */
    }
    
    .video-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        z-index: 0;
        
        video {
            position: absolute;
            top: 50%;
            left: 50%;
            min-width: 100%;
            min-height: 100%;
            width: auto;
            height: auto;
            transform: translateX(-50%) translateY(-50%);
            object-fit: cover;
        }
    }
    
    .title {
        max-width: 900px;
        margin: 0 auto;
        text-align: center;
        
        h1 {
            margin: 1rem 0;
            color: white;
        }
        
        .image-title-logo {
            margin: 2.25rem 0 1.5rem;
            display: flex;
            justify-content: center;
            align-items: center;
            
            img {
                width: 24rem;
                max-width: 90%;
                height: auto;
                display: block;
            }
        }
        
        p {
            font-size: 1.2rem;
            color: rgba(255, 255, 255, 0.9);
            margin: 0;
            text-wrap: balance;
            
            @media (max-width: 767px) {
                font-size: 1rem;
            }
        }
    }
}

/* ============================
   TEXT & IMAGE BLOCK
   ============================ */

section.text-image {
    padding: 6rem 0;
    position: relative;
    
    &.light-bg {
        background-color: var(--light-gray);
    }
    
    .text-image-wrapper {
        display: flex;
        align-items: center;
        gap: 4rem;
        flex-wrap: wrap;
        
        @media (max-width: 767px) {
            flex-direction: column;
            gap: 2rem;
        }
    }
    
    /* Diagonal stripes border accent - similar to USPs block */
    &.has-border-accent::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 24px;
        background: repeating-linear-gradient(
            -45deg,
            #f5f5f5,
            #f5f5f5 12px,
            #ffffff 12px,
            #ffffff 24px
        );
        opacity: 0.8;
    }
    
    .text-content {
        flex: 1;
        min-width: 300px;
        
        @media (max-width: 767px) {
            order: 1;
        }
        
        .section-subtitle {
            margin-bottom: 1.5rem;
        }
        
        .text-content-body {
            .button,
            a.button {
                margin-top: 1rem;
            }
        }
        
        .button,
        a.button {
            margin-top: 1rem;
        }
    }
    
    .image-content {
        flex: 1;
        min-width: 300px;
        
        @media (max-width: 767px) {
            order: 2;
        }
        
        figure {
            margin: 0;
            overflow: hidden;
            height: 100%;
            border-radius: var(--border-radius);
        }
        
        img {
            width: 100%;
            height: auto;
            display: block;
            transition: transform 0.5s ease;
            
            &:hover {
                transform: scale(1.03);
            }
        }
        
        &.fit-cover img {
            object-fit: cover;
        }
        
        &.fit-contain img {
            object-fit: contain;
        }
    }
    
    &.image-right .text-image-wrapper {
        flex-direction: row;
    }
    
    &.image-left .text-image-wrapper {
        flex-direction: row-reverse;
    }
    
    &.hide-image-mobile .image-content {
        @media (max-width: 767px) {
            display: none;
        }
    }
}

/* ============================
   TEXT & IMAGE STACK BLOCK
   ============================ */

section.text-image-stack {
    padding: 4rem 0;
    position: relative;
    background: white;
    
    &.light-bg {
        background-color: var(--light-gray);
    }
    
    /* Diagonal stripes border accent */
    &.has-border-accent::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 24px;
        background: repeating-linear-gradient(
            -45deg,
            #f5f5f5,
            #f5f5f5 12px,
            #ffffff 12px,
            #ffffff 24px
        );
        opacity: 0.8;
    }
    
    .text-image-stack-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        
        @media (max-width: 991px) {
            gap: 3rem;
        }
        
        @media (max-width: 767px) {
            grid-template-columns: 1fr;
            gap: 2rem;
        }
    }
    
    .text-content {
        flex: 1;
        min-width: 20rem;
        padding: 2rem 0;
        
        @media (max-width: 767px) {
            order: 1;
            padding: 0;
        }

        h1,
        h2 {
            margin: 0 0 1rem 0;
        }
        
        .button,
        a.button {
            margin-top: 1rem;
        }
    }
    
    .image-stack-content {
        flex: 1;
        min-width: 300px;
        position: relative;
        
        @media (max-width: 767px) {
            order: 2;
            height: 450px;
            margin-top: 2rem;
        }

        svg {
            height: 100%;
            width: 100%;
            object-fit: contain;
            position: absolute;
            top: 0;
            left: 0;
			opacity: 0.15;
        }
    }
    
    .image-stack-item {
        figure {
            margin: 0;
            height: 100%;
            width: 100%;
            box-shadow: var(--shadow);
            border-radius: var(--border-radius);
            overflow: hidden;
        }
        
        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.5s ease;
            will-change: transform;
        }
        
        &:hover img {
            transform: scale(1.05);
        }
    }
    
    .image-stack-item.image-1 {
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;
        height: 75%;
        width: 60%;
    }
    
    .image-stack-item.image-2 {
        position: absolute;
        height: 75%;
        width: 60%;
        bottom: 0;
        right: 0;
        z-index: 2;
    }
    
    &.hide-image-mobile .image-stack-content {
        @media (max-width: 767px) {
            display: none;
        }
    }
    
    /* Image Left variant - swap the order */
    &.image-left {
        .text-image-stack-wrapper {
            .text-content {
                order: 2;
            }
            
            .image-stack-content {
                order: 1;
            }
        }
    }
}

/* Sustainability page specific styling */
.page-id-25 .text-image-stack .x-logo-accent path {
    fill: #089c6f !important;
}

.page-id-25 .blockquote-block .feature-quote {
    border-left-color: #089c6f;
}

/* ============================
   IMAGE CREDITS / CAPTIONS
   ============================ */

.image-credit {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.55rem;
    padding: 0.15rem 0.35rem;
    border-radius: 2px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    letter-spacing: 0.02em;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    z-index: 5;
    max-width: calc(100% - 1rem);
    pointer-events: auto;
    
    a {
        color: rgba(255, 255, 255, 0.8);
        text-decoration: underline;
        text-underline-offset: 2px;
        
        &:hover {
            color: white;
        }
    }
}

/* Image credit in hero sections */
.image-credit-hero {
    bottom: 1rem;
    right: 1rem;
    
    @media (max-width: 767px) {
        bottom: 0.75rem;
        right: 0.75rem;
    }
}

/* Image 1 (front/top) in stack - position at top so it's not cut off */
.image-stack-item.image-1 .image-credit {
    bottom: auto;
    top: 0.5rem;
}

/* Ensure figure is positioned for absolute caption */
section.text-image .image-content figure,
section.text-image-stack .image-stack-item figure {
    position: relative;
}

/* ============================
   CTA BLOCK
   ============================ */

.cta-block {
    background-color: var(--primary);
    color: white;
    padding: 3rem 0;
    position: relative;
    
    @media (max-width: 767px) {
        padding: 2.5rem 0;
    }
    
    .cta-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 3rem;
        flex-wrap: wrap;
        
        @media (max-width: 767px) {
            flex-direction: column;
            align-items: flex-start;
            gap: 1.5rem;
            text-align: center;
        }
    }
    
    .cta-text {
        flex: 1;
        min-width: 250px;
        
        @media (max-width: 767px) {
            width: 100%;
        }
        
        h2 {
            font-size: 1.8rem;
            font-weight: 700;
            margin: 0 0 0.5rem;
            color: white;
        }
        
        p {
            font-size: 1rem;
            margin: 0;
            opacity: 0.8;
        }
    }
    
    .cta-buttons {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
        
        @media (max-width: 767px) {
            width: 100%;
            justify-content: center;
        }
        
        .button {
            margin: 0;
            white-space: nowrap;
            background-color: white;
            color: var(--primary);
            font-weight: 600;

            &::before {
                border-color: white;
            }
            
            &.outline {
                background-color: white;
                border: none;
                color: var(--primary);
                
                &::before {
                    border-color: white;
                }
                
                &:hover, &:focus {
                    background-color: white;
                }
            }
            
            &.secondary {
                background-color: var(--secondary);
                color: white;
                
                &::before {
                    border-color: var(--secondary);
                }
                
                &:hover, &:focus {
                    background: color-mix(in srgb, var(--secondary) 95%, white);
                }
            }
        }
    }
}

/* ============================
   TEAM GRID BLOCK
   ============================ */

.team-grid {
    padding: 4rem 0;
    
    @media (max-width: 767px) {
        padding: 3rem 0;
    }
    
    .team-grid-header {
        text-align: center;
        max-width: 900px;
        margin: 0 auto 3rem;
        
        @media (max-width: 767px) {
            margin-bottom: 2rem;
        }
        
        .row {
            display: block;
            
            @media (max-width: 991px) {
                gap: 1rem;
            }
        }
        
        .col-title {
            margin-bottom: 1rem;
            
            h2 {
                margin-top: 0;
                margin-bottom: 0.5rem;
            }
        }
        
        .col-subtitle {
            p {
                margin: 0;
                opacity: 0.7;
            }
        }
    }
    
    .team-filter {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        column-gap: 0.75rem;
        row-gap: 0.7rem;
        margin-bottom: 3rem;
        
        @media (max-width: 767px) {
            margin-bottom: 2rem;
        }
        
        .filter-btn {
            background: white;
            border: none;
            padding: 0.6rem 1.2rem;
            border-radius: 30px;
            color: var(--gray);
            font-weight: 500;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            
            &::after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                width: 100%;
                height: 0;
                background: var(--primary);
                opacity: 0.15;
                transition: height 0.3s ease;
                z-index: -1;
            }
            
            &:hover::after {
                height: 100%;
            }

            &:hover {
                background: var(--secondary);
                color: white;
            }
            
            &.active {
                background: var(--primary);
                color: white;
                
                &::after {
                    opacity: 0;
                }
            }
        }
    }
    
    .team-members {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
        gap: 2rem;
        position: relative;
        transition: height 0.4s ease;
        
        @media (max-width: 767px) {
            gap: 1.5rem;
        }
        
        .team-member {
            transition: opacity 0.5s ease, transform 0.4s ease, box-shadow 0.4s ease;
            opacity: 1;
            background: white;
            box-shadow: var(--shadow);
            overflow: hidden;
            height: 100%;
            border-radius: var(--border-radius);
            
            &:hover {
                transform: translateY(-8px);
                box-shadow: 0 12px 24px rgba(0,0,0,0.1);
                
                .card-image img {
                    transform: scale(1.05);
                }
            }
            
            &.hidden {
                opacity: 0;
                position: absolute;
                pointer-events: none;
                z-index: -1;
            }
            
            .card-image {
                width: 100%;
                position: relative;
                overflow: hidden;
                
                &.square {
                    aspect-ratio: 1 / 1;
                }
                
                img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    display: block;
                    transition: transform 0.5s ease;
                }
            }
            
            .card-content {
                padding: 1.5rem;
                position: relative;
                
                h3 {
                    font-size: 1.1rem;
                    margin: 0 0 0.25rem 0;
                }
                
                .card-meta {
                    color: var(--gray);
                    font-size: 0.85rem;
                    margin: 0;
                    font-weight: normal;
                }
                
                .member-name-wrapper {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    margin-bottom: 0.25rem;
                }
            }
        }
    }
    
    /* LinkedIn Link */
    .linkedin-link {
        color: #0077B5;
        transition: all 0.2s ease;
        display: inline-flex;
        align-items: center;
        margin-top: -0.2rem;
        line-height: 1;
        
        &:hover {
            color: #005582;
        }
        
        svg {
            width: 1.2rem;
            height: 1.2rem;
        }
    }
}

/* ============================
   FEATURE BOXES
   ============================ */

.feature-boxes {
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
    
    @media (max-width: 767px) {
        padding: 3rem 0;
    }
    
    #feature-boxes-particles {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        opacity: 0.4;
    }
    
    .container {
        position: relative;
        z-index: 1;
    }
    
    h2, h3 {
        color: white;
    }
    
    .feature-boxes-header {
        margin-bottom: 2rem; /* Reduced from 3rem to 2rem */
        
        @media (max-width: 767px) {
            margin-bottom: 1.5rem; /* Reduced from 2rem to 1.5rem */
        }
        
        .row {
            display: flex;
            justify-content: space-between;
            gap: 3rem;
            
            @media (max-width: 991px) {
                flex-direction: column;
                gap: 1rem;
            }
        }
        
        .col-title {
            flex: 1;
            min-width: 300px;
            
            h2 {
                margin-top: 0;
                margin-bottom: 0.5rem;
            }
        }
        
        .col-subtitle {
            flex: 1;
            min-width: 300px;
            
            p {
                margin: 0;
                opacity: 0.9;
                
                @media (max-width: 767px) {
                    font-size: 1rem;
                }
            }
        }
    }
    
    .feature-boxes-grid {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Fixed at exactly 2 columns */
        gap: 2rem;
        
        @media (max-width: 767px) {
            grid-template-columns: 1fr; /* Fixed at exactly 1 column on mobile */
            gap: 1.5rem;
        }
    }
    
    .feature-box-wrapper {
        height: 100%;
    }
    
    .feature-box {
        background-color: rgba(255, 255, 255, 0.05);
        border-radius: var(--border-radius);
        transition: transform 0.3s ease, background-color 0.3s ease;
        border: solid 1px rgba(255, 255, 255, 0.1);
        
        &:hover {
            background-color: rgba(255, 255, 255, 0.1);
            transform: translateY(-5px);
        }
        
        .feature-box-inner {
            padding: 1.5rem;
            display: flex;
            align-items: flex-start;
            gap: 1.5rem;
            height: 100%;
        }
        
        .feature-icon {
            flex: 0 0 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            
            img {
                width: 3.2rem;
                height: 3.2rem;
                border-radius: 0;
            }
        }
        
        .feature-content {
            flex: 1;
            
            h3 {
                font-size: 1.2rem;
                margin-top: 0;
                margin-bottom: 0.5rem;
            }
            
            p {
                margin: 0;
                opacity: 0.7;
                font-weight: 400;
                font-size: 0.9rem;
                line-height: 1.5;
            }
        }
    }
}

/* ============================
   PRODUCT LIST BLOCK
   ============================ */

.product-list-block {
    padding: 4rem 0 6rem;
    background: white;
    position: relative;
    overflow: hidden;
    
    @media (max-width: 768px) {
        padding: 3rem 0 4rem;
    }
    
    &.light-bg {
        background-color: var(--light-gray);
    }
    
    /* Background image with grayscale and diagonal fade */
    &.has-bg-image::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: var(--bg-image);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        filter: grayscale(100%);
        opacity: 0.05;
        z-index: 0;
    }
    
    .container {
        position: relative;
        z-index: 1;
    }
    
    .product-list-header {
        margin-bottom: 2rem;
        
        @media (max-width: 767px) {
            margin-bottom: 1.5rem;
        }
        
        .row {
            display: flex;
            justify-content: space-between;
            gap: 3rem;
            
            @media (max-width: 991px) {
                flex-direction: column;
                gap: 1rem;
            }
        }
        
        .col-heading {
            flex: 1;
            min-width: 300px;
            
            h2 {
                margin-top: 0;
                margin-bottom: 0.5rem;
                color: var(--secondary);
            }
        }
        
        .col-subheading {
            flex: 1;
            display: flex;
            align-items: center;
            
            p {
                margin: 0;
                font-size: 1.1rem;
                line-height: 1.6;
                color: var(--text);
            }
        }
    }
    
    .product-list {
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    
    .product-wrapper {
        width: 100%;
        border-top: 1px solid #e0e0e0;
        
        &:last-child {
            border-bottom: 1px solid #e0e0e0;
        }
    }
    
    .product-list-item {
        display: grid;
        grid-template-columns: 150px 1fr auto;
        gap: 2rem;
        align-items: center;
        padding: 1.5rem 0;
        transition: padding-left 0.3s ease, background-color 0.3s ease;
        
        @media (max-width: 767px) {
            grid-template-columns: 120px 1fr;
            gap: 1rem;
            padding: 1rem 0;
        }
        
        &:hover {
            padding-left: 10px;
            background-color: rgba(0, 0, 0, 0.02);
        }
    }
    
    .product-image {
        flex-shrink: 0;
        
        a {
            display: block;
            line-height: 0;
        }
        
        img {
            width: 150px;
            height: 80px;
            object-fit: cover;
            border-radius: 4px;
            
            @media (max-width: 767px) {
                width: 120px;
                height: 70px;
            }
        }
    }
    
    /* Image fit options */
    &.image-fit-contain .product-image img {
        object-fit: contain;
    }
    
    &.image-fit-cover .product-image img {
        object-fit: cover;
    }
    
    .product-info {
        flex: 1;
        min-width: 0;
        
        @media (max-width: 767px) {
            grid-column: 2;
        }
    }
    
    .product-title {
        margin: 0 0 0.3rem 0;
        font-size: 1.3rem;
        font-weight: 600;
        
        @media (max-width: 767px) {
            font-size: 1.1rem;
        }
        
        a {
            color: var(--secondary);
            text-decoration: none;
            transition: color 0.3s ease;
            
            &:hover {
                color: var(--primary);
            }
        }
    }
    
    .product-excerpt {
        color: var(--text);
        font-size: 0.95rem;
        line-height: 1.6;
        opacity: 0.75;
        
        @media (max-width: 767px) {
            font-size: 0.9rem;
        }
        
        p {
            margin: 0;
        }
    }
    
    .product-link {
        flex-shrink: 0;
        
        @media (max-width: 767px) {
            display: none;
        }
        
        .button {
            white-space: nowrap;
        }
    }
    
    .no-products {
        text-align: center;
        padding: 3rem 0;
        color: var(--text);
        
        p {
            font-size: 1.1rem;
        }
    }
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes rotate-text {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Video Popup Overlay */
.video-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    
    &.active {
        opacity: 1;
        visibility: visible;
    }
    
    .video-popup-container {
        position: relative;
        width: min(90vw, 90vh * 16 / 9);
        height: min(90vh, 90vw * 9 / 16);
        max-width: 90vw;
        max-height: 90vh;
        aspect-ratio: 16 / 9;
        transform: scale(0.9);
        transition: transform 0.3s ease;
    }
    
    &.active .video-popup-container {
        transform: scale(1);
    }
    
    .video-popup-iframe {
        width: 100%;
        height: 100%;
    }
    
    iframe {
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 1rem;
    }
    
    .video-popup-close {
        position: absolute;
        top: -20px;
        right: -20px;
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.8);
        border: 2px solid rgba(255, 255, 255, 0.5);
        border-radius: 50%;
        cursor: pointer;
        color: white;
        font-size: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
        
        &:hover {
            border-color: white;
            background: rgba(0, 0, 0, 1);
            transform: rotate(90deg);
        }
        
        svg {
            width: 20px;
            height: 20px;
        }
    }
}

/* ============================
   POSTS GRID BLOCK
   ============================ */

.posts-grid {
    padding: 4rem 0;
    
    @media (max-width: 767px) {
        padding: 3rem 0;
    }
    
    .posts-grid-header {
        text-align: center;
        max-width: 900px;
        margin: 0 auto 3rem;
        
        @media (max-width: 767px) {
            margin-bottom: 2rem;
        }
        
        .row {
            display: block;
            
            @media (max-width: 991px) {
                gap: 1rem;
            }
        }
        
        .col-title {
            margin-bottom: 1rem;
            
            h2 {
                margin-top: 0;
                margin-bottom: 0.5rem;
            }
        }
        
        .col-subtitle {
            p {
                margin: 0;
                opacity: 0.7;
            }
        }
    }
    
    .posts {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
        gap: 2rem;
        position: relative;
        
        @media (max-width: 767px) {
            gap: 1.5rem;
        }
        
        .post {
            background: white;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: transform 0.4s ease, box-shadow 0.4s ease;
            height: 100%;
            display: flex;
            flex-direction: column;
            border-radius: var(--border-radius);
            
            &:hover {
                transform: translateY(-8px);
                box-shadow: 0 12px 24px rgba(0,0,0,0.1);
                
                .card-image img {
                    transform: scale(1.05);
                }
            }
            
            .card-image {
                width: 100%;
                position: relative;
                overflow: hidden;
                aspect-ratio: 16 / 9;
                
                img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    display: block;
                    transition: transform 0.5s ease;
                }
                
                a {
                    display: block;
                    height: 100%;
                }
            }
            
            .card-content {
                padding: 1.5rem;
                position: relative;
                display: flex;
                flex-direction: column;
                flex-grow: 1;
                
                h3 {
                    font-size: 1.2rem;
                    margin: 0.5rem 0 0.75rem;
                    
                    a {
                        color: var(--secondary);
                        text-decoration: none;
                        transition: var(--transition);
                        
                        &:hover {
                            color: var(--primary);
                        }
                    }
                }
                
                .card-meta {
                    color: var(--gray);
                    font-size: 0.8rem;
                    font-weight: 500;
                    display: block;
                }
                
                .card-text {
                    margin: 0;
                    color: var(--text);
                    line-height: 1.5;
                    font-size: 0.875rem;
                }
                
                .card-link {
                    margin-top: auto;
                    font-weight: 600;
                    font-size: 0.875rem;
                    display: inline-flex;
                    align-items: center;
                    gap: 0.375rem;
                    text-decoration: none;
                    color: var(--primary);
                    transition: var(--transition);
                    
                    &:hover {
                        gap: 0.625rem;
                    }
                }
            }
        }
    }
}

/* ============================
   INTERACTIVE HISTORY TIMELINE
   ============================ */

.history-timeline {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: visible; /* Allow correct height calculation and background visibility */
    padding: 0;
    color: white;
    z-index: 0;
    /* No isolation to ensure fixed positioning works */
    
    /* Background container & images */
    .timeline-background-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: -1; /* Pushed behind the content */
        overflow: hidden;
    }
    
    .timeline-background {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 0;
        transition: opacity 1s ease-in-out, transform 0.5s ease-out;
        z-index: -1;
        will-change: transform, opacity;
        
        &.active {
            opacity: 1;
            z-index: 0;
        }
    }
    
    .timeline-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.65);
        z-index: 0;
    }
    
    /* Container */
    .timeline-container {
        position: relative;
        z-index: 10;
        pointer-events: auto; /* Ensure content is interactive */
    }
    
    /* Header */
    .timeline-header {
        margin-bottom: 3rem;
        text-align: center;
    }
    
    .timeline-title {
        font-size: 3rem;
        margin-bottom: 1rem;
        color: white;
    }
    
    .timeline-subtitle {
        max-width: 800px;
        margin: 0 auto;
        font-size: 1.2rem;
        opacity: 0.9;
    }
    
    /* Interactive Timeline */
    .interactive-timeline {
        position: relative;
        margin: 0 auto;
        padding: 7rem 0;
    }
    .timeline-line {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 4px;
        background-color: var(--primary, #3498db);
        transform: translateX(-50%);
        z-index: 1;
    }
    
    /* Timeline Items */
    .timeline-item {
        position: relative;
        margin-bottom: 6rem;
        min-height: 150px;
        transition: transform 0.3s ease;
        
        &:last-child {
            margin-bottom: 0;
        }
        
        &.active .timeline-marker .timeline-year {
            box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.4), 0 0 20px rgba(255, 255, 255, 0.6);
            transform: scale(1.1);
        }
    }
    
    /* Timeline Marker (Year Circle) */
    .timeline-marker {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        z-index: 5;
        
        .timeline-year {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 80px;
            height: 80px;
            background-color: var(--primary, #3498db);
            border-radius: 50%;
            color: white;
            font-weight: 700;
            font-size: 1.2rem;
            box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.2);
            transition: all 0.5s ease;
        }
    }
    
    /* Timeline Content */
    .timeline-content {
        position: relative;
        width: 45%;
        padding: 2rem;
        border-radius: 8px;
        background-color: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: all 0.5s ease;
        z-index: 2;
    }
    
    /* Blur/Unblur Effect */
    .blur-box {
        filter: blur(5px);
        opacity: 0.75;
        transform: scale(0.95);
        transition: filter 0.5s ease-out, opacity 0.5s ease-out, transform 0.5s ease-out;
        
        &.unblur {
            filter: blur(0);
            opacity: 1;
            transform: scale(1);
            
            .timeline-thumbnail img {
                transform: scale(1.02);
            }
        }
    }
    
    /* Timeline Item Title */
    .timeline-item-title {
        margin-top: 0;
        margin-bottom: 1.2rem;
        font-size: 1.5rem;
        color: white;
    }
    
    /* Timeline Item Description */
    .timeline-description {
        p {
            margin-top: 0;
            line-height: 1.6;
        }
    }
    
    /* Timeline Thumbnail */
    .timeline-thumbnail {
        overflow: hidden;
        border-radius: 6px;
        margin-bottom: 1.5rem;
        width: 100%;
        
        img {
            width: 100%;
            height: auto;
            object-fit: cover;
            transition: transform 0.3s ease;
        }
    }
    
    /* Left/Right Positioning */
    .item-left {
        .timeline-content {
            margin-right: auto;
            margin-left: 0;
        }
    }
    
    .item-right {
        .timeline-content {
            margin-left: auto;
            margin-right: 0;
        }
    }
    
    /* Responsive Styles */
    @media (max-width: 1024px) {
        .timeline-title {
            font-size: 2.5rem;
        }
        
        .timeline-content {
            width: 42%;
        }
    }
    
    @media (max-width: 767px) {
        .timeline-title {
            font-size: 2rem;
        }
        
        .timeline-line {
            left: 40px;
        }
        
        .timeline-year {
            width: 60px;
            height: 60px;
            font-size: 1rem;
        }
        
        .timeline-marker {
            left: 0px;
        }
        
        .timeline-item {
            margin-left: 40px;
        }
        
        .item-left .timeline-content,
        .item-right .timeline-content {
            width: calc(100% - 80px);
            margin-left: 80px;
            margin-right: 0;
            
            &:after {
                left: -15px;
                right: auto;
                top: 20px;
                border: none;
                border-bottom: 1px solid rgba(255, 255, 255, 0.2);
                border-left: 1px solid rgba(255, 255, 255, 0.2);
                transform: rotate(45deg);
            }
        }
    }
    
    @media (max-width: 480px) {
        .timeline-content {
            padding: 1.5rem;
        }
        
        .timeline-year {
            width: 50px;
            height: 50px;
            font-size: 0.9rem;
        }
    }
}

/* ============================
   USPS BLOCK
   ============================ */

.usps-block {
    padding: 4rem 0 6rem;
    text-wrap: balance;
    background: white;
    position: relative;
    
    @media (max-width: 768px) {
        padding: 3rem 0 5rem;
    }
    
    /* Diagonal stripes at the bottom - only when enabled */
    &.has-border-accent::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 24px;
        background: repeating-linear-gradient(
            -45deg,
            #f5f5f5,
            #f5f5f5 12px,
            #ffffff 12px,
            #ffffff 24px
        );
        opacity: 0.8;
    }
}

.usps-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    
    @media (max-width: 991px) {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    @media (max-width: 768px) {
        gap: 2.5rem;
    }
}

.usps-content {
    text-align: left;
    
    @media (max-width: 991px) {
        text-align: left;
    }
    
    h2 {
        margin-top: 0;
        margin-bottom: 1.5rem;
    }
    
    .button {
        margin-top: 1rem;
        display: inline-block;
    }
}

.usps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    
    @media (max-width: 768px) {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.usp-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    flex-direction: column;
    text-align: left;
    transition: var(--transition);
    border: solid 1px #e5e5e5;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

/* Clickable card styles */
.usp-item.has-link {
    text-decoration: none;
    cursor: pointer;
    
    &:hover {
        border-color: var(--primary);
        transform: translateY(-4px);
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        
        .usp-icon {
            background: var(--primary);
            transform: scale(1.05);
        }
        
        .usp-title {
            color: var(--primary);
        }
    }
}

.usp-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--secondary);
    border-radius: 0.25rem;
    display: flex;
    will-change: transform;
    align-items: center;
    justify-content: center;
    padding: 0.625rem;
    transition: var(--transition);
    
    @media (max-width: 768px) {
        width: 2.25rem;
        height: 2.25rem;
        padding: 0.5rem;
    }
    
    img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: brightness(0) invert(1); /* Make SVGs white */
    }
}

.usp-content {
    flex: 1;
    margin-top: 0.125rem;

        p { text-wrap: balance; }
}

.usp-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    transition: var(--transition);
}

.usp-description {
    font-size: 0.75rem;
    color: var(--text);
    line-height: 1.5;
    margin: 0;
}

/* Hover effects for non-linked items */
.usp-item:not(.has-link):hover .usp-icon {
    background: var(--primary);
    transform: scale(1.05);
}

/* Alternative layout for when there are 5 or 6 items */
.usps-grid:has(.usp-item:nth-child(5)),
.usps-grid:has(.usp-item:nth-child(6)) {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    
    @media (max-width: 768px) {
        grid-template-columns: 1fr;
    }
    
    .usp-item {
        gap: 1rem;
    }
    
    .usp-icon {
        width: 2.5rem;
        height: 2.5rem;
        padding: 0.5rem;
        background: var(--secondary);
    }
    
    .usp-title {
        font-size: 1rem;
    }
    
    .usp-description {
        font-size: 0.85rem;
    }
}

/* ============================
   BRANDS BLOCK
   ============================ */

.brands-block {
    padding: 4rem 0;
    
    &.bg-light {
        background: var(--light-gray);
    }
    
    &.bg-white {
        background: white;
    }
    
    @media (max-width: 768px) {
        padding: 3rem 0;
    }
}

.brands-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem;
}

.brands-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.brands-description {
    font-size: 1.125rem;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
    opacity: 0.8;
    hyphens: none;
    word-break: normal;
}

.brands-grid {
    display: grid;
    gap: 2rem;
    
    /* Default to 4 columns */
    grid-template-columns: repeat(4, 1fr);
    
    @media (max-width: 1024px) {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    @media (max-width: 768px) {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

/* 3 column layout */
.brands-block[data-columns="3"] .brands-grid {
    grid-template-columns: repeat(3, 1fr);
    
    @media (max-width: 1024px) {
        grid-template-columns: repeat(2, 1fr);
    }
    
    @media (max-width: 768px) {
        grid-template-columns: 1fr;
    }
}

/* 4 column layout (explicit for clarity) */
.brands-block[data-columns="4"] .brands-grid {
    grid-template-columns: repeat(4, 1fr);
    
    @media (max-width: 1024px) {
        grid-template-columns: repeat(2, 1fr);
    }
    
    @media (max-width: 768px) {
        grid-template-columns: 1fr;
    }
}

.brand-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    
    &:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        text-decoration: none;
        color: inherit;
        
        .brand-image img {
            transform: scale(1.05);
        }
    }
}

.brand-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    border-bottom: 3px solid var(--border-color); /* Fallback color */
    
    @media (max-width: 768px) {
        padding: 2rem;
    }
    
    .brand-bg-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        opacity: 0.1;
        filter: grayscale(60%);
        z-index: 1;
        transition: opacity 0.3s ease;
    }
    
    img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
        transition: transform 0.3s ease;
        position: relative;
        z-index: 2;
    }
}

/* Full image mode - show image at full opacity covering the card */
.brand-card.full-image-mode {
    .brand-image {
        padding: 0;
        
        img {
            width: 100%;
            height: 100%;
            max-width: 100%;
            max-height: 100%;
            object-fit: cover;
        }
    }
    
    /* Aspect ratio options */
    &.aspect-16-9 .brand-image {
        aspect-ratio: 16 / 9;
    }
    
    &.aspect-4-3 .brand-image {
        aspect-ratio: 4 / 3;
    }
    
    &.aspect-1-1 .brand-image {
        aspect-ratio: 1 / 1;
    }
    
    &.aspect-3-4 .brand-image {
        aspect-ratio: 3 / 4;
    }
    
    /* Contain mode - add padding and white background */
    &.fit-contain .brand-image {
        padding: 1rem;
        background: white;
        
        img {
            object-fit: contain;
        }
    }
}

.brand-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    
    @media (max-width: 768px) {
        padding: 1.25rem;
    }
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 0.75rem 0;
    line-height: 1.3;
}

.brand-excerpt {
    font-size: 0.85rem;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

/* Industries Block - Diagonal Image Grid */
.industries-block {
    padding: 4rem 0 5rem 0;
    background: white;
    overflow: hidden;
    position: relative;
    
    /* Diagonal stripes border accent */
    &.has-border-accent::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 24px;
        background: repeating-linear-gradient(
            -45deg,
            #f5f5f5,
            #f5f5f5 12px,
            #ffffff 12px,
            #ffffff 24px
        );
        opacity: 0.8;
    }
}

.industries-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 4rem;
}

.industries-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.industries-description {
    font-size: 1.125rem;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
    opacity: 0.8;
    hyphens: none;
    word-break: normal;
}

.industries-grid-wrapper {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

.industries-grid {
    display: flex;
    width: 100%;
    height: 500px;
    position: relative;
    gap: 4px;
    
    @media (max-width: 1200px) {
        flex-direction: column;
        height: auto;
        gap: 1rem;
    }
    
    @media (max-width: 991px) {
        height: auto;
    }
    
    @media (max-width: 767px) {
        gap: 1rem;
    }
}

.industry-item {
    position: relative;
    display: block;
    text-decoration: none;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, z-index;
    flex: 1;
    overflow: hidden;
    
    @media (min-width: 1201px) {
        height: 100%;
    }
    
    @media (max-width: 1200px) {
        height: 350px;
        flex: 0 0 auto;
    }
    
    @media (max-width: 767px) {
        height: 300px;
    }
    
    &:nth-child(1) {
        z-index: 3;
        clip-path: polygon(0 0, 100% 0, calc(100% - 50px) 100%, 0 100%);
        
        @media (max-width: 1200px) {
            clip-path: none;
            margin: 0;
        }
    }
    
    &:nth-child(2) {
        z-index: 2;
        margin: 0 -50px;
        clip-path: polygon(50px 0, 100% 0, calc(100% - 50px) 100%, 0 100%);
        
        @media (max-width: 1200px) {
            margin: 0;
            clip-path: none;
        }
    }
    
    &:nth-child(3) {
        z-index: 1;
        clip-path: polygon(50px 0, 100% 0, 100% 100%, 0 100%);
        
        @media (max-width: 1200px) {
            clip-path: none;
            margin: 0;
        }
    }
    
    /* Hover effects */
    &:hover {
        z-index: 10 !important;
        
        .industry-image img {
            transform: scale(1.05);
        }
        
        .industry-overlay {
            background: linear-gradient(to top, rgba(15, 21, 38, 0.85) 0%, rgba(15, 21, 38, 0.5) 50%, rgba(15, 21, 38, 0.2) 100%);
        }
        
        .industry-title {
            transform: translateY(0);
        }
        
        .industry-link-text {
            transform: translateY(0);
            opacity: 1;
        }
    }
}

.industry-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    
    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        will-change: transform;
    }
}

.industry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 21, 38, 0.7) 0%, rgba(15, 21, 38, 0.3) 50%, transparent 100%);
    transition: background 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 2rem 2rem;
    text-align: center;
    
    @media (max-width: 991px) {
        padding: 1.75rem 1.5rem;
    }
}

.industry-title {
    font-size: clamp(1.5rem, 1.8vw, 2rem);
    font-weight: 700;
    color: white;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(30px);
    transition: transform 0.4s ease;
    
    @media (max-width: 767px) {
        font-size: 1.5rem;
        transform: translateY(0);
    }
}

.industry-link-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s ease;
    
    @media (max-width: 767px) {
        transform: translateY(0);
        opacity: 1;
    }
    
    .material-symbols-outlined {
        font-size: 1.2rem;
        transition: transform 0.3s ease;
    }
}

.industry-item:hover .industry-link-text .material-symbols-outlined {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 767px) {
    .industries-block {
        padding: 3rem 0;
    }
    
    .industries-header {
        margin-bottom: 3rem;
        padding: 0 1rem;
    }
    
    .industries-heading {
        font-size: 2rem;
    }
    
    .industries-description {
        font-size: 1rem;
    }
}

/* ============================
   SINGLE POST TEMPLATE
   ============================ */

.single-post {
    background: white;
}

/* Post Header */
.post-header {
    padding: 4rem 0 13rem;
    background: var(--secondary);
    margin-bottom: 0;
    position: relative;
    
    @media (max-width: 768px) {
        padding: 3rem 0 11rem;
    }
    
    #particles-js-post-header {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
    }
    
    .container {
        position: relative;
        z-index: 1;
    }
}

.post-header-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem 0 2rem;
    
    @media (max-width: 768px) {
        padding: 0.75rem 0 1.5rem;
    }
}

.post-date {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    
    @media (max-width: 768px) {
        gap: 1rem;
        margin-top: 1.25rem;
    }
}

.post-categories,
.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    
    li {
        margin: 0;
    }
}

.post-categories a {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.35rem 0.75rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    
    &:hover {
        background-color: var(--primary-hover);
        color: white;
    }
}

.post-tags a {
    display: inline-block;
    background-color: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.35rem 0.75rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    
    &:hover {
        background-color: var(--primary);
        color: white;
    }
}

.post-title {
    font-size: clamp(1.75rem, 1rem + 2vw, 2.5rem);
    font-weight: 800;
    color: white;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    text-wrap: pretty;
}

.post-excerpt {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
    
    @media (max-width: 768px) {
        font-size: 1.1rem;
    }
}

/* Featured Image */
.post-featured-image {
    position: relative;
    max-width: 900px;
    margin: -10rem auto 3rem;
    z-index: 1;
    
    @media (max-width: 768px) {
        margin: -8rem auto 2rem;
    }
    
    figure {
        margin: 0;
        overflow: hidden;
        border-radius: var(--border-radius);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }
    
    img {
        width: 100%;
        height: auto;
        display: block;
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }
}

/* Post Content */
.post-content {
    padding: 0 0 4rem;
    background: white;
    position: relative;
    
    @media (max-width: 768px) {
        padding: 0 0 3rem;
    }
}

.post-body {
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text);
    
    @media (max-width: 768px) {
        font-size: 1rem;
    }
    
    h2, h3, h4, h5, h6 {
        margin-top: 3rem;
        margin-bottom: 1.5rem;
        color: var(--secondary);
        font-weight: 700;
        line-height: 1.3;
        
        &:first-child {
            margin-top: 0;
        }
    }
    
    h2 {
        font-size: 1.75rem;
        border-bottom: 3px solid var(--primary);
        padding-bottom: 0.5rem;
        margin-bottom: 1.75rem;
        
        @media (max-width: 768px) {
            font-size: 1.5rem;
        }
    }
    
    h3 {
        font-size: 1.4rem;
        
        @media (max-width: 768px) {
            font-size: 1.25rem;
        }
    }
    
    h4 {
        font-size: 1.25rem;
        
        @media (max-width: 768px) {
            font-size: 1.1rem;
        }
    }
    
    h5 {
        font-size: 1.1rem;
    }
    
    h6 {
        font-size: 1rem;
        font-weight: 600;
    }
    
    blockquote {
        border-left: 4px solid var(--primary);
        margin: 2rem 0;
        padding: 1.5rem 2rem;
        background: var(--light-gray);
        font-style: italic;
        font-size: 1.1rem;
        
        @media (max-width: 768px) {
            font-size: 1rem;
            padding: 1.25rem 1.5rem;
        }
        
        p:last-child {
            margin-bottom: 0;
        }
    }
    
    img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        box-shadow: var(--shadow);
        margin: 2rem 0;
    }
    
    .wp-block-image {
        margin: 2rem 0;
        
        figcaption {
            font-size: 0.9rem;
            color: var(--gray);
            text-align: center;
            margin-top: 0.5rem;
            font-style: italic;
        }
    }
}

/* Page Links for paginated posts */
.page-links {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    
    .page-links-title {
        font-weight: 600;
        color: var(--secondary);
        margin-right: 1rem;
    }
    
    a {
        display: inline-block;
        padding: 0.5rem 0.8rem;
        margin: 0 0.25rem;
        background: white;
        border-radius: var(--border-radius);
        color: var(--primary);
        text-decoration: none;
        font-weight: 600;
        transition: var(--transition);
        
        &:hover {
            background: var(--primary);
            color: white;
        }
    }
}

/* Post Share Button */
.post-share-button {
    margin: 2rem auto 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Post Navigation */
.post-navigation {
    background: var(--light-gray);
    padding: 3rem 0;
    
    @media (max-width: 768px) {
        padding: 2rem 0;
    }
}

.post-nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    
    @media (max-width: 768px) {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.nav-previous,
.nav-next {
    a {
        display: block;
        padding: 2rem;
        background: white;
        border-radius: var(--border-radius);
        text-decoration: none;
        transition: var(--transition);
        box-shadow: var(--shadow);
        height: 100%;
        
        &:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
        }
    }
}

.nav-previous {
    text-align: left;
}

.nav-next {
    text-align: right;
    
    @media (max-width: 768px) {
        text-align: left;
    }
}

.nav-direction {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
    
    .material-symbols-outlined {
        font-size: 1.2rem;
    }
}

.nav-next .nav-direction {
    justify-content: flex-end;
    
    @media (max-width: 768px) {
        justify-content: flex-start;
    }
}

.nav-title {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.3;
}

/* Comments Area */
.comments-area {
    background: white;
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    
    @media (max-width: 768px) {
        padding: 3rem 0;
    }
}

.comments-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 2rem 0;
    
    span {
        color: var(--primary);
    }
}

/* Comment List */
.comment-list {
    list-style: none;
    margin: 0 0 3rem 0;
    padding: 0;
}

.comment-list .comment {
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 8px;
    
    .children {
        margin-top: 2rem;
        margin-left: 2rem;
        list-style: none;
        padding: 0;
        
        @media (max-width: 768px) {
            margin-left: 1rem;
        }
        
        .comment {
            background: white;
            border: 2px solid var(--border-color);
        }
    }
}

.comment-body {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    
    @media (max-width: 768px) {
        gap: 1rem;
    }
}

.comment-author {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    flex: 1;
    
    img {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        object-fit: cover;
        flex-shrink: 0;
        
        @media (max-width: 768px) {
            width: 50px;
            height: 50px;
        }
    }
}

.comment-metadata {
    .fn {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--secondary);
        font-style: normal;
    }
    
    a {
        color: var(--gray);
        font-size: 0.85rem;
        text-decoration: none;
        
        &:hover {
            color: var(--primary);
        }
    }
}

.comment-content {
    margin-top: 1rem;
    line-height: 1.6;
    color: var(--text);
    
    p:last-child {
        margin-bottom: 0;
    }
}

.comment-awaiting-moderation {
    color: var(--primary);
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.reply {
    margin-top: 1rem;
    
    a {
        color: var(--primary);
        font-size: 0.9rem;
        font-weight: 600;
        text-decoration: none;
        
        &:hover {
            color: var(--primary-hover);
        }
    }
}

/* Comment Form */
.comment-respond {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 3rem;
}

.comment-reply-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0 0 1.5rem 0;
}

.comment-form {
    display: grid;
    gap: 1.5rem;
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
    label {
        display: block;
        font-weight: 600;
        color: var(--secondary);
        margin-bottom: 0.5rem;
        
        .required {
            color: var(--primary);
        }
    }
    
    input {
        width: 100%;
        padding: 0.8rem;
        border: 2px solid var(--border-color);
        border-radius: 6px;
        font-size: 1rem;
        transition: var(--transition);
        
        &:focus {
            outline: none;
            border-color: var(--primary);
        }
    }
}

.comment-form-comment {
    label {
        display: block;
        font-weight: 600;
        color: var(--secondary);
        margin-bottom: 0.5rem;
        
        .required {
            color: var(--primary);
        }
    }
    
    textarea {
        width: 100%;
        padding: 0.8rem;
        border: 2px solid var(--border-color);
        border-radius: 6px;
        font-size: 1rem;
        font-family: inherit;
        resize: vertical;
        min-height: 120px;
        transition: var(--transition);
        
        &:focus {
            outline: none;
            border-color: var(--primary);
        }
    }
}

.form-submit {
    .button {
        background: var(--primary);
        color: white;
        padding: 0.8rem 2rem;
        border: none;
        border-radius: 6px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
        
        &:hover {
            background: var(--primary-hover);
        }
    }
}

/* Comments Navigation */
.comment-navigation {
    margin: 2rem 0;
    
    .nav-links {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        
        a {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.8rem 1.5rem;
            background: white;
            border: 2px solid var(--border-color);
            border-radius: 6px;
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
            transition: var(--transition);
            
            &:hover {
                background: var(--primary);
                color: white;
                border-color: var(--primary);
            }
            
            .material-symbols-outlined {
                font-size: 1.2rem;
            }
        }
    }
}

.no-comments {
    color: var(--gray);
    font-style: italic;
    text-align: center;
    padding: 2rem;
    background: var(--light-gray);
    border-radius: 8px;
}

/* ============================
   END SINGLE POST TEMPLATE
   ============================ */

/* ============================
   DISTRIBUTORS BLOCK
   ============================ */

.distributors-block {
    padding: 0 0 4rem 0;
    text-wrap: pretty;
    background: white;
    
    @media (max-width: 768px) {
        padding: 0 0 3rem 0;
    }
}

.distributors-map-wrapper {
    position: relative;
    margin: 0 0 4rem 0;
    
    @media (max-width: 768px) {
        margin-bottom: 3rem;
    }
}

/* Custom Overlay Popup System */
.distributor-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.distributor-overlay.overlay-open {
    opacity: 1;
    visibility: visible;
}

.overlay-content {
    position: relative;
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    overflow: visible;
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s ease;
    padding: 18px;
}

.distributor-overlay.overlay-open .overlay-content {
    transform: scale(1) translateY(0);
}

.overlay-close {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 36px;
    height: 36px;
    will-change: transform;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.overlay-close:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

/* Enhanced shadow for overlay cards */
.distributor-overlay .distributor-card {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 8px 20px rgba(0, 0, 0, 0.1);
    max-height: calc(90vh - 36px);
    overflow-y: auto;
}

/* Consistent glassy styling for all popups/tooltips */
.leaflet-tooltip,
.scroll-hint,
.distributors-filters,
.leaflet-control-attribution {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(8px);
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 10px 16px !important;
}

.leaflet-tooltip.persistent-tooltip {
    background: rgba(0, 0, 0, 0.8) !important;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    padding: 10px 16px !important;
}

.leaflet-tooltip::before {
    border-top-color: rgba(0, 0, 0, 0.7) !important;
}

.leaflet-control-attribution a {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.7rem !important;
}

.leaflet-control-attribution a:hover {
    color: white !important;
}

.distributors-filters .filter-label {
    color: white !important;
}

.distributors-filters .checkbox-label {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Marker highlighting and animations */
.leaflet-marker-icon.highlighted {
    z-index: 1000 !important;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .distributor-overlay {
        padding: 1rem;
        align-items: flex-start;
        padding-top: 2rem;
    }
    
    .overlay-content {
        max-width: 100%;
        max-height: 85vh;
        margin: 5px;
        padding: 8px;
    }
}
.distributors-list .distributor-card,
.popup-distributor-card {
    background: white;
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    overflow: hidden;
    position: relative;
}

.distributors-list .distributor-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.distributors-list .distributor-card .distributor-header,
.popup-distributor-card .distributor-header {
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    padding: 1.25rem 1.25rem 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.distributors-list .distributor-card .distributor-header-left,
.popup-distributor-card .distributor-header-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.distributors-list .distributor-card .distributor-region,
.popup-distributor-card .distributor-region {
    margin: 0;
}

.distributors-list .distributor-card .distributor-region .tag,
.popup-distributor-card .distributor-region .tag {
    font-size: 0.65rem;
    padding: 0.25rem 0.75rem;
    letter-spacing: 1px;
    background: var(--primary);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-transform: uppercase;
}

.distributors-list .distributor-card .distributor-name,
.popup-distributor-card .distributor-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
    line-height: 1.3;
}

.distributors-list .distributor-card .distributor-logo,
.popup-distributor-card .distributor-logo {
    flex: 0 0 auto;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

.distributors-list .distributor-card .distributor-logo img,
.popup-distributor-card .distributor-logo img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    display: block;
}

.distributors-list .distributor-card .distributor-content,
.popup-distributor-card .distributor-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.distributors-list .distributor-card .distributor-address p,
.popup-distributor-card .distributor-address p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text);
    line-height: 1.5;
}

.distributors-list .distributor-card .distributor-contact,
.popup-distributor-card .distributor-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.distributors-list .distributor-card .distributor-contact .contact-item,
.popup-distributor-card .distributor-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.distributors-list .distributor-card .distributor-contact .contact-icon,
.popup-distributor-card .distributor-contact .contact-icon {
    width: 2rem;
    height: 2rem;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.distributors-list .distributor-card .distributor-contact .contact-icon .material-symbols-outlined,
.popup-distributor-card .distributor-contact .contact-icon .material-symbols-outlined {
    font-size: 1.1rem;
    color: var(--primary);
}

.distributors-list .distributor-card .distributor-contact .contact-details,
.popup-distributor-card .distributor-contact .contact-details {
    flex: 1;
    min-width: 0;
}

.distributors-list .distributor-card .distributor-contact .contact-details a,
.popup-distributor-card .distributor-contact .contact-details a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
}

.distributors-list .distributor-card .distributor-contact .contact-details a:hover,
.popup-distributor-card .distributor-contact .contact-details a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.distributors-list .distributor-card .distributor-info,
.popup-distributor-card .distributor-info {
    margin-top: 0.75rem;
}

.distributors-list .distributor-card .distributor-info summary,
.popup-distributor-card .distributor-info summary {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    padding: 0.5rem 0;
    transition: var(--transition);
    list-style: none;
}

.distributors-list .distributor-card .distributor-info summary::-webkit-details-marker,
.popup-distributor-card .distributor-info summary::-webkit-details-marker {
    display: none;
}

.distributors-list .distributor-card .distributor-info summary::before,
.popup-distributor-card .distributor-info summary::before {
    content: "▶";
    display: inline-block;
    margin-right: 0.5rem;
    transition: transform 0.2s ease;
    font-size: 0.6rem;
}

.distributors-list .distributor-card .distributor-info summary:hover,
.popup-distributor-card .distributor-info summary:hover {
    color: var(--primary);
}

.distributors-list .distributor-card .distributor-info[open] summary::before,
.popup-distributor-card .distributor-info[open] summary::before {
    transform: rotate(90deg);
}

.distributors-list .distributor-card .distributor-info p,
.popup-distributor-card .distributor-info p {
    margin: 0.5rem 0 0 0;
    font-size: 0.75rem;
    color: var(--text);
    line-height: 1.4;
    padding-left: 0;
}

.distributors-list .distributor-card .distributor-website-button,
.popup-distributor-card .distributor-website-button {
    margin-top: auto;
    padding-top: 0.75rem;
}

.distributors-list .distributor-card .distributor-website-button .website-button,
.popup-distributor-card .distributor-website-button .website-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    color: var(--text);
    text-decoration: none;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid #dee2e6;
    width: 100%;
    text-align: center;
}

.distributors-list .distributor-card .distributor-website-button .website-button .material-symbols-outlined,
.popup-distributor-card .distributor-website-button .website-button .material-symbols-outlined {
    font-size: 1rem;
}

.distributors-list .distributor-card .distributor-website-button .website-button:hover,
.popup-distributor-card .distributor-website-button .website-button:hover {
    background: #e9ecef;
    text-decoration: none;
}

.distributors-list .distributor-card .distributor-brands,
.popup-distributor-card .distributor-brands {
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.distributors-list .distributor-card .distributor-brands .brand-logos,
.popup-distributor-card .distributor-brands .brand-logos {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.distributors-list .distributor-card .distributor-brands .brand-logo,
.popup-distributor-card .distributor-brands .brand-logo {
    flex: 0 0 auto;
    width: 80px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 0.25rem;
    transition: var(--transition);
}

.distributors-list .distributor-card .distributor-brands .brand-logo:hover,
.popup-distributor-card .distributor-brands .brand-logo:hover {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.distributors-list .distributor-card .distributor-brands .brand-logo img,
.popup-distributor-card .distributor-brands .brand-logo img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    display: block;
}

/* Popup Card Implementation */
.distributors-map .leaflet-popup-content-wrapper {
    border-radius: 8px;
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: visible;
    max-width: 380px;
    min-width: 350px;
}

.distributors-map .leaflet-popup-content {
    margin: 0;
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
}

.distributors-map .leaflet-popup-tip {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.popup-distributor-card {
    border-radius: 8px;
    box-shadow: none;
}

.popup-distributor-card .distributor-content {
    padding-bottom: 0.75rem;
}

.popup-distributor-card .popup-close-hint {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1000;
}

.popup-distributor-card .popup-close-hint:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

/* Highlight effect for grid cards */
.distributor-card.highlight-card {
    animation: highlightPulse 2.5s ease;
    z-index: 10;
    position: relative;
}

@keyframes highlightPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    15% {
        transform: scale(1.02);
        box-shadow: 0 8px 25px rgba(173, 29, 63, 0.3);
    }
    30% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(173, 29, 63, 0.2);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
}

.distributors-map {
    width: 100%;
    height: 75vh;
    min-height: 500px;
    position: relative;
    
    /* Brand-inspired map styling */
    filter: hue-rotate(10deg) contrast(1.1) brightness(0.95);
    
    @media (max-width: 768px) {
        height: 80vh;
        min-height: 400px;
    }
    
    /* Custom tile overlay for subtle branding */
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(45deg, 
            rgba(173, 29, 63, 0.02) 0%, 
            transparent 30%, 
            transparent 70%, 
            rgba(173, 29, 63, 0.02) 100%);
        pointer-events: none;
        z-index: 1;
        mix-blend-mode: multiply;
    }
}

.distributors-filters {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12), 0 1px 4px rgba(0, 0, 0, 0.08);
    padding: 1rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.8rem;
    min-width: 200px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #333;
    
    @media (max-width: 800px) {
        display: none;
    }
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 0.1rem 0;
}

.filter-label {
    color: #555;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-label::before {
    content: '';
    width: 3px;
    height: 12px;
    background: var(--primary);
    border-radius: 1px;
}

.brand-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 500;
    color: #666;
    white-space: nowrap;
    transition: all 0.2s ease;
    padding: 0.25rem;
    border-radius: 4px;
    
    &:hover {
        color: #333;
        background: rgba(0, 0, 0, 0.03);
    }
    
    input[type="checkbox"],
    input[type="radio"] {
        width: 14px;
        height: 14px;
        margin: 0;
        cursor: pointer;
        flex-shrink: 0;
        accent-color: var(--primary);
    }
}

.distributors-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    
    @media (max-width: 1550px) {
        grid-template-columns: repeat(2, 1fr);
    }
    
    @media (max-width: 1000px) {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.distributor-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    
    &.hidden {
        display: none;
    }
    
    &.highlight {
        border-color: var(--primary);
        box-shadow: 0 8px 24px rgba(173, 29, 63, 0.15);
        transform: translateY(-2px);
    }
}

.distributor-header {
    padding: 1.25rem 1.25rem 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    
    @media (max-width: 768px) {
        padding: 1rem 1rem 0.75rem;
    }
}

.distributor-header-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 0;
}

.distributor-region {
    margin: 0;
    
    .tag {
        font-size: 0.65rem;
        padding: 0.25rem 0.75rem;
        letter-spacing: 1px;
        background: var(--primary);
        color: white;
        border-radius: var(--border-radius);
        font-weight: 600;
        text-transform: uppercase;
    }
}

.distributor-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 0;
    line-height: 1.3;
    
    @media (max-width: 768px) {
        font-size: 1rem;
    }
}

.distributor-logo {
    flex: 0 0 auto;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    
    @media (max-width: 768px) {
        width: 60px;
        height: 60px;
    }
    
    img {
        max-width: 85%;
        max-height: 85%;
        object-fit: contain;
        display: block;
    }
}

.distributor-content {
    padding: 1.25rem;
    font-size: 0.9rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    
    @media (max-width: 768px) {
        padding: 1rem;
        gap: 0.875rem;
    }
}

.distributor-address {
    margin-bottom: 0.75rem;
    
    p {
        margin: 0;
        line-height: 1.4;
        color: var(--text);
        font-size: 0.85rem;
    }
}

.distributor-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    
    .contact-details {
        flex: 1;
        
        a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 500;
            font-size: 0.8rem;
            transition: var(--transition);
            
            &:hover {
                color: var(--primary-hover);
                text-decoration: underline;
            }
        }
        
        p, span {
            font-size: 0.8rem;
            line-height: 1.4;
            margin: 0;
        }
    }
}

.contact-icon {
    width: 1.75rem;
    height: 1.75rem;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    
    .material-symbols-outlined {
        font-size: 1rem;
        color: var(--gray);
    }
}

.distributor-website-button {
    margin-top: auto;
    padding-top: 0.75rem;
    
    .website-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        background: #f8f9fa;
        color: var(--text);
        text-decoration: none;
        border-radius: 0;
        font-size: 0.8rem;
        font-weight: 500;
        transition: var(--transition);
        border: 1px solid #dee2e6;
        width: 100%;
        text-align: center;
        
        .material-symbols-outlined {
            font-size: 1rem;
        }
        
        &:hover {
            background: #e9ecef;
            text-decoration: none;
        }
    }
}

.show-on-map-icon {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(173, 29, 63, 0.3);
    z-index: 2;
    
    .material-symbols-outlined {
        font-size: 1.25rem;
    }
    
    &:hover {
        background: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(173, 29, 63, 0.4);
    }
    
    @media (max-width: 768px) {
        width: 2.25rem;
        height: 2.25rem;
        bottom: 0.75rem;
        right: 0.75rem;
        
        .material-symbols-outlined {
            font-size: 1.1rem;
        }
    }
}

.distributor-info {
    margin-top: 0.75rem;
    
    summary {
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--gray);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        cursor: pointer;
        padding: 0.5rem 0;
        transition: var(--transition);
        list-style: none;
        
        &::-webkit-details-marker {
            display: none;
        }
        
        &::before {
            content: "▶";
            display: inline-block;
            margin-right: 0.5rem;
            transition: transform 0.2s ease;
            font-size: 0.6rem;
        }
        
        &:hover {
            color: var(--primary);
        }
    }
    
    &[open] summary::before {
        transform: rotate(90deg);
    }
    
    p {
        margin: 0.5rem 0 0 0;
        font-size: 0.75rem;
        color: var(--text);
        line-height: 1.4;
        padding-left: 0;
    }
}

.distributor-brands {
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.brand-logos {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.brand-logo {
    flex: 0 0 auto;
    width: 80px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    padding: 0.25rem;
    transition: var(--transition);
    
    &:hover {
        background: white;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    }
    
    img {
        max-width: 90%;
        max-height: 90%;
        object-fit: contain;
        display: block;
    }
    
    @media (max-width: 768px) {
        width: 65px;
        height: 35px;
        padding: 0.2rem;
    }
}

.distributors-map .leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.distributors-map .leaflet-popup-content {
    margin: 0.75rem;
    min-width: 220px;
    max-width: 280px;
    font-size: 0.85rem;
    line-height: 1.4;
}

.distributors-map .leaflet-popup-close-button {
    color: var(--gray) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

.distributors-map .leaflet-control-zoom {
    border-radius: 6px !important;
    overflow: hidden;
}

.distributors-map .leaflet-control-zoom a {
    border-radius: 0 !important;
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--secondary) !important;
    font-weight: 700;
    transition: var(--transition) !important;
}

.distributors-map .leaflet-control-zoom a:hover {
    background-color: var(--primary) !important;
    color: white !important;
}

.distributors-map .leaflet-control-zoom a:last-child {
    border-bottom: none !important;
}

/* Fullscreen control styling */
.distributors-map .leaflet-control-fullscreen {
    background: white !important;
    border-radius: 6px !important;
    overflow: hidden;
    margin-left: 10px !important;
}

.distributors-map .leaflet-control-fullscreen a {
    background: white !important;
    color: var(--secondary) !important;
    font-weight: 700;
    transition: var(--transition) !important;
    border: none !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    
    &:hover {
        background-color: var(--primary) !important;
        color: white !important;
    }
    
    &::before {
        content: "⛶";
        font-size: 16px;
        line-height: 1;
    }
}

.distributors-map .leaflet-control-attribution {
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.55rem !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 4px 0 0 0 !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    
    a {
        color: rgba(255, 255, 255, 0.9) !important;
        text-decoration: none;
        font-size: 0.55rem !important;
        
        &:hover {
            color: white !important;
            text-decoration: underline;
        }
    }
}

.distributors-map .leaflet-popup-content-wrapper .distributor-popup {
    text-align: left;
    font-family: inherit;
    padding: 0 !important;
    margin: 0 !important;
    
    .popup-header {
        display: flex !important;
        align-items: flex-start !important;
        justify-content: space-between !important;
        gap: 0.75rem;
        margin: 0 0 0.75rem 0 !important;
        padding: 0.75rem !important;
        border-bottom: 1px solid #f0f0f0 !important;
        background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%) !important;
    }
    
    .popup-header-left {
        flex: 1;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.4rem;
        min-width: 0;
    }
    
    .popup-name {
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        color: var(--secondary) !important;
        margin: 0 !important;
        line-height: 1.3 !important;
    }
    
    .popup-distributor-logo {
        flex: 0 0 auto;
        width: 50px !important;
        height: 50px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #f8f9fa !important;
        border: 1px solid #e9ecef !important;
        border-radius: 4px !important;
        
        img {
            max-width: 85% !important;
            max-height: 85% !important;
            object-fit: contain !important;
            display: block !important;
        }
    }
    
    .popup-content {
        margin-bottom: 0.75rem !important;
        padding: 0 0.75rem !important;
    }
    
    .popup-address {
        font-size: 0.75rem !important;
        color: var(--text) !important;
        line-height: 1.4 !important;
        margin-bottom: 0.6rem !important;
    }
    
    .popup-contact {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.4rem;
        margin-bottom: 0.75rem !important;
        padding-bottom: 0.75rem !important;
        border-bottom: 1px solid #f0f0f0 !important;
        
        .contact-item {
            display: flex !important;
            align-items: center !important;
            gap: 0.4rem;
            font-size: 0.7rem !important;
            
            .material-symbols-outlined {
                font-size: 14px !important;
                color: var(--primary) !important;
                width: 16px !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
            }
            
            a {
                color: var(--text) !important;
                text-decoration: none !important;
                transition: var(--transition) !important;
                
                &:hover {
                    color: var(--primary) !important;
                    text-decoration: underline !important;
                }
            }
        }
    }
    
    .popup-brands {
        display: flex !important;
        gap: calc(8% / 3) !important;
        flex-wrap: wrap !important;
        margin-bottom: 0.75rem !important;
        padding: 0 0.75rem !important;
        
        .popup-brand-logo {
            width: calc(25% - calc(8% / 4)) !important;
            height: 30px !important;
            background: white !important;
            border: 1px solid #e9ecef !important;
            border-radius: 3px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            
            img {
                max-width: 90% !important;
                max-height: 90% !important;
                object-fit: contain !important;
            }
        }
    }
    
    .popup-website-button {
        padding: 0 0.75rem 0.75rem !important;
        
        .popup-button {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 0.4rem !important;
            padding: 0.4rem 0.8rem !important;
            background: #f8f9fa !important;
            color: var(--text) !important;
            text-decoration: none !important;
            border-radius: 0 !important;
            font-size: 0.7rem !important;
            font-weight: 500 !important;
            transition: var(--transition) !important;
            border: 1px solid #dee2e6 !important;
            width: 100% !important;
            text-align: center !important;
            
            .material-symbols-outlined {
                font-size: 0.9rem !important;
            }
            
            &:hover {
                background: #e9ecef !important;
                text-decoration: none !important;
            }
        }
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .distributors-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .distributor-card {
        margin: 0;
    }
    
    .distributors-filter {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        
        label {
            text-align: center;
        }
    }
    
    .contact-item {
        flex-wrap: wrap;
        
        .contact-details {
            flex-basis: 100%;
            margin-left: 2.75rem;
        }
    }
}

/* Scroll-to-zoom notification for maps */
.scroll-zoom-notification {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-size: 0.8rem;
    font-weight: 500;
    pointer-events: none;
    animation: slideUpNotification 0.3s ease-out, fadeDownNotification 0.3s ease-out 2.7s forwards;
    max-width: 320px;
    text-align: center;
    
    .scroll-notification-content {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        white-space: nowrap;
    }
    
    .material-symbols-outlined {
        font-size: 16px;
        opacity: 0.9;
        line-height: 1;
    }
    
    kbd {
        display: inline-block;
        padding: 0.2rem 0.4rem;
        margin: 0 0.2rem;
        font-family: ui-monospace, SFMono-Regular, "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace;
        font-size: 0.7em;
        font-weight: 600;
        line-height: 1;
        color: #2d3748;
        background: linear-gradient(145deg, #ffffff, #f7fafc);
        border: 1px solid #cbd5e0;
        border-radius: 3px;
        box-shadow: 
            0 1px 2px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.6);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        vertical-align: middle;
    }
    
    @media (max-width: 768px) {
        font-size: 0.75rem;
        padding: 0.6rem 0.8rem;
        max-width: 250px;
        
        .scroll-notification-content {
            gap: 0.4rem;
        }
        
        .material-symbols-outlined {
            font-size: 14px;
        }
        
        kbd {
            font-size: 0.65em;
            padding: 0.15rem 0.35rem;
        }
    }
}

/* Make sure the map container is positioned relative for the notification */
.distributors-map {
    position: relative;
}

@keyframes slideUpNotification {
    0% {
        opacity: 0;
        transform: translate(-50%, 100%);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes fadeDownNotification {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 50%);
    }
}

/* ============================
   FAQ BLOCK
   ============================ */

section.faq-block {
    padding: 4rem 0;
    
    &.light-bg {
        background-color: var(--light-gray);
    }
    
    .faq-header {
        text-align: left;
        margin-bottom: 2rem;
        
        .tag {
            margin-bottom: 1rem;
        }
        
        h2 {
            margin: 0;
        }
        
        /* Hide header if no title or subtitle is present */
        &:empty {
            display: none;
        }
    }
    
    .faq-container {
        width: 100%;
        max-width: none;
    }
    
    .faq-item {
        border: 1px solid var(--border-color);
        margin-bottom: 0.5rem;
        background: white;
        overflow: hidden;
        transition: var(--transition);
        border-radius: var(--border-radius);
        
        &:hover {
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        
        &[open] {
            .faq-icon svg {
                transform: rotate(180deg);
            }
        }
        
        &:last-child {
            margin-bottom: 0;
        }
    }
    
    .faq-question {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.25rem 0.9rem;
        font-weight: 600;
        font-size: 0.9rem;
        color: var(--secondary);
        cursor: pointer;
        list-style: none;
        transition: var(--transition);
        
        &::-webkit-details-marker {
            display: none;
        }
        
        &::marker {
            display: none;
        }
        
        &:hover {
            background-color: rgba(0,0,0,0.02);
        }
        
        span:first-child {
            flex: 1;
            text-align: left;
            line-height: 1.4;
        }
    }
    
    .faq-icon {
        flex-shrink: 0;
        margin-left: 0.75rem;
        color: var(--primary);
        
        svg {
            transition: transform 0.3s ease;
            width: 20px;
            height: 20px;
        }
    }
    
    .faq-answer {
        padding: 0.5rem 1.25rem 1rem;
        color: var(--text);
        line-height: 1.5;
        font-size: 0.85rem;
        border-top: 1px solid var(--border-color);
        
        p:first-child {
            margin-top: 0.75rem;
        }
        
        p:last-child {
            margin-bottom: 0;
        }
        
        ul, ol {
            margin: 0.75rem 0;
            padding-left: 1.25rem;
            
            li {
                margin-bottom: 0.25rem;
            }
        }
        
        a {
            color: var(--primary);
            
            &:hover {
                color: var(--primary-hover);
            }
        }
    }
    
    @media (max-width: 767px) {
        padding: 4rem 0;
        
        .faq-header {
            margin-bottom: 2rem;
        }
        
        .faq-question {
            padding: 0.875rem 1rem;
            font-size: 0.9rem;
        }
        
        .faq-answer {
            padding: 0 1rem 0.875rem;
            font-size: 0.85rem;
            
            p:first-child {
                margin-top: 0.5rem;
            }
        }
        
        .faq-icon {
            margin-left: 0.5rem;
            
            svg {
                width: 18px;
                height: 18px;
            }
        }
    }
}

/* ============================
   TWO COLUMN TEXT BLOCK
   ============================ */

section.two-column-text {
    padding: 4rem 0;
    
    &.light-bg {
        background: var(--light-gray);
    }
    
    .two-column-text-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        
        @media (max-width: 767px) {
            grid-template-columns: 1fr;
            gap: 2rem;
        }
    }
    
    .two-column-text-column {
        h1, h2, h3, h4, h5, h6 {
            &:first-child {
                margin-top: 0;
            }
        }
        
        p:first-child {
            margin-top: 0;
        }
        
        p:last-child {
            margin-bottom: 0;
        }
        
        img {
            max-width: 100%;
            height: auto;
        }
        
        .button,
        a.button {
            margin-top: 1rem;
        }
    }
}

/* ============================
   BLOCKQUOTE / TESTIMONIAL BLOCK
   ============================ */

section.blockquote-block {
    padding: 5rem 0;
    
    /* Background variations */
    &.bg-light {
        background-color: var(--light-gray);
    }
    
    &.bg-primary {
        background-color: var(--primary);
        color: white;
        
        .feature-quote {
            color: white;
            border-left-color: white;
        }
        
        .author-name {
            color: white;
        }
        
        .author-title {
            color: rgba(255, 255, 255, 0.85);
        }
    }
    
    &.bg-secondary {
        background-color: var(--secondary);
        color: white;
        
        .feature-quote {
            color: white;
            border-left-color: var(--primary);
        }
        
        .author-name {
            color: white;
        }
        
        .author-title {
            color: rgba(255, 255, 255, 0.85);
        }
    }
    
    .quote-icon {
        display: none;
    }
    
    .feature-quote {
        font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
        line-height: 1.4;
        font-weight: 700;
        color: var(--secondary);
        margin: 0 0 2.5rem 0;
        padding-left: 2.5rem;
        border-left: 5px solid var(--primary);
        text-wrap: pretty;
        position: relative;
        transition: var(--transition);
        
        @media (max-width: 767px) {
            margin-bottom: 2rem;
            padding-left: 1.5rem;
            border-left-width: 4px;
        }
        
        p {
            margin: 0 0 1rem 0;
            font-size: inherit;
            line-height: inherit;
            font-weight: inherit;
            
            &:last-child {
                margin-bottom: 0;
            }
        }
    }
    
    .quote-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 2rem;
        flex-wrap: wrap;
        
        @media (max-width: 767px) {
            flex-direction: column;
            align-items: flex-start;
            gap: 1.5rem;
        }
    }
    
    .quote-author {
        display: flex;
        align-items: center;
        gap: 1rem;
        flex: 1;
        
        @media (max-width: 767px) {
            gap: 0.75rem;
        }
    }
    
    .quote-link-button {
        flex-shrink: 0;
        white-space: nowrap;
        
        @media (max-width: 767px) {
            width: 100%;
        }
    }
    
    .author-image {
        flex-shrink: 0;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        overflow: hidden;
        background: white;
        padding: 0.25rem;
        box-shadow: var(--shadow);
        
        img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
        }
    }
    
    .author-details {
        flex: 1;
    }
    
    .author-name {
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--secondary);
        margin-bottom: 0.15rem;
    }
    
    .author-title {
        font-size: 0.85rem;
        color: var(--gray);
        font-weight: 500;
    }
    
    /* Center alignment variant */
    &.align-center {
        text-align: center;
        
        .feature-quote {
            border-left: none;
            padding-left: 0;
        }
        
        .quote-footer {
            justify-content: center;
            flex-direction: column;
            gap: 1.5rem;
        }
        
        .quote-author {
            justify-content: center;
        }
        
        .quote-link-button {
            @media (max-width: 767px) {
                width: auto;
            }
        }
    }
}

/* ============================
   IMAGE BLOCK
   ============================ */

.image-block {
    padding: 3rem 0;
    
    @media (max-width: 767px) {
        padding: 2rem 0;
    }
    
    &.full-width {
        padding: 0;
        
        .image-block-wrapper {
            max-width: 100%;
        }
    }
    
    .image-block-wrapper {
        position: relative;
        overflow: hidden;
    }
    
    .image-block-figure {
        margin: 0;
        position: relative;
        display: block;
        overflow: hidden;
        
        img {
            width: 100%;
            height: auto;
            display: block;
        }
    }
    
    &.has-aspect-ratio {
        .image-block-figure {
            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                object-position: center;
            }
        }
    }
    
    &.has-parallax {
        .image-block-figure {
            overflow: hidden;
            
            img {
                min-height: 130%;
                min-width: 100%;
                object-fit: cover;
                position: relative;
                top: -15%;
                transition: transform 0.1s linear;
                will-change: transform;
            }
        }
        
        &.has-aspect-ratio {
            .image-block-figure {
                img {
                    position: absolute;
                    width: 100%;
                    height: 130%;
                    top: -15%;
                    left: 0;
                }
            }
        }
    }
    
    &.has-caption {
        .image-block-figure {
            position: relative;
        }
    }
    
    .image-caption-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 40%;
        background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
        pointer-events: none;
        z-index: 1;
    }
    
    .image-caption {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 2rem 0;
        color: white;
        font-size: 0.9rem;
        line-height: 1.5;
        z-index: 2;
        margin: 0;
        
        @media (max-width: 767px) {
            padding: 1.5rem 0;
            font-size: 0.85rem;
        }
        
        p {
            margin: 0;
            color: white;
            
            &:last-child {
                margin-bottom: 0;
            }
        }
        
        a {
            color: white;
            text-decoration: underline;
            
            &:hover {
                color: var(--primary);
            }
        }
    }
}

/* Stats Block */
.stats-block {
    padding: 5rem 0;
    
    @media (max-width: 767px) {
        padding: 3.5rem 0;
    }
    
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 3rem;
        
        @media (max-width: 767px) {
            gap: 2.5rem;
        }
    }
    
    .stat-item {
        text-align: center;
        padding: 2rem;
        border-radius: var(--border-radius);
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        
        @media (max-width: 767px) {
            padding: 1.5rem;
        }
    }
    
    .stat-number-wrapper {
        display: flex;
        align-items: baseline;
        justify-content: center;
        gap: 0.25rem;
        margin-bottom: 0.5rem;
        font-weight: 700;
        font-size: 3.5rem;
        line-height: 1;
        
        @media (max-width: 991px) {
            font-size: 3rem;
        }
        
        @media (max-width: 767px) {
            font-size: 2.5rem;
        }
    }
    
    .stat-number {
        color: currentColor;
    }
    
    .stat-prefix,
    .stat-suffix {
        font-size: 2rem;
        opacity: 0.8;
        
        @media (max-width: 991px) {
            font-size: 1.75rem;
        }
        
        @media (max-width: 767px) {
            font-size: 1.5rem;
        }
    }
    
    .stat-subtitle {
        font-size: 1.25rem;
        font-weight: 600;
        margin: 0 0 1rem 0;
        color: currentColor;
        
        @media (max-width: 767px) {
            font-size: 1.1rem;
        }
    }
    
    .stat-description {
        font-size: 0.95rem;
        line-height: 1.6;
        opacity: 0.85;
        
        p {
            margin: 0 0 0.75rem 0;
            
            &:last-child {
                margin-bottom: 0;
            }
        }
        
        @media (max-width: 767px) {
            font-size: 0.9rem;
        }
    }
    
    /* Theme variations */
    &.theme-primary {
        background: linear-gradient(135deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 80%, black) 100%);
        color: white;
        
        .stat-item {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.2);
            
            &:hover {
                background: rgba(255, 255, 255, 0.15);
                border-color: rgba(255, 255, 255, 0.3);
            }
        }
    }
    
    &.theme-secondary {
        background: linear-gradient(135deg, var(--secondary) 0%, color-mix(in srgb, var(--secondary) 80%, black) 100%);
        color: white;
        
        .stat-item {
            background: rgba(255, 255, 255, 0.1);
            border-color: rgba(255, 255, 255, 0.2);
            
            &:hover {
                background: rgba(255, 255, 255, 0.15);
                border-color: rgba(255, 255, 255, 0.3);
            }
        }
    }
    
    &.theme-sustainability {
        background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
        color: white;
        position: relative;
        overflow: hidden;
        
        &::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-image: 
                radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
            pointer-events: none;
        }
        
        .container {
            position: relative;
            z-index: 1;
        }
        
        .stat-item {
            background: rgba(255, 255, 255, 0.12);
            border-color: rgba(255, 255, 255, 0.25);
            
            &:hover {
                background: rgba(255, 255, 255, 0.18);
                border-color: rgba(255, 255, 255, 0.35);
            }
        }
        
        .stat-number-wrapper {
            color: #d1fae5;
        }
    }
}

/* ============================
   VIDEO EMBED BLOCK
   ============================ */

section.video-embed-block {
    padding: 4rem 0;
    background: white;
    position: relative;
    
    &.light-bg {
        background-color: var(--light-gray);
    }
    
    .container {
        position: relative;
        z-index: 2;
    }
    
    .video-primary-section {
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 33.333%;
        background: var(--primary);
        z-index: 0;
        min-height: 320px;
        
        @media (max-width: 767px) {
            min-height: 230px;
        }
    }
    
    .custom-shape-divider-bottom-1763930673 {
        position: absolute;
        top: -120px;
        left: 0;
        width: 100%;
        overflow: hidden;
        line-height: 0;
        transform: rotate(180deg);
        
        svg {
            position: relative;
            display: block;
            width: calc(100% + 1.3px);
            height: 120px;
            
            @media (max-width: 767px) {
                height: 80px;
            }
        }
        
        .shape-fill {
            fill: var(--primary);
        }
        
        @media (max-width: 767px) {
            top: -80px;
        }
    }
    
    .video-embed-wrapper {
        max-width: 100%;
        position: relative;
    }
    
    .video-embed-container {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        border-radius: 8px;
        overflow: hidden;
        background: #000;
        box-shadow: 
            0 10px 40px rgba(0, 0, 0, 0.12),
            0 0 0 1px rgba(0, 0, 0, 0.05);
        transition: all 0.3s ease;
        cursor: pointer;
        
        &:hover {
            box-shadow: 
                0 15px 50px rgba(0, 0, 0, 0.18),
                0 0 0 1px rgba(173, 29, 63, 0.2);
            transform: translateY(-2px);
        }
        
        &.video-loaded {
            cursor: default;
            
            .video-cover {
                display: none;
            }
        }
        
        iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
        }
    }
    
    .video-cover {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #000;
        z-index: 1;
        
        .video-thumbnail {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0.85;
            transition: opacity 0.3s ease;
        }
        
        .video-play-button {
            position: relative;
            z-index: 2;
            background: transparent;
            border: none;
            padding: 0;
            cursor: pointer;
            transition: all 0.3s ease;
            
            svg {
                width: 90px;
                height: 90px;
                transition: all 0.3s ease;
                filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
            }
            
            .play-bg {
                fill: var(--primary);
                stroke: rgba(255, 255, 255, 0.9);
                stroke-width: 2;
                transition: all 0.3s ease;
            }
            
            .play-icon {
                fill: #fff;
                transition: transform 0.3s ease;
                transform-origin: center;
            }
            
            &:hover svg {
                transform: scale(1.1);
            }
            
            &:hover .play-bg {
                fill: var(--primary-hover);
                stroke: #fff;
            }
            
            &:hover .play-icon {
                transform: scale(1.1);
            }
            
            &:active svg {
                transform: scale(0.95);
            }
        }
        
        .video-privacy-notice {
            position: absolute;
            bottom: 12px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(4px);
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 0.75rem;
            color: rgba(255, 255, 255, 0.9);
            z-index: 2;
            white-space: nowrap;
            
            a {
                color: #fff;
                text-decoration: underline;
                
                &:hover {
                    color: var(--primary);
                }
            }
        }
    }
    
    .video-embed-container:hover .video-cover {
        .video-thumbnail {
            opacity: 1;
        }
    }
    
    .video-caption {
        margin-top: 1rem;
        text-align: center;
        color: var(--gray);
        font-size: 0.9rem;
        font-style: italic;
    }
    
    /* Mobile adjustments */
    @media (max-width: 767px) {
        padding: 3rem 0;
        
        .video-embed-container {
            border-radius: 6px;
            
            &:hover {
                transform: translateY(-1px);
            }
        }
        
        .video-cover {
            .video-play-button svg {
                width: 70px;
                height: 70px;
            }
            
            .video-privacy-notice {
                font-size: 0.7rem;
                padding: 6px 12px;
                bottom: 8px;
                max-width: 90%;
                white-space: normal;
                text-align: center;
            }
        }
        
        .video-caption {
            font-size: 0.85rem;
        }
    }
}

/* ============================
   PROCESS BLOCK
   ============================ */

.process-block {
    padding: 4rem 0 5rem;
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
    
    @media (max-width: 768px) {
        padding: 3rem 0 4rem;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
        position: relative;
        z-index: 1;
    }
}

/* Process Particles Background */
.process-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    
    canvas {
        pointer-events: auto;
    }
}

/* Process Tabs */
.process-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0 2rem 3rem;
    flex-wrap: wrap;
    
    @media (max-width: 768px) {
        gap: 0.5rem;
        margin: 0 1rem 2rem;
    }
}

.process-tab {
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    
    @media (max-width: 768px) {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    &:hover {
        background: var(--primary);
        color: white;
        transform: translateY(-2px);
    }
    
    &.active {
        background: var(--primary);
        color: white;
    }
}

/* Process Container */
.process-container {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    
    &.active {
        display: block;
    }
}

.process-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
    
    @media (max-width: 768px) {
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
}

.process-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 1rem 0 1rem 0 !important;
    line-height: 1.2;
    
    @media (max-width: 768px) {
        font-size: 2rem;
    }
}

.process-subtitle {
    font-size: 1.125rem;
    color: var(--text);
    line-height: 1.6;
    margin: 0;
    opacity: 0.8;
    hyphens: none;
    word-break: normal;
}

/* Process Navigation */
.process-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
    
    @media (max-width: 768px) {
        gap: 1rem;
        margin-top: 0;
    }
}

.process-scroll-btn {
    position: relative;
    z-index: 100;
    pointer-events: auto;
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    
    .material-symbols-outlined {
        font-size: 32px;
    }
    
    &:hover:not(:disabled) {
        background: var(--primary);
        color: white;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    }
    
    &:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }
}

/* Process Steps Wrapper */
.process-steps-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Process Steps Container */
.process-steps-container {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    padding: 2rem 6rem 3.5rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
    
    &::-webkit-scrollbar {
        display: none;
    }
    
    @media (max-width: 768px) {
        padding: 2rem 1.5rem 3rem;
    }
}

.process-step-item {
    display: flex;
    align-items: stretch;
    flex-shrink: 0;
}

.process-card {
    background: white;
    border: 2px solid;
    border-radius: var(--border-radius);
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    width: 420px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    flex-shrink: 0;
    cursor: grab;
    
    &:active {
        cursor: grabbing;
    }
    
    @media (max-width: 1200px) {
        width: 380px;
        min-height: 400px;
    }
    
    @media (max-width: 1024px) {
        width: 360px;
        min-height: 380px;
        padding: 1.75rem 1.25rem;
    }
    
    @media (max-width: 768px) {
        width: 300px;
        min-height: 320px;
        padding: 1.5rem 1.25rem;
    }
    
    &:hover {
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
    }
    
    /* Color themes */
    &.color-primary {
        border-color: var(--primary);
        
        .process-step-number {
            background-color: var(--primary);
        }
        
        .process-icon {
            color: var(--primary);
        }
    }
    
    &.color-secondary {
        border-color: var(--secondary);
        
        .process-step-number {
            background-color: var(--secondary);
        }
        
        .process-icon {
            color: var(--secondary);
        }
    }
}

.process-step-number {
    position: absolute;
    top: 0;
    left: 0;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 0 0 50% 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem 0.2rem 0.2rem 0.1rem;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.process-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    margin: 1rem auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    @media (max-width: 1024px) {
        width: 70px;
        height: 70px;
        margin: 1rem auto 0.5rem;
    }
    
    @media (max-width: 768px) {
        width: 64px;
        height: 64px;
        margin: 1rem auto 0.5rem;
    }
}

.process-card:hover .process-icon {
    transform: scale(1.12);
}

.process-card.color-primary .process-icon {
    background: var(--primary);
    border-radius: var(--border-radius);
    padding: 1rem;
    
    img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: brightness(0) invert(1);
    }
    
    @media (max-width: 1024px) {
        padding: 0.875rem;
    }
    
    @media (max-width: 768px) {
        padding: 0.75rem;
    }
}

.process-card.color-secondary .process-icon {
    background: var(--secondary);
    border-radius: var(--border-radius);
    padding: 1rem;
    
    img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: brightness(0) invert(1);
    }
    
    @media (max-width: 1024px) {
        padding: 0.875rem;
    }
    
    @media (max-width: 768px) {
        padding: 0.75rem;
    }
}

.process-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 1rem 0 0.75rem 0 !important;
    line-height: 1.3;
    flex-shrink: 0;
    word-break: break-word;
    overflow-wrap: break-word;
    
    @media (max-width: 1024px) {
        font-size: 1.2rem;
        margin-bottom: 0.75rem !important;
    }
    
    @media (max-width: 768px) {
        font-size: 1.15rem;
        margin-bottom: 0.65rem !important;
    }
}

.process-card-subtitle {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.5;
    margin: 0;
    opacity: 0.85;
    word-break: break-word;
    
    @media (max-width: 1024px) {
        font-size: 0.95rem;
    }
    
    @media (max-width: 768px) {
        font-size: 0.9rem;
    }
}

/* Process Arrow Connector */
.process-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    flex-shrink: 0;
    align-self: center;
    opacity: 0;
    transform: scaleX(0);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    &.animate-in {
        opacity: 1;
        transform: scaleX(1);
    }
    
    @media (max-width: 1200px) {
        padding: 0 1.75rem;
    }
    
    @media (max-width: 1024px) {
        padding: 0 1.5rem;
    }
    
    @media (max-width: 768px) {
        padding: 0 1rem;
    }
    
    .material-symbols-outlined {
        font-size: 48px;
        opacity: 1;
        transition: all 0.3s ease;
        animation: arrowPulse 2s ease-in-out infinite;
        
        @media (max-width: 1200px) {
            font-size: 42px;
        }
        
        @media (max-width: 1024px) {
            font-size: 38px;
        }
        
        @media (max-width: 768px) {
            font-size: 32px;
        }
    }
    
    /* Color themes */
    &.color-primary .material-symbols-outlined {
        color: var(--primary);
    }
    
    &.color-secondary .material-symbols-outlined {
        color: var(--secondary);
    }
}

@keyframes arrowPulse {
    0%, 100% {
        transform: translateX(0);
        opacity: 1;
    }
    50% {
        transform: translateX(4px);
        opacity: 0.7;
    }
}

/* Step Number Pop Animation */
.process-step-number {
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    &.pop-in {
        animation: numberPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    }
}

@keyframes numberPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

/* Enhanced Card Interactions */
.process-card {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
    position: relative;
    z-index: 1;
    
    .process-icon {
        transition: transform 0.3s ease;
    }
    
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        border-radius: inherit;
        background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
        pointer-events: none;
        z-index: 1;
    }
    
    /* Hover glow effect */
    &.hover-glow.color-primary {
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 0 40px rgba(var(--primary-rgb, 232, 119, 34), 0.15);
    }
    
    &.hover-glow.color-secondary {
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 0 40px rgba(var(--secondary-rgb, 0, 61, 100), 0.2);
    }
}

/* Dragging State */
.process-steps-container {
    cursor: grab;
    
    &.dragging {
        cursor: grabbing !important;
        scroll-behavior: auto;
        
        .process-card {
            cursor: grabbing !important;
            transition: box-shadow 0.3s ease;
            
            &:hover {
                transform: none !important;
            }
        }
    }
}

/* Enhanced Navigation Buttons */
.process-scroll-btn {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    &.pressed {
        transform: scale(0.9);
    }
    
    &:hover:not(:disabled) {
        transform: scale(1.08);
    }
    
    &.at-start,
    &.at-end {
        opacity: 0.4;
    }
    
    .material-symbols-outlined {
        transition: transform 0.3s ease;
    }
    
    &:hover:not(:disabled) .material-symbols-outlined {
        animation: buttonArrow 0.6s ease infinite;
    }
}

.process-scroll-prev:hover:not(:disabled) .material-symbols-outlined {
    animation-name: buttonArrowLeft;
}

@keyframes buttonArrow {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(3px);
    }
}

@keyframes buttonArrowLeft {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-3px);
    }
}

/* Enhanced Tab Buttons */
.process-tab {
    position: relative;
    overflow: hidden;
    
    &::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        transform: translate(-50%, -50%);
        transition: width 0.6s ease, height 0.6s ease;
    }
    
    &:active::after {
        width: 200px;
        height: 200px;
    }
}



/* ============================
   CONTACT BOX SHORTCODE
   ============================ */

.contact-box {
    background: var(--primary);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    margin: 2rem 0;
    color: white;
    
    @media (max-width: 768px) {
        padding: 2rem 1.5rem;
    }
}

.contact-box-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin: 0 0 2rem 0 !important;
    
    @media (max-width: 768px) {
        font-size: 1.5rem;
        margin-bottom: 1.5rem !important;
    }
}

.contact-box-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-box-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: white !important;
    text-decoration: none;
    
    &:hover,
    &:focus,
    &:active,
    &:visited {
        color: white !important;
        text-decoration: none !important;
    }
}

.contact-box-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: white;
    border-radius: calc(var(--border-radius) * 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    
    .material-symbols-outlined {
        font-size: 28px;
        color: var(--primary);
    }
}

.contact-box-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.contact-box-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.contact-box-value {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
    text-wrap: balance;
}

/* ============================
   CONTACT FORM 7 STYLES
   ============================ */

.wpcf7 {
    background: var(--light-gray);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    
    @media (max-width: 768px) {
        padding: 2rem 1.5rem;
    }
}

.wpcf7-form {
    display: flex;
    flex-direction: column;
}

.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

.wpcf7-form label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="date"],
.wpcf7-form textarea,
.wpcf7-form select {
    width: 100%;
    padding: 0.875rem 1.125rem;
    margin-top: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text);
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: calc(var(--border-radius) * 0.75);
    transition: all 0.3s ease;
    caret-color: var(--primary);
    outline: none;
    
    &::placeholder {
        color: #9ca3af;
    }
    
    &:hover {
        border-color: #d1d5db;
    }
    
    &:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
    }
    
    &:disabled {
        background: #f9fafb;
        cursor: not-allowed;
        opacity: 0.6;
    }
    
    &[readonly] {
        background: #f3f4f6;
        color: var(--text-light);
        cursor: default;
        border-color: #e5e7eb;
    }
}

.wpcf7-form textarea {
    min-height: 150px;
    resize: vertical;
    font-family: inherit;
}

.wpcf7-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
}

.wpcf7-form input[type="checkbox"],
.wpcf7-form input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.5rem;
    cursor: pointer;
    accent-color: var(--primary);
}

.wpcf7-form .wpcf7-checkbox,
.wpcf7-form .wpcf7-radio {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    
    .wpcf7-list-item {
        display: flex;
        align-items: center;
        margin: 0;
        
        label {
            margin: 0;
            cursor: pointer;
            font-weight: 400;
        }
    }
}

/* Acceptance/Consent Checkbox */
.wpcf7-form .wpcf7-acceptance {
    .wpcf7-list-item {
        margin: 0;
        
        label {
            display: grid;
            grid-template-columns: 1.25rem 1fr;
            gap: 0.75rem;
            align-items: start;
            cursor: pointer;
        }
        
        input[type="checkbox"] {
            width: 1.25rem;
            height: 1.25rem;
            margin: 0.15rem 0 0 0;
            cursor: pointer;
            accent-color: var(--primary);
        }
        
        .wpcf7-list-item-label {
            font-size: 0.9rem;
            font-weight: 400;
            line-height: 1.5;
            color: var(--text-light);
            
            a {
                color: var(--primary);
                text-decoration: underline;
                
                &:hover {
                    color: var(--primary-hover);
                }
            }
        }
    }
}

.wpcf7-form input[type="submit"],
.wpcf7-form button[type="submit"] {
    width: 100%;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: var(--primary);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    
    &:hover {
        background: var(--secondary);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    &:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    }
    
    &:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }
}

/* Response Messages */
.wpcf7-response-output {
    margin: 1.5rem 0 0 0 !important;
    padding: 1rem 1.5rem !important;
    border-radius: var(--border-radius) !important;
    border: none !important;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
}

.wpcf7 form.sent .wpcf7-response-output {
    background: #d1fae5 !important;
    color: #065f46 !important;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
    background: #fee2e2 !important;
    color: #991b1b !important;
}

.wpcf7 form.spam .wpcf7-response-output {
    background: #fef3c7 !important;
    color: #92400e !important;
}

.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.resetting .wpcf7-response-output,
.wpcf7 form.submitting .wpcf7-response-output {
    display: none;
}

/* Validation Errors */
.wpcf7-not-valid-tip {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.375rem;
    display: block;
}

.wpcf7-not-valid {
    border-color: #dc2626 !important;
}

/* Spinner */
.wpcf7-spinner {
    margin-left: 1rem;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 0.8s linear infinite;
}

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

/* File Upload */
.wpcf7-form input[type="file"] {
    padding: 0.625rem;
    cursor: pointer;
    
    &::file-selector-button {
        padding: 0.5rem 1rem;
        margin-right: 1rem;
        font-weight: 600;
        color: var(--primary);
        background: white;
        border: 2px solid var(--primary);
        border-radius: calc(var(--border-radius) * 0.5);
        cursor: pointer;
        transition: all 0.3s ease;
        
        &:hover {
            color: white;
            background: var(--primary);
        }
    }
}

/* Two Column Layout Support */
.wpcf7-form .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    
    @media (max-width: 768px) {
        grid-template-columns: 1fr;
    }
}

/* Acceptance Field (GDPR, etc) */
.wpcf7-acceptance {
    .wpcf7-list-item {
        display: flex;
        align-items: flex-start;
        
        input[type="checkbox"] {
            margin-top: 0.25rem;
            flex-shrink: 0;
        }
        
        label {
            font-size: 0.9rem;
            line-height: 1.6;
        }
    }
}

/* =========================
   Case Study Highlight Block
   ========================= */

.case-study-highlight {
    padding: 4rem 0;
    
    &.light-bg {
        background: var(--light-gray);
    }
}

.case-study-boxes {
    display: flex;
    align-items: stretch;
}

.case-study-box-wrapper {
    flex: 1;
    display: flex;
    position: relative;
    overflow: visible;
    
    &:nth-child(1) {
        z-index: 3;
    }
    
    &:nth-child(2) {
        margin-left: -16px;
        z-index: 2;
    }
    
    &:nth-child(3) {
        margin-left: -16px;
        z-index: 1;
    }
}

.case-study-box {
    flex: 1;
    position: relative;
    color: white;
    display: flex;
    border-radius: var(--border-radius);
    cursor: default;
    will-change: transform;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: visible;
    
    &:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
        z-index: 10;
        
        .case-study-box-title {
            border-bottom-color: rgba(255, 255, 255, 0.5);
        }
    }
    
    &.challenge {
        background: #5b9bd5; /* Light blue */
        z-index: 3;
    }
    
    &.solution {
        background: var(--secondary);
        z-index: 2;
        padding-left: 32px;
    }
    
    &.benefits {
        background: var(--primary);
        z-index: 1;
        padding-left: 32px;
    }
}

.case-study-box-content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: background 0.3s ease;
    border-radius: var(--border-radius);
}

.case-study-box-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: white;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0.75rem;
    transition: border-color 0.3s ease;
}

.case-study-box-text {
    font-size: 0.95rem;
    line-height: 1.6;
    
    ul {
        margin: 0;
        padding: 0;
        list-style: none;
        
        li {
            position: relative;
            padding-left: 1.25rem;
            margin-bottom: 0.5rem;
            
            &:before {
                content: "•";
                position: absolute;
                left: 0;
                color: white;
                font-weight: bold;
            }
            
            &:last-child {
                margin-bottom: 0;
            }
        }
    }
    
    p {
        margin: 0 0 0.75rem;
        
        &:last-child {
            margin-bottom: 0;
        }
    }
}

.case-study-arrow {
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 48px;
    z-index: 10;
    
    svg {
        width: 100%;
        height: 100%;
    }
    
    .challenge & {
        color: #5b9bd5;
    }
    
    .solution & {
        color: var(--secondary);
    }
}

/* Mobile responsive */
@media (max-width: 900px) {
    .case-study-boxes {
        flex-direction: column;
    }
    
    .case-study-box-wrapper {
        &:nth-child(2),
        &:nth-child(3) {
            margin-left: 0;
            margin-top: -16px;
        }
    }
    
    .case-study-box {
        &.solution,
        &.benefits {
            padding-left: 0;
            padding-top: 32px;
        }
    }
    
    .case-study-arrow {
        right: auto;
        left: 50%;
        top: auto;
        bottom: -16px;
        width: 48px;
        height: 32px;
        transform: translateX(-50%);
        
        svg {
            transform: rotate(90deg);
            transform-origin: center;
        }
    }
}

@media (max-width: 600px) {
    .case-study-highlight {
        padding: 2rem 0;
    }
    
    .case-study-box-content {
        padding: 1.5rem;
    }
    
    .case-study-box-title {
        font-size: 1.25rem;
    }
    
    .case-study-box-text {
        font-size: 0.9rem;
    }
}