/*
Theme Name: TalentEdge
Description: Barebones WordPress theme with ACF Flexible Content support
Version: 1.0.1
Author: Silomedia
Text Domain: talentedge
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --primary: #ff4a6f;
    --primary-dark: #c3234c;

    --secondary: #0ea99f;
    --secondary-dark: #0b7d7a;

    --emerald: #003034;
    --emerald-dark: #002c30;
    --emerald-light: #0e5053;
    --emerald-lighter: #11504e;
    --emerald-bright: #00cbc7;
    --emerald-bright-rgb: 0, 203, 199;
    --emerald-rgb: 0, 48, 52;
    --text-dark: #003034;

    font-size: 18px;

    @media(max-width: 1400px) {
        font-size: 17px;
    }

    @media(max-width: 800px) { 
        font-size: 16px;
    }

    @media(max-width: 500px) { 
        font-size: 15px;
    }
}

/* Basic reset and styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    line-height: 1.8;
    padding-top: 6rem;
    font-family: 'Poppins', sans-serif;
    background: var(--emerald-dark);
}

.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 2rem;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    text-wrap: pretty;
    color: inherit;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    
    @media (max-width: 768px) {
        font-size: 2.5rem;
    }
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;

    @media (max-width: 768px) {
        font-size: 2rem;
    }
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 600;
    
    @media (max-width: 768px) {
        font-size: 1.6rem;
    }
}

h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    
    @media (max-width: 768px) {
        font-size: 1.3rem;
    }
}

h5 {
    font-size: 1.25rem;
    margin-bottom: 0.875rem;
    font-weight: 600;
}

h6 {
    font-size: 1.1rem;
    margin-bottom: 0.875rem;
    font-weight: 600;
}

/* Global Typography */
p {
    margin-bottom: 1.25rem;
    opacity: 0.9;
    line-height: 1.7;

    &.lead {
        opacity: 1;
    }
    
    a {
        color: var(--primary);
        text-decoration: underline;
        font-weight: 500;
        transition: color 0.3s ease;
        
        &:hover {
            color: var(--primary-dark);
            text-decoration: none;
        }
        
        &:focus {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
        }
    }
}

/* List Styles */
ul, ol {
    margin: 0 0 1.25rem 0;
    padding-left: 1.5rem;
    line-height: 1.7;
    opacity: 0.9;
    
    li {
        margin-bottom: 0.5rem;
        
        &:last-child {
            margin-bottom: 0;
        }
        
        p {
            margin-bottom: 0.5rem;
            
            &:last-child {
                margin-bottom: 0;
            }
        }
    }
    
    a {
        color: var(--primary);
        text-decoration: underline;
        font-weight: 500;
        transition: color 0.3s ease;
        
        &:hover {
            color: var(--primary-dark);
            text-decoration: none;
        }
        
        &:focus {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
        }
    }
}

/* Content Lists - Only apply custom styling to content areas, not navigation */
.container ul:not(.main-navigation ul):not(.footer-menu ul):not(.wp-block-navigation ul):not(nav ul):not(footer ul):not(.archive-pagination ul):not(.page-numbers ul),
main ul:not(.main-navigation ul):not(.footer-menu ul):not(.wp-block-navigation ul):not(nav ul):not(footer ul):not(.archive-pagination ul):not(.page-numbers ul),
article ul:not(.main-navigation ul):not(.footer-menu ul):not(.wp-block-navigation ul):not(nav ul):not(footer ul):not(.archive-pagination ul):not(.page-numbers ul),
.content ul:not(.main-navigation ul):not(.footer-menu ul):not(.wp-block-navigation ul):not(nav ul):not(footer ul):not(.archive-pagination ul):not(.page-numbers ul) {
    list-style: none;
    color: var(--text-dark);
    
    li {
        position: relative;
        padding-left: 1.5rem;
        
        &::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0.75rem;
            width: 0.5rem;
            height: 0.5rem;
            background-color: var(--primary);
            border-radius: 50%;
            transform: translateY(-50%);
        }
    }
    
    ul {
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        
        li::before {
            border: 2px solid var(--primary);
            background-color: transparent;
        }
        
        ul {
            li::before {
                background-color: var(--primary);
                border-radius: 0;
                width: 0.4rem;
                height: 0.4rem;
                transform: translateY(-50%) rotate(45deg);
            }
        }
    }
}

ol {
    list-style-type: decimal;
    
    ol {
        list-style-type: lower-alpha;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        
        ol {
            list-style-type: lower-roman;
        }
    }
}

/* Text Emphasis */
strong, b {
    font-weight: 600;
    color: inherit;
}

em, i {
    font-style: italic;
    color: inherit;
}

/* Blockquote */
blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--primary);
    background: rgba(var(--emerald-rgb), 0.05);
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    
    p {
        margin-bottom: 1rem;
        font-size: 1.1rem;
        opacity: 1;
        
        &:last-child {
            margin-bottom: 0;
        }
    }
    
    cite {
        display: block;
        margin-top: 1rem;
        font-size: 0.9rem;
        font-style: normal;
        color: var(--primary);
        font-weight: 500;
        
        &::before {
            content: '— ';
        }
    }
}

/* Code */
code {
    background: #f4f4f4;
    color: var(--emerald);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 0.875em;
}

pre {
    background: #f4f4f4;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    
    code {
        background: transparent;
        padding: 0;
    }
}

/* Tables */
table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    
    th, td {
        padding: 0.75rem 1rem;
        text-align: left;
        border-bottom: 1px solid #e5e7eb;
    }
    
    th {
        background: var(--emerald-light);
        color: white;
        font-weight: 600;
        font-size: 0.9rem;
    }
    
    tbody tr:hover {
        background: #f9fafb;
    }
    
    tbody tr:last-child {
        th, td {
            border-bottom: none;
        }
    }
}

/* Horizontal Rule */
hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    margin: 2rem 0;
}

/* Small Text */
small {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Mark/Highlight */
mark {
    background: rgba(var(--emerald-bright-rgb), 0.2);
    color: var(--emerald);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
}

/* Button System */
.button {
    display: inline-block;
    padding: 1rem 1.8rem;
    border: none;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    line-height: 1;
    
    &.button-primary {
        background-color: var(--primary);
        color: white;
        
        &:hover {
            background-color: var(--primary-dark);
        }
    }
    
    &.button-secondary {
        background-color: var(--secondary);
        color: white;
        
        &:hover {
            background-color: var(--secondary-dark);
        }
    }
    
    &.button-white {
        background-color: white;
        color: var(--primary);
        
        &:hover {
            background-color: #f8f9fa;
            color: var(--primary-dark);
        }
    }
}

/* Masthead */
#masthead {
    background: var(--emerald);
    color: #fff;
    padding: 1.5rem 2rem;
    position: fixed;
    height: 6rem;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-radius: 0 0 1.5rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;

    .site-logo {
        display: block;
        text-decoration: none;
        
        img {
            height: 2rem;
            width: auto;
            display: block;
        }
        
        &:hover {
            opacity: 0.9;
        }
    }
    
    .main-navigation {
        flex: 1;
        display: flex;
        justify-content: center;
        
        ul {
            list-style: none;
            margin: 0;
            padding: 0;
            display: flex;
            gap: 2rem;
            
            a {
                color: white;
                text-decoration: none;
                font-weight: 500;
                transition: color 0.3s ease;
                
                &:hover,
                &:focus {
                    color: var(--secondary);
                    outline: none;
                }
            }
            
            .current-menu-item a,
            .current_page_item a,
            .current-page-ancestor a {
                color: var(--primary);
            }
        }
        
        .mobile-cta {
            display: none;
        }
        
        @media (max-width: 1350px) {
            position: absolute;
            top: calc(100% + 1rem);
            left: 2rem;
            right: 2rem;
            background: var(--emerald-dark);
            border-radius: 1.5rem;
            padding: 2rem;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-1rem);
            transition: all 0.3s ease;
            display: block;
            
            &.active {
                opacity: 1;
                visibility: visible;
                transform: translateY(0);
                
                @media (max-width: 450px) {
                    .mobile-cta {
                        display: block;
                        text-align: center;
                        padding-top: 1.5rem;
                        
                        .button {
                            display: inline-block;
                            font-size: 1.2rem;
                        }
                    }
                }
            }
            
            ul {
                display: flex;
                flex-direction: column;
                gap: 1.5rem;
                text-align: center;
                
                a {
                    font-size: 1.2rem;
                    padding: 0.5rem 0;
                    display: block;
                }
                
                .current-menu-item a,
                .current_page_item a,
                .current-page-ancestor a {
                    color: var(--primary);
                }
            }
        }
    }
    
    .header-actions {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .header-cta {
        @media (max-width: 450px) {
            display: none;
        }
    }
    
    .hamburger-toggle {
        display: none;
        flex-direction: column;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.5rem;
        width: 2.5rem;
        height: 2.5rem;
        justify-content: center;
        position: relative;
        
        span {
            display: block;
            position: relative;
            width: 1.5rem;
            height: 2px;
            background-color: white;
            transition: all 0.3s ease-in-out;
            margin: 3px 0;
        }
        
        &.active {
            span:nth-child(1) {
                transform: translateY(8px) rotate(45deg);
            }
            
            span:nth-child(2) {
                opacity: 0;
            }
            
            span:nth-child(3) {
                transform: translateY(-8px) rotate(-45deg);
            }
        }
        
        @media (max-width: 1350px) {
            display: flex;
        }
    }
}

/* CTA Block */
.cta-block {
    padding: 3.75rem 0;
    text-align: center;
    
    &.cta-emerald {
        background-color: var(--emerald);
        background-image: url('images/pattern.svg');
        background-position: 50% 0;
        background-size: 230px 230px;
        background-attachment: fixed;
        color: white;
    }
    
    &.cta-primary {
        background-color: var(--primary);
        background-image: url('images/pattern.svg');
        background-position: 50% 0;
        background-size: 230px 230px;
        background-attachment: fixed;
        background-blend-mode: color-dodge;
        color: white;
    }
    
    .cta-content {
        max-width: 800px;
        margin: 0 auto;
    }
    
    .cta-title {
        font-size: 2.2rem;
        margin: 0 0 1.5rem 0;
        line-height: 1.2;
        
        @media (max-width: 768px) {
            font-size: 2rem;
        }
    }
    
    .cta-description {
        font-size: 1.2rem;
        margin: 0 0 2rem 0;
        opacity: 0.9;
        line-height: 1.5;
        
        @media (max-width: 768px) {
            font-size: 1.1rem;
        }
    }
    
    .button {
        padding: 1rem 2rem;
    }
}

