/* [B] Elementor Smart Call-to-Action - Base Styles */

.bdw-escta-wrapper {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    display: flex;
    transition: all 0.3s ease;
}

.bdw-escta-content {
    flex: 1;
}

.bdw-escta-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin: 0 0 12px 0;
    letter-spacing: -0.01em;
}

.bdw-escta-desc {
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.bdw-escta-actions {
    display: flex;
    gap: 12px;
}

/* Base Button Styles */
.bdw-escta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.bdw-escta-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

/* Button Variants (Colors controlled by Elementor) */
.bdw-escta-btn-primary {
    background-color: #003366;
    color: #ffffff;
}

.bdw-escta-btn-secondary {
    background-color: transparent;
    border-color: #003366;
    color: #003366;
}

/* ==========================================
   LAYOUT SPECIFICS
========================================== */

/* 1. Sidebar (Vertical orientation, usually narrower) */
.bdw-escta-wrapper.layout-sidebar {
    flex-direction: column;
    padding: 24px;
}

.bdw-escta-wrapper.layout-sidebar .bdw-escta-title {
    font-size: 1.2rem;
}

.bdw-escta-wrapper.layout-sidebar .bdw-escta-desc {
    font-size: 0.9rem;
}

.bdw-escta-wrapper.layout-sidebar .bdw-escta-actions {
    flex-direction: column;
    width: 100%;
}

.bdw-escta-wrapper.layout-sidebar .bdw-escta-btn {
    width: 100%;
}

/* 2. Mid-Article (Standard block) */
.bdw-escta-wrapper.layout-mid {
    flex-direction: column;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .bdw-escta-wrapper.layout-mid .bdw-escta-actions {
        flex-direction: column;
    }
}

/* 3. Bottom Banner (Horizontal split) */
.bdw-escta-wrapper.layout-bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 48px;
}

.bdw-escta-wrapper.layout-bottom .bdw-escta-desc {
    margin-bottom: 0;
}

.bdw-escta-wrapper.layout-bottom .bdw-escta-actions {
    flex-shrink: 0;
    align-items: center;
}

@media (max-width: 768px) {
    .bdw-escta-wrapper.layout-bottom {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px;
        gap: 24px;
    }
    
    .bdw-escta-wrapper.layout-bottom .bdw-escta-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .bdw-escta-wrapper.layout-bottom .bdw-escta-btn {
        width: 100%;
    }
}
