/* --- 1. GLOBAL SETUP --- */
html { scroll-behavior: smooth; scrollbar-gutter: stable;}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, sans-serif;

@font-face {
    font-family: 'Font Awesome 5 Brands'; 
    font-display: swap;
    src: local('Font Awesome 5 Brands'); 
}}
body { background-color: #f4f4f4; overflow-x: hidden; }

body.v-popup-open {
    overflow: hidden;
    touch-action: none; 
    -ms-touch-action: none;
}

html, body {
    max-width: 100%;
    overflow-x: hidden; /* This kills the horizontal scroll */
    margin: 0;
    padding: 0;
}

.event-date {
    /* font-family: 'Arial', sans-serif;  */
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff; 
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2px;
    margin-bottom: 5px;
    padding: 8px 20px;
    background-color: rgba(255, 255, 255, 0.1); /* Subtle transparent background */
    border-radius: 30px; /* Gives it a nice pill shape */
    display: inline-block;
}

strong a, 
b a {
    font-weight: bold !important;
}

.faq-answer-content strong, 
.faq-answer-content b {
    font-weight: 800 !important;
    display: inline;
}

/* =========================================
   NAVBAR LOGO SIZING
========================================= */
.navbar-logo {
    height: 50px;
    width: auto;
    display: block;
}

.navbar-logo-link {
    display: inline-block;
    transition: transform 0.2s ease;
}

.navbar-logo-link:hover {
    transform: scale(1.05);
}

header { 
    background: #800020; 
    position: sticky; 
    top: 0; 
    width: 100%; 
    z-index: 3000; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.3); 
}

.brand-container { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    color: #fff; 
    flex-shrink: 0; 
}

.brand-text { 
    font-weight: bold; 
    font-size: 1.2rem; 
    font-family: 'Apotek ExtraCond', sans-serif !important;
    white-space: nowrap; 
}

.vcon-tag {

    font-family: 'Apotek ExtraCond', sans-serif !important;
    color: #d1ff6c !important; 
    background: linear-gradient(to right, #4d0000 0%, #4d0000 30%, #ff0000 80%);
    display: inline-block;
    padding: 2px 12px;
    border-radius: 4px;
    line-height: 1.2;
    vertical-align: middle;
    margin-top: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4); 
}

.logo-placeholder { 
    width: 45px; 
    height: 45px; 
    border-radius: 4px; 
}

#navLinks a {
    color: white !important;
    opacity: 1 !important;
    visibility: visible !important;
}

#navLinks a.active {
    color: #d1ff6c !important;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0); 
    transition: background-color 0.4s ease, padding 0.4s ease;
    z-index: 100;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    padding: 20px 5%;
    height: 70px;
    flex-wrap: nowrap;
}

.navbar.scrolled {
    background-color: rgba(20, 0, 85, 0.95); 
    padding: 10px 5%; 
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

@media (min-width: 1025px) {
    .nav-container { flex-grow: 1; display: flex; justify-content: center; }
    .nav-links { display: flex; gap: clamp(10px, 1.5vw, 25px); list-style: none !important; align-items: center; flex-wrap: nowrap; height: 70px;  visibility: visible !important; opacity: 1 !important; } 
    .nav-links > li { position: relative; list-style: none !important; height: 100%; display: flex; align-items: center; }
    .nav-links > li > a, .lang-btn { color: white; text-decoration: none; font-weight: bold; font-size: 14px; padding: 10px 0; cursor: pointer; position: relative; background: transparent !important; border: none !important; display: inline-block; transition: color 0.3s; opacity: 1 ;}
    .nav-links > li > a::after, .lang-btn::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background: #fff; transition: width 0.3s; }
    .nav-links > li:hover > a::after, .lang-dropdown:hover .lang-btn::after, .nav-links > li > a.active::after { width: 100%; }
    .nav-links > li:hover > a, .lang-dropdown:hover .lang-btn, .nav-links > li > a.active { color: #fff; }
    
    .dropdown-content, .lang-content { 
        display: none; 
        position: absolute; 
        top: 60px; 
        background: #240760;
        min-width: 220px; 
        box-shadow: 0 8px 16px rgba(0,0,0,0.3); 
        z-index: 4000; 
        list-style: none !important; 
        padding-top: 10px; 
    }
    
    .lang-content { right: 0; } 
    .lang-content::before { content: ''; position: absolute; top: -20px; right: -20px;  left: -20px; bottom: 0; z-index: -1;  }
    .dropdown:hover .dropdown-content, .lang-dropdown:hover .lang-content { display: block; }
    
    .dropdown-content a, .lang-content a { 
        color: white !important;
        padding: 15px 20px; 
        display: block; 
        text-decoration: none !important; 
        text-align: left; 
        font-size: 14px; 
        font-weight: bold; 
        border-bottom: 1px solid rgba(212,175,55,0.1); 
        transition: background 0.3s; 
    }

    .dropdown-content a:hover, .lang-content a:hover { 
        background: #d1ff6c;
        color: #240760 !important;
    }
    
    .desktop-only { display: block !important; }
    .mobile-only { display: none !important; }
}

#navLinks .dropdown-content a:hover,
#navLinks .dropdown-content a:hover *,
#navLinks .lang-content a:hover,
#navLinks .lang-content a:hover * {
    background: #d1ff6c !important;
    color: #240760 !important;
}
/* --- 4. STORIES THEATER (PERMANENT) --- */
.stories-theater { 
    /* background: #fff !important;  */
    /* opacity: 0.85 !important; */
    padding: 40px 4%; 
    display: flex !important; 
    flex-direction: column !important; /* Forces Banner TOP, Container BOTTOM */
    width: 100%;
    height: auto !important; 
}
.v-convention-banner {
    width: 100%;
    display: block; 
    background-color: #43381a; 
    padding: 30px 10px;
    text-align: center;
    margin-bottom: 10px; 
    border-radius: 8px;
}

.v-convention-banner h2 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 1px;
}

/* 1. The Container: Force the stretch */
.stories-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important; /* This forces equal height */
    gap: 20px;
    width: 100%;
}

/* 2. The Left Stage (Video + Info Bar) */
#contentStage {
    flex: 0 0 60% !important; /* Keeps your width lock */
    max-width: 60% !important;
    display: flex !important;
    flex-direction: column !important;
    /* Remove any fixed heights here */
    height: auto !important; 
}

/* 1. FIND THIS IN YOUR CSS AND REMOVE THE PIXEL HEIGHT */
.stories-playlist {
    /* DELETE OR COMMENT OUT THESE LINES: */
    /* max-height: 560px !important; */
    /* height: 500px; */

    /* ADD THESE INSTEAD: */
    height: auto !important; 
    align-self: stretch !important; 
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    background-color: #F4F3ED !important;
}

/* 2. ENSURE THE SCROLL AREA CAN EXPAND */
.playlist-scroll {
    flex-grow: 1 !important; 
    min-height: 0 !important;
    overflow-y: auto !important;
}

/* 3. THE PARENT CONTAINER MUST STRETCH */
.stories-container {
    display: flex !important;
    align-items: stretch !important; /* This is the "Glue" */
    height: auto !important;
}

/* 5. Cleanup for the Info Bar */
.stage-info-bar {
    margin-top: auto; /* Pushes the bar to the bottom of the stage div */
    margin-bottom: 0 !important;
}

/* 4. PREVENT TEXT FROM PUSHING THE BOX */
#stageTitle, #stageDesc {
    width: 100%;
    white-space: normal !important; /* Forces wrap to next line */
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* 5. MOBILE FIX (Keep this separate) */
@media (max-width: 1024px) {
    .stories-container {
        flex-direction: column !important;
    }
    .content-stage {
        flex: 0 0 auto !important;
        max-width: 100% !important;
        min-width: 100% !important;
    }

    .stories-playlist {
        max-height: 460px !important; /* <--- THIS WILL BREAK THE STRETCH */
    }
}


#stageDesc.expanded {
    display: block; 
    max-height: 150px;
    overflow-y: auto; 
    padding-right: 5px;
}

#stageDesc::-webkit-scrollbar {
    width: 4px;
}
#stageDesc::-webkit-scrollbar-thumb {
    background: #17043d;
    border-radius: 10px;
}
#stageImage { width: 100%; height: 100%; object-fit: contain; background-color: #000; display: block; }

.story-item { display: flex !important; align-items: center; min-height: 80px; padding: 15px; }
.story-meta { flex: 1; display: flex; flex-direction: column; justify-content: center; }

.stage-info-bar { 
    position: relative !important; 
    bottom: auto !important; 
    width: 100%; 
    display: flex; 
    flex-direction: row; 
    align-items: center; 
    justify-content: space-between; 
    padding: 30px; 
    background-color: #17043d;
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('YOUR_IMAGE_HERE.jpg');
    background-size: cover;
    background-position: center;
    z-index: 10;
    gap: 20px; 
    text-align: left;
}

@media (max-width: 1024px) {
    .stage-info-bar {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        padding: 40px 20px;
    }

    .text-group {
        width: 100%;
        text-align: center;
    }

    #stageTitle {
        text-align: center;
        width: 100%;
        margin-bottom: 10px;
    }

    #stageDesc {
        text-align: center;
        width: 100%;
        max-width: 90%;
        margin: 0 auto;
    }

    .button-group {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 10px;
    }

    .mobile-only-br {
    display: none;
}
}

#viewMoreToggle { color: #17043d !important; font-weight: bold; text-shadow: 1px 1px 3px #000; font-size: 12px; display: block; margin-top: 5px; }

.text-group { font-size: clamp(15px, 0.9vw + 10px, 18px) !important; flex: 1; text-align: left; overflow: visible; }
.text-group h3 { color: #fff; font-size: clamp(1rem, 4vw, 1.4rem); margin-bottom: 4px; font-weight: bold; white-space: normal; overflow: visible; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.text-group p { 
    color: #fff; 
    font-size: 16px; 
    line-height: 1.4; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}
