/* Call to Action 2 Block Styles */

.cta-2-block {
    position: relative;
    padding: 40px 20px;
    overflow: hidden;
    background-color: #fff;
    box-sizing: border-box;
    min-height: 375px;
    display: flex;
    align-items: center;
}

.cta-2-block h2 {
    color: #FFFFFF;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
}

.cta-2-block h2 span {
    font-weight: 700;
}

/* Allow SVG to overflow the block container */
.cta-2-block.has-decorative-svg,
.cta-2-block:has(.cta-2-decorative-svg) {
    overflow: visible;
}

.cta-2-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

/* Ensure container allows SVG overflow */
.cta-2-block.has-decorative-svg .cta-2-container,
.cta-2-block:has(.cta-2-decorative-svg) .cta-2-container {
    overflow: visible;
}

/* Ensure all parent containers allow SVG overflow */
.cta-2-block.has-decorative-svg,
.cta-2-block:has(.cta-2-decorative-svg) {
    /* Force parent containers to allow overflow */
    contain: none !important;
}

/* Target common WordPress container classes that might clip content */
.wp-block-group:has(.cta-2-block .cta-2-decorative-svg),
.wp-container:has(.cta-2-block .cta-2-decorative-svg),
section:has(.cta-2-block .cta-2-decorative-svg),
.entry-content:has(.cta-2-block .cta-2-decorative-svg) {
    overflow: visible !important;
}

.cta-2-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Admin Notice */
.cta-2-admin-notice {
    background: #e7f3ff;
    border: 1px solid #007cba;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 14px;
}

.cta-2-admin-notice p {
    margin: 0;
}

/* Background Image */
.cta-2-background-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.cta-2-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Icon */
.cta-2-icon {
    margin-bottom: 20px;
}

.cta-2-icon-image {
    max-width: 80px;
    height: auto;
    display: block;
}

/* Heading */
.cta-2-heading {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: inherit;
}

/* Text */
.cta-2-text {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    color: inherit;
    flex: 3;
    max-width: 720px;
}

.cta-2-text .fine-print {
    font-size: 13px;
}

.cta-2-text p {
    margin: 0 0 15px 0;
}

.cta-2-text p:last-child {
    margin-bottom: 0;
}

/* Buttons */
.cta-2-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 1;
}

.cta-2-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    min-width: 150px;
    box-sizing: border-box;
}

.cta-2-button:hover {
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta-2-button:focus {
    outline: 2px solid #005a87;
    outline-offset: 2px;
}

/* Primary Button */
.cta-2-button-primary {
    background-color: #007cba;
    color: #fff;
    border-color: #007cba;
}

.cta-2-button-primary:hover {
    background-color: #005a87;
    border-color: #005a87;
    color: #fff;
}

/* Background Image & Overlay */
.cta-2-has-bg-image {
    color: #fff;
}

.cta-2-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.cta-2-has-bg-image .cta-2-button-primary {
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    border-color: rgba(255, 255, 255, 0.9);
}

.cta-2-block p .btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    min-width: 150px;
    box-sizing: border-box;
}

.cta-2-block p .btn-primary {
    background: #fff;
    color: #333;
}

.cta-2-block p .btn-primary:hover {
    background: #374787;
    color: #FFFFFF;
}