/* Footer */
.site-footer {
    background-color: var(--emerald-dark);
    color: white;
    
    .footer-main {
        padding: 4rem 0 3rem 0;
    }
    
    .footer-columns {
        display: grid;
        grid-template-columns: 1.4fr 1fr 1fr 1fr;
        gap: 4rem;
        
        @media (max-width: 1200px) {
            grid-template-columns: 1fr 1fr;
            gap: 2.5rem;
        }
        
        @media (max-width: 768px) {
            grid-template-columns: 1fr;
            gap: 2rem;
        }
    }
    
    .footer-column {
        @media (max-width: 1200px) and (min-width: 769px) {
            &.footer-about {
                order: -2;
            }
            
            &.footer-contact {
                order: -1;
            }
        }
    }
    
    .footer-column {
        h3, h4 {
            color: white;
            margin: 0 0 1rem 0;
            font-size: 1.2rem;
            font-weight: 600;
        }
        
        h4 {
            font-size: 1rem;
            margin: 1.5rem 0 0.5rem 0;
        }
        
        p {
            margin: 0 0 1rem 0;
            line-height: 1.6;
            opacity: 0.9;
        }
        
        address {
            font-style: normal;
            line-height: 1.6;
            opacity: 0.9;
        }
    }
    
    .footer-about {
        .footer-logo {
            display: block;
            margin-bottom: 1.5rem;
            
            img {
                height: 2rem;
                width: auto;
            }
        }
        
        .footer-blurb {
            margin-bottom: 2rem;
            font-size: 0.95rem;
        }
    }
    
    .footer-menu {
        list-style: none;
        margin: 0;
        padding: 0;
        
        li {
            margin-bottom: 0;
            padding: 0.75rem 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.3s ease;
            
            &:last-child {
                border-bottom: none;
            }
        }
        
        a {
            color: white;
            text-decoration: none;
            opacity: 0.9;
            transition: all 0.3s ease;
            display: block;
            font-weight: 500;
            
            &:hover {
                opacity: 1;
                color: var(--secondary);
            }
        }
    }
    
    .footer-contact {
        .contact-email a {
            color: var(--secondary);
            text-decoration: none;
            font-weight: 500;
            
            &:hover {
                color: white;
            }
        }
    }
    
    .social-links {
        margin-top: 1.5rem;
        
        .social-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-decoration: none;
            transition: all 0.3s ease;
            margin-right: 0.75rem;
            
            &:hover {
                color: var(--secondary);
            }
            
            svg {
                width: 24px;
                height: 24px;
            }
        }
    }
    
    .footer-bottom {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1.5rem 0;
        
        .footer-bottom-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            
            @media (max-width: 768px) {
                flex-direction: column;
                gap: 1rem;
                text-align: center;
            }
        }
        
        .copyright p {
            margin: 0;
            font-size: 0.8rem;
            opacity: 0.8;
        }
        
        .footer-legal {
            a {
                color: white;
                text-decoration: none;
                font-size: 0.9rem;
                opacity: 0.8;
                transition: all 0.3s ease;
                
                &:hover {
                    opacity: 1;
                    color: var(--secondary);
                }
            }
        }
    }
}

/* -------------------------------------- */
/* Hero Block (migrated from inline styles)
/* -------------------------------------- */
.hero-block { height:auto !important; min-height:unset !important; padding:clamp(3rem,8vh,8rem) 0 8rem; }
.hero-content-wrapper { align-items:flex-start; }

/* Hero graphic staggered fade-in */
.hero-graphic-svg > circle,
.hero-graphic-svg > path,
.hero-graphic-svg > use { opacity:0; animation:heroFadeIn 1.4s ease-out forwards; }
.hero-graphic-svg > circle:nth-of-type(1) { animation-delay:.10s; }
.hero-graphic-svg > path:nth-of-type(1) { animation-delay:.35s; }
.hero-graphic-svg > path:nth-of-type(2) { animation-delay:.60s; }
.hero-graphic-svg > use:nth-of-type(1) { animation-delay:.85s; }
.hero-graphic-svg > use:nth-of-type(2) { animation-delay:1.10s; }
.hero-graphic-svg > use:nth-of-type(3) { animation-delay:1.35s; }
.hero-graphic-svg > use:nth-of-type(4) { animation-delay:1.60s; }
.hero-graphic-svg > use:nth-of-type(5) { animation-delay:1.85s; }
@keyframes heroFadeIn { from { opacity:0; } to { opacity:1; } }

/* Hero subtitle custom bullets */
.hero-subtitle ul { list-style:none; margin:1.25rem 0 0; padding:0; }
.hero-subtitle ul li { position:relative; padding-left:1.35rem; line-height:1.4; }
.hero-subtitle ul li::before { content:""; position:absolute; left:0; top:0.55em; width:0.55em; height:0.55em; background:currentColor; transform:translateY(-50%) rotate(45deg); border-radius:2px; }
.hero-subtitle ul li + li { margin-top:.4rem; }

@media (max-width: 768px) {
    .hero-block { padding:3rem 0 5rem; }
    .hero-graphic { margin-bottom:2.5rem; }
    .hero-content, .hero-content .hero-title, .hero-content .hero-subtitle, .hero-subtitle ul { text-align:left; margin-left:0; }
}

/* Disable all animations and transitions on single posts and single case study pages */
body.single-post *,
body.single-case-study-page *,
body.single-case-study * {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
}

/* Text and Image Block */
.text-image-block {
    padding: 4rem 0;
    
    &.bg-emerald-dark {
        background-color: var(--emerald-dark);
        color: white;
    }
    
    &.bg-emerald {
        background-color: var(--emerald);
        color: white;
    }
    
    &.bg-emerald-light {
        background-color: var(--emerald-light);
        color: white;
    }
    
    &.bg-primary {
        background-color: var(--primary);
        color: white;
    }
    
    &.bg-white {
        background-color: white;
        color: var(--text-dark);
    }
    
    @media (max-width: 768px) {
        padding: 3rem 0;
    }
    
    @media (max-width: 480px) {
        padding: 2rem 0;
    }
    
    /* Reduce spacing when boxed blocks are adjacent */
    &:has(.boxed-view) + &:has(.boxed-view) {
        padding-top: 1rem;
        
        @media (max-width: 768px) {
            padding-top: 0.75rem;
        }
        
        @media (max-width: 480px) {
            padding-top: 0.5rem;
        }
    }
    
    /* Alternative selector for better browser compatibility */
    &.has-boxed + &.has-boxed {
        padding-top: 1rem;
        
        @media (max-width: 768px) {
            padding-top: 0.75rem;
        }
        
        @media (max-width: 480px) {
            padding-top: 0.5rem;
        }
    }
    
    /* Boxed view with pattern background effect */
    &.has-pattern {
        position: relative;
        
        &.bg-emerald-dark {
            background-image: url('images/pattern.svg');
            background-position: 50% 0;
            background-size: 230px 230px;
            background-attachment: fixed;
            
            &::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: linear-gradient(to bottom, var(--emerald-dark) 0%, var(--emerald-dark) 40%, transparent 100%);
                z-index: 1;
                pointer-events: none;
            }
        }
        
        &.bg-emerald {
            background-image: url('images/pattern.svg');
            background-position: 50% 0;
            background-size: 230px 230px;
            background-attachment: fixed;
            
            &::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: linear-gradient(to bottom, var(--emerald) 0%, var(--emerald) 40%, transparent 100%);
                z-index: 1;
                pointer-events: none;
            }
        }
        
        &.bg-emerald-light {
            background-image: url('images/pattern.svg');
            background-position: 50% 0;
            background-size: 230px 230px;
            background-attachment: fixed;
            
            &::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: linear-gradient(to bottom, var(--emerald-light) 0%, var(--emerald-light) 40%, transparent 100%);
                z-index: 1;
                pointer-events: none;
            }
        }
        
        &.bg-primary {
            background-image: url('images/pattern.svg');
            background-position: 50% 0;
            background-size: 230px 230px;
            background-attachment: fixed;
            
            &::before {
                content: '';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: linear-gradient(to bottom, var(--primary) 0%, var(--primary) 40%, transparent 100%);
                z-index: 1;
                pointer-events: none;
            }
        }
        
        .container {
            position: relative;
            z-index: 2;
        }
    }
    
    .boxed-view {
        padding: 3rem;
        border-radius: 1.5rem;
        
        &.box-bg-emerald-dark {
            background-color: var(--emerald-dark);
            color: white;
        }
        
        &.box-bg-emerald {
            background-color: var(--emerald);
            color: white;
        }
        
        &.box-bg-emerald-light {
            background-color: var(--emerald-light);
            color: white;
        }
        
        &.box-bg-primary {
            background-color: var(--primary);
            color: white;
        }
        
        &.box-bg-white {
            background-color: white;
            color: var(--text-dark);
        }
        
        @media (max-width: 768px) {
            padding: 2rem 1.5rem;
            border-radius: 1rem;
        }
        
        @media (max-width: 480px) {
            padding: 1.5rem 1rem;
            border-radius: 0.75rem;
        }
    }
    
    .text-image-content {
        display: grid;
        align-items: center;
        gap: 4rem;
        
        &.align-top {
            align-items: start;
        }
        
        &.align-middle {
            align-items: center;
        }
        
        &.layout-half {
            grid-template-columns: 1fr 1fr;
            
            @media (max-width: 768px) {
                grid-template-columns: 1fr !important;
                gap: 2rem;
            }
        }
        
        &.layout-one-third {
            &.image-left {
                grid-template-columns: 1fr 2fr;
            }
            
            &.image-right {
                grid-template-columns: 2fr 1fr;
            }
            
            @media (max-width: 768px) {
                grid-template-columns: 1fr !important;
                gap: 2rem;
            }
        }
        
        &.image-left {
            .text-image-img {
                order: 1;
            }
            
            .text-content {
                order: 2;
            }
        }
        
        &.image-right {
            .text-image-img {
                order: 2;
            }
            
            .text-content {
                order: 1;
            }
        }
        
        @media (max-width: 768px) {
            gap: 2rem !important;
            
            .text-image-img {
                order: 1 !important;
            }
            
            .text-content {
                order: 2 !important;
            }
        }
        
        @media (max-width: 480px) {
            gap: 1.5rem !important;
        }
    }
    
    .text-content {
        h1, h2, h3, h4, h5, h6 {
            margin-top: 0;
        }
        
        h2 {
            margin-bottom: 1.5rem;
        }
        
        p {
            line-height: 1.6;
            margin-bottom: 1rem;
            opacity: 0.9;
        }
        
        ul, ol {
            margin: 1rem 0;
            padding-left: 0; /* Remove left padding to eliminate space before bullets */
            line-height: 1.6;
            
            li {
                margin-bottom: 0.5rem;
                opacity: 0.9;
                
                &:last-child {
                    margin-bottom: 0;
                }
            }
        }
        
        ul {
            list-style-type: disc;
            
            li::marker {
                color: currentColor;
            }
        }
        
        .button {
            margin-top: 1rem;
        }
    }
    
    /* White bullets ONLY for PRIMARY boxed views */
    .boxed-view.box-bg-primary {
        ul:not(.main-navigation ul):not(.footer-menu ul):not(.wp-block-navigation ul):not(nav ul):not(footer ul):not(.archive-pagination ul):not(.page-numbers ul) {
            li::before {
                background-color: white !important;
            }
            
            ul li::before {
                border-color: white !important;
                background-color: transparent !important;
            }
            
            ul ul li::before {
                background-color: white !important;
            }
        }
    }
    
    /* Override list styles for boxed views */
    .boxed-view {
        .text-content {
            ul {
                li {
                    /* Reduce left padding for better spacing in boxed content */
                    padding-left: 1rem;
                    
                    &::before {
                        width: 0.4rem;
                        height: 0.4rem;
                        top: 0.65rem;
                    }
                }
                
                /* Nested list adjustments */
                ul li {
                    padding-left: 0.75rem;
                    
                    &::before {
                        width: 0.3rem;
                        height: 0.3rem;
                        top: 0.6rem;
                    }
                    
                    ul li {
                        padding-left: 0.75rem;
                        
                        &::before {
                            width: 0.25rem;
                            height: 0.25rem;
                        }
                    }
                }
            }
        }
        
        /* Color overrides for different background colors */
        &.box-bg-emerald-dark,
        &.box-bg-emerald,
        &.box-bg-emerald-light,
        &.box-bg-primary {
            .text-content {
                ul, ol {
                    color: white;
                    
                    li {
                        color: white;
                        
                        &::before {
                            background-color: white;
                            border-color: white;
                        }
                        
                        &::marker {
                            color: white;
                        }
                    }
                    
                    /* Nested list bullet overrides */
                    ul li::before {
                        border-color: white;
                        background-color: transparent;
                    }
                    
                    ul ul li::before {
                        background-color: white;
                        border-color: white;
                    }
                }
            }
        }
        
        &.box-bg-white {
            .text-content {
                ul, ol {
                    color: var(--text-dark);
                    
                    li {
                        color: var(--text-dark);
                        
                        &::before {
                            background-color: var(--primary);
                            border-color: var(--primary);
                        }
                        
                        &::marker {
                            color: var(--text-dark);
                        }
                    }
                    
                    /* Nested list bullet overrides */
                    ul li::before {
                        border-color: var(--primary);
                        background-color: transparent;
                    }
                    
                    ul ul li::before {
                        background-color: var(--primary);
                        border-color: var(--primary);
                    }
                }
            }
        }
    }
    
    .text-image-img {
        img {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 0.5rem;
        }
        
        /* SVG Styling */
        &.svg-container {
            svg {
                width: 100%;
                height: auto;
                max-width: 100%;
                display: block;
            }
        }
        
        &.aspect-square {
            img {
                aspect-ratio: 1 / 1;
                object-fit: cover;
            }
            
            /* SVG aspect ratio handling */
            &.svg-container {
                aspect-ratio: 1 / 1;
                display: flex;
                align-items: center;
                justify-content: center;
                
                svg {
                    width: 100%;
                    height: 100%;
                    object-fit: contain;
                }
            }
        }
        
        &.aspect-video {
            img {
                aspect-ratio: 16 / 9;
                object-fit: cover;
            }
            
            /* SVG aspect ratio handling */
            &.svg-container {
                aspect-ratio: 16 / 9;
                display: flex;
                align-items: center;
                justify-content: center;
                
                svg {
                    width: 100%;
                    height: 100%;
                    object-fit: contain;
                }
            }
        }
        
        &.aspect-natural {
            img {
                height: auto;
            }
            
            /* SVG natural aspect ratio */
            &.svg-container {
                svg {
                    height: auto;
                }
            }
        }
    }
}