.button-group { flex-shrink: 0; }
.action-btn { background: transparent; color: #fff; border: 1px solid white; padding: 12px 30px; font-weight: bold; border-radius: 50px; font-size: 12px; min-width: 130px; cursor: pointer; text-transform: uppercase; transition: 0.3s; }
.action-btn:hover { background: #fff; color:#17043d}

@media (max-width: 768px) {
    /* 1. Fix the clipping */
    .stage-view-container {
        height: auto !important; /* Allow it to grow with content */
        min-height: 400px;        /* Set a safe minimum */
        padding-top: 40px;
        padding-bottom: 60px;     /* Give the button room at the bottom */
        overflow: visible !important;
    }

    /* 2. Tighten the "Featured Stories" spacing */
    .featured-stories-section {
        margin-top: -20px; /* Pull the section up */
        padding-top: 10px;
    }

    .featured-stories-header {
        font-size: 1.5rem; /* Scale down title for mobile */
        margin-bottom: 10px;
    }

    /* 3. Dropdowns: Stack them or make them full width to save space */
    .filter-container {
        display: flex;
        flex-direction: column; /* Stack dropdowns vertically if they are cramped */
        gap: 8px;
        width: 90%;
        margin: 0 auto;
    }
}

.stories-playlist {
    background-color: #F4F3ED !important;
    border-radius: 15px !important;
    padding: 20px;
    display: flex !important;
    flex-direction: column !important;
    max-height: 560px !important; 
    overflow: hidden !important; 
}

.stories-playlist h4 {
    text-align: center;
    color: #240760;
    font-family: 'Barlow', sans-serif !important;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0;
    margin-bottom: 15px;
}

.playlist-scroll {
    flex-grow: 1;
    overflow-y: auto !important; /* Adds the vertical scrollbar */
    padding-right: 10px; /* Prevents the scrollbar from overlapping your text */
    margin-top: 10px;
}

/* Optional: Make the scrollbar match your theme! */
.playlist-scroll::-webkit-scrollbar {
    width: 6px;
}
.playlist-scroll::-webkit-scrollbar-thumb {
    background-color: #240760; /* Dark purple scrollbar */
    border-radius: 10px;
}
.playlist-scroll::-webkit-scrollbar-track {
    background: transparent; 
}

.story-item { display: flex !important; flex-direction: row !important; align-items: center; gap: 12px; padding: 10px; background: #fff; border-bottom: 1px solid #eee; cursor: pointer; transition: 0.2s; }
.story-item.active { background: #800020 !important; }
.story-title { display: block; color: #333; font-weight: bold; font-size: 12px; line-height: 1.3; margin-bottom: 2px; }
.story-item.active .story-title { color: #fff !important; }
.story-subtitle { display: block; color: #17043d; font-size: 10px; }
.thumb-wrap { width: 100px !important; height: 56px !important; flex-shrink: 0; position: relative; overflow: hidden; border-radius: 4px; }
.thumb-wrap img { width: 100%; height: 100%; object-fit: cover !important; }
.story-meta { display: flex; flex-direction: column; justify-content: center; /* Centers title/subtitle within the text area */ flex: 1; text-align: left; /* Keeps text left-aligned but the block itself is centered */ }
.story-item:not(:has(.thumb-wrap)) .story-meta { text-align: center; /* If no thumbnail, center the text entirely */ padding-left: 0; }

/* Smooth transition for the stage elements */
#stageTitle, 
#stageDesc, 
#mainActionButton, 
#stageImage {
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* The temporary class we will apply via JavaScript */
.fade-out-stage {
    opacity: 0 !important;
    transform: translateY(10px); 
}

/* --- DESCRIPTION TOGGLE SYSTEM --- */
.text-content p.expanded, .text-group p.expanded {
    -webkit-line-clamp: unset !important; 
    line-clamp: unset !important; 
    display: block !important;
    overflow: visible !important;
}

.hidden-toggle {
    display: none !important;
}

.filter-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-bar select {
    appearance: none !important; 
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: transparent !important;
    border: 1px solid #240760 !important;
    border-radius: 20px !important;
    padding: 5px 25px 5px 12px !important; 
    color: #240760 !important;
    font-family: 'Barlow', sans-serif !important;
    font-size: 0.75rem !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    outline: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23240760' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important; 
    background-size: 10px !important; 
}

.filter-bar select:hover {
    background-color: rgba(36, 7, 96, 0.05) !important; 
}

.filter-bar button#resetFilters {
    background-color: #240760;
    color: #ffffff;
    border: 1px solid #240760;
    border-radius: 20px;
    padding: 5px 15px;
    font-family: 'Barlow', sans-serif !important;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.filter-bar button#resetFilters:hover {
    opacity: 0.8;
}

.filter-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px; /* Adjust spacing between filters and Reset */
    margin: 20px 0;
}

.filter-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
    flex-wrap: nowrap;
}

#resetFilters {
    background: transparent;
    border: none;
    color: #800020; /* Maroon color */
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s;
    padding: 0;
    display: none;
}

#resetFilters:hover {
    color: #D4AF37; /* Gold on hover */
    background: rgba(128, 0, 32, 0.05); /* Very subtle highlight */
}

@media (max-width: 480px) {
    .filter-row {
        gap: 5px;
    }
    select {
        font-size: 12px; /* Shrink text slightly so they fit on one line */
        padding: 5px;
    }
}



/* --- 5. MOBILE VIEW MASTER FIX (<= 1024px) --- */
@media (max-width: 1024px) {
    .brand-text { display: none !important; }
    .desktop-only { display: none !important; }
    .dropdown-content, .lang-content { display: block !important; max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1); background: rgba(0, 0, 0, 0.2); padding: 0 !important; margin: 0; }
    .dropdown-content.show, .lang-content.show { max-height: 500px; padding: 10px 0 !important; }
    #navLinks { display: flex !important; flex-direction: column; position: fixed; top: 0; right: -100%; width: 100%; height: 100vh; background: #240760; padding: 100px 20px 40px; z-index: 5000; overflow-y: auto; list-style: none !important; text-align: center; transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1); }
    #navLinks.active { display: flex !important; right: 0; }
    #navLinks li { width: 100%; list-style: none !important; margin-bottom: 10px; opacity: 0; transform: translateX(50px); transition: transform 0.4s ease; }
    #navLinks.active li { animation: slideInLeft 0.5s ease forwards; }
    #navLinks.active li:nth-child(1) { animation-delay: 0.1s; }
    #navLinks.active li:nth-child(2) { animation-delay: 0.2s; }
    #navLinks.active li:nth-child(3) { animation-delay: 0.3s; }
    #navLinks.active li:nth-child(4) { animation-delay: 0.4s; }
    #navLinks.active li:nth-child(5) { animation-delay: 0.5s; }
    #navLinks.active li:nth-child(6) { animation-delay: 0.6s; }
    #navLinks.active li:nth-child(7) { animation-delay: 0.7s; }
    #navLinks.active li:nth-child(8) { animation-delay: 0.8s; }
    @keyframes slideInLeft { to { opacity: 1; transform: translateX(0); } }
    .menu-icon { display: flex !important; flex-direction: column; gap: 5px; cursor: pointer; z-index: 5001; position: relative; }
    .menu-icon span { width: 28px; height: 3px; background: #D4AF37; border-radius: 2px; transition: 0.3s ease-in-out; }
    .menu-icon.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-icon.open span:nth-child(2) { opacity: 0; }
    .menu-icon.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    #navLinks a, .dropbtn { color: white; text-decoration: none; font-size: 1.2rem; font-weight: bold; display: block; padding: 15px; border-bottom: 1px solid rgba(212,175,55,0.1); text-align: center; }
    .dropdown-content a, .lang-content a { font-size: 1rem !important; color: rgba(255,255,255,0.8) !important; border-bottom: none !important; }
    
    .v-convention-banner h2 { font-size: 1.8rem; }
    .stories-container { flex-direction: column !important; height: auto !important; gap: 0; }
    .v-convention-banner h2 { font-size: 1.5rem; }
    .content-stage { flex: none; width: 100%; height: auto; border-radius: 0; position: relative; }
    #stageViewport {
        position: relative;
        width: 100%;
        height: auto !important; 
        min-height: 450px; 
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    #stageImage {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100% !important;
        object-fit: cover;
        z-index: 1;
        /* Re-apply your blur here */
        filter: blur(5px) brightness(0.6);
        transform: scale(1.1); 
    }
.stories-playlist {
    background-color: #F4F3ED !important;
    border-radius: 15px !important;
    padding: 20px;
    display: flex !important;
    flex-direction: column !important;
    max-height: 460px !important; 
    overflow: hidden !important; 
}

.playlist-scroll {
    overflow-y: auto !important; 
    flex: 1 1 auto !important;   
    min-height: 0 !important;    
    padding-right: 10px;         
}

.playlist-scroll::-webkit-scrollbar {
    width: 6px;
}

.playlist-scroll::-webkit-scrollbar-thumb {
    background-color: #240760; 
    border-radius: 10px;
}

.playlist-scroll::-webkit-scrollbar-track {
    background: transparent; 
}

.stories-playlist h4 {
    text-align: center;
    color: #240760;
    font-family: 'Barlow', sans-serif !important;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0;
    margin-bottom: 15px;
}

.filter-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-bar select {
    appearance: none !important; 
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-color: transparent !important;
    border: 1px solid #240760 !important;
    border-radius: 20px !important;
    padding: 5px 25px 5px 12px !important; 
    color: #240760 !important;
    font-family: 'Barlow', sans-serif !important;
    font-size: 0.75rem !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    outline: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23240760' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 8px center !important; 
    background-size: 10px !important; 
}

.filter-bar select:hover {
    background-color: rgba(36, 7, 96, 0.05) !important; 
}

.filter-bar button#resetFilters {
    background-color: #240760;
    color: #ffffff;
    border: 1px solid #240760;
    border-radius: 20px;
    padding: 5px 15px;
    font-family: 'Barlow', sans-serif !important;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.filter-bar button#resetFilters:hover {
    opacity: 0.8;
}
    .stage-info-bar {
            position: absolute !important;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.3) !important; /* Subtle tint */
            display: flex !important;
            flex-direction: column !important;
            justify-content: flex-start !important;
            align-items: center !important;
            padding-top: 50px !important;
            padding-bottom: 30px !important;
            z-index: 20;
        }

    #stageDesc {
        display: block !important;
        font-size: 1.1rem !important; /* Larger, more readable size */
        line-height: 1.6 !important;  /* More breathing room between lines */
        color: #ffffff !important;
        text-align: center !important;
        
        /* This shadow is the secret to readability on busy backgrounds */
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7); 
        
        /* Padding ensures the text doesn't touch the edges of the phone */
        padding: 0 15px !important; 
        
        margin-top: 15px !important;
        margin-bottom: 25px !important; /* Clean gap before the Play button */
        
        /* Ensure no old "View More" limits are stuck here */
        max-height: none !important;
        overflow: visible !important;
        /* -webkit-line-clamp: unset !important; */
    }

    #stageDesc.expanded {
        /* -webkit-line-clamp: unset !important; */
        max-height: 300px !important;      /* Allow it to grow */
        overflow-y: auto !important;       /* Scroll inside if it's huge */
        display: block !important;
    }
    
    .text-group {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        position: relative !important;
    }
    .text-group h3 {
        font-size: 1.6rem !important;
        margin-bottom: 10px !important;
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
    }
    .text-group p { 
        max-height: 120px; 
        overflow-y: auto;   
        padding-bottom: 5px; /* Add space at the bottom of the text */
        margin-top: 15px; 
        margin-bottom: 0 !important; /* Remove bottom margin to prevent pushing button away */
        font-size: 15px !important; 
        line-height: 1.6; 
        text-align: left; 
        width: 100%;
        position: relative; /* Ensure it stays in flow */
    }
    .text-group p::-webkit-scrollbar { width: 4px; } 
    .text-group p::-webkit-scrollbar-thumb { background-color: #D4AF37; border-radius: 10px; }
    
    .action-btn { width: 100% !important;  padding: 18px !important;  font-size: 16px !important; border-radius: 50px !important; box-shadow: 0 4px 15px rgba(0,0,0,0.4); margin-top: 20px; }



    .button-group {
        margin-top: 10px !important;
        width: 100%;
        display: flex;
        justify-content: center;
        z-index: 10;
    }
    
}

@media (max-width: 767px) {
    /* 1. Force the container to stop expanding */
    .stage-info-bar {
        display: block !important; /* Switch from flex to block to stack naturally */
        height: auto !important; 
        min-height: 0 !important;
        padding: 20px 15px !important;
        text-align: center;
    }

    /* 2. Tighten text margins */
    .text-group {
        margin-top: 10px !important;
        margin-bottom: 10px !important;
    }

    #stageDesc {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    /* 3. Fix the button overlap */
    .button-group {
        margin-top: 20px !important;
        position: relative !important;
        display: block !important;
        width: 100%;
        /* Remove any absolute positioning that might be inherited */
        bottom: auto !important; 
        left: auto !important;
        transform: none !important;
    }

    #mainActionButton {
        position: relative !important;
        display: inline-block !important;
        width: 80% !important; /* Make it look like a mobile button */
        margin: 0 auto !important;
    }

    /* 4. Ensure the White Card section stays below the button */
    .featured-stories-section {
        margin-top: 0 !important;
        clear: both;
    }
}

