/* --- DT Video Hero Styles --- */

:root {
    --dtvh-purple: #6a4c89;
    --dtvh-bg: #000;
    --dtvh-radius: 16px;
    --dtvh-text-color: #fff;
}

.dt-video-hero-section {
    position: relative;
    background-color: var(--dtvh-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Padding is now handled inline by PHP */
    display: flex;
    justify-content: center;
    overflow: hidden;
    color: var(--dtvh-text-color);
    min-height: 600px;
    align-items: center;
}

/* Overlay */
.dt-vh-overlay {
    position: absolute;
    inset: 0;
    background-color: #000;
    z-index: 1;
    pointer-events: none;
}

/* Header Wrapper (Title Above) */
.dt-vh-header-wrapper {
    padding: 0 0 60px 0; /* Desktop Gap between Title and Video */
}

/* Main Container (GRID for Desktop) */
.dt-video-hero-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    
    /* Grid Layout moved here from inline PHP */
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 60px;
    align-items: center;
}

/* Layout: Video Left */
/* Note: When using Grid, order is handled by placing items in columns, 
   but Flex is often easier for reordering. Let's strictly use order property. */
.dt-video-hero-section.dt-vh-layout-video_left .dt-video-hero-content {
    order: 2;
}
.dt-video-hero-section.dt-vh-layout-video_left .dt-video-hero-media {
    order: 1;
}

/* --- Content Column --- */
.dt-video-hero-content {
    /* No max-width needed in grid */
}

.dt-vh-title {
    font-family: 'Fredoka', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
}

.dt-vh-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 35px;
}

/* Button */
.dt-vh-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    color: #000;
    border: 2px solid #fff;
}

.dt-vh-button:hover {
    background-color: transparent;
    color: #fff;
}

/* --- Media Column --- */
.dt-video-hero-media {
    width: 100%;
}

.dt-vh-video-wrapper {
    border-radius: var(--dtvh-radius);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    background: #000;
    border: 1px solid rgba(255,255,255,0.1);
}

.dt-vh-responsive-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.dt-vh-responsive-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* --- RESPONSIVE / MOBILE STYLES --- */
@media (max-width: 900px) {
    .dt-video-hero-section {
        min-height: auto;
    }
    
    /* Reduce Gap between Title Above and Video */
    .dt-vh-header-wrapper {
        padding: 0 0 30px 0; 
    }

    /* SWITCH TO STACKED LAYOUT */
    .dt-video-hero-container {
        display: flex; /* Override Grid */
        flex-direction: column-reverse; /* Video Top (if video is 2nd), Text Bottom (if text is 1st) */
        gap: 40px;
        text-align: center;
    }
    
    /* Fix Order for Column Reverse:
       If HTML is Text (1), Video (2) -> Reverse makes Video Top, Text Bottom. 
       This matches the screenshot goal. 
    */

    /* Reset specific layout orders for mobile so they follow standard stacking */
    .dt-video-hero-section.dt-vh-layout-video_left .dt-video-hero-content,
    .dt-video-hero-section.dt-vh-layout-video_left .dt-video-hero-media {
        order: unset;
    }

    .dt-vh-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
}