/* Hero Block */
.hero-block {
    position: relative;
    padding: 8rem 0 6rem 0;
    background: var(--emerald);
    color: white;
    text-align: left;
    min-height: 100vh;
    display: flex;
    align-items: center;
    
    @media (max-width: 768px) {
        padding: 7rem 0 4rem 0;
        min-height: 80vh;
    }
    
    .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--emerald);
        z-index: 1;
    }
    
    .container {
        position: relative;
        z-index: 2;
        width: 100%;
    }
    
    .hero-content-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: center;
        
        @media (max-width: 768px) {
            grid-template-columns: 1fr;
            gap: 2rem;
            text-align: center;
        }
        
        @media (max-width: 480px) {
            gap: 1.5rem;
        }
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 3.5rem;
        margin: 0 0 1.5rem 0;
        line-height: 1.1;
        color: white;
        
        @media (max-width: 768px) {
            font-size: 2.5rem;
        }
        
        @media (max-width: 480px) {
            font-size: 2rem;
        }
    }
    
    .hero-subtitle {
        margin: 0 0 2.5rem 0;
        font-size: 1.1rem;
        line-height: 1.6;
        color: white;
        opacity: 0.95;
        
        p {
            margin-bottom: 1.25rem;
            color: white;
            opacity: 0.95;
        }
        
        /* Override global list styles for hero block lists */
        ul {
            list-style: none;
            padding-left: 0;
            margin: 1.5rem 0;
            
            @media (max-width: 768px) {
                margin: 1rem 0;
            }
            
            li {
                position: relative;
                padding-left: 2.5rem;
                margin-bottom: 0.75rem;
                color: white;
                opacity: 0.95;
                line-height: 1.6;
                
                @media (max-width: 768px) {
                    padding-left: 2rem;
                    margin-bottom: 0.5rem;
                }
                
                &::before {
                    content: '';
                    position: absolute;
                    left: 0;
                    top: 0.4rem !important;
                    width: 18px !important;
                    height: 18px !important;
                    background: url('data:image/svg+xml;utf8,<svg width="18" height="18" viewBox="0 0 16 17" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.34942 16.3065C8.40796 16.087 8.47383 15.8675 8.547 15.6517C9.49829 12.3815 12.1363 9.82819 15.4622 9.00514C15.55 8.97954 15.6378 8.95027 15.7256 8.92466C16.0915 8.82956 16.0915 8.32841 15.7256 8.23331C15.3451 8.13088 14.9719 8.00651 14.6097 7.86385C11.6972 6.85059 9.42146 4.48022 8.54334 1.50628C8.47016 1.29412 8.4043 1.0783 8.34576 0.858821C8.25063 0.493023 7.74938 0.493023 7.65425 0.858821C7.59571 1.08562 7.52619 1.30875 7.44936 1.52823C6.54929 4.55338 4.20399 6.95667 1.20742 7.92969C0.903735 8.04675 0.592728 8.15283 0.274411 8.24062C-0.0914704 8.33939 -0.0914704 8.83687 0.274411 8.93198C0.332952 8.94661 0.391497 8.96856 0.450039 8.98685C3.97348 9.81355 6.75052 12.579 7.59205 16.098C7.614 16.1675 7.63596 16.2406 7.65425 16.3101C7.74938 16.6759 8.25063 16.6759 8.34576 16.3101L8.34942 16.3065Z" fill="%230EA99F"/></svg>') no-repeat center center !important;
                    background-size: 18px 18px !important;
                    background-color: transparent !important;
                    border-radius: 0 !important;
                    border: none !important;
                    box-shadow: none !important;
                    transform: none !important;
                    
                    @media (max-width: 768px) {
                        width: 16px !important;
                        height: 16px !important;
                        background-size: 16px 16px !important;
                    }
                }
                
                a {
                    color: white;
                    text-decoration: underline;
                    opacity: 0.9;
                    
                    &:hover {
                        opacity: 1;
                        color: var(--emerald-bright);
                    }
                }
            }
        }
    }
    
    .button {
        font-size: 1rem;
        padding: 1rem 2rem;
        margin-top: 0;
    }
    
    .hero-graphic {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 400px;
        
        @media (max-width: 768px) {
            order: -1;
            min-height: 250px;
        }
        
        svg {
            width: 100%;
            height: auto;
            max-width: 600px;
        }
        
        .svg-animate {
            opacity: 0;
            animation-fill-mode: forwards;
            animation-duration: 0.8s;
            animation-timing-function: ease-out;
        }
        
        .svg-animate[data-delay="0.2"] {
            animation-name: fadeInSVG;
            animation-delay: 0.2s;
        }
        
        .svg-animate[data-delay="0.4"] {
            animation-name: fadeInSVG;
            animation-delay: 0.4s;
        }
        
        .svg-animate[data-delay="0.6"] {
            animation-name: fadeInSVG;
            animation-delay: 0.6s;
        }
        
        .svg-animate[data-delay="0.8"] {
            animation-name: fadeInSVG;
            animation-delay: 0.8s;
        }
        
        .svg-animate[data-delay="1.0"] {
            animation-name: fadeInSVG;
            animation-delay: 1.0s;
        }
        
        .svg-animate[data-delay="1.2"] {
            animation-name: fadeInSVG;
            animation-delay: 1.2s;
        }
        
        .svg-animate[data-delay="1.4"] {
            animation-name: fadeInSVG;
            animation-delay: 1.4s;
        }
        
        .svg-animate[data-delay="1.6"] {
            animation-name: fadeInSVG;
            animation-delay: 1.6s;
        }
    }
    
    @keyframes fadeInSVG {
        from {
            opacity: 0;
        }
        to {
            opacity: 1;
        }
    }
    
    .hero-svg-element {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
    }
}

/* Page Title Block */
.page-title-block {
    position: relative;
    margin-top: -1rem;
    padding: 6rem 0 6rem 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: left;
    
    @media (max-width: 768px) {
        padding: 5rem 0 4rem 0;
    }
    
    .page-title-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--emerald);
        background-blend-mode: multiply;
        opacity: 0.9;
    }
    
    .container {
        position: relative;
        z-index: 2;
    }
    
    .page-title-content {
        max-width: 800px;
    }
    
    .page-title-top {
        display: inline-block;
        color: var(--primary);
        font-weight: 600;
        margin-bottom: 1rem;
        font-size: 1.3rem;
    }
    
    .page-title-main {
        margin: 0 0 1.5rem 0;
    }
    
    .page-title-description {
        margin: 0 0 2.5rem 0;
        opacity: 0.95;
    }
    
    .button {
        font-size: 1rem;
        padding: 1rem 2rem;
    }
}