/* --- 6. HERO SECTION --- */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; background-image: url('assets/images/bg-fx.png'); opacity: 90%; background-size: cover; color: white; text-align: center; padding-top: 60px; }
.logo-emblem { width: clamp(200px, 30vw, 300px); height: clamp(200px, 30vw, 300px); border: 2px solid #D4AF37; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; margin-bottom: 30px; background: rgba(212,175,55,0.05); }
.emblem-word { font-size: clamp(0.8rem, 2vw, 1.1rem); color: #D4AF37; text-transform: uppercase; font-weight: 800; letter-spacing: 2px; }
.emblem-divider { width: 50px; height: 1px; background: rgba(212, 175, 55, 0.4); margin: 5px auto; }
.main-title { font-size: clamp(1.8rem, 4vw, 3.5rem); font-weight: 600; margin-bottom: 10px;  }
.hero-countdown { font-size: clamp(1.5rem, 6vw, 4rem); color: #D4AF37; font-weight: bold; font-family: monospace; }

/* --- HERO SECTION SPACING --- */
.hero-logo {
    display: block;
    margin: 0 auto 0 auto; /* Centers the logo and adds space below */
    width: 300px;
}

.main-title {
    margin-bottom: 30px;
    font-family: 'Apotek ExtraCond', sans-serif !important;
}

/* --- THE NEW CTA BUTTON --- */

@keyframes borderPulse {
  0% { 
    box-shadow: 0 0 5px rgba(255, 140, 0, 0.4); 
    border-color: #8B4513; /* Darker, "unlit" orange/brown */
  }
  50% { 
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.8); 
    border-color: #ff8c00; /* Bright "lit" orange */
  }
  100% { 
    box-shadow: 0 0 5px rgba(255, 140, 0, 0.4); 
    border-color: #8B4513; 
  }
}

.v-cta-button {
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(to right, #300050, #6a00b0);
  color: #ffffff;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 900;
  font-family: sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  
  /* The Border */
  border: 2px solid #ff8c00;
  
  /* Applying the Animation */
  animation: borderPulse 3s infinite ease-in-out;
  transition: transform 0.2s ease;
}

.v-cta-button:hover {
  transform: scale(1.05);
  animation-duration: 1s; /* Speeds up when you hover! */
}

.v-cta-button span {
  color: #ffff00;
  margin-left: 5px;
}
.v-cta-button {
    display: inline-block;
    margin-top: 10px; 
    padding: 15px 40px;
    background-color: #D4AF37; /* Premium Gold */
    color: #fff; /* Deep Maroon Text */
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 50px; /* Pill-shaped button */
    border: 2px solid transparent;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.v-cta-button:hover {
    transform: translateY(-3px); /* Slight "lift" effect when hovered */
    background-color: #f1c40f; /* Brighter gold on hover */
    box-shadow: 0 15px 25px rgba(0,0,0,0.4);
}

/* --- 7. UTILITIES --- */
.master-section { height: 100vh; width: 100%; display: flex; align-items: center; justify-content: center; text-align: center; }
#backToTop { 
    position: fixed; 
    /* Default position: Sitting above the CTA */
    bottom: 110px; 
    right: 30px; 
    width: 50px; 
    height: 50px; 
    background: #4e158c; 
    color: #d1ff6c;
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-decoration: none; 
    opacity: 0; 
    visibility: hidden; 
    /* This makes the "drop" look smooth when the CTA is closed */
    transition: opacity 0.3s, visibility 0.3s, bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    z-index: 5000; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
#backToTop.visible { opacity: 1; visibility: visible; }


/* --- 8. Gallery --- */
/* Gallery Section Title */
.gallery-carousel-section .section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #800020; /* Maroon */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    font-weight: 800;
}

.gallery-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
    padding: 0 20px;
}

.v-header-container {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

.v-section-heading {
    display: inline-block;
    background-color: #800020; /* Deep Maroon */
    color: #ffffff;            /* Pure White */
    padding: 15px 40px;
    border-radius: 5px;
    font-size: 2.2rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 4px solid #D4AF37; /* The Gold Bottom Border */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin: 0 auto;
    font-family: sans-serif;
}

.news-header-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 30px auto;
    padding: 0 20px;
}

@font-face {
    font-family: 'Apotek ExtraCond';
    src: url('fonts/Apotek_Cond_Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Barlow';
    src: url('fonts/Barlow-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}


/* @font-face {
    font-family: 'HyperspaceRace';
    src: url('fonts/hyperspacerace-bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
} */

.news-header-container {
    display: grid;
    grid-template-columns: 6fr 4fr; 
    align-items: center;
    gap: 30px;
    width: 100%;
    max-width: 1400px; 
    margin: 0 auto 30px auto;
    padding: 0 20px;
}

.v-section-heading-news {
    text-align: left;
    color: #ffffff;            
    font-size: clamp(2rem, 3.8vw, 3.8rem); 
    font-family: 'Apotek ExtraCond', sans-serif !important;
    font-weight: 600; 
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: -0.5px;
    margin: 0;
    white-space: nowrap; 
    overflow: visible;
}

.v-section-heading-news-sub {
    text-align: left;
    color: #ffffff;            
    font-family: 'Barlow', sans-serif !important;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.3;
    margin: 0;
}

.v-section-heading-gallery {
    text-align: left;
    color: #a61c86;            
    font-size: clamp(2rem, 3.8vw, 3.8rem); 
    font-family: 'Apotek ExtraCond', sans-serif !important;
    font-weight: 600; 
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: -0.5px;
    margin: 0;
    white-space: nowrap; 
    overflow: visible;
}

.v-section-heading-gallery-sub {
    text-align: left;
    color: #a61c86;            
    font-family: 'Barlow', sans-serif !important;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.3;
    margin: 0;
}


.news-header-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: left;
    align-items: center;
}

.v-section-heading-news-sub {
    text-align: left;
}

@media (max-width: 1024px) {
    .news-header-container {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
        text-align: center;
        align-items: center;
        width: 100%;
    }

    .v-section-heading-news {
        white-space: normal; 
        font-size: 2.2rem;
        text-align: center;
        width: 100%;
    }

    .v-section-heading-news-sub {
        text-align: center;
        width: 100%;
        max-width: 90%;
        margin: 0 auto;
    }
}

.g-btn {
    background: transparent;
    border: 2px solid #17043d;
    background-color: #fff;
    color: #17043d;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 50px; /* Pill shape */
    cursor: pointer;
    transition: all 0.3s ease;
}

.g-btn.active, .g-btn:hover {
    background: #17043d;
    color: #fff; /* Gold */
    box-shadow: 0 4px 15px rgba(128, 0, 32, 0.3);
}

.scroll-hint {
    /* display: none; */
    text-align: center;
    font-size: 2.5rem;
    color: #666;
    font-style: italic;
    margin-top: 20px;
}

.gallery-relative-wrapper {
    position: relative;
    width: 80%;       /* Exactly 80% of the screen */
    margin: 0 auto;   /* Centers the wrapper horizontally */
    overflow: hidden;
    padding: 20px 0;
}
.gallery-scroll-container {
    display: grid !important;
    /* Two rows of fixed height */
    grid-template-rows: repeat(2, 250px) !important; 
    /* Force horizontal growth only */
    grid-auto-flow: column !important;
    /* Column width: 400px on Desktop, 85% on Mobile for the 'peek' */
    grid-auto-columns: 400px !important; 
    gap: 20px;
    
    overflow-x: auto !important; /* This handles the simultaneous scroll */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 10px 10px 30px 10px;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(128, 0, 32, 0.8); /* Maroon with transparency */
    color: #D4AF37; /* Gold */
    border: 1px solid #D4AF37;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-arrow:hover {
    background: #D4AF37;
    color: #800020;
}

.nav-arrow.left { left: 15px; }
.nav-arrow.right { right: 15px; }

/* Hide arrows on small touch devices */
@media (max-width: 768px) {
    .nav-arrow { display: none; }

    gallery-scroll-container {
        grid-auto-columns: 85% !important; 
        grid-template-rows: repeat(2, 200px) !important;
        
        /* Force scrollbar to stay visible on mobile devices */
        display: grid !important; 
    }

    /* Webkit (Chrome/Safari/Edge) Scrollbar Styling */
    .gallery-scroll-container::-webkit-scrollbar {
        height: 8px !important;
        display: block !important; /* Forces it to show */
    }

}

.gallery-scroll-container::-webkit-scrollbar {
    height: 8px;
    background: #f1f1f1;
}

.gallery-scroll-container::-webkit-scrollbar-thumb {
    background: #666;
    border-radius: 10px;
}

@media (max-width: 1200px) {
    .gallery-relative-wrapper { width: 90%; }
    .nav-arrow.left { left: 10px; }
    .nav-arrow.right { right: 10px; }
}


.m-item {
    height: 100%;
    display: flex;
    justify-content: center;
}

.m-item img {
    height: 100%;    /* Fills the row height perfectly */
    width: auto;      /* Naturally adjusts width to show the full photo */
    max-width: none;  /* Allows wide photos to stay wide */
    object-fit: contain; /* Ensures the whole image is visible within its area */
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}


.scroll-hint {
    color: #D4AF37;
    text-align: center;
    font-size: 1rem;
    margin-top: 15px;
    opacity: 0.7;
}

.gallery-carousel-section {
    width: 100%;
    padding: 60px 0; 
    background-color: #f9f6f0; 

}

/* SPEAKER SECTION */

.speakers-section {
    background: #0a0a0a;
    padding: 80px 5%;
    text-align: center;
}

.section-title{
    color: #fff;
}

.speakers-grid {
    display: grid;
    /* This line creates the responsive grid: 
       Cards will be at least 320px wide and fill the space */
    grid-template-columns: repeat(auto-fit, minmax(320px, 380px));
    gap: 40px;
    justify-content: center;
    margin-top: 50px;
}

.character-card {
    position: relative;
    height: 550px; /* Cinematic tall portrait ratio */
    background: #111;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3); /* Sublte Gold Border */
    cursor: pointer;
    border-radius: 4px;
}

/* The Ornamental Border (Assassin's Creed Style) */
.card-inner-border {
    position: absolute;
    top: 15px; left: 15px; right: 15px; bottom: 15px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    z-index: 10;
    pointer-events: none;
    transition: border 0.4s ease;
}

.character-card:hover .card-inner-border {
    border: 1px solid rgba(212, 175, 55, 0.5);
}

/* Image Zoom and Darken */
.character-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                filter 0.8s ease;
}

.character-card:hover img {
    transform: scale(1.1);
    filter: brightness(0.4);
}

/* Text Overlay Positioning */
.card-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 40px 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 30%, transparent);
    z-index: 5;
    text-align: center;
}

.char-name {
    color: #D4AF37; /* Gold */
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    transition: transform 0.5s ease;
}

/* Slide-up Bio with Delay */
.char-desc {
    color: #ffffff;
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(30px);
    /* 0.5s duration, 0.2s delay for that staggered feel */
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1) 0.2s;
}

.character-card:hover .char-desc {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Tweak: Slightly smaller cards for small phones */
@media (max-width: 480px) {
    .speakers-grid { grid-template-columns: 1fr; }
    .character-card { height: 480px; }
}

.social-links {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    /* Extra delay: It appears AFTER the name starts moving */
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease 0.4s; 
}

.character-card:hover .social-links {
    opacity: 1;
    transform: translateY(0);
}

.social-links a {
    color: #D4AF37; /* Gold icon */
    transition: 0.3s;
    display: inline-block;
}

.social-links a:hover {
    color: #ffffff; /* Turns white on hover */
    transform: scale(1.2);
}

.social-links svg {
    width: 24px;
    height: 24px;
}

/* The Button inside the card */
.video-invite-btn {
    margin-top: 18px;
    background: #800020; /* Solid Maroon for more importance */
    border: 1px solid #D4AF37;
    color: #fff;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s ease 0.5s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* The Pulsing "Live" Effect */
.pulse-icon {
    color: #ff4d4d;
    font-size: 14px;
    animation: invite-pulse 1.5s infinite;
}

@keyframes invite-pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.character-card:hover .video-invite-btn {
    opacity: 1;
    transform: translateY(0);
}

.video-invite-btn:hover {
    background: #D4AF37;
    color: #800020;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* invite video Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    display: none; /* Hidden */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    width: 80%;
    max-width: 900px;
    position: relative;
}

@keyframes goldSpin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    background: #000; /* Solid black background */
    border: 1px solid #D4AF37;
    overflow: hidden;
}

.video-container::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    /* We use translate here to keep it perfectly centered */
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(212, 175, 55, 0.1); /* Faint gold track */
    border-top: 3px solid #D4AF37;            /* Bright gold moving part */
    border-radius: 50%;
    animation: goldSpin 1s linear infinite;
    z-index: 1; /* Sits behind the video */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Higher than the spinner */
    background: transparent;
}