/* Background Style Variations */
.cta-2-bg-gradient {
    background: linear-gradient(90deg, #D1232D 0%, #8C0032 100%);
    color: #fff;
}

.cta-2-bg-gradient .cta-2-overlay {
    background: linear-gradient(90deg, #D1232D 0%, #8C0032 100%);
}

.cta-2-bg-gradient .cta-2-button-primary {
    background: #FFFFFF;
    color: #000000;
    border-radius: 5px;
}

.cta-2-bg-gradient .cta-2-button-primary:hover {
    color: #FFFFFF;
    background: #000000;
}

.cta-2-bg-solid {
    background-color: #007cba;
    color: #fff;
}

.cta-2-bg-solid .cta-2-overlay {
    background-color: rgba(0, 124, 186, 0.8);
}

.cta-2-bg-solid .cta-2-button-primary {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.cta-2-bg-solid .cta-2-button-primary:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Combined background image and style overlays */
.cta-2-has-bg-image.cta-2-bg-gradient .cta-2-overlay {
    background: linear-gradient(90deg, rgba(209, 35, 45, 0.8) 0%, rgba(140, 0, 50, 0.8) 30%);
}

.cta-2-has-bg-image.cta-2-bg-solid .cta-2-overlay {
    background-color: rgba(0, 124, 186, 0.8);
}

/* Alignment Styles */
.cta-2-align-left .cta-2-content {
    margin-left: 0;
    justify-content: flex-start;
}

.cta-2-align-left .cta-2-text {
    text-align: left;
}

.cta-2-align-left .cta-2-buttons {
    justify-content: flex-start;
}

.cta-2-align-left .cta-2-icon-image {
    margin-left: 0;
}

.cta-2-align-center .cta-2-content {
    justify-content: center;
}

.cta-2-align-center .cta-2-text {
    text-align: center;
}

.cta-2-align-center .cta-2-buttons {
    justify-content: center;
}

.cta-2-align-center .cta-2-icon-image {
    margin-left: auto;
    margin-right: auto;
}

.cta-2-align-right .cta-2-content {
    margin-right: 0;
    justify-content: flex-end;
}

.cta-2-align-right .cta-2-text {
    text-align: right;
}

.cta-2-align-right .cta-2-buttons {
    justify-content: flex-end;
}

.cta-2-align-right .cta-2-icon-image {
    margin-right: 0;
    margin-left: auto;
}

/* Size Variations */
.cta-2-size-small {
    padding: 30px 20px;
}

.cta-2-size-small .cta-2-heading {
    font-size: 2rem;
}

.cta-2-size-small .cta-2-text {
    font-size: 1.1rem;
}

.cta-2-size-small .cta-2-button {
    padding: 12px 24px;
    font-size: 1rem;
}

.cta-2-size-medium {
    padding: 40px 20px;
}

.cta-2-size-large {
    padding: 60px 20px;
}

.cta-2-size-large .cta-2-heading {
    font-size: 3rem;
}

.cta-2-size-large .cta-2-text {
    font-size: 1.3rem;
}

.cta-2-size-large .cta-2-button {
    padding: 18px 36px;
    font-size: 1.2rem;
}

/* Style Variations */
.cta-2-style-primary {
    background-color: #007cba;
    color: #fff;
}

.cta-2-style-secondary {
    background-color: #f8f9fa;
    color: #333;
    border: 1px solid #e9ecef;
}

.cta-2-style-outline {
    background-color: transparent;
    color: #333;
    border: 2px solid #007cba;
}

.cta-2-style-minimal {
    background-color: transparent;
    color: #333;
    padding: 20px 0;
}

.cta-2-style-minimal .cta-2-button-primary {
    background-color: #333;
    border-color: #333;
}

.cta-2-style-minimal .cta-2-button-primary:hover {
    background-color: #000;
    border-color: #000;
}

.cta-2-style-gradient {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: #fff;
}

.cta-2-style-gradient .cta-2-button-primary {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.cta-2-style-gradient .cta-2-button-primary:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* WordPress Block Alignment */
.cta-2-block.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.cta-2-block.alignfull {
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
}

/* Placeholder for Admin */
.cta-2-placeholder {
    text-align: center;
    padding: 40px;
    background: #f9f9f9;
    border: 2px dashed #ddd;
    color: #666;
    border-radius: 8px;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cta-2-block {
        padding: 30px 15px;
    }

    .cta-2-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .cta-2-text {
        flex: none;
        margin: 0 0 20px 0;
    }

    .cta-2-buttons {
        flex: none;
        justify-content: center;
        flex-direction: column;
        align-items: stretch;
    }

    .cta-2-heading {
        font-size: 2rem;
    }

    .cta-2-text {
        font-size: 1.1rem;
    }

    .cta-2-button {
        width: 100%;
        text-align: center;
    }

    .cta-2-size-large .cta-2-heading {
        font-size: 2.5rem;
    }

    .cta-2-size-large .cta-2-text {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .cta-2-heading {
        font-size: 1.8rem;
    }

    .cta-2-text {
        font-size: 1rem;
    }

    .cta-2-button {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .cta-2-size-large .cta-2-heading {
        font-size: 2.2rem;
    }
}

/* Decorative SVG */
.cta-2-decorative-svg {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    opacity: 1;
    pointer-events: none;
    /* Ensure SVG can overflow in both directions */
    overflow: visible;
}

.cta-2-decorative-svg svg {
    display: block;
    width: auto;
    height: auto;
    max-width: 555px;
    /* Remove max-height constraint to allow full overflow */
    /* max-height: 100vh; */
}

/* Hide decorative SVG on smaller screens */
@media (max-width: 1699px) {
    .cta-2-decorative-svg {
        display: none;
    }
}

/* Print Styles */
@media print {
    .cta-2-block {
        background: #fff !important;
        color: #000 !important;
        box-shadow: none !important;
    }

    .cta-2-overlay {
        display: none;
    }

    .cta-2-button {
        border: 1px solid #000 !important;
        background: #fff !important;
        color: #000 !important;
    }

    .cta-2-decorative-svg {
        display: none;
    }
} 