/* Logos Slider Block */
.logos-slider-block {
    padding: 5rem 0;
    overflow: hidden;
    
    &.bg-emerald-dark {
        background-color: var(--emerald-dark);
    }
    
    &.bg-emerald {
        background-color: var(--emerald);
    }
    
    &.bg-emerald-light {
        background-color: var(--emerald-light);
    }
    
    &.bg-primary {
        background-color: var(--primary);
    }
    
    &.bg-white {
        background-color: white;
    }
    
    .logos-row {
        overflow: hidden;
        white-space: nowrap;
        margin-bottom: 3rem;
        
        &:last-child {
            margin-bottom: 0;
        }
    }
    
    .logos-track {
        display: inline-flex;
        align-items: center;
        gap: 4rem;
        animation-duration: 200s;
        animation-timing-function: linear;
        animation-iteration-count: infinite;
        will-change: transform;
        
        &.logos-track-right {
            animation-name: scrollRight;
        }
        
        &.logos-track-left {
            animation-name: scrollLeft;
        }
    }
    
    .logo-item {
        flex-shrink: 0;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        
        img {
            max-height: 100%;
            max-width: 200px;
            width: auto;
            height: auto;
            object-fit: contain;
            filter: brightness(0) invert(1);
            transition: filter 0.3s ease;
        }
        
        &:hover img {
            filter: brightness(0) invert(1) opacity(0.8);
        }
    }
    
    @media (max-width: 768px) {
        padding: 4rem 0;
        
        .logos-track {
            gap: 3rem;
            animation-duration: 150s;
        }
        
        .logo-item {
            height: 40px;
            
            img {
                max-width: 150px;
            }
        }
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollLeft {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Two Column Text Block */
.two-column-text-block {
    position: relative;
    padding: 6rem 0;
    color: white;
    
    &.bg-emerald-dark {
        background-color: var(--emerald-dark);
        background-image: url('images/pattern.svg');
        background-position: 50% 0;
        background-size: 230px 230px;
        background-attachment: fixed;
        
        &::before {
            background: linear-gradient(to bottom, var(--emerald-dark) 0%, var(--emerald-dark) 66.67%, transparent 100%);
        }
    }
    
    &.bg-emerald {
        background-color: var(--emerald);
        background-image: url('images/pattern.svg');
        background-position: 50% 0;
        background-size: 230px 230px;
        background-attachment: fixed;
        
        &::before {
            background: linear-gradient(to bottom, var(--emerald) 0%, var(--emerald) 66.67%, transparent 100%);
        }
    }
    
    &.bg-emerald-light {
        background-color: var(--emerald-light);
        background-image: url('images/pattern.svg');
        background-position: 50% 0;
        background-size: 230px 230px;
        background-attachment: fixed;
        
        &::before {
            background: linear-gradient(to bottom, var(--emerald-light) 0%, var(--emerald-light) 66.67%, transparent 100%);
        }
    }
    
    &.bg-primary {
        background-color: var(--primary);
        background-image: url('images/pattern.svg');
        background-position: 50% 0;
        background-size: 230px 230px;
        background-attachment: fixed;
        
        &::before {
            background: linear-gradient(to bottom, var(--primary) 0%, var(--primary) 66.67%, transparent 100%);
        }
    }
    
    &.bg-white {
        background-color: white;
        color: var(--text-color);
    }
    
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        pointer-events: none;
    }
    
    .container {
        position: relative;
        z-index: 2;
    }
    
    .two-column-text-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        
        @media (max-width: 992px) {
            grid-template-columns: 1fr;
            gap: 3rem;
        }
    }
    
    .two-column-text-left,
    .two-column-text-right {
        h1, h2, h3, h4, h5, h6 {
            margin-top: 0;
            color: inherit;
        }
        
        p:last-child {
            margin-bottom: 0;
        }
        
        a {
            color: inherit;
            opacity: 0.9;
            
            &:hover {
                opacity: 1;
            }
        }
    }
    
    @media (max-width: 768px) {
        padding: 4rem 0;
        
        &::before {
            height: 25%;
        }
    }
}

/* One Column Text Block */
.one-column-text-block {
    position: relative;
    padding: 6rem 0;
    color: white;
    
    &.bg-emerald-dark {
        background-color: var(--emerald-dark);
        background-image: url('images/pattern.svg');
        background-position: 50% 0;
        background-size: 230px 230px;
        background-attachment: fixed;
        
        &::before {
            background: linear-gradient(to bottom, var(--emerald-dark) 0%, var(--emerald-dark) 40%, transparent 100%);
        }
    }
    
    &.bg-emerald {
        background-color: var(--emerald);
        background-image: url('images/pattern.svg');
        background-position: 50% 0;
        background-size: 230px 230px;
        background-attachment: fixed;
        
        &::before {
            background: linear-gradient(to bottom, var(--emerald) 0%, var(--emerald) 40%, transparent 100%);
        }
    }
    
    &.bg-emerald-light {
        background-color: var(--emerald-light);
        background-image: url('images/pattern.svg');
        background-position: 50% 0;
        background-size: 230px 230px;
        background-attachment: fixed;
        
        &::before {
            background: linear-gradient(to bottom, var(--emerald-light) 0%, var(--emerald-light) 40%, transparent 100%);
        }
    }
    
    &.bg-primary {
        background-color: var(--primary);
        background-image: url('images/pattern.svg');
        background-position: 50% 0;
        background-size: 230px 230px;
        background-attachment: fixed;
        
        &::before {
            background: linear-gradient(to bottom, var(--primary) 0%, var(--primary) 40%, transparent 100%);
        }
    }
    
    &.bg-white {
        background-color: white;
        color: var(--emerald);
    }
    
    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        pointer-events: none;
    }
    
    .container {
        position: relative;
        z-index: 2;
    }
    
    .one-column-text-content {
        h1, h2, h3, h4, h5, h6 {
            margin-top: 0;
            color: inherit;
        }
        
        p:last-child {
            margin-bottom: 0;
        }
        
        a {
            color: inherit;
            opacity: 0.9;
            
            &:hover {
                opacity: 1;
            }
        }
    }
    
    @media (max-width: 768px) {
        padding: 4rem 0;
        
        &::before {
            height: 25%;
        }
    }
}

/* Values Block */
.values-block {
    position: relative;
    padding: 6rem 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    
    .values-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--emerald);
        background-blend-mode: multiply;
        opacity: 0.9;
    }
    
    .container {
        position: relative;
        z-index: 2;
    }
    
    .values-content {
        max-width: 1000px;
        margin: 0 auto;
    }
    
    .values-section-title {
        margin: 0 0 3rem 0;
        text-align: center;
        color: white;
    }
    
    .values-accordion {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .value-item {
        background: var(--emerald-light);
        border-radius: 0.75rem;
        overflow: hidden;
        transition: all 0.3s ease;
        
        &[open] {
            .value-plus {
                display: none;
            }
            
            .value-minus {
                display: block;
            }
            
            .value-content {
                max-height: 500px;
                opacity: 1;
                padding: 0 2rem 2rem 2rem;
            }
        }
        
        &:not([open]) {
            .value-plus {
                display: block;
            }
            
            .value-minus {
                display: none;
            }
            
            .value-content {
                max-height: 0;
                opacity: 0;
                padding: 0 2rem;
                overflow: hidden;
            }
        }
        
        &:hover .value-toggle {
            transform: scale(1.1);
        }
    }
    
    .value-summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1.5rem 2rem;
        cursor: pointer;
        list-style: none;
        user-select: none;
        transition: all 0.3s ease;
        
        &::-webkit-details-marker {
            display: none;
        }
    }
    
    .value-summary-content {
        display: flex;
        align-items: center;
        gap: 1rem;
        flex: 1;
    }
    
    .value-icon {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
        
        img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }
    }
    
    .value-title {
        margin: 0;
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--emerald-bright);
        line-height: 1.3;
    }
    
    .value-toggle {
        width: 40px;
        height: 40px;
        background: var(--emerald-bright);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        flex-shrink: 0;
        transition: all 0.3s ease;
        
        svg {
            width: 20px;
            height: 20px;
            transition: transform 0.3s ease;
        }
        
        &:hover svg {
            transform: rotate(180deg);
        }
    }
    
    .value-content {
        color: white;
        line-height: 1.6;
        transition: all 0.4s ease;
        
        p {
            margin: 0 0 1rem 0;
            opacity: 0.95;
            
            &:last-child {
                margin-bottom: 0;
            }
        }
    }
    
    @media (max-width: 768px) {
        padding: 4rem 0;
        
        .values-section-title {
            margin-bottom: 2.5rem;
        }
        
        .value-summary {
            padding: 1.25rem 1.5rem;
        }
        
        .value-summary-content {
            gap: 0.75rem;
        }
        
        .value-icon {
            width: 40px;
            height: 40px;
        }
        
        .value-title {
            font-size: 1.1rem;
        }
        
        .value-toggle {
            width: 36px;
            height: 36px;
            
            svg {
                width: 18px;
                height: 18px;
            }
        }
        
        .value-item[open] .value-content {
            padding: 0 1.5rem 1.5rem 1.5rem;
        }
        
        .value-item:not([open]) .value-content {
            padding: 0 1.5rem;
        }
    }
}

/* Benefits Boxes Block */
.benefits-boxes-block {
    position: relative;
    padding: 6rem 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    
    .benefits-background-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: var(--emerald);
        background-blend-mode: multiply;
        opacity: 0.9;
        z-index: 1;
    }
    
    .container {
        position: relative;
        z-index: 10;
    }
    
    .benefits-section-title {
        margin: 0 0 3rem 0;
        text-align: center;
        color: white;
        font-size: 2.5rem;
        font-weight: 700;
    }
    
    .benefits-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        
        @media (max-width: 768px) {
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }
    }
    
    .benefit-card {
        background: rgba(255, 255, 255, 0.95);
        border-radius: 1rem;
        padding: 2rem;
        color: var(--text-dark);
        box-shadow: 0 0 0 1px rgba(var(--emerald-bright-rgb), 0.2), 
                    0 4px 6px -1px rgba(0, 0, 0, 0.1), 
                    0 2px 4px -1px rgba(0, 0, 0, 0.06);
    }
    
    .benefit-icon {
        margin-bottom: 1.5rem;
        
        img {
            width: 48px;
            height: 48px;
            display: block;
        }
    }
    
    .benefit-title {
        font-size: 1.375rem;
        font-weight: 600;
        margin: 0 0 1rem 0;
        color: var(--primary);
        line-height: 1.3;
    }
    
    .benefit-description {
        margin: 0;
        line-height: 1.6;
        opacity: 0.8;
        color: var(--text-dark);
        font-size: 0.9rem;
    }
    
    @media (max-width: 992px) {
        padding: 4rem 0;
        
        .benefits-section-title {
            font-size: 2rem;
        }
        
        .benefit-card {
            padding: 1.5rem;
        }
        
        .benefit-title {
            font-size: 1.25rem;
        }
    }
    
    @media (max-width: 768px) {
        padding: 3rem 0;
        
        .benefits-section-title {
            font-size: 1.75rem;
            margin-bottom: 2rem;
        }
        
        .benefit-card {
            padding: 1.25rem;
        }
        
        .benefit-icon img {
            width: 40px;
            height: 40px;
        }
        
        .benefit-title {
            font-size: 1.125rem;
        }
    }
}