.close-modal {
    position: absolute;
    top: -40px; right: 0;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

/* CONFESSION SECTION */
.confession-section {
    width: 100%;
    min-height: 80vh;
    padding: 60px 20px; 
    background-image: url('assets/images/form-bg.jpg');
    background-size: cover;
    /* Anchors background to bottom so the "Dreamer" text stays visible */
    background-position: bottom center; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.confession-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; 
    gap: 40px; 
    max-width: 1200px;
    width: 95%;
    align-items: center; 
    margin: 0 auto;
}

.confession-header {
    position: relative;
    top: -80px; /* Moves the header up 80px relative to its original spot */
}

.confession-header h2 {
    font-family: 'Apotek ExtraCond', sans-serif !important;
    font-size: clamp(3.5rem, 6vw, 5.5rem);
    color: #d1ff6c;
    line-height: 0.85; 
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.main-text { font-size: 2.2rem; font-weight: 800; color: #ffffff; margin-bottom: 15px; }
.sub-text { font-size: 1.3rem; opacity: 0.95; color: #ffffff; }

/* THE WHITE FORM CARD */
.confession-white-card {
    background: #f1ecf7; 
    padding: 40px;
    border-radius: 15px;
    box-shadow: 10px 10px 30px rgba(0,0,0,0.3);
}

.confession-white-card label {
    display: block;
    color: #352288;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.confession-white-card input, 
.confession-white-card textarea {
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-bottom: 20px;
    width: 100%;
    padding: 12px;
    box-sizing: border-box;
}

.confession-submit-btn {
    background-color: #d1ff6c;
    color: #17043d;
    border-radius: 8px;
    border: none;
    padding: 15px 35px;
    font-weight: 900;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 0 #9cbd4e; 
    width: 100%;
}

/* =========================================
   MOBILE SPACING ADJUSTMENT
========================================= */

@media (max-width: 768px) {
    .confession-section {
        /* Keep top padding reasonable, but BOOST bottom padding */
        /* This creates the gap for the background text to show through */
        padding-top: 40px !important;
        padding-bottom: 130px !important; 
        
        /* Ensures the background stays put at the bottom */
        background-position: bottom center;
    }

    .confession-header{
        top: 0px;
    }

    .confession-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    

    .confession-header h2 {
        font-size: 3rem;
    }

    .confession-white-card {
        padding: 25px;
    }
}


/* Input Fields Styling */
.confession-form input[type="text"],
.confession-form input[type="email"],
.confession-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    font-family: 'Barlow', sans-serif !important;
    box-sizing: border-box; /* Ensures padding doesn't break 100% width */
}

/* Textarea specific */
.confession-form textarea {
    resize: vertical; /* Allows user to drag it taller, but not wider */
}

/* Submit Button */
.confession-submit-btn {
    background-color: #d1ff6c; /* Using that lime green from earlier */
    color: #000;
    font-weight: bold;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.confession-submit-btn:hover {
    background-color: #b5e655; /* Slightly darker green on hover */
}


/* ========== FAQ Section ========== */
/* Section Background */
/* --- FAQ Section Container --- */
.v-faq-section {
    padding: 80px 5%;
    background-image: url('assets/BG-venue.png');
    background-repeat: no-repeat;
    background-size: cover;
}

.v-faq-container {
    max-width: 850px;
    margin: 0 auto;
}

.v-faq-header {
    text-align: center;
    font-family: 'Apotek ExtraCond', sans-serif !important;
    color: #ffffff;
    background-color: transparent;
    display: table;
    margin: 0 auto 50px auto;
    padding: 15px 40px;
    border-radius: 5px;
    font-size: 4.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- FAQ Item & Entrance Animation --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    background: #782626;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }

.faq-item.active {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* --- Question Bar --- */
.faq-question {
    width: 100%;
    padding: 10px;
    background: #d8422e;
    color: white;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: normal;
    text-align: left;
    transition: background 0.3s;
    font-family: 'Barlow', sans-serif !important;
}

.faq-question *{
    font-family: 'Barlow', sans-serif !important;
    font-weight: normal;
}

.faq-answer * {
    font-family: 'Barlow', sans-serif !important;
    font-weight: normal;
}

.faq-question:hover {
    background: #782626;
}

/* --- THE SMOOTH REVEAL (Grid Method) --- */
.faq-answer {
    display: grid;
    color: #fff;
    grid-template-rows: 0fr; /* Collapsed state */
    transition: grid-template-rows 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr; /* Expanded state */
    /* border-bottom: 1px solid #eee; */
}

.faq-answer-content {
    overflow: hidden; /* Vital for grid animation */
    padding: 0 20px;
    font-family: 'Barlow', sans-serif !important;
    color: #fff;
    line-height: 1.6;
    opacity: 0;
    transition: opacity 0.4s ease, padding 0.5s ease;
}

.faq-answer-content a{
    color:#fff;
}

.faq-item.active .faq-answer-content {
    padding: 20px;
    opacity: 1;
}

/* --- Icon Animation --- */
.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(135deg); /* Professional 'X' shape */
    color: #d1ff6c;
}

/* --- RTL Support --- */
[dir="rtl"] .faq-question {
    text-align: right;
    flex-direction: row-reverse;
}

/* Fix for the FAQ/T&C Stretching and Direction */
[dir="rtl"] .v-faq-list {
    text-align: justify;
    text-align-last: right; /* Snaps the last line to the right */
    direction: rtl !important;
    unicode-bidi: isolate; /* Helps keep parentheses in the right spot */
}

/* Ensure no extra spacing is added between Arabic letters */
[dir="rtl"] .v-faq-list p, 
[dir="rtl"] #faq-accordion {
    letter-spacing: 0 !important;
    word-spacing: normal !important;
}

/* VENUE MAP SECTION */
.v-highlight {
    color: #d1ff6c;
    font-weight: bold; /* Optional: makes it pop more */
}
.v-venue-section {
    position: relative;
    padding: 80px 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect for premium feel */
}

.v-venue-overlay {
    position: absolute;
    inset: 0;
    background-image: url(assets/BG-venue.png);
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 1;
}

.v-venue-content {
    position: relative;
    z-index: 10;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.v-venue-header {
    text-align: center;
    margin-bottom: 50px;
}

.v-venue-title {
    display: inline-block;
    color: #ffffff;           
    padding: 5px 20px;
    border-radius: 5px;
    font-size: 3.5rem;
    font-weight: 900;
    font-family: 'Apotek ExtraCond', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    /* border-bottom: 4px solid #D4AF37; */
    /* box-shadow: 0 4px 15px rgba(0,0,0,0.1); */
}

/* Ensure the description below stays clean */
.v-venue-desc {
    margin-top: 10px;
    color: #fff;
    font-family: 'Barlow', sans-serif !important;
    font-size: 1.5rem;
    line-height: 1.6;
}

.v-block-mobile {
    display: inline-block;
    font-weight: bold;
    color: #800020;
}

.v-map-wrapper {
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    border-radius: 15px;
    overflow: hidden;
    border: 5px solid #d1ff6c;
}

.v-map-image {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.v-map-image:hover {
    transform: scale(1.02); /* Subtle zoom on the map */
}

/* This targets the Arabic version specifically */
[dir="rtl"] .faq-question {
    display: flex !important;
    flex-direction: row-reverse !important; /* Forces the swap */
    justify-content: space-between !important;
    text-align: right !important;
    padding: 15px 20px !important;
}

/* Ensure the text is on the right */
[dir="rtl"] .faq-question span:first-child {
    flex: 1;
    order: 2; /* Puts text on the right */
    margin-right: 10px;
}

/* Ensure the + is on the left */
[dir="rtl"] .faq-question span.faq-icon {
    order: 1; /* Puts icon on the left */
    margin-right: 0;
    margin-left: 10px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .v-venue-title { font-size: 1.8rem; padding: 10px 15px; }
    .v-venue-section { padding: 50px 0; }
}

.v-map-wrapper {
    overflow: hidden; /* Keeps the zoomed map inside the box */
    cursor: move;
    touch-action: none; /* Required for Panzoom mobile support */
}

.v-map-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border: 2px solid rgba(209, 255, 108, 0.3);
    border-radius: 15px;
    overflow: hidden; /* This keeps the map inside the borders */
    background: #17043d;
}

.v-map-wrapper {
    cursor: grab;
    touch-action: none; /* Required for mobile pan/zoom */
}

.v-map-wrapper:active {
    cursor: grabbing;
}

/* Floating Controls */
.v-map-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 100;
}

.v-map-controls button {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    background: #d1ff6c; /* Your Lime Green */
    color: #17043d;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s, background 0.2s;
}

.v-map-controls button:hover {
    background: #ffffff;
    transform: scale(1.1);
}

.v-map-image {
    width: 100%;
    height: auto;
    display: block;
}

/* This ensures the zoomed image stays above your overlays */
.medium-zoom-overlay, .medium-zoom-image--opened {
    z-index: 9999;
}

/* VKIDS and VTEENS SECTION */

/* Container and Grid */
.vkids-section {
    min-height: 100vh;
    padding: 60px 5%;
    background-image: url('assets/images/vkt-bg-1.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    line-height: 1;
}

html[lang="ar"] #v-kids {
  background-image: url('assets/images/vkt-bg-2.png');
}

.v-section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.v-header-top {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 1400px;
}

.vkids-logo {
    width: 350px;
    left:-100px;
    height: auto;
    flex-shrink: 0;
    position: relative;
}

.v-gold-title {
    font-family: "hyperspace-race-cap-variable", sans-serif !important;
    color: #ffffff;
    font-size: 2.8rem;
    font-weight: bold;
    text-transform: uppercase;
    text-align: left;
    margin: 0;
    line-height: 1.1;
    letter-spacing: 1px;
}

.v-gold-subtitle {
    color: #d1ff6c;
    font-family: "hyperspace-race-cap-variable", sans-serif !important;
    font-size: 2rem;
    margin-top: 30px;
    width: 100%;
}

@media (max-width: 1024px) {
    .v-header-top {
        flex-direction: column;
        text-align: center;
    }
    .v-gold-title {
        text-align: center;
        font-size: 2rem;
    }
    .vkids-logo {
        width: 250px;
    }
}

/* Mobile adjustment to ensure it doesn't get too big on small screens */
@media (max-width: 768px) {
    .v-gold-title {
        font-size: 1.5rem;
        padding: 10px 25px;
    }

    .vkids-card {
        flex: 0 0 85% !important; 
        max-width: 85%;
    }
    
    .vkids-grid {
        padding: 20px 0 60px 20px !important; 
        gap: 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin; /* Firefox */
        scroll-snap-type: x mandatory;
    }
    
    .vkids-grid::-webkit-scrollbar {
        display: block;
        height: 6px;
    }
}

.vkids-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 25px;
    padding: 20px 50px 60px 50px;
    scroll-behavior: smooth;
    
    /* 1. Set the default states (At the start: Left is solid, Right is faded) */
    --fade-left: black;       /* Black = Content is fully visible */
    --fade-right: transparent; /* Transparent = Content fades out */
    
    /* 2. Apply the dynamic mask */
    -webkit-mask-image: linear-gradient(
        to right, 
        var(--fade-left) 0%, 
        black 10%, 
        black 90%, 
        var(--fade-right) 100%
    );
    mask-image: linear-gradient(
        to right, 
        var(--fade-left) 0%, 
        black 10%, 
        black 90%, 
        var(--fade-right) 100%
    );
}

/* 3. The classes our JavaScript will trigger */
.vkids-grid.not-at-start {
    --fade-left: transparent; /* Turns ON the left fade when scrolled away from the start */
}

.vkids-grid.at-end {
    --fade-right: black;      /* Turns OFF the right fade when you reach the end */
}

.vkids-grid::-webkit-scrollbar {
    height: 8px;
}

.vkids-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.vkids-grid::-webkit-scrollbar-thumb {
    background: #d1ff6c;
    border-radius: 10px;
}

.vkids-card {
    flex: 0 0 350px;
    /* Darker translucent background for better contrast */
    background: rgba(20, 10, 30, 0.4); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px; /* Matching the heavy rounding in your screenshot */
    overflow: hidden;
}

.vkids-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(209, 255, 108, 0.5);
}

.vkids-banner {
    width: 100%;
    height: auto;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.vkids-banner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    overflow: hidden;
}

.vkids-content {
    padding: 25px;
    text-align: left;
}

.vkids-content h3 {
    font-family: "hyperspace-race-cap-variable", sans-serif !important;
    color: #ffffff;
    /* Small shadow makes white text readable on any background */
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); 
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.vkids-content p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    font-size: 1.1rem;
    font-weight: 500;
}

.type-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #d1ff6c;
    color: #000000;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 900;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
}

.v-btn-gold {
    color: #d1ff6c;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    margin-top: 10px;
}

.v-btn-gold:hover {
    background: #d1ff6c;
    color: #000;
    /* box-shadow: 0 0 15px rgba(209, 255, 108, 0.4); */
}
/* Gold Button Style */

.v-btn-gold {
    display: inline-block;
    margin-top: auto; 
    padding: 8px 0; /* Changed 16px to 0 to align with the text above it */
    color: #fff !important;
    background: none !important;  /* Add this to remove the gray box */
    border: none !important;      /* Add this to remove the button border */
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    outline: none;                /* Removes the blue ring when clicked */
}

/* Hover Effect: Underline growth and subtle glow */
.v-btn-gold:hover {
    color: #fff !important; 
    text-decoration: underline;
    background: none !important; 
    transform: translateX(5px); 
}

/* RTL Hover: Moves slightly to the left instead */
[dir="rtl"] .v-btn-gold:hover {
    transform: translateX(-5px);
}

/* Optional: Card "Lift" effect */
.vkids-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vkids-card:hover {
    transform: translateY(-10px); /* Card lifts up slightly */
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Responsive Tweak for small phones */
@media (max-width: 480px) {
    .vkids-grid {
        grid-template-columns: 1fr;
    }
}

.mobile-br { 
    display: none; 
}

.v-gold-title br:nth-of-type(3) {
    display: none !important;
}

/* Ensure the 4th break is visible for desktop layout */
.v-gold-title br:nth-of-type(4) {
    display: block !important;
}

@media (max-width: 768px) {

    .mobile-br { 
        display: block !important; 
    }
    
    /* Turn OFF the break before "2026" so it sits next to V-TEENS */
    .desktop-br { 
        display: none !important; 
    }
    
    /* Ensure the span doesn't act weird when we break inside it */
    .v-gold-title span {
        display: inline !important; 
    }

    .v-gold-title br:nth-of-type(3) {
        display: block !important;
    }
    
    /* Hide the 4th break so "V-TEENS" joins "2026 this June!" */
    .v-gold-title br:nth-of-type(4) {
        display: none !important;
    }
    /* 1. Update the Main Section for Mobile */
    .vkids-section {
        min-height: 100vh;
        /* CHANGE: Move background to bottom center */
        background-position: bottom center !important; 
        background-size: cover !important;
        background-repeat: no-repeat !important;
        padding-top: 40px !important;
    }

    /* 2. Update the Header Container to ensure Column Stack */
    .v-section-header {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; /* Horizontally centers children */
        text-align: center !important;
        padding: 0 15px !important;
        width: 100% !important;
    }

.v-header-top {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        text-align: center !important;
    }

.vkids-logo {
        display: block !important;
        margin: 0 auto 15px auto !important; /* Forces center */
        
        /* The Overrides: Killing things that keep it on the left */
        float: none !important;              
        position: static !important;         
        left: auto !important;
        right: auto !important;
        transform: none !important;          
        
        width: 280px !important;             
        max-width: 100% !important;
        height: auto !important;
    }

    /* 5. Update Title Size and Spacing */
    .v-gold-title {
        font-size: 2.1rem !important;
        text-align: center !important;
        line-height: 1.1 !important;
        margin: 0 auto !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .v-gold-title span {
        display: inline-block !important; 
    }

    .v-gold-title br {
        display: none !important;
    }

    /* 6. Update Subtitle Size and Spacing */
    .v-gold-subtitle {
        font-size: 1.1rem !important;
        margin-top: 15px !important;
        color: #d1ff6c !important;
        text-align: center !important;
        padding-top: 0 !important;
    }
}


/* TICKETs */

#ticketOptions {
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#ticketOptions a:hover {
    /* background-color: #f9f9f9 !important; */
    transform: scale(1.02);
    transition: 0.2s;
}

#mainTicketBtn:hover {
    background-color: #a00028 !important;
    color: #fff !important;
}

/* Brighter pulse and mobile-stable shake */
.attention-pulse {
    /* GPU acceleration trigger */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    perspective: 1000px;
    
    /* The Animation */
    animation: mobileAttention 4s infinite ease-in-out;
}

@keyframes mobileAttention {
    0%, 80%, 100% { 
        transform: scale(1); 
        filter: drop-shadow(0 0 0px rgba(212, 175, 55, 0));
    }
    85% { 
        transform: scale(1.05) rotate(-3deg); 
        filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.6));
    }
    90% { 
        transform: scale(1.05) rotate(3deg); 
    }
    95% { 
        transform: scale(1.05) rotate(0deg); 
    }
}

