/* CTA Section Block Styles */
.bevlogic-cta-section {
    position: relative;
    padding: 0;
    overflow: hidden;
    isolation: isolate;
}

/* Video Background Support */
.bevlogic-cta-section__video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.bevlogic-cta-section__video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ensure content sits above video */
.bevlogic-cta-section.has-background-video .bevlogic-cta-section__container {
    position: relative;
    z-index: 1;
}

/* Container and Layout */
.bevlogic-cta-section__container {
    position: relative;
    z-index: 2;
    max-width: var(--wp--style--global--wide-size, 1440px);
    margin: 0 auto;
    padding: var(--wp--preset--spacing--70, 5rem) var(--wp--preset--spacing--40, 2rem);
}

.bevlogic-cta-section__inner {
    display: grid;
    /* grid-template-columns: 1fr 1fr; */
    grid-template-columns: 675px 1fr;
    gap: var(--wp--preset--spacing--60, 4rem);
    align-items: center;
}

/* Content Section (Left) */
.bevlogic-cta-section__content {
    max-width: 600px;
}

/* Typography */
.bevlogic-cta-section__headline {
    font-family: var(--wp--preset--font-family--heading, 'Albert Sans', sans-serif);
    font-weight: 400;
    line-height: 1.2;
    margin: 0 0 2.5rem 0;
}

.bevlogic-cta-section__subheadline {
    font-size: 1.125rem;
    font-family: var(--wp--preset--font-family--body, 'Barlow', sans-serif);
    line-height: 1.6;
    margin: 0 0 2.5rem 0;
    opacity: 0.9;
}

/* Buttons */
.bevlogic-cta-section__buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.bevlogic-cta-section__button {
    padding: 7.5px 21.5px;
    border-radius: 150px;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: all var(--wp--custom--transition--normal, 0.3s ease);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: var(--wp--preset--color--secondary) !important;
    line-height: 1.5;
}