/* Feature Boxes Block */
.feature-boxes-block {
    padding: 4rem 0;
    
    &.bg-emerald-dark {
        background-color: var(--emerald-dark);
        color: white;
    }
    
    &.bg-emerald {
        background-color: var(--emerald);
        color: white;
    }
    
    &.bg-emerald-light {
        background-color: var(--emerald-light);
        color: white;
    }
    
    &.bg-primary {
        background-color: var(--primary);
        color: white;
    }
    
    &.bg-white {
        background-color: white;
        color: var(--text-dark);
    }
    
    .feature-boxes-section-title {
        margin: 0 0 3rem 0;
        text-align: center;
        color: inherit;
    }
    
    .feature-boxes-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 2rem;
        justify-content: center;
        
        @media (max-width: 768px) {
            gap: 1.5rem;
        }
    }
    
    .feature-box-card {
        background: white;
        border-radius: 0.75rem;
        overflow: hidden;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        flex-direction: column;
        
        /* Default: 3 cards per row (1/3 width each) */
        width: calc((100% - 4rem) / 3);
        
        /* If there are only 2 cards total, make them 1/3 width and centered */
        .feature-boxes-grid:has(.feature-box-card:nth-child(2):last-child) & {
            width: calc((100% - 2rem) / 3);
        }
        
        @media (max-width: 992px) {
            /* 2 cards per row on tablets */
            width: calc((100% - 2rem) / 2);
            
            /* Override 2-card centering on tablet */
            .feature-boxes-grid:has(.feature-box-card:nth-child(2):last-child) & {
                width: calc((100% - 2rem) / 2);
            }
        }
        
        @media (max-width: 768px) {
            /* 1 card per row on mobile */
            width: 100%;
        }
        
        &:hover {
            transform: translateY(-4px);
            box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }
    }
    
    .feature-box-image {
        overflow: hidden;
        
        img {
            width: 100%;
            height: 240px;
            object-fit: cover;
            object-position: center;
            aspect-ratio: 16 / 9;
            display: block;
            transition: transform 0.3s ease;
        }
        
        &.aspect-1-1 {
            img {
                height: auto;
                aspect-ratio: 1 / 1;
                object-fit: cover;
            }
        }
        
        /* .feature-box-card:hover & img {
            transform: scale(1.05);
        } */
    }
    
    .feature-box-content {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        flex: 1;
        color: var(--text-dark);
    }
    
    .feature-box-title {
        font-size: 1.25rem;
        font-weight: 600;
        margin: 0 0 1rem 0;
        color: var(--emerald);
        line-height: 1.3;
    }
    
    .feature-box-description {
        margin: 0 0 1.5rem 0;
        line-height: 1.6;
        opacity: 0.8;
        flex: 1;
    }
    
    .feature-box-button {
        margin-top: auto;
        
        .button {
            width: 100%;
            text-align: center;
            justify-content: center;
            font-size: 0.9rem;
            padding: 0.75rem 1.5rem;
        }
    }
    
    @media (max-width: 768px) {
        padding: 3rem 0;
        
        .feature-box-image img {
            height: 200px;
        }
        
        .feature-box-content {
            padding: 1.25rem;
        }
        
        .feature-box-title {
            font-size: 1.1rem;
        }
    }
}

/* Meet the Team Block */
.meet-the-team-block {
    padding: 4rem 0;
    text-align: center;
    
    &.bg-emerald-dark {
        background-color: var(--emerald-dark);
        color: white;
    }
    
    &.bg-emerald {
        background-color: var(--emerald);
        color: white;
    }
    
    &.bg-emerald-light {
        background-color: var(--emerald-light);
        color: white;
    }
    
    &.bg-primary {
        background-color: var(--primary);
        color: white;
    }
    
    &.bg-white {
        background-color: white;
        color: var(--text-dark);
    }
    
    .team-section-title {
        margin: 0 0 3rem 0;
        text-align: center;
        color: inherit;
    }
    
    .team-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
        
        @media (max-width: 900px) {
            grid-template-columns: repeat(2, 1fr);
            gap: 2.5rem;
        }
        
        @media (max-width: 600px) {
            grid-template-columns: 1fr;
            gap: 2rem;
        }
    }
    
    .team-member-card {
        text-align: left;
        transition: transform 0.3s ease;
        
        &:hover {
            transform: translateY(-4px);
        }
    }
    
    .team-member-photo {
        margin: 0 0 1.5rem 0;
        
        img {
            width: 100%;
            aspect-ratio: 1 / 1;
            border-radius: 1rem;
            object-fit: cover;
            object-position: center;
            display: block;
            transition: transform 0.3s ease;
        }
        
        /* .team-member-card:hover & img {
            transform: scale(1.02);
        } */
    }
    
    .team-member-info {
        color: var(--text-dark);
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        position: relative;
    }
    
    .team-member-name {
        font-size: 1.25rem;
        font-weight: 600;
        margin: 0;
        color: var(--emerald);
        line-height: 1.3;
    }
    
    .team-member-title {
        font-size: 0.95rem;
        margin: 0;
        color: var(--secondary);
        font-weight: 500;
        line-height: 1.4;
    }
    
    .team-member-linkedin {
        position: absolute;
        top: 0;
        right: 0;
        
        .linkedin-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            color: #0077b5;
            text-decoration: none;
            transition: all 0.3s ease;
            
            &:hover {
                color: #005885;
                transform: translateY(-2px);
            }
            
            svg {
                width: 20px;
                height: 20px;
            }
        }
    }
    
    @media (max-width: 768px) {
        padding: 3rem 0;
        
        .team-section-title {
            margin-bottom: 2.5rem;
        }
        
        .team-member-name {
            font-size: 1.1rem;
        }
        
        .team-member-title {
            font-size: 0.9rem;
        }
    }
}

/* Contact Form 7 Global Styles */
.cf7-form-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    
    @media (max-width: 768px) {
        padding: 2rem;
        border-radius: 8px;
    }
}

.cf7-form-fields {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    
    p {
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    label {
        font-weight: 600;
        color: #374151;
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }
}

.cf7-field {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.5;
    background-color: white;
    transition: all 0.2s ease;
    font-family: inherit;
    
    &:focus {
        outline: none;
        border-color: var(--emerald);
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    }
    
    &::placeholder {
        color: #9ca3af;
    }
    
    &.wpcf7-not-valid {
        border-color: #ef4444;
        
        &:focus {
            border-color: #ef4444;
            box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
        }
    }
}

textarea.cf7-field {
    min-height: 120px;
    resize: vertical;
}

.cf7-consent {
    p {
        margin: 0;
        font-size: 0.85rem;
        line-height: 1.4;
        color: #4b5563;
        overflow: hidden;
        display: block !important;
        flex-direction: row !important;
    }
    
    .wpcf7-form-control-wrap {
        float: left;
        margin-right: 0.75rem;
        margin-top: 2px;
    }
    
    .wpcf7-list-item {
        margin: 0;
        
        input[type="checkbox"] {
            appearance: none;
            width: 18px;
            height: 18px;
            border: 2px solid #d1d5db;
            border-radius: 4px;
            background-color: white;
            position: relative;
            cursor: pointer;
            margin: 0;
            display: block;
            
            &:checked {
                background-color: var(--emerald);
                border-color: var(--emerald);
                
                &::after {
                    content: '';
                    position: absolute;
                    left: 4px;
                    top: 1px;
                    width: 4px;
                    height: 8px;
                    border: solid white;
                    border-width: 0 2px 2px 0;
                    transform: rotate(45deg);
                }
            }
            
            &:focus {
                outline: none;
                box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
            }
        }
    }
    
    a {
        color: var(--emerald);
        text-decoration: underline;
        
        &:hover {
            color: var(--emerald-dark);
        }
    }
}

.cf7-submit {
    background-color: var(--emerald);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    align-self: flex-start;
    
    &:hover {
        background-color: var(--emerald-dark);
        transform: translateY(-1px);
    }
    
    &:active {
        transform: translateY(0);
    }
    
    &:disabled {
        background-color: #d1d5db;
        cursor: not-allowed;
        transform: none;
    }
}

/* Contact Form 7 Response Messages */
.wpcf7-response-output {
    margin: 1rem 0 0 0;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    
    &.wpcf7-mail-sent-ok {
        background-color: #dcfce7;
        color: #166534;
        border: 1px solid #bbf7d0;
    }
    
    &.wpcf7-mail-sent-ng,
    &.wpcf7-validation-errors {
        background-color: #fef2f2;
        color: #991b1b;
        border: 1px solid #fecaca;
    }
    
    &.wpcf7-spam-blocked {
        background-color: #fef3c7;
        color: #92400e;
        border: 1px solid #fde68a;
    }
}

.wpcf7-not-valid-tip {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Loading Spinner */
.wpcf7-spinner {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Case Studies Listing Block */
.case-studies-listing-block {
    padding: 4rem 0;
    background-color: var(--emerald);
    color: white;
    
    &.bg-emerald-dark {
        background-color: var(--emerald-dark);
        color: white;
    }
    
    &.bg-emerald {
        background-color: var(--emerald);
        color: white;
    }
    
    &.bg-emerald-light {
        background-color: var(--emerald-light);
        color: white;
    }
    
    &.bg-primary {
        background-color: var(--primary);
        color: white;
    }
    
    &.bg-white {
        background-color: white;
        color: var(--text-dark);
    }
    
    /* Force dark background on case study archive pages */
    .case-study-archive-page &,
    .case-study-archive-page &.bg-white {
        background-color: var(--emerald) !important;
        color: white !important;
    }
    
    .case-studies-section-title {
        margin: 0 0 3rem 0;
        text-align: center;
        color: inherit;
        font-size: 2.5rem;
        font-weight: 600;
    }
    
    .case-studies-filters {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 3rem;
        flex-wrap: wrap;
        
        .case-study-filter-btn {
            display: inline-block;
            padding: 0.75rem 1.4rem;
            background: white;
            border: 1px solid var(--emerald-light);
            color: var(--emerald-light);
            border-radius: 0.4rem;
            text-decoration: none;
            font-weight: 500;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.85rem;
            line-height: 1;
            
            &:hover,
            &.active {
                background: var(--emerald-light);
                color: white;
                border-color: var(--emerald-light);
            }
        }
    }
    
    .case-studies-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        
        @media (max-width: 992px) {
            grid-template-columns: repeat(2, 1fr);
        }
        
        @media (max-width: 768px) {
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }
    }
    
    .case-study-card {
        background: white;
        border-radius: 0.75rem;
        overflow: hidden;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        flex-direction: column;
        height: 100%;
        
        &:hover {
            transform: translateY(-4px);
            box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }
    }
    
    .case-study-image {
        overflow: hidden;
        
        img {
            width: 100%;
            height: 240px;
            object-fit: cover;
            object-position: center;
            aspect-ratio: 3 / 2;
            display: block;
            transition: transform 0.3s ease;
        }
        
        .case-study-card:hover & img {
            transform: scale(1.05);
        }
        
        .case-study-placeholder {
            width: 100%;
            height: 240px;
            background: var(--emerald-light);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 0.9rem;
            
            &::after {
                content: 'No Image';
            }
        }
    }
    
    .case-study-content {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        color: var(--text-dark);
    }
    
    .case-study-title {
        font-size: 1.25rem;
        font-weight: 600;
        margin: 0 0 0.5rem 0;
        color: var(--emerald);
        line-height: 1.3;
        
        a {
            color: inherit;
            text-decoration: none;
            
            &:hover {
                color: var(--primary);
            }
        }
    }
    
    .case-study-job-title {
        font-size: 1rem;
        font-weight: 500;
        margin: 0 0 1rem 0;
        color: var(--primary);
        line-height: 1.4;
    }
    
    .case-study-excerpt {
        margin: 0 0 1.5rem 0;
        line-height: 1.6;
        opacity: 0.8;
        flex-grow: 1;
    }
    
    .case-study-button {
        margin-top: auto;
        
        .button {
            width: 100%;
            text-align: center;
            justify-content: center;
            font-size: 0.9rem;
            padding: 0.75rem 1.5rem;
        }
    }
    
    .no-case-studies {
        text-align: center;
        color: inherit;
        opacity: 0.7;
        margin: 2rem 0;
    }
    
    @media (max-width: 768px) {
        padding: 3rem 0;
        
        .case-studies-section-title {
            font-size: 2rem;
            margin-bottom: 2rem;
        }
        
        .case-studies-filters {
            margin-bottom: 2rem;
            gap: 0.75rem;
            
            .case-study-filter-btn {
                padding: 0.5rem 1rem;
                font-size: 0.8rem;
            }
        }
        
        .case-study-image img,
        .case-study-placeholder {
            height: 200px;
        }
        
        .case-study-content {
            padding: 1.25rem;
        }
        
        .case-study-title {
            font-size: 1.1rem;
        }
    }
}

/* Latest Posts Block */
.latest-posts-block {
    padding: 4rem 0;
    
    &.bg-emerald-dark {
        background-color: var(--emerald-dark);
        color: white;
    }
    
    &.bg-emerald {
        background-color: var(--emerald);
        color: white;
    }
    
    &.bg-emerald-light {
        background-color: var(--emerald-light);
        color: white;
    }
    
    &.bg-primary {
        background-color: var(--primary);
        color: white;
    }
    
    &.bg-white {
        background-color: white;
        color: var(--text-dark);
    }
    
    .latest-posts-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 3rem;
        
        @media (max-width: 768px) {
            flex-direction: column;
            align-items: flex-start;
            gap: 1.5rem;
        }
    }
    
    .latest-posts-section-title {
        margin: 0;
        text-align: left;
        color: inherit;
        font-size: 2.5rem;
        font-weight: 600;
        
        @media (max-width: 768px) {
            font-size: 2rem;
        }
    }
    
    .latest-posts-see-all {
        text-align: right;
        
        @media (max-width: 768px) {
            text-align: left;
            align-self: flex-start;
        }
    }
    
    .latest-posts-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        
        @media (max-width: 992px) {
            grid-template-columns: repeat(2, 1fr);
        }
        
        @media (max-width: 768px) {
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }
    }
    
    .latest-post-card {
        background: white;
        border-radius: 0.75rem;
        overflow: hidden;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        flex-direction: column;
        height: 100%;
        
        &:hover {
            transform: translateY(-4px);
            box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }
    }
    
    .latest-post-image {
        overflow: hidden;
        
        img {
            width: 100%;
            height: 240px;
            object-fit: cover;
            object-position: center;
            aspect-ratio: 3 / 2;
            display: block;
            transition: transform 0.3s ease;
        }
        
        .latest-post-card:hover & img {
            transform: scale(1.05);
        }
        
        .latest-post-placeholder {
            width: 100%;
            height: 240px;
            background: var(--emerald-light);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 0.9rem;
            
            &::after {
                content: 'No Image';
            }
        }
    }
    
    .latest-post-content {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        color: var(--text-dark);
    }
    
    .latest-post-title {
        font-size: 1.25rem;
        font-weight: 600;
        margin: 0 0 0.5rem 0;
        color: var(--emerald);
        line-height: 1.3;
        
        a {
            color: inherit;
            text-decoration: none;
            
            &:hover {
                color: var(--primary);
            }
        }
    }
    
    .latest-post-job-title {
        font-size: 1rem;
        font-weight: 500;
        margin: 0 0 1rem 0;
        color: var(--primary);
        line-height: 1.4;
    }
    
    .latest-post-excerpt {
        margin: 0 0 1.5rem 0;
        line-height: 1.6;
        opacity: 0.8;
        flex-grow: 1;
    }
    
    .latest-post-button {
        margin-top: auto;
        
        .button {
            width: 100%;
            text-align: center;
            justify-content: center;
            font-size: 0.9rem;
            padding: 0.75rem 1.5rem;
        }
    }
    
    .no-posts {
        text-align: center;
        color: inherit;
        opacity: 0.7;
        margin: 2rem 0;
    }
    
    @media (max-width: 768px) {
        padding: 3rem 0;
        
        .latest-post-image img,
        .latest-post-placeholder {
            height: 200px;
        }
        
        .latest-post-content {
            padding: 1.25rem;
        }
        
        .latest-post-title {
            font-size: 1.1rem;
        }
    }
}