/* Container - Forces everything to stack properly */
#ticketHub {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    transition: all 0.4s ease;
}

/* Close button - Anchored to the Main Button area */
.hub-dismiss-btn {
    position: absolute;
    bottom: 35px; /* Sits right above the main pill */
    left: -15px;
    width: 26px;
    height: 26px;
    background: #333;
    color: #ff8c00;
    border: 2px solid #ff8c00;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

/* The Menu List */
.hub-options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    width: 220px;
}

/* The Links - Fixing the blue underline/color */
.ticket-link-1 {
    /* background: white; */
    background-image: url(assets/images/ticket-main.png);
    background-repeat: no-repeat;
    color: #240760 !important;
    text-decoration: none !important;
    padding: 12px 15px;
    /* border-radius: 12px; */
    border: none !important;
    overflow: hidden;
    font-size: 14px;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    text-align: right;
    transition: transform 0.2s;
    padding-right: 60px; 
    padding-left: 20px;
}

.ticket-link-2 {
    /* background: white; */
    background-image: url(assets/images/ticket-vkids.png);
    background-repeat: no-repeat;
    color: #8a2304 !important;
    text-decoration: none !important;
    padding: 12px 15px;
    /* border-radius: 12px; */
    overflow: hidden;
    border: none !important;
    font-size: 14px;
    font-weight: bold;
    align-items: center;
    justify-content: center;
    text-align: right;
    transition: transform 0.2s;
    padding-right: 60px; 
    padding-left: 20px;
}

.ticket-link:hover {
    transform: scale(1.03);
}

#mainTicketBtn {
    /* 1. Gradient: Bright Lime (#d1ff6c) to a deeper Pear/Lime (#a6e22e) */
    background: linear-gradient(135deg, #d1ff6c 0%, #a6e22e 100%);
    
    /* 2. Dark Purple Text for maximum readability on light background */
    color: #300050; 
    
    padding: 12px 25px;
    border-radius: 50px;
    
    /* 3. Subtle dark border to keep the shape sharp */
    border: 1px solid rgba(48, 0, 80, 0.2); 
    
    /* 4. Stronger shadow to make it "float" above the purple section */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 900; /* Extra bold text to make it stand out */
    text-transform: uppercase;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover/Touch effect */
#mainTicketBtn:active, #mainTicketBtn:hover {
    transform: scale(0.98); /* Feels like a real button when pressed */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Ensure the stop-animation class is strong */
.stop-animation {
    animation: none !important;
    transform: scale(1) !important;
    filter: none !important;
}

@media (max-width: 768px) {
    #backToTop {
        bottom: 90px; /* Slightly lower on mobile to stay in the thumb zone */
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* Fix for Desktop Language Dropdown in RTL */
[dir="rtl"] .lang-dropdown {
    direction: rtl;
}

[dir="rtl"] .lang-content {
    right: auto !important; /* Reset the right alignment */
    left: 0 !important;      /* Align to the left edge of the button in RTL */
    text-align: right;       /* Keep text aligned right for Arabic readers */
}

/* Fix for the Navbar items order */
[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

/* Fix for the Dropdown Arrows */
[dir="rtl"] .dropbtn::after {
    margin-right: 5px;
    margin-left: 0;
}

[dir="rtl"] #ticketHub {
    right: auto !important;
    left: 30px !important;
    align-items: flex-start;
}

[dir="rtl"] .hub-dismiss-btn {
    left: auto !important;
    right: -10px !important; /* Flip X to other side for Arabic */
}

[dir="rtl"] #mainTicketBtn {
    flex-direction: row-reverse;
}

[dir="rtl"] #backToTop {
    right: auto !important;
    left: 30px !important;
}


/* 1. Global Override for RTL (Arabic) Mode */
[dir="rtl"], 
[dir="rtl"] * {
    font-family: "Times New Roman", Times, serif !important;
    font-weight: bold !important;
}

/* 2. Navbar Vertical Centering */
[dir="rtl"] .nav-links li a,
[dir="rtl"] .dropbtn,
[dir="rtl"] .brand-text {
    padding-top: 12px !important;    /* Added extra top padding */
    padding-bottom: 8px !important; /* Reduced bottom padding to center it */
    line-height: 1.2 !important;
    display: flex;
    align-items: center;
}

html[dir="rtl"] #v-kids {
  background-image: url('assets/images/vkt-bg-2.png');
  
}
html[lang="ar"] #v-kids .v-header-top,
html[dir="rtl"] #v-kids .v-header-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  direction: rtl;
  text-align: right;
  gap: 150px;
}

html[lang="ar"] #v-kids .v-section-header,
html[dir="rtl"] #v-kids .v-section-header {
  direction: rtl;
  text-align: right;
}

html[lang="ar"] #v-kids .v-gold-subtitle,
html[dir="rtl"] #v-kids .v-gold-subtitle {
  max-width: 50%;
  text-align: right;
  margin-right: auto; 
}

html[lang="ar"] #v-kids .v-gold-title,
html[dir="rtl"] #v-kids .v-gold-title,
html[lang="ar"] #v-kids .v-gold-subtitle,
html[dir="rtl"] #v-kids .v-gold-subtitle {
  text-align: right;
}

html[lang="ar"] #v-kids .v-gold-title,
html[dir="rtl"] #v-kids .v-gold-title {
  max-width: 60%;
  margin-left: 40px;
}

