/* Side-by-Side Component Frontend Styles */
.pb-side-by-side-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.pb-side-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.pb-side-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

.pb-side-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* ========== IMAGE COLUMN IMPROVEMENTS ========== */
.pb-side-image-col {
    position: relative;
    text-align: center;
    min-height: 400px;          /* ensures visible area even without image */
    display: flex;
    align-items: center;
    justify-content: center;
}

.pb-side-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.pb-side-image:hover {
    transform: scale(1.02);
}

.pb-side-image-placeholder {
    background: #f0f2f5;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
    width: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.pb-side-image-placeholder i {
    font-size: 48px;
    color: #94a3b8;
}

/* ========== TEXT COLUMN SPACING ========== */
.pb-side-text-col {
    order: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 22px;
}
.pb-side-title {
    margin: 0 0 20px 0;         /* increased bottom margin */
    line-height: 1.2;
}

.pb-side-subtitle {
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.pb-side-desc {
    margin: 0 0 16px 0;         /* consistent paragraph spacing */
    line-height: 1.6;
}

.pb-side-desc:last-of-type {
    margin-bottom: 0;           /* remove margin from last paragraph */
}

/* Reserve space for button (even if button is absent) */
.pb-side-descriptions {
    margin-bottom: 22px;        /* 22px gap before button area */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
}

/* Button wrapper spacing */
.pb-side-btn-wrapper {
    margin-top: 0;              /* will be combined with .pb-side-descriptions margin-bottom */
}

/* If button is present, ensure it doesn't double the space */
.pb-side-btn-wrapper:first-child {
    margin-top: 0;
}

/* Buttons container (if multiple buttons later) */
.pb-side-buttons {
    margin-top: 0;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Video & Play Button */
.pb-side-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    z-index: 1;
}

.pb-side-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

/* Style v2 specific */
.pb-side-by-side-section[data-style="v2"] .pb-side-image {
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.pb-side-by-side-section[data-style="v2"] .pb-side-title {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Responsive */
@media (max-width: 992px) {
    .pb-side-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .pb-side-image-col,
    .pb-side-text-col {
        order: unset !important;
    }
    .pb-side-image {
        max-width: 80%;
        margin: 0 auto;
    }
    .pb-side-image-col {
        min-height: 250px;       /* smaller on tablets */
    }
    .pb-side-image-placeholder {
        min-height: 200px;
        padding: 40px 20px;
    }
}

@media (max-width: 576px) {
    .pb-side-container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .pb-side-title {
        font-size: calc(var(--title-size-mobile, 1.8rem));
    }
    .pb-side-image-col {
        min-height: 200px;
    }
    .pb-side-image-placeholder {
        min-height: 150px;
        padding: 30px 15px;
    }
    .pb-side-image-placeholder i {
        font-size: 32px;
    }
}