/* Blog Listing Block */
.blog-listing-block {
    padding: 4rem 0;
    
    &.bg-emerald-dark {
        background-color: var(--emerald-dark);
        color: white;
    }
    
    &.bg-emerald {
        background-color: var(--emerald);
        color: white;
    }
    
    &.bg-emerald-light {
        background-color: var(--emerald-light);
        color: white;
    }
    
    &.bg-primary {
        background-color: var(--primary);
        color: white;
    }
    
    &.bg-white {
        background-color: white;
        color: var(--text-dark);
    }
    
    .blog-section-title {
        margin: 0 0 3rem 0;
        text-align: center;
        color: inherit;
        font-size: 2.5rem;
        font-weight: 600;
    }
    
    .blog-filters {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin-bottom: 3rem;
        flex-wrap: wrap;
        
        .blog-filter-btn {
            display: inline-block;
            padding: 0.75rem 1.4rem;
            background: white;
            border: 1px solid var(--emerald-light);
            color: var(--emerald-light);
            border-radius: 0.4rem;
            text-decoration: none;
            font-weight: 500;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.85rem;
            line-height: 1;
            
            &:hover,
            &.active {
                background: var(--emerald-light);
                color: white;
                border-color: var(--emerald-light);
            }
        }
    }
    
    .blog-posts-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        
        @media (max-width: 992px) {
            grid-template-columns: repeat(2, 1fr);
        }
        
        @media (max-width: 768px) {
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }
    }
    
    .blog-post-card {
        background: white;
        border-radius: 0.75rem;
        overflow: hidden;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        flex-direction: column;
        height: 100%;
        
        &:hover {
            transform: translateY(-4px);
            box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }
    }
    
    .blog-post-image {
        overflow: hidden;
        
        img {
            width: 100%;
            height: 240px;
            object-fit: cover;
            object-position: center;
            aspect-ratio: 3 / 2;
            display: block;
            transition: transform 0.3s ease;
        }
        
        .blog-post-card:hover & img {
            transform: scale(1.05);
        }
        
        .blog-post-placeholder {
            width: 100%;
            height: 240px;
            background: var(--emerald-light);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 0.9rem;
            
            &::after {
                content: 'No Image';
            }
        }
    }
    
    .blog-post-content {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
        color: var(--text-dark);
    }
    
    .blog-post-meta {
        display: flex;
        gap: 1rem;
        margin-bottom: 1rem;
        font-size: 0.9rem;
        
        .blog-post-date {
            color: #666;
        }
        
        .blog-post-category {
            color: var(--primary);
            font-weight: 500;
        }
    }
    
    .blog-post-title {
        font-size: 1.25rem;
        font-weight: 600;
        margin: 0 0 1rem 0;
        color: var(--emerald);
        line-height: 1.3;
        
        a {
            color: inherit;
            text-decoration: none;
            
            &:hover {
                color: var(--primary);
            }
        }
    }
    
    .blog-post-excerpt {
        margin: 0 0 1.5rem 0;
        line-height: 1.6;
        opacity: 0.8;
        flex-grow: 1;
    }
    
    .blog-post-button {
        margin-top: auto;
        
        .button {
            width: 100%;
            text-align: center;
            justify-content: center;
            font-size: 0.9rem;
            padding: 0.75rem 1.5rem;
        }
    }
    
    .no-blog-posts {
        text-align: center;
        color: inherit;
        opacity: 0.7;
        margin: 2rem 0;
    }
    
    @media (max-width: 768px) {
        padding: 3rem 0;
        
        .blog-section-title {
            font-size: 2rem;
            margin-bottom: 2rem;
        }
        
        .blog-filters {
            margin-bottom: 2rem;
            gap: 0.75rem;
            
            .blog-filter-btn {
                padding: 0.5rem 1rem;
                font-size: 0.8rem;
            }
        }
        
        .blog-post-image img,
        .blog-post-placeholder {
            height: 200px;
        }
        
        .blog-post-content {
            padding: 1.25rem;
        }
        
        .blog-post-title {
            font-size: 1.1rem;
        }
    }
}

/* Single Case Study */
.single-case-study {
    .case-study-header {
        background: var(--emerald);
        color: white;
        padding: 6rem 0 4rem 0;
        text-align: center;
        
        .case-study-header-subtitle {
            display: inline-block;
            color: var(--primary);
            font-weight: 600;
            margin-bottom: 1rem;
            font-size: 1.3rem;
        }
        
        .case-study-title {
            font-size: 3rem;
            margin: 0 0 2rem 0;
            line-height: 1.2;
            
            @media (max-width: 768px) {
                font-size: 2.5rem;
            }
        }
        
        .case-study-job-title {
            font-size: 1.5rem;
            font-weight: 500;
            margin: 0 0 2rem 0;
            color: var(--primary);
            line-height: 1.4;
        }
        
        .case-study-categories {
            display: flex;
            justify-content: center;
            gap: 1rem;
            flex-wrap: wrap;
        }
        
        .case-study-category-tag {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            font-size: 0.9rem;
            font-weight: 500;
        }
    }
    
    .case-study-featured-image {
        background: white;
        padding-top: 3rem;
        
        .container {
            .case-study-image-wrapper {
                margin-bottom: 0;
                max-width: 1000px;
                margin-left: auto;
                margin-right: auto;
            }
            
            .case-study-featured-img {
                width: 100%;
                height: auto;
                border-radius: 1rem;
                box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            }
        }
    }
    
    .case-study-content {
        padding: 2rem 0 4rem 0;
        background: white;
        
        .case-study-content-wrapper {
            max-width: 800px;
            margin: 0 auto;
            
            h1, h2, h3, h4, h5, h6 {
                color: var(--emerald);
                margin-top: 2rem;
                margin-bottom: 1rem;
                
                &:first-child {
                    margin-top: 0;
                }
            }
            
            h2 {
                font-size: 2rem;
                
                &:first-child {
                    margin-top: 0;
                }
            }
            
            h3 {
                font-size: 1.5rem;
            }
            
            p {
                margin-bottom: 1.5rem;
                line-height: 1.7;
                color: var(--text-dark);
            }
            
            img {
                max-width: 100%;
                height: auto;
                border-radius: 0.5rem;
                margin: 2rem 0;
            }
        }
    }
    
    .related-case-studies {
        padding: 4rem 0;
        background: #f8f9fa;
        
        .related-section-title {
            margin: 0 0 3rem 0;
            text-align: center;
            color: var(--emerald);
            font-size: 2.5rem;
            font-weight: 600;
        }
        
        .related-case-studies-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
            
            @media (max-width: 992px) {
                grid-template-columns: repeat(2, 1fr);
            }
            
            @media (max-width: 768px) {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
        }
        
        .related-case-study-card {
            background: white;
            border-radius: 0.75rem;
            overflow: hidden;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        
        .related-case-study-image {
            overflow: hidden;
            
            img {
                width: 100%;
                height: 200px;
                object-fit: cover;
                object-position: center;
                display: block;
            }
            
            .related-case-study-placeholder {
                width: 100%;
                height: 200px;
                background: var(--emerald-light);
                display: flex;
                align-items: center;
                justify-content: center;
                color: white;
                font-size: 0.9rem;
                
                &::after {
                    content: 'No Image';
                }
            }
        }
        
        .related-case-study-content {
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }
        
        .related-case-study-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin: 0 0 0.5rem 0;
            color: var(--emerald);
            line-height: 1.3;
            
            a {
                color: inherit;
                text-decoration: none;
                
                &:hover {
                    color: var(--primary);
                }
            }
        }
        
        .related-case-study-job-title {
            font-size: 0.9rem;
            font-weight: 500;
            margin: 0 0 1rem 0;
            color: var(--primary);
            line-height: 1.4;
        }
        
        .related-case-study-excerpt {
            margin: 0 0 1.5rem 0;
            line-height: 1.6;
            opacity: 0.8;
            flex-grow: 1;
            font-size: 0.9rem;
        }
        
        .related-case-study-button {
            margin-top: auto;
            
            .button {
                width: 100%;
                text-align: center;
                justify-content: center;
                font-size: 0.85rem;
                padding: 0.6rem 1.2rem;
            }
        }
    }
    
    @media (max-width: 768px) {
        .case-study-header {
            padding: 4rem 0 3rem 0;
            
            .case-study-job-title {
                font-size: 1.25rem;
            }
        }
        
        .case-study-featured-image {
            padding: 2rem 0;
        }
        
        .case-study-content {
            padding: 3rem 0;
        }
        
        .related-case-studies {
            padding: 3rem 0;
            
            .related-section-title {
                font-size: 2rem;
                margin-bottom: 2rem;
            }
        }
    }
}