/* 3. Section Titles & Headings */
[dir="rtl"] .main-title,
[dir="rtl"] .v-section-heading,
[dir="rtl"] .v-gold-title,
[dir="rtl"] .v-venue-title,
[dir="rtl"] .v-faq-header {
    padding-bottom: 15px; /* Creates "breathing room" for descenders */
    line-height: 1.5 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* 4. Fix for Mobile Accordion Menus */
[dir="rtl"] .accordion-menu li a {
    text-align: right;
    padding-right: 25px; /* Space for the right-aligned text */
}

/* 5. Flip the Dropdown Arrow */
[dir="rtl"] .dropbtn::after {
    margin-right: 8px;
    margin-left: 0;
}

[dir="rtl"] #ticketHub { right: auto; left: 30px; align-items: flex-start; }
[dir="rtl"] .hub-dismiss-btn { left: auto; right: -15px; }
[dir="rtl"] .ticket-link { border-left: none; border-right: 5px solid #D4AF37; }

[dir="rtl"] .faq-question {
    text-align: right;
    flex-direction: row-reverse; /* Puts the plus icon on the left */
}

[dir="rtl"] .faq-answer {
    text-align: right;
}

[dir="rtl"] .faq-question i {
    margin-left: 0;
    margin-right: 15px; /* Adds gap from the right side */
}



[dir="rtl"] .footer-newsletter input {
    /* Swap rounding: Round the right side, flatten the left */
    border-radius: 0 8px 8px 0; 
    text-align: right; /* Text starts from the right */
}

[dir="rtl"] .footer-newsletter button {
    /* Swap rounding: Round the left side, flatten the right */
    border-radius: 8px 0 0 8px; 
}

/* Fix alignment for the status messages below the form */
[dir="rtl"] #successMessage, 
[dir="rtl"] #duplicateMessage,
[dir="rtl"] .footer-about {
    text-align: right;
}

/* 1. Tell the container to flow from right to left */
[dir="rtl"] #vkids-list, 
[dir="rtl"] .vkids-grid {
    direction: rtl !important;
    /* Do NOT add display: flex here if it's already a grid */
    text-align: right !important;
}

/* 2. Fix the individual card content WITHOUT breaking width */
[dir="rtl"] .vkids-card {
    direction: rtl !important;
    text-align: right !important;
}

/* 3. This is the "Magic" line: It pushes text to the right 
      without changing the display mode */
[dir="rtl"] .vkids-text-content,
[dir="rtl"] .vkids-card-title,
[dir="rtl"] .vkids-card-desc {
    text-align: right !important;
    margin-right: 0 !important;
    margin-left: auto !important;
    display: block !important; 
    width: auto !important; /* Prevents the 100% stretch */
}

[dir="rtl"] .vkids-play-btn {
    display: inline-flex !important;
    flex-direction: row-reverse !important; 
    gap: 8px;
    align-items: center;
}

/* Flip the arrow icon specifically if it's an <i> tag or character */
[dir="rtl"] .vkids-play-btn span, 
[dir="rtl"] .vkids-play-btn i {
    transform: scaleX(-1); 
}

/* Ensure the text inside the card aligns right */
[dir="rtl"] .vkids-content {
    text-align: right !important;
    direction: rtl !important;
}

/* Fix the title and description specifically */
[dir="rtl"] .vkids-content h3, 
[dir="rtl"] .vkids-content p {
    text-align: right !important;
    margin-right: 0 !important;
    margin-left: auto !important;
}

/* Fix the button icon and text order for Arabic */
[dir="rtl"] .v-btn-gold {
    display: inline-flex !important;
    flex-direction: row-reverse !important; /* This swaps the icon and text position */
    align-items: center;
    gap: 10px; /* Gives space between the triangle and the words */
}

/* Optional: Mirror the icon if you want it to point 'into' the layout */
[dir="rtl"] .v-btn-gold::before,
[dir="rtl"] .v-btn-gold i {
    transform: scaleX(-1);
}

/* Flip the play/read icon so it points the right way */
[dir="rtl"] .v-btn-gold span, 
[dir="rtl"] .v-btn-gold i {
    transform: scaleX(-1);
}

/* This targets the button containing the text icon */
[dir="rtl"] .v-btn-gold {
    display: inline-flex !important;
    flex-direction: row-reverse !important; /* Swaps [Icon][Text] to [Text][Icon] */
    align-items: center;
    justify-content: center;
    gap: 10px;
    direction: ltr !important; /* Forces the text character to point correctly */
    unicode-bidi: isolate; /* Prevents Arabic context from flipping the symbol */
}


/* Target the story rows to swap image and text positions */
[dir="rtl"] .story-item, 
[dir="rtl"] .featured-stories-list-item {
    display: flex !important;
    flex-direction: row !important; /* Starts from right in RTL */
    text-align: right !important;
    direction: rtl !important;
}

/* Ensure the text container fills the space and aligns right */
[dir="rtl"] .story-meta,
[dir="rtl"] .story-content-wrapper {
    flex: 1;
    text-align: right !important;
    padding-right: 20px; /* Gap from the image on the right */
    padding-left: 0;
}

[dir="rtl"] .story-title,
[dir="rtl"] .story-subtitle,
[dir="rtl"] .story-details {
    text-align: right !important;
    display: block;
    width: 100%;
}

[dir="rtl"] .filter-container {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 15px;
}

[dir="rtl"] .filter-select-button {
    direction: rtl !important;
    text-align: right !important;
    padding-right: 15px;
    padding-left: 35px; /* Space for arrow on the left */
}

/* Move the dropdown arrow to the left */
[dir="rtl"] .filter-select-button::after {
    left: 15px;
    right: auto;
}




/* Rescue the Brightcove icons from being forced into Times New Roman */
.video-js .vjs-icon-placeholder::before,
.video-js [class^="vjs-icon-"],
.video-js .vjs-big-play-button .vjs-icon-placeholder:before {
    font-family: VideoJS !important; /* Force the player back to its icon font */
}


.v-main-footer {
    /* background-color: #800020; */
    background-image: url('assets/images/footer-bg.png');
    color: #ffffff;
    padding: 60px 5% 20px;
    border-top: 1px solid #d1ff6c; /* The Gold Accent */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col:nth-child(2) h4,
.footer-col:nth-child(3) h4 {
    color: #d1ff6c;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-newsletter {
    display: flex;
    flex-direction: row; /* Input first, Button second */
    width: 100%;
    max-width: 500px;
}

.footer-about {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #d1ff6c;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border: 1px solid #fff;
    border-radius: 50%;
    display: inline-flex; /* Changed to inline-flex */
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem; /* Slightly larger for icons */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon:hover {
    background: #d1ff6c;
    color: #fff;
    transform: translateY(-3px); /* Adds a little "bounce" on hover */
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
}

/* Force FontAwesome to use its own font family */
.fab, .fas, .fa-brands, .fa-solid {
    font-family: "Font Awesome 6 Brands", "Font Awesome 6 Free" !important;
}

.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.6;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .v-main-footer { text-align: center; }
    .footer-socials { justify-content: center; }
}

.footer-newsletter {
    display: flex;
    gap: 0; /* Keeps them joined */
    width: 100%;
    max-width: 300px;
}

.footer-newsletter input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #d1ff6c;
    border-right: none;
    border-radius: 5px 0 0 5px;
    outline: none;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.footer-newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer-newsletter button {
    background: #d1ff6c;
    color: #240760;
    border: 1px solid #d1ff6c;
    padding: 0 20px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    transition: all 0.3s ease;
}

.footer-newsletter button:hover {
    background: #ffffff;
    border-color: #ffffff;
}

/* Mobile Alignment */
@media (max-width: 768px) {
    .footer-newsletter {
        margin: 0 auto;
    }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-brand h3 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: bold;
}

/* COUNTDOWN TIMER NEW */
.v-countdown-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    perspective: 1000px;
}

.flip-card {
    position: relative;
    width: 90px;
    height: 110px;
    background: #f7f7f7;
    border-radius: 12px;
}

.card-half, .card-flap {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%; /* Strictly half the card (55px) */
    background: #f7f7f7;
    color: #331d5e;
    font-size: 4rem !important; 
    font-weight: 800;
    overflow: hidden; /* The Guillotine */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: block; /* NO MORE FLEXBOX HERE */
}

/* TOP HALF: Anchor text to the bottom of the top half */
.static-top, .flap-top {
    top: 0;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    align-items: flex-end; /* Pushes number down to the fold */
}

/* BOTTOM HALF: Anchor text to the top of the bottom half */
.static-bottom, .flap-bottom {
    bottom: 0;
    border-radius: 0 0 12px 12px;
    align-items: flex-start; /* Pulls number up to the fold */
}

/* --- THE NUCLEAR ALIGNMENT FIX --- */

/* 1. Make the wrapper the exact size of the FULL card */
.number-wrapper {
    position: absolute;
    left: 0;
    width: 100%;
    height: 110px; /* MUST match the .flip-card height */
    line-height: 110px; /* Centers the text vertically in the 110px box */
    text-align: center;
    margin: 0;
    padding: 0;
}

/* 2. TOP HALF: Pin the 110px wrapper to the top of the 55px box */
.static-top .number-wrapper, 
.flap-top .number-wrapper {
    top: 0;
}

/* 3. BOTTOM HALF: Pin the 110px wrapper to the bottom of the 55px box */
.static-bottom .number-wrapper, 
.flap-bottom .number-wrapper {
    bottom: 0;
}

/* --- Animation Logic --- */
.card-flap {
    z-index: 10;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.flap-top { transform-origin: bottom; }
.flap-bottom { transform-origin: top; transform: rotateX(180deg); z-index: 5; }
.flipping .flap-top { transform: rotateX(-180deg); }
.flipping .flap-bottom { transform: rotateX(0deg); }

.static-top, .flap-top {
    border-bottom: 1px solid rgba(0,0,0,0.15);
    box-shadow: inset 0 -10px 10px -10px rgba(0,0,0,0.1);
}

.static-bottom, .flap-bottom {
    box-shadow: inset 0 10px 10px -10px rgba(0,0,0,0.1);
}

.flip-card .label {
    position: absolute;
    bottom: -30px; /* Pushes the text below the white card */
    left: 0;
    width: 100%;
    color: #ffffff; /* White text to stand out on dark background */
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    letter-spacing: 2px;
}


@media (max-width: 480px) {
    /* 1. Reduce the gap so cards don't fall off the screen edges */
    .v-countdown-container {
        gap: 8px; 
    }

    /* 2. Scale the card dimensions (Approx 70% of original) */
    .flip-card {
        width: 65px;
        height: 80px;
        border-radius: 8px;
    }

    /* 3. Adjust the Number Wrapper to match the NEW height */
    .number-wrapper {
        height: 80px; /* MUST match the new .flip-card height */
        line-height: 80px; /* Centers text in the new 80px box */
    }

    /* 4. Shrink the Font Size */
    .card-half, .card-flap {
        font-size: 2.8rem !important; 
        font-weight: 700;
        /* height is handled automatically by the 50% rule in your original CSS */
    }

    /* 5. Adjust the labels (DAYS, HOURS, etc) */
    .flip-card .label {
        bottom: -25px; /* Pull it slightly closer to the smaller card */
        font-size: 0.7rem;
        letter-spacing: 1px;
    }
}


/* logo */

#gear-left, 
#gear-right, 
#gear-bottom,
#gear-top,
#circle-border,
#circle-inner,
#gear-inner-left-top,
#gear-inner-left-bottom,
#gear-inner-right-top,
#gear-inner-right-bottom {
    transform-box: fill-box;
    transform-origin: center;
}

#gear-left,#gear-top,#circle-border,#gear-inner-left-top,#gear-inner-left-bottom {
    animation: spinRight 10s linear infinite;
}


#gear-right, 
#gear-bottom,#circle-inner,#gear-inner-right-top,#gear-inner-right-bottom {
    animation: spinLeft 10s linear infinite;
}

@keyframes spinRight { 100% { transform: rotate(360deg); } }
@keyframes spinLeft { 100% { transform: rotate(-360deg); } }



#phoenix {
    transform-box: fill-box;
    transform-origin: center bottom;
    
    
    animation: breatheAndShinePhoenix 6s ease-in-out infinite;
}

@keyframes breatheAndShinePhoenix {
  
    0%, 100% { 
        transform: scale(1) translateY(0); 
   
        filter: drop-shadow(0px 0px 5px rgba(255, 100, 0, 0.2)); 
    }
    
   
    50% { 
    
        transform: scale(1.03) translateY(-4px); 
        
        filter: drop-shadow(0 0 10px rgba(255, 255, 200, 0.9)) 
                drop-shadow(0 0 30px rgba(255, 140, 0, 0.8))  
                drop-shadow(0 15px 50px rgba(220, 20, 60, 0.5)); 
    }
}



#path-1,#path-2,#path-3,#path-4 {
    transform-box: fill-box;
    transform-origin: center bottom;
    animation: pulseSun 6s ease-in-out infinite;
}

@keyframes pulseSun {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}