.bevlogic-cta-section__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bevlogic-cta-section__button--primary {
    background-color: var(--wp--preset--color--base, #FFFFFF);
    color: var(--wp--preset--color--primary, #0E6FFF);
}

.bevlogic-cta-section__button--primary:hover {
    background-color: var(--wp--preset--color--base-2, #F8F9FA);
}

.bevlogic-cta-section__button--secondary {
    background-color: transparent;
    color: var(--wp--preset--color--base, #FFFFFF);
    border: 2px solid var(--wp--preset--color--base, #FFFFFF);
}

.bevlogic-cta-section__button--secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Featured Image (Right) */
.bevlogic-cta-section__image {
    position: relative;
    height: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 639px;
    max-width: 480px;
    margin-left: auto;
}

.bevlogic-cta-section__image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--wp--custom--rounded--large, 16px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Background Styles */
.bevlogic-cta-section__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

/* Background Color Variations */
.bevlogic-cta-section--bg-primary {
    background-color: var(--wp--preset--color--primary, #0E6FFF);
    background-blend-mode: multiply, normal;
}

.bevlogic-cta-section--bg-primary .bevlogic-cta-section__headline,
.bevlogic-cta-section--bg-primary .bevlogic-cta-section__subheadline {
    color: var(--wp--preset--color--base, #FFFFFF);
}

.bevlogic-cta-section--bg-secondary {
    background-color: var(--wp--preset--color--secondary, #1B4D8F);
}

.bevlogic-cta-section--bg-secondary .bevlogic-cta-section__headline,
.bevlogic-cta-section--bg-secondary .bevlogic-cta-section__subheadline {
    color: var(--wp--preset--color--base, #FFFFFF);
}

.bevlogic-cta-section--bg-gradient {
    background: linear-gradient(135deg, var(--wp--preset--color--primary, #0E6FFF) 0%, var(--wp--preset--color--secondary, #1B4D8F) 100%);
}

.bevlogic-cta-section--bg-gradient .bevlogic-cta-section__headline,
.bevlogic-cta-section--bg-gradient .bevlogic-cta-section__subheadline {
    color: var(--wp--preset--color--base, #FFFFFF);
}

.bevlogic-cta-section--bg-dark {
    background-color: var(--wp--preset--color--ink, #111111);
}

.bevlogic-cta-section--bg-dark .bevlogic-cta-section__headline,
.bevlogic-cta-section--bg-dark .bevlogic-cta-section__subheadline {
    color: var(--wp--preset--color--base, #FFFFFF);
}

.bevlogic-cta-section--bg-light {
    background-color: var(--wp--preset--color--base-2, #F8F9FA);
}

.bevlogic-cta-section--bg-light .bevlogic-cta-section__headline {
    color: var(--wp--preset--color--secondary, #1B4D8F);
}

.bevlogic-cta-section--bg-light .bevlogic-cta-section__subheadline {
    color: var(--wp--preset--color--contrast, #333333);
}

.bevlogic-cta-section--bg-light .bevlogic-cta-section__button--primary {
    background-color: var(--wp--preset--color--primary, #0E6FFF);
    color: var(--wp--preset--color--base, #FFFFFF);
}

.bevlogic-cta-section--bg-light .bevlogic-cta-section__button--secondary {
    color: var(--wp--preset--color--primary, #0E6FFF);
    border-color: var(--wp--preset--color--primary, #0E6FFF);
}

.bevlogic-cta-section__button--secondary span {
    position: relative;
    top: -2px;
}

/* Background Image Support */
.bevlogic-cta-section.has-background-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bevlogic-cta-section.has-background-image .bevlogic-cta-section__overlay {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.bevlogic-cta-section.has-background-image .bevlogic-cta-section__headline,
.bevlogic-cta-section.has-background-image .bevlogic-cta-section__subheadline {
    color: var(--wp--preset--color--base, #FFFFFF);
}

/* Alignment Variations */
.bevlogic-cta-section.alignfull {
    width: 100vw;
    position: relative;
    /* left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw; */
}

.bevlogic-cta-section.alignfull .bevlogic-cta-section__inner {
    max-width: var(--wp--style--global--content-size, 1200px);
    margin-left: auto;
    margin-right: auto;
}
.bevlogic-cta-section.alignwide .bevlogic-cta-section__container {
    max-width: var(--wp--style--global--wide-size, 1440px);
}

/* No Image Layout */
.bevlogic-cta-section__inner:not(:has(.bevlogic-cta-section__image)) {
    grid-template-columns: 1fr;
    text-align: center;
}

.bevlogic-cta-section__inner:not(:has(.bevlogic-cta-section__image)) .bevlogic-cta-section__content {
    max-width: 800px;
    margin: 0 auto;
}

.bevlogic-cta-section__inner:not(:has(.bevlogic-cta-section__image)) .bevlogic-cta-section__buttons {
    justify-content: center;
}
@media (max-width: 1264px) {

    .bevlogic-cta-section__inner {
        padding-left: 2rem;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .bevlogic-cta-section__inner {
        grid-template-columns: 1fr;
        gap: var(--wp--preset--spacing--40, 2rem);
        padding: 0 2rem;
    }
    
    .bevlogic-cta-section__content {
        max-width: 100%;
        text-align: center;
        margin-bottom: 2rem;
    }

    .bevlogic-cta-section__headline,
    .bevlogic-cta-section__subheadline {
        margin-left: auto;
        margin-right: auto;
    }
    
    .bevlogic-cta-section__headline {
        margin-bottom: 1rem;
    }

    .bevlogic-cta-section__subheadline {
        margin-bottom: 1.5rem;
    }
    
    .bevlogic-cta-section__buttons {
        justify-content: center;
    }
    
    .bevlogic-cta-section__image {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .bevlogic-cta-section__container {
        padding: 2.5rem 0;
    }
    
    .bevlogic-cta-section__subheadline {
        font-size: 1rem;
    }
    
    /* .bevlogic-cta-section__buttons {
        flex-direction: column;
        align-items: center;
    } */
    
    .bevlogic-cta-section__button {
        text-align: center;
    }
    
    .bevlogic-cta-section__image {
        min-height: 300px;
    }
}

/* Editor Styles */
.editor-styles-wrapper .bevlogic-cta-section {
    margin-top: 0;
    margin-bottom: 0;
}

.editor-styles-wrapper .bevlogic-cta-section__container {
    padding: 2rem;
}

.editor-styles-wrapper .bevlogic-cta-section__inner {
    gap: 2rem;
}

@media (max-width: 600px) {
    .editor-styles-wrapper .bevlogic-cta-section__inner {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .bevlogic-cta-section {
        background-color: transparent !important;
        color: black !important;
    }
    
    .bevlogic-cta-section__headline,
    .bevlogic-cta-section__subheadline {
        color: black !important;
    }
    
    .bevlogic-cta-section__button {
        border: 1px solid black;
        color: black;
    }
}