/* Single Blog Post */
.single-blog-post {
    .blog-post-header {
        background: var(--emerald);
        color: white;
        padding: 6rem 0 4rem 0;
        text-align: center;
        
        .blog-post-categories {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }
        
        .blog-post-category-tag {
            background: rgba(255, 255, 255, 0.2);
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 0.5rem;
            font-size: 0.9rem;
            font-weight: 500;
        }
        
        .blog-post-title {
            font-size: 3rem;
            margin: 0 0 1.5rem 0;
            line-height: 1.2;
            
            @media (max-width: 768px) {
                font-size: 2.5rem;
            }
        }
        
        .blog-post-meta {
            display: flex;
            justify-content: center;
            gap: 2rem;
            font-size: 1rem;
            opacity: 0.9;
            
            @media (max-width: 768px) {
                flex-direction: column;
                gap: 0.5rem;
            }
        }
        
        .blog-post-date {
            opacity: 0.8;
        }
    }
    
    .blog-post-featured-image {
        background: white;
        padding-top: 2rem;
        
        .container {
            .blog-post-image-wrapper {
                margin-bottom: 0;
                max-width: 1000px;
                margin-left: auto;
                margin-right: auto;
            }
            
            .blog-post-featured-img {
                width: 100%;
                height: auto;
                border-radius: 1rem;
                box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
            }
        }
    }
    
    .blog-post-content {
        padding: 2rem 0 4rem 0;
        background: white;
        
        .blog-post-content-wrapper {
            max-width: 800px;
            margin: 0 auto;
            
            h1, h2, h3, h4, h5, h6 {
                color: var(--emerald);
                margin-top: 2rem;
                margin-bottom: 1rem;
                
                &:first-child {
                    margin-top: 0;
                }
            }
            
            h2 {
                font-size: 2rem;
                
                &:first-child {
                    margin-top: 0;
                }
            }
            
            h3 {
                font-size: 1.5rem;
            }
            
            p {
                margin-bottom: 1.5rem;
                line-height: 1.7;
                color: var(--text-dark);
            }
            
            img {
                max-width: 100%;
                height: auto;
                border-radius: 0.5rem;
                margin: 2rem 0;
            }
        }
    }
    
    .related-blog-posts {
        padding: 4rem 0;
        background: #f8f9fa;
        
        .related-section-title {
            margin: 0 0 3rem 0;
            text-align: center;
            color: var(--emerald);
            font-size: 2.5rem;
            font-weight: 600;
        }
        
        .related-blog-posts-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
            
            @media (max-width: 992px) {
                grid-template-columns: repeat(2, 1fr);
            }
            
            @media (max-width: 768px) {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
        }
        
        .related-blog-post-card {
            background: white;
            border-radius: 0.75rem;
            overflow: hidden;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            display: flex;
            flex-direction: column;
            height: 100%;
        }
        
        .related-blog-post-image {
            overflow: hidden;
            
            img {
                width: 100%;
                height: 200px;
                object-fit: cover;
                object-position: center;
                display: block;
            }
            
            .related-blog-post-placeholder {
                width: 100%;
                height: 200px;
                background: var(--emerald-light);
                display: flex;
                align-items: center;
                justify-content: center;
                color: white;
                font-size: 0.9rem;
                
                &::after {
                    content: 'No Image';
                }
            }
        }
        
        .related-blog-post-content {
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
            flex-grow: 1;
        }
        
        .related-blog-post-meta {
            display: flex;
            gap: 1rem;
            margin-bottom: 1rem;
            font-size: 0.85rem;
            
            .related-blog-post-date {
                color: #666;
            }
            
            .related-blog-post-category {
                color: var(--primary);
                font-weight: 500;
            }
        }
        
        .related-blog-post-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin: 0 0 1rem 0;
            color: var(--emerald);
            line-height: 1.3;
            
            a {
                color: inherit;
                text-decoration: none;
                
                &:hover {
                    color: var(--primary);
                }
            }
        }
        
        .related-blog-post-excerpt {
            margin: 0 0 1.5rem 0;
            line-height: 1.6;
            opacity: 0.8;
            flex-grow: 1;
            font-size: 0.9rem;
        }
        
        .related-blog-post-button {
            margin-top: auto;
            
            .button {
                width: 100%;
                text-align: center;
                justify-content: center;
            }
        }
    }
}

/* Archive Pages */
.archive-case-studies,
.archive-blog {
    background-color: var(--emerald);
    color: white;
    min-height: 100vh;
    
    /* Pagination */
    .archive-pagination {
        margin-top: 4rem;
        text-align: center;
        
        .page-numbers {
            list-style: none;
            margin: 0;
            padding: 0;
            display: inline-flex;
            gap: 0.5rem;
            
            li {
                margin: 0;
            }
            
            a, 
            span {
                display: block;
                padding: 0.75rem 1rem;
                border: 2px solid var(--primary);
                border-radius: 0.5rem;
                text-decoration: none;
                color: var(--primary);
                font-weight: 500;
                transition: all 0.3s ease;
                
                &:hover {
                    background: var(--primary);
                    color: white;
                }
            }
            
            .current {
                background: var(--primary);
                color: white;
            }
            
            .dots {
                border: none;
                color: #666;
                cursor: default;
                
                &:hover {
                    background: transparent;
                    color: #666;
                }
            }
        }
        
        @media (max-width: 768px) {
            .page-numbers {
                gap: 0.25rem;
                
                a, 
                span {
                    padding: 0.5rem 0.75rem;
                    font-size: 0.9rem;
                }
            }
        }
    }
}

/* Search Results */
.search-results {
    .search-results-content {
        padding: 4rem 0;
    }
    
    .search-results-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        margin-bottom: 3rem;
        
        @media (max-width: 768px) {
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }
    }
    
    .search-result-card {
        background: white;
        border: 1px solid #e5e7eb;
        border-radius: 0.75rem;
        overflow: hidden;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        display: flex;
        
        &:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        }
        
        @media (max-width: 768px) {
            flex-direction: column;
        }
    }
    
    .search-result-image {
        flex-shrink: 0;
        width: 200px;
        overflow: hidden;
        
        @media (max-width: 768px) {
            width: 100%;
        }
        
        img {
            width: 100%;
            height: 150px;
            object-fit: cover;
            object-position: center;
            display: block;
            
            @media (max-width: 768px) {
                height: 200px;
            }
        }
        
        .search-result-placeholder {
            width: 100%;
            height: 150px;
            background: var(--emerald-light);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 0.8rem;
            
            @media (max-width: 768px) {
                height: 200px;
            }
            
            &::after {
                content: 'No Image';
            }
        }
    }
    
    .search-result-content {
        padding: 1.5rem;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }
    
    .search-result-meta {
        display: flex;
        gap: 1rem;
        margin-bottom: 1rem;
        font-size: 0.85rem;
        
        .search-result-type {
            background: var(--primary);
            color: white;
            padding: 0.25rem 0.75rem;
            border-radius: 0.375rem;
            font-weight: 500;
        }
        
        .search-result-date {
            color: #666;
        }
    }
    
    .search-result-title {
        margin: 0 0 0.5rem 0;
        
        a {
            color: var(--emerald);
            text-decoration: none;
            font-size: 1.1rem;
            font-weight: 600;
            line-height: 1.3;
            
            &:hover {
                color: var(--emerald-dark);
                text-decoration: underline;
            }
        }
    }
    
    .search-result-job-title {
        font-size: 0.9rem;
        font-weight: 500;
        margin: 0 0 1rem 0;
        color: var(--primary);
        line-height: 1.4;
    }
    
    .search-result-excerpt {
        margin: 0 0 1.5rem 0;
        line-height: 1.6;
        opacity: 0.8;
        flex-grow: 1;
        font-size: 0.9rem;
    }
    
    .search-result-button {
        margin-top: auto;
        
        .button {
            font-size: 0.85rem;
            padding: 0.6rem 1.2rem;
        }
    }
    
    .no-results {
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
        
        h2 {
            color: var(--emerald);
            margin-bottom: 1rem;
        }
        
        p {
            margin-bottom: 1.5rem;
        }
        
        ul {
            text-align: left;
            margin: 0 0 2rem 0;
            
            li {
                margin-bottom: 0.5rem;
            }
        }
        
        a {
            color: var(--primary);
            text-decoration: underline;
            
            &:hover {
                color: var(--primary-dark);
            }
        }
    }
    
    .search-again {
        margin-top: 3rem;
        
        h3 {
            color: var(--emerald);
            margin-bottom: 1rem;
        }
        
        .search-form-wrapper {
            display: flex;
            gap: 1rem;
            max-width: 400px;
            margin: 0 auto;
            
            @media (max-width: 480px) {
                flex-direction: column;
            }
            
            input[type="search"] {
                flex: 1;
                padding: 0.875rem 1rem;
                border: 2px solid #e5e7eb;
                border-radius: 0.5rem;
                font-size: 1rem;
                
                &:focus {
                    outline: none;
                    border-color: var(--emerald);
                }
            }
            
            button {
                white-space: nowrap;
            }
        }
    }
}