#stars > * {
    transform-box: fill-box;
    transform-origin: center;
    animation: twinkleStar 3s ease-in-out infinite;
}

#stars > *:nth-child(1) { animation-delay: 0s; }
#stars > *:nth-child(2) { animation-delay: 0.7s; }
#stars > *:nth-child(3) { animation-delay: 1.4s; }
#stars > *:nth-child(4) { animation-delay: 2.1s; }
#stars > *:nth-child(5) { animation-delay: 0.4s; }
#stars > *:nth-child(6) { animation-delay: 1.1s; }

@keyframes twinkleStar {
    0%, 100% { 
        opacity: 0.2; 
        transform: scale(0.8); 
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2); 
        filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9)); 
    }
}

#human-1, #human-2, #human-3, #human-4 {
    transform-box: fill-box;
    transform-origin: bottom center;
    animation: jumpHuman 3s ease-in-out infinite;
}


#human-1 { animation-delay: 0s; }
#human-2 { animation-delay: 0.6s; }
#human-3 { animation-delay: 1.2s; }
#human-4 { animation-delay: 0.3s; }


@keyframes jumpHuman {
    0%, 100% { 
        transform: translateY(0); 
    }
    50% { 
        transform: translateY(-15px); 
    }
}


#thev-logo {
    transform-box: fill-box;
    transform-origin: center;
    animation: pulseGlowLogo 4s ease-in-out infinite; 
}

@keyframes pulseGlowLogo {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3)); 
    }
    
    50% { 
        transform: scale(1.05); 
        
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9)) 
                drop-shadow(0 0 25px rgba(212, 175, 55, 0.7)); 
    }
}


#CTRP-top > *, 
#CTRP-bottom > * {

    stroke: #ffffff;
    stroke-width: 0px; 
    stroke-linejoin: round;
    
    animation: textWaveShout 4s ease-in-out infinite; 
}


#CTRP-top > *:nth-child(1) { animation-delay: 0s; }  
#CTRP-top > *:nth-child(2) { animation-delay: 0.5s; } 
#CTRP-bottom > *:nth-child(1) { animation-delay: 1.0s; } 
#CTRP-bottom > *:nth-child(2) { animation-delay: 1.5s; } 


@keyframes textWaveShout {
    
    0%, 25%, 100% { 
        stroke-width: 0px; 
        filter: none;
    }
    
    10% { 
        stroke-width: 2px; 
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.6)); 
    }
}


#vcon-2026 {
    
    transform-box: fill-box;
    transform-origin: center;
    
    animation: pulseCenterTitle 4s ease-in-out infinite;
}


@keyframes pulseCenterTitle {
   
    0%, 100% { 
        transform: scale(1); 
        filter: drop-shadow(0 0 0px rgba(255, 255, 255, 0));
    }
    
    
    50% { 
        
        transform: scale(1.04); 

        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.9)) 
                drop-shadow(0 0 30px rgba(200, 230, 255, 0.6)); 
    }
}

/* =========================================
   MOBILE TWEAKS (Screens smaller than 768px)
========================================= */
@media (max-width: 768px) {
    
    /* 1. Tone down the jumping humans for mobile */
    @keyframes jumpHuman {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-4px); } /* Changed from -8px to -4px */
    }

    /* 2. Soften the heavy glows on the Phoenix to save mobile battery */
    @keyframes breatheAndShinePhoenix {
        0%, 100% { 
            transform: scale(1) translateY(0); 
            filter: drop-shadow(0px 0px 2px rgba(255, 100, 0, 0.2)); 
        }
        50% { 
            transform: scale(1.02) translateY(-2px); /* Smaller movement */
            /* Removed the 3rd heavy shadow, kept the core shine */
            filter: drop-shadow(0 0 5px rgba(255, 255, 200, 0.8)) 
                    drop-shadow(0 0 15px rgba(255, 140, 0, 0.6)); 
        }
    }
    
    /* 3. Tone down the center title pulse */
    @keyframes pulseCenterTitle {
        0%, 100% { transform: scale(1); filter: none; }
        50% { 
            transform: scale(1.02); /* Smaller heartbeat */
            filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8)); /* Single glow instead of double */
        }
    }
}

.hero-logo-animated {
    width: 100%;
    max-width: 300px; /* Locks it to 300px on desktop */
    height: auto;     /* Keeps it perfectly round/proportional */
    display: block;
    margin: 0 auto;
    

    max-width: 450px; 
    width: 80%; 
    height: auto;

    margin-top: 5vh; 
    margin-bottom: 2vh;
}

@media (max-width: 768px) {
    .hero-logo-animated {
        max-width: 280px;
        margin-top: 3vh; 
    }
    .hero-logo {
        max-width: 280px;
        margin-top: 3vh; 
    }
}

@media (max-height: 700px) {
    .hero-logo-animated {
        max-width: 220px;
        margin-top: 2vh;
    }
    .hero-logo {
        max-width: 220px;
        margin-top: 2vh; 
    }
}

/* --- Pin Video to the Background --- */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover; 
    z-index: -2; 
    pointer-events: none; 
    opacity: 40%;
}

/* --- The Dark Overlay --- */
.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8); /* 60% dark tint so the video doesn't overpower the logo */
    z-index: -1; 
    pointer-events: none;
}

/* --- Center the Logo --- */
.content-wrapper {
    position: relative;
    z-index: 1; 
    width: 100%;
    min-height: 100vh; /* Makes sure the wrapper is as tall as the screen */
    display: flex;
    justify-content: center;
    align-items: center; 
}

/* --- The Logo Sizing --- */
.hero-logo-animated {
    width: 90%;
    max-width: 400px; /* Adjust this if you want the logo bigger or smaller on desktop */
    height: auto;
    display: block;
}

/* =========================================
   MOBILE FIXES (Screens smaller than 768px)
========================================= */
@media (max-width: 768px) {
    

    /* 2. FIX THE GIANT GAP */
    .main-title {
        /* Shrinks the "Lorem Ipsum" text slightly so it reads better on mobile */
        font-size: 1.5rem !important; 
        
        /* This is the magic bullet: kills the giant desktop margin underneath it */
        margin-bottom: 20px !important; 
    }

    .v-cta-button {
        /* Removes any top margin that might be pushing the button down */
        margin-top: 0 !important; 
        
        /* Optional: Makes the button a nice, clickable size for thumbs */
        padding: 12px 30px !important; 
        font-size: 1rem !important;
    }
}

.v-popup-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.75);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 99999; 
    }

    /* 2. Main popup container */
    .v-popup-content {
        position: relative;
        padding: 40px 30px;
        border-radius: 15px;
        max-width: 650px;
        width: 90%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    /* 3. Reward-specific background */
    .v-reward-content {
        background-color: #ffffff; 
        text-align: center;
    }

    /* 4. Golden Pop-Out Close Button */
    .v-popup-close {
        position: absolute;
        top: -15px; 
        right: -15px; 
        width: 40px;
        height: 40px;
        background-color: #dfbd38; 
        border: 3px solid #ffffff; 
        border-radius: 50%; 
        color: #5a0b0b; 
        font-size: 26px;
        font-weight: bold;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        padding-bottom: 2px; 
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        transition: transform 0.2s ease, background-color 0.2s ease;
    }

    .v-popup-close:hover {
        background-color: #f0d050; 
        transform: scale(1.1); 
    }

    /* 5. The Download Reward Button */
    .v-reward-btn {
        display: inline-block;
        background-color: #ff0000;
        color: #ffffff;
        padding: 15px 30px;
        border-radius: 8px;
        text-decoration: none;
        font-weight: bold;
        font-size: 18px;
        margin-top: 10px;
        transition: background-color 0.2s;
    }

    .v-reward-btn:hover {
        background-color: #cc0000;
    }

    /* 6. Toast Notification Styling (Bottom Left) */
    .v-hunt-toast {
        position: fixed;
        bottom: -100px; 
        left: 20px; 
        background-color: #dfbd38; 
        color: #5a0b0b;
        padding: 15px 25px;
        border-radius: 50px;
        font-weight: bold;
        font-size: 18px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.3);
        transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55); 
        z-index: 999999;
    }

    .v-hunt-toast.show {
        bottom: 20px;
    }
    
    /* 7. Mobile tweaks to prevent the close button from getting cut off */
    @media (max-width: 600px) {
        .v-popup-close {
            top: -12px;
            right: -5px; 
            width: 34px;
            height: 34px;
            font-size: 22px; 
        }
    }

/* PERSONALITY TEST SECTION */

#personality-test {
    width: 100%;
    min-height: 100vh;
    padding: 60px 20px; 
    /* background-image: url('assets/images/personality-bg-2.jpg'); */
    /* background-image: url('assets/images/personality-bg.png'); */
    
    /* ⭐ THE MISSING MAGIC LINES ⭐ */
    position: relative; /* TRAPS the absolute images inside this section */
    overflow: hidden;   /* STOPS them from bleeding out when they zoom */
    z-index: 1;         /* FORCES this section to sit above the absolute images */
    
    display: flex;
    justify-content: center;
    align-items: center;
}

/* =========================================
   6-FRAME ANIMATED BACKGROUND LAYERS
   ========================================= */

.v-section-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    opacity: 0; 
    z-index: -1; 
    
    /* 6 images * 2 seconds each = 12 seconds total loop */
    animation: sectionCrossFade 12s infinite; 
}

/* Attach your 6 images and stagger their start times by 2 seconds! */
.bg-frame-1 { background-image: url('assets/images/personality-bg-1.png'); animation-delay: 0s; }
.bg-frame-2 { background-image: url('assets/images/personality-bg-2.png'); animation-delay: 2s; }
.bg-frame-3 { background-image: url('assets/images/personality-bg-3.png'); animation-delay: 4s; }
.bg-frame-4 { background-image: url('assets/images/personality-bg-4.png'); animation-delay: 6s; }
.bg-frame-5 { background-image: url('assets/images/personality-bg-5.png'); animation-delay: 8s; }
.bg-frame-6 { background-image: url('assets/images/personality-bg-6.png'); animation-delay: 10s; }

/* The Math for a 6-Image Fade (100% / 6 images = roughly 16.6% per phase) */
@keyframes sectionCrossFade {
    0%   { opacity: 0; transform: scale(1); }
    3%   { opacity: 1; }  /* Very quick fade in */
    14%  { opacity: 1; }  /* Hold it on screen clearly */
    20%  { opacity: 0; }  /* Smoothly fade out as the next one appears */
    100% { opacity: 0; transform: scale(1.05); } /* Slow zoom while hidden */
}

/* =========================================
   MODERN FROSTED GLASS PERSONALITY TEST 
   ========================================= */

/* --- 1. Layout & Center Alignment --- */
.vPersonalityTest-section {
    display: flex;
    justify-content: center; 
    align-items: center;     
    min-height: 80vh;        
    padding: 20px;           
}

.v-test-container {
    width: 100%;
    max-width: 600px;
    margin: 0; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1f2937;
}

/* --- 2. Main Form Card (Frosted Glass) --- */
.v-test-card {
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px); 
    padding: 48px 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6); 
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(223, 189, 56, 0.15);
}

.text-center { text-align: center; }

