/* ============================================================
   CTA Two Columns Block Styles
   Cloned from cta-two-columns in EverSmith-HTML-PAGE
   ============================================================ */

.cta-two-columns-block {
    position: relative;
    padding: 80px 80px 120px;
    display: flex;
    align-items: flex-end;
    min-height: 500px;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
}

.cta-two-columns-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cta-two-columns-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
    transform-origin: center center;
}

.cta-two-columns-overlay {
    position: absolute;
    inset: 0;
    background: rgba(25, 62, 110, 0.8);
}

.cta-two-columns-content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    gap: 80px;
    align-items: stretch; /* Stretch columns to equal height so button aligns to bottom */
    justify-content: center;
}

.cta-two-columns-left {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
}

.cta-two-columns-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 8px 32px;
    background: var(--btn-primary-rest, #ff6b35);
    color: #fff;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.5;
    text-decoration: none;
    border-radius: 8px;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.cta-two-columns-cta:hover {
    background-color: var(--btn-primary-hover, #e55a2b);
    box-shadow: 0px 6px 14px rgba(1, 13, 20, 0.1);
}

.cta-two-columns-cta:active {
    background-color: var(--btn-primary-pressed, #cc4a1f);
    box-shadow: none;
}

.cta-two-columns-cta:focus-visible {
    outline: 2px solid var(--btn-primary-pressed, #cc4a1f);
    outline-offset: 2px;
}

.cta-two-columns-right {
    flex: 1 1 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.5;
    color: #fff;
}

.cta-two-columns-right p {
    margin: 0 0 16px 0;
}

.cta-two-columns-right p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   Responsive Styles
   ============================================================ */

/* Tablet (768px) */
@media (max-width: 768px) {
    .cta-two-columns-block {
        padding: 60px 24px 80px;
    }

    .cta-two-columns-content {
        flex-direction: column;
        gap: 40px;
    }

    .cta-two-columns-cta {
        /* Allow text to wrap instead of staying on one line */
        white-space: normal;
        text-align: center;
        /* Adjust height to accommodate 2 lines of text */
        height: auto;
        min-height: 48px;
        /* Add some extra padding for better touch target */
        padding: 12px 24px;
        /* Ensure the button doesn't exceed screen width */
        max-width: 100%;
        /* Allow the button to shrink if needed */
        flex-shrink: 1;
    }
}

/* Small mobile (480px) */
@media (max-width: 480px) {
    .cta-two-columns-cta {
        /* Smaller padding on very small screens */
        padding: 10px 16px;
        font-size: 14px;
        line-height: 1.4;
    }
}
