/**
 * Two Column Section Block Styles
 *
 * @package PNK_Group
 */

.two-column-section {
    margin: 3rem auto;
    max-width: 1280px !important;
    padding: 0 var(--spacing-sm);
}

.two-column-section .section-heading {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--color-gray-850, #54565a);
}

.two-column-section .section-heading i {
    margin-right: 0.75rem;
    color: var(--brand-primary-blue, #2b488d);
}

.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Media Left Layout */
.two-column-layout.media-left {
    grid-template-columns: 1fr 1fr;
}

/* Media Right Layout */
.two-column-layout.media-right {
    grid-template-columns: 1fr 1fr;
}

.two-column-layout.media-right .column-content {
    order: -1;
}

/* Media Column */
.column-media {
    position: relative;
}

.column-media .media-image img,
.column-media .media-video video {
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Video background - shows dark bg while video loads */
.column-media .media-video {
    background-color: #1a1a1a;
    position: relative;
}

.column-media .media-video video {
    display: block;
    background-color: #1a1a1a;
}

.column-media .media-placeholder {
    background-color: #f5f5f5;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 8px;
    border: 2px dashed #ccc;
}

.column-media .media-placeholder p {
    color: #999;
    font-style: italic;
}

/* Content Column */
.column-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 0;
}

.column-content > *:first-child {
    margin-top: 0;
}

.column-content .content-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-gray-700, #4a5568);
    margin: 0;
}

/* Remove top margin/padding from h3 heading inside content-description on desktop */
@media (min-width: 769px) {
    .column-content .content-description h3 {
        margin-top: 0;
        padding-top: 0;
    }
}

.column-content .content-description p {
    margin: 0 0 1rem 0;
}

.column-content .content-description p:first-child {
    margin-top: 0;
}

/* Benefits List */
.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.benefit-item i {
    font-size: 1.5rem;
    color: var(--color-primary, #2b488d);
    flex-shrink: 0;
    line-height: 1;
    margin-top: 0;
    display: flex;
    align-items: center;
    height: 1.5rem;
}

.benefit-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 0.25rem 0;
    color: var(--color-gray-850, #54565a);
}

.benefit-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-gray-600, #718096);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .two-column-section {
        margin: 0 auto;
    }

    .two-column-layout,
    .two-column-layout.media-left,
    .two-column-layout.media-right {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .two-column-layout.media-right .column-content {
        order: 1;
    }

    .column-media {
        order: 0;
    }

    .two-column-section .section-heading {
        font-size: 1.75rem;
    }
}

/* ==========================================
   Mute/Unmute Toggle Button
   ========================================== */

.media-video {
    position: relative;
}

.media-video .video-mute-toggle {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background-color: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    color: white;
}

.media-video .video-mute-toggle:hover {
    background-color: rgba(0, 0, 0, 0.8);
    border-color: white;
    transform: scale(1.1);
}

.media-video .video-mute-toggle:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.media-video .video-mute-toggle svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

/* Mobile adjustments for mute button */
@media (max-width: 768px) {
    .media-video .video-mute-toggle {
        bottom: 15px;
        right: 15px;
    }
}

/* Editor Styles */
.block-editor-block-list__layout .two-column-section {
    border: 1px solid #e5e7eb;
    padding: 1.5rem;
    border-radius: 8px;
}