/* --- 3. Typography --- */
.v-title-main { color: #5a0b0b; margin-bottom: 12px; font-weight: 700; }
.v-desc-main { color: #4b5563; margin-bottom: 32px; line-height: 1.5; }
.v-question-counter { font-weight: 700; color: #dfbd38; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.v-question-text { color: #5a0b0b; margin: 16px 0 24px 0; font-size: 22px; line-height: 1.3; }

/* --- 4. Form Buttons & Options --- */
.v-btn-primary {
    background-color: #5a0b0b;
    color: #fff;
    border: none;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600; 
    border-radius: 8px; 
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(90, 11, 11, 0.2); 
}

.v-btn-primary:hover {
    background-color: #7a1212;
    transform: translateY(-2px); 
    box-shadow: 0 6px 16px rgba(90, 11, 11, 0.3);
}

.v-btn-primary:active { transform: translateY(0); }

.v-options-grid {
    display: flex;
    flex-direction: column;
    gap: 16px; 
    margin-top: 24px;
}

.v-option-btn {
    background-color: rgba(255, 255, 255, 0.6); 
    border: 1px solid rgba(223, 189, 56, 0.3); 
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #374151;
}

.v-option-btn:hover {
    border-color: #dfbd38; 
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(223, 189, 56, 0.15);
    transform: translateX(4px); 
}

/* --- 5. Popup Overlay --- */
.v-popup-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    /* REMOVED align-items: center because it causes the screen clipping */
    z-index: 1000;
    padding: 40px 20px; /* Added top/bottom breathing room */
    overflow-y: auto;   /* THE MAGIC FIX: Allows the user to scroll if it's too tall! */
}

/* --- 6. Isolated Result Wrapper --- */
.v-ptest-result-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: auto; /* THIS re-centers it perfectly without breaking the scroll */
    text-align: center;
    background: transparent; 
    padding: 0;
    border: none;
    box-shadow: none;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- 7. Result Image & Anchored Close Button --- */
.v-image-wrapper {
    position: relative; 
    display: inline-block; /* Shrink-wraps around the image */
    margin-bottom: 20px;   
}

.v-result-image {
    max-width: 100%;  
    max-height: 65vh; /* Prevents the image from exploding on large screens */
    width: auto;      
    display: block;
    border-radius: 12px; 
}

.v-popup-close-anchored {
    position: absolute; 
    top: 8%;   /* Adjust to sit inside the PNG's transparent border */
    right: 5%; 
    background: rgba(0, 0, 0, 0.4); 
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px; 
    color: #ffffff; 
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 0; 
    z-index: 10;
}

.v-popup-close-anchored:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.7);
}

/* --- 8. Social Share Section (Frosted Card) --- */
.v-share-card {
    background: rgba(255, 255, 255, 0.1); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 24px;
    border-radius: 16px;
    margin-top: -10px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.v-share-label {
    margin-top: 0; 
    margin-bottom: 16px;
    color: #ffffff; 
    font-weight: 700;
    font-size: 18px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.4); 
}

.v-social-share {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.v-share-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px; 
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.v-share-btn:hover { 
    opacity: 0.9;
    transform: translateY(-2px);
}
.v-fb { background-color: #1877F2; }
.v-x { background-color: #000000; }
.v-copy { background-color: #833AB4; }
/* .v-dlimg { background-color: #E1306C;} */

/* --- 9. RTL & Alignment Hooks --- */
#vTestQuestionText,
.v-test-header,
.v-option-btn {
    text-align: start !important;
}

[dir="rtl"] .v-option-btn {
    padding-right: 25px;
}

/* --- 10. MOBILE RESPONSIVENESS FIXES --- */
@media (max-width: 768px) {
    .v-result-image {
        max-height: 45vh; /* Shrinks the image so it doesn't eat the whole screen */
    }
    
    .v-share-card {
        padding: 16px; /* Tightens the frosted glass box */
    }
    
    .v-share-btn {
        font-size: 14px; /* Slightly smaller text */
        padding: 10px 12px;
        flex: 1 1 40%; /* Allows buttons to wrap and share space nicely */
    }
    
    .v-popup-close-anchored {
        /* Nudge the X slightly for mobile screens */
        top: 6%; 
        right: 2%;
        width: 30px;
        height: 30px;
        font-size: 20px;
    }
}


/* When the site is in RTL (Arabic), move the toast to the right! */
[dir="rtl"] #vHuntToast {
    left: auto !important;
    right: 20px !important; 
    text-align: right;
    direction: rtl;
}

/* Also ensure the reward popup text aligns correctly in Arabic */
[dir="rtl"] .v-hunt-modal {
    text-align: right;
    direction: rtl;
}

/* The Clickable Scavenger Hunt Items */
.v-hunt-item {
    display: inline-block;
    cursor: pointer;
    font-size: 24px; /* Adjust size based on if it's an emoji or image */
    transition: transform 0.2s ease, opacity 0.3s ease;
    z-index: 50; /* Keeps it clickable */
}

.v-hunt-item:hover {
    transform: scale(1.2) rotate(10deg);
}

/* Ensure the canvas fits inside the popup on mobile */
#vProfileCanvas {
    width: 100%;
    max-width: 300px; /* Adjust this to fit your popup perfectly */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background-color: #f4f4f4; /* Placeholder color before they upload */
}

/* Flexbox container to stack the buttons neatly */
.v-reward-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    margin-top: 20px;
}

/* The Upload Button Styling */
.v-upload-label {
    display: inline-block;
    background-color: #dfbd38; /* Gold color */
    color: #111;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.2s;
}

.v-upload-label:hover {
    transform: scale(1.05);
}

/* Floating Claim Reward Button */
.v-hunt-claim-btn {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background-color: #dfbd38;
    color: #111;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    z-index: 9998; /* Just under the popups */
    animation: bounceReward 2s infinite;
}

/* Hover effect */
.v-hunt-claim-btn:hover {
    background-color: #fce277;
    transform: scale(1.05);
    animation: none; /* Stops bouncing when they hover over it */
}

/* RTL Support for Arabic (Moves to the right side) */
[dir="rtl"] .v-hunt-claim-btn {
    left: auto;
    right: 25px;
}

/* Bouncing Animation */
@keyframes bounceReward {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* The Continuous Sparkle & Float Animation */
@keyframes magicalSparkle {
    0%, 100% { 
        transform: scale(1) translateY(0) rotate(0deg); 
        filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.4)) drop-shadow(0px 0px 0px rgba(223, 189, 56, 0)); 
    }
    50% { 
        transform: scale(1.15) translateY(-5px) rotate(5deg); 
        /* Adds a bright golden glow at the peak of the animation */
        filter: drop-shadow(0px 6px 8px rgba(0,0,0,0.3)) drop-shadow(0px 0px 15px rgba(223, 189, 56, 0.9)); 
    }
}

/* Apply the animation to the new class */
.v-hunt-animated-item {
    width: 45px; 
    height: 45px;
    animation: magicalSparkle 2s infinite ease-in-out;
}

/* --- MOBILE RESPONSIVENESS FOR SCAVENGER HUNT --- */
@media (max-width: 768px) {
    /* Give the popup some breathing room on narrow screens */
    .v-popup-content.v-reward-content {
        width: 90%;
        padding: 20px;
        max-height: 90vh; /* Prevents it from going off-screen vertically */
        overflow-y: auto; /* Lets them scroll if their phone is really short */
    }
    
    /* Shrink the canvas slightly so it fits perfectly on small phones */
    #vProfileCanvas {
        max-width: 260px; 
    }
    
    /* Adjust the floating button so it doesn't block too much text */
    .v-hunt-claim-btn {
        font-size: 14px;
        padding: 10px 20px;
        bottom: 15px; 
    }
}

/* =========================================
   BANNER WRAPPER (Flexbox ensures stacking)
   ========================================= */
#promo-banner-wrapper {
  position: relative; 
  width: 100%;
  background-color: transparent; 
  overflow: hidden;
  
  /* Flexbox forces the image and button to stack vertically */
  display: flex;
  flex-direction: column; 
  
  max-height: 0; 
  transition: max-height 0.6s ease-in-out;
  z-index: 900;
}

#promo-banner-wrapper.slide-in {
  max-height: 800px; 
}

#promo-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================
   BANNER WRAPPER
   ========================================= */
#promo-banner-wrapper {
  position: relative; 
  width: 100%;
  background-color: transparent; 
  overflow: hidden;
  
  /* Flexbox automatically stacks the image and button */
  display: flex;
  flex-direction: column; 
  align-items: flex-end; /* Aligns the button to the RIGHT on desktop */
  
  max-height: 0; 
  transition: max-height 0.6s ease-in-out;
  z-index: 900;
}

#promo-banner-wrapper.slide-in {
  max-height: 800px; 
}

#promo-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================
   CLOSE BUTTON (Hanging Below)
   ========================================= */
#close-promo-btn {
  /* The !important tags force it to stop floating over the image */
  position: relative !important; 
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  
  margin: 0; /* Clears any lingering margins */
  margin-top: -1px; /* Prevents a tiny white pixel gap */
  
  /* Rounds both bottom corners so it looks like a pull-tab */
  border-radius: 0 0 12px 12px; 
  
  background: rgba(0, 0, 0, 0.7); 
  backdrop-filter: blur(4px); 
  color: white;
  border: none;
  width: 50px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
  transition: background 0.3s ease;
}

#close-promo-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* =========================================
   VOLT MULTI-ASSISTANT SYSTEM (COMPLETE)
   ========================================= */

.volt-assistant-container {
  position: fixed;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.volt-assistant-container.volt-show {
  opacity: 1;
  pointer-events: auto;
}

/* 1. Bottom Position (RESTORED) */
.pos-bottom {
  bottom: 0px; /* Sitting flush with the bottom screen edge */
  right: 40px;
  transform: translateY(200%); /* Pushed down off-screen */
}
.pos-bottom.volt-show {
  transform: translateY(0); /* Slides up smoothly */
}

/* 2. Left Side Position (Wall Hugging) */
.pos-left {
  bottom: 15%;
  left: -15px; /* Pulls asset gap off-screen */
  transform: translateX(-200%);
  align-items: flex-start; 
}
.pos-left.volt-show {
  transform: translateX(0);
}
.pos-left .volt-speech-bubble {
  margin-left: 25px; /* Keeps bubble away from glass */
}
.pos-left .volt-speech-bubble::after {
  left: 40px; 
  transform: none;
}

/* 3. Right Side Position (Fine-Tuned for Bubble Clearance) */
.pos-right {
  bottom: 15%;
  right: -25px; 
  transform: translateX(200%);
  align-items: flex-end; 
}
.pos-right.volt-show {
  transform: translateX(0);
}

/* INCREASED BUFFER: Changed from 20px to 45px to push it safely away from the screen edge */
.pos-right .volt-speech-bubble {
  margin-right: 45px; 
}

/* ADJUSTED ARROW: Recalibrated to 60px so it stays perfectly glued to his head after the bubble shift */
.pos-right .volt-speech-bubble::after {
  left: auto;
  right: 70px; 
  transform: none;
}

/* Styling the Speech Bubbles */
.volt-speech-bubble {
  background-color: #ffffff;
  border: 2px solid #0056b3;
  border-radius: 12px;
  padding: 12px 16px;
  
  /* TWEAK THIS: Changed from 15px to -25px to pull the bubble down right onto his head */
  margin-bottom: -55px; 
  
  max-width: 220px;
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  color: #333;
  box-shadow: 0px 5px 15px rgba(0,0,0,0.15);
  position: relative;
  text-align: center;
  opacity: 0; 
  transition: opacity 0.4s ease;
  pointer-events: none;
  
  /* CRITICAL: Keeps the speech bubble layered firmly in front of the image */
  z-index: 2; 
}

.volt-speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px 8px 0;
  border-style: solid;
  border-color: #ffffff transparent;
  display: block;
  width: 0;
}

.volt-speech-bubble.bubble-show {
  opacity: 1;
  pointer-events: auto;
}

/* =========================================
   MOBILE RESPONSIVE OVERRIDES (Max-width: 767px)
   ========================================= */
@media (max-width: 767px) {
  .volt-assistant-container img {
    width: 120px !important; 
    height: auto;
  }

  .volt-speech-bubble {
    max-width: 180px !important;    
    font-size: 13px !important;      
    line-height: 1.3 !important;     
    padding: 10px 12px !important;   
    margin-bottom: -5px !important;  
  }

  .pos-left .volt-speech-bubble {
    margin-left: 10px !important; 
  }

  .pos-right .volt-speech-bubble {
    margin-right: 15px !important; 
  }

  .pos-left .volt-speech-bubble::after {
    left: 25px !important;
  }

  .pos-right .volt-speech-bubble::after {
    right: 35px !important;
  }

  .pos-bottom {
    right: 15px; 
  }
}