/* ==========================================================================
   Single Video Page Styles
   Blue header + white content area + block editor support
   ========================================================================== */

:root {


}
:root {
   --nebula-blue: #313A4C;
   --lunar-blue: #4B5160;
   --orbit-blue: #6B7485;
   --stardust-blue: #9BA5B5;
   --aurora-green: #BAD532;
   --comet-green: #96AA2A;
   --umbra-green: #6B7A35;
   --dusk-green: #4C584A;
   --eclipse-green: #0D5C22;
   --corona-green: #3B824B;
   --zenith-green: #C6E0CC;
   --halo-green: #F2F6E6;
   --nebula-white: #FFFFFF;
   --nebula-silver: #E5E5E5;
   --nebula-granite: #707070;
}

/* Hide default WordPress entry header */
.single-video .entry-header {
    display: none;
}

/* ==========================================================================
   Blue Header Container
   ========================================================================== */
.video-page-header {
    position: relative;
    background: var(--nebula-blue);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-page-header__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.video-page-header__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(49, 58, 76, 0.85) 0%, rgba(49, 58, 76, 0.75) 100%);
    z-index: 2;
}

.video-page-header__content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 80px 48px;
}

.video-page-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

/* Category Tags */
.video-page-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.video-category-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(186, 213, 50, 0.15);
    border: 1px solid rgba(186, 213, 50, 0.4);
    border-radius: 20px;
    color: var(--aurora-green);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Title */
.video-page-title {
    color: white;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.2;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Meta Info */
.video-page-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
}

.video-page-date {
    color: rgba(255, 255, 255, 0.9);
}

.video-page-duration {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
}

.video-page-duration svg {
    color: var(--aurora-green);
}

.video-page-duration::before {
    content: '•';
    margin-right: 10px;
    color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   White Default Page Content
   ========================================================================== */
.video-page-content {
    background: white;
    padding: 60px 0;
}

.video-page-content__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 48px;
}

/* Block Editor Content Styles */
.video-page-content p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--nebula-blue);
    margin-bottom: 20px;
}

.video-page-content h2,
.video-page-content h3,
.video-page-content h4 {
    color: var(--nebula-blue);
    margin-top: 40px;
    margin-bottom: 20px;
}

.video-page-content h2 {
    font-size: 32px;
}

.video-page-content h3 {
    font-size: 24px;
}

.video-page-content h4 {
    font-size: 20px;
}

.video-page-content ul,
.video-page-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.video-page-content li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.video-page-content a {
    color: var(--corona-green);
    text-decoration: underline;
    transition: color 0.2s;
}

.video-page-content a:hover {
    color: var(--aurora-green);
}

/* Block Editor Blocks Spacing */
.video-page-content .wp-block-paragraph,
.video-page-content .wp-block-heading,
.video-page-content .wp-block-list,
.video-page-content .wp-block-quote,
.video-page-content .wp-block-image {
    margin-bottom: 24px;
}

/* Block Editor Images */
.video-page-content .wp-block-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.video-page-content .wp-block-image figcaption {
    text-align: center;
    font-size: 14px;
    color: var( --nebula-granite);
    margin-top: 10px;
}

/* Block Editor Quotes */
.video-page-content .wp-block-quote {
    border-left: 4px solid var(--aurora-green);
    padding-left: 24px;
    font-style: italic;
    color: var( --nebula-granite);
}

/* Container to guarantee perfect width matching between video and excerpt */
.video-player-container {
    max-width: 100%; /* Expand to match the full width of the text content below it */
    margin: 0 auto;
    width: 100%;
}

/* Force the video block inside this container to fill the width exactly and have a strict bottom margin */
.video-player-container .wp-block-acf-vimeo-video-embed {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 0 !important;
    margin-bottom: 24px !important; /* Strict 24px gap */
}

/* Overrides the global vimeo-embed rules (which set width to 80% and 45px border radius) ONLY on this page */
.video-player-container .vimeo-embed {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 12px !important; /* Matches excerpt box corners perfectly */
}

/* Video Excerpt Box */
.video-excerpt-box {
    width: 100%;
    margin: 0 auto 40px auto;
    border: 1px solid var(--eclipse-green);
    padding: 32px 48px;
    border-radius: 12px;
    box-sizing: border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.video-excerpt-box p {
    font-size: 20px !important;
    line-height: 1.6 !important;
    color: var(--eclipse-green) !important; /* White text for contrast */
    font-weight: 500;
    margin: 0 !important;
}

/* ==========================================================================
   Vimeo Video Block (Custom Block)
   ========================================================================== */
.wp-block-acf-vimeo-video-embed {
    margin: 40px 0;
}

.vimeo-video-block {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.vimeo-video-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.vimeo-video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Missing Video Notice */
.vimeo-video-missing {
    text-align: center;
    padding: 60px 20px;
    background: #f5f5f5;
    border-radius: 12px;
    border: 2px dashed #ddd;
}

.vimeo-video-missing p {
    color: var( --nebula-granite);
    font-size: 16px;
    margin: 0;
}

.vimeo-video-missing strong {
    color: var(--nebula-blue);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .video-page-header {
        min-height: 320px;
    }
    
    .video-page-header__content {
        padding: 60px 24px;
    }
    
    .video-page-title {
        font-size: 28px;
        margin-bottom: 16px;
    }
    
    .video-page-categories {
        margin-bottom: 20px;
    }
    
    .video-category-tag {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .video-page-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .video-page-duration::before {
        display: none;
    }
    
    .video-page-content {
        padding: 40px 0;
    }
    
    .video-page-content__inner {
        padding: 0 20px;
    }
    
    .video-page-content p {
        font-size: 15px;
    }
    
    .video-page-content h2 {
        font-size: 24px;
        margin-top: 32px;
    }
    
    .video-page-content h3 {
        font-size: 20px;
        margin-top: 28px;
    }
    
    .video-excerpt-box {
        padding: 24px;
        margin-bottom: 30px;
    }
    
    .video-excerpt-box p {
        font-size: 16px !important;
    }
    
    .vimeo-video-player {
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .video-page-header {
        min-height: 280px;
    }
    
    .video-page-header__content {
        padding: 40px 20px;
    }
    
    .video-page-title {
        font-size: 24px;
    }
    
    .video-page-content p {
        font-size: 14px;
    }
    
    .video-excerpt-box {
        padding: 20px 16px;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */
@media print {
    .video-page-header__bg,
    .video-page-header__overlay {
        display: none;
    }
    
    .vimeo-video-player {
        display: none;
    }
    
    .vimeo-video-missing {
        display: none;
    }
}