/* Icon Grid Block */
.icon-grid-block {
    padding: 6rem 0;
    
    &.bg-emerald-dark {
        background-color: var(--emerald-dark);
        color: white;
    }
    
    &.bg-emerald {
        background-color: var(--emerald);
        color: white;
    }
    
    &.bg-emerald-light {
        background-color: var(--emerald-light);
        color: white;
    }
    
    &.bg-primary {
        background-color: var(--primary);
        color: white;
    }
    
    &.bg-white {
        background-color: white;
        color: var(--text-dark);
    }
    
    .icon-grid-content {
        text-align: center;
        width: 100%;
    }
    
    .icon-grid-section-title {
        font-size: 2.5rem;
        font-weight: 600;
        margin: 0 0 2rem 0;
        color: var(--emerald);
        line-height: 1.2;
        text-align: center;
        
        @media (max-width: 768px) {
            font-size: 2rem;
            margin-bottom: 1.5rem;
        }
    }
    
    .icon-grid-section-subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
        color: var(--text-light);
        margin: 0 0 4rem 0;
        opacity: 0.9;
        text-align: center;
        
        @media (max-width: 768px) {
            font-size: 1rem;
            margin-bottom: 3rem;
        }
    }
    
    .icon-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem;
        width: 100%;
        
        @media (max-width: 992px) {
            grid-template-columns: repeat(2, 1fr);
            gap: 3rem;
        }
        
        @media (max-width: 768px) {
            grid-template-columns: 1fr;
            gap: 2.5rem;
        }
    }
    
    .icon-grid-item {
        text-align: left;
        
        .icon-grid-icon {
            margin-bottom: 1rem;
            
            img {
                width: 50px;
                height: 50px;
                object-fit: contain;
            }
        }
        
        .icon-grid-item-title {
            font-size: 1.3rem;
            font-weight: 600;
            margin: 0 0 0.75rem 0;
            color: var(--emerald-bright);
            line-height: 1.3;
        }
        
        .icon-grid-item-content {
            color: var(--text-dark);
            line-height: 1.5;
            font-size: 0.95rem;
            
            p {
                margin-bottom: 0.75rem;
                
                &:last-child {
                    margin-bottom: 0;
                }
            }
        }
    }
    
    @media (max-width: 768px) {
        padding: 4rem 0;
    }
}

/* Quote Block */
.quote-block {
    background-color: var(--emerald-dark);
    color: white;
    padding: 6rem 0;
    position: relative;
    
    @media (max-width: 768px) {
        padding: 4rem 0;
    }
    
    .quote-content {
        text-align: left;
        width: 100%;
        position: relative;
        z-index: 2;
        
        /* Star decoration in top right of quote content */
        &::before {
            content: '';
            position: absolute;
            top: -30px;
            right: -30px;
            width: 150px;
            height: 150px;
            background-image: url('images/star.svg');
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            opacity: 1;
            z-index: 1;
            
            @media (max-width: 768px) {
                width: 100px;
                height: 100px;
                top: -20px;
                right: -20px;
            }
        }
    }
    
    .quote-text {
        font-size: 2.25rem;
        line-height: 1.4;
        font-weight: 400;
        font-style: italic;
        margin: 0 0 2rem 0;
        color: white;
        position: relative;
        z-index: 2;
        
        @media (max-width: 768px) {
            font-size: 1.75rem;
            margin-bottom: 1.5rem;
        }
        
        @media (max-width: 480px) {
            font-size: 1.5rem;
        }
    }
    
    .quote-author {
        font-style: normal;
        color: var(--primary);
        font-size: 1rem;
        font-weight: 500;
        position: relative;
        z-index: 2;
        
        .author-name {
            display: block;
            margin-bottom: 0.125rem;
        }
        
        .author-title {
            display: block;
            opacity: 0.9;
            font-weight: 400;
            font-size: 0.9rem;
        }
        
        @media (max-width: 768px) {
            font-size: 0.95rem;
            
            .author-title {
                font-size: 0.85rem;
            }
        }
    }
}

/* Partner Information Section for Blog Posts */
.blog-post-partner-info {
    margin: 3rem 0;
    padding: 2.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-left: 4px solid var(--primary);
}

.blog-post-partner-info h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--emerald);
    font-size: 1.5rem;
    font-weight: 600;
}

.partner-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.partner-logo {
    flex-shrink: 0;
}

.partner-logo img {
    max-width: 120px;
    max-height: 80px;
    object-fit: contain;
    border-radius: 0.5rem;
}

.partner-details {
    flex: 1;
}

.partner-details p {
    margin-bottom: 1.25rem;
    color: var(--emerald);
    line-height: 1.7;
    opacity: 0.9;
}

.partner-details .button {
    margin-top: 1rem;
}

/* Download Section Styles - Dark Theme with Pattern */
.download-section {
    padding: 4rem 0;
    background-color: var(--emerald);
    background-image: url('images/pattern.svg');
    background-position: 50% 0;
    background-size: 230px 230px;
    background-attachment: fixed;
    color: white;
    position: relative;
}

.download-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, var(--emerald) 0%, var(--emerald) 66.67%, transparent 100%);
    pointer-events: none;
}

.download-section-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 2;
}

.download-section-text h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.2;
}

.download-section-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
}

/* Form styling within dark section */
.download-section .cf7-form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 48, 52, 0.3);
    border-radius: 12px;
}

.download-section .cf7-field {
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.download-section .cf7-field:focus {
    border-color: var(--emerald-bright);
    box-shadow: 0 0 0 3px rgba(0, 203, 199, 0.1);
    background-color: white;
}

.download-section .cf7-submit {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.download-section .cf7-submit:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Success and error messages */
.download-section .wpcf7-mail-sent-ok {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.4);
    color: #d4edda;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.download-section .wpcf7-validation-errors,
.download-section .wpcf7-mail-sent-ng {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #f8d7da;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

.download-section .wpcf7-not-valid-tip {
    color: var(--primary);
    background: rgba(255, 74, 111, 0.1);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

/* Download messages */
.download-section .download-message {
    margin: 2rem 0;
    padding: 1.25rem 2rem;
    border-radius: 0.75rem;
    font-weight: 500;
    text-align: center;
}

.download-section .download-message-success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.4);
    color: #d4edda;
}

.download-section .download-message-success .button {
    background-color: white;
    color: var(--emerald);
    border: 2px solid white;
    margin-top: 1rem;
    font-weight: 600;
}

.download-section .download-message-success .button:hover {
    background-color: var(--emerald-bright);
    color: white;
    border-color: var(--emerald-bright);
}

@media (max-width: 768px) {
    .download-section {
        padding: 3rem 0;
    }
    
    .download-section-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .download-section-text h2 {
        font-size: 1.8rem;
    }
    
    .download-section .cf7-form-card {
        padding: 2rem 1.5rem;
    }
}

/* Download Button for Blog Listings */
.button-download {
    background-color: var(--secondary);
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 0.875rem 1.5rem;
}

.button-download:hover {
    background-color: var(--secondary-dark);
    color: white;
    text-decoration: none;
}

.download-icon {
    font-size: 1rem;
}

/* Post Type Badges */
.post-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-right: 0.5rem;
}

.post-badge-event {
    background-color: var(--primary);
    color: white;
}

.post-badge-download {
    background-color: var(--secondary);
    color: white;
}

/* Responsive Design for Download Section */
@media (max-width: 768px) {
    .partner-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .partner-logo {
        align-self: center;
    }
    
    .blog-post-download-section {
        padding: 2.5rem 2rem;
        margin: 3rem 0;
    }
    
    .blog-post-download-section h3 {
        font-size: 1.75rem;
    }
    
    .download-form-wrapper .cf7-form-card {
        padding: 2rem 1.5rem;
    }
    
    .blog-post-partner-info {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .blog-post-download-section {
        padding: 2rem 1.5rem;
    }
    
    .blog-post-download-section h3 {
        font-size: 1.5rem;
    }
    
    .download-form-wrapper .cf7-form-card {
        padding: 1.5rem 1rem;
    }
    
    .blog-post-partner-info {
        padding: 1.5rem 1rem;
    }
    
    .download-form-wrapper .cf7-submit {
        min-width: auto;
        width: 100%;
    }
}

/* Responsive Video Embeds and iFrames */
.post-content iframe,
.blog-post-content iframe,
.entry-content iframe {
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    border: none;
    border-radius: 8px;
    margin: 1.5rem 0;
}

/* YouTube and Vimeo specific styling */
.post-content iframe[src*="youtube.com"],
.post-content iframe[src*="youtu.be"],
.post-content iframe[src*="vimeo.com"],
.blog-post-content iframe[src*="youtube.com"],
.blog-post-content iframe[src*="youtu.be"],
.blog-post-content iframe[src*="vimeo.com"],
.entry-content iframe[src*="youtube.com"],
.entry-content iframe[src*="youtu.be"],
.entry-content iframe[src*="vimeo.com"] {
    aspect-ratio: 16 / 9;
    height: auto;
    min-height: 315px;
}

/* Responsive video wrapper for better control */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border-radius: 8px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .post-content iframe,
    .blog-post-content iframe,
    .entry-content iframe {
        margin: 1rem 0;
        border-radius: 6px;
    }
    
    .post-content iframe[src*="youtube.com"],
    .post-content iframe[src*="youtu.be"],
    .post-content iframe[src*="vimeo.com"],
    .blog-post-content iframe[src*="youtube.com"],
    .blog-post-content iframe[src*="youtu.be"],
    .blog-post-content iframe[src*="vimeo.com"],
    .entry-content iframe[src*="youtube.com"],
    .entry-content iframe[src*="youtu.be"],
    .entry-content iframe[src*="vimeo.com"] {
        min-height: 200px;
    }
}

/* Page-specific overrides */
.page-id-20 {
    --primary: var(--emerald-bright);
    --primary-dark: var(--emerald-bright);
}

/* Text Block Styles */
.block-text {
    /* Background colors */
    &.bg-emerald-dark {
        background-color: var(--emerald-dark);
    }
    
    &.bg-emerald {
        background-color: var(--emerald);
    }
    
    &.bg-emerald-light {
        background-color: var(--emerald-light);
    }
    
    &.bg-primary {
        background-color: var(--primary);
    }
    
    &.bg-white {
        background-color: #ffffff;
    }
    
    /* Text colors */
    &.text-white {
        color: #ffffff;
        
        h1, h2, h3, h4, h5, h6 {
            color: #ffffff;
        }
        
        a {
            color: var(--emerald-bright);
            
            &:hover {
                color: #ffffff;
            }
        }
    }
    
    &.text-emerald-dark {
        color: var(--emerald);
        
        h1, h2, h3, h4, h5, h6 {
            color: var(--emerald);
        }
    }
    
    /* Padding options */
    &.padding-none {
        padding: 0;
    }
    
    &.padding-small {
        padding: 2rem 0;
    }
    
    &.padding-medium {
        padding: 4rem 0;
    }
    
    &.padding-large {
        padding: 6rem 0;
    }
    
    &.padding-xlarge {
        padding: 8rem 0;
    }
    
    /* Text content styling */
    .text-content {
        
        p:last-child {
            margin-bottom: 0;
        }
    }
    
    @media (max-width: 768px) {
        &.padding-medium {
            padding: 3rem 0;
        }
        
        &.padding-large {
            padding: 4rem 0;
        }
        
        &.padding-xlarge {
            padding: 5rem 0;
        }
    }
}