/* --- 1. GLOBAL RESET & BASE --- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { 
    margin: 0; padding: 0; width: 100%; min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('../images/a.jpg') no-repeat center center fixed !important;
    background-size: cover !important; color: #fff; font-family: 'Open Sans', sans-serif; font-size: 16px; 
}

/* FORCE GOLD LINKS */
a, a:link, a:visited, a:active { color: #d4af37 !important; text-decoration: none !important; }
a:hover { color: #ffffff !important; }

/* --- 2. NAVIGATION (Desktop Default) --- */
nav { 
    background: rgba(0,0,0,0.95); border-bottom: 1px solid #d4af37; display: flex; 
    justify-content: center; align-items: center; min-height: 60px; position: sticky; top: 0; z-index: 9999;
}
.nav-links { display: flex; list-style: none; margin: 0; padding: 0; gap: 20px; }
.nav-links a { font-weight: 600; text-transform: uppercase; font-size: 0.85rem !important; }

/* --- 3. HERO & HEADINGS --- */
.hero-container { text-align: center; padding: 80px 20px; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }

/* Main Gold Title */
.gold-title {
    color: #d4af37 !important; 
    font-family: 'Playfair Display', serif !important;
    font-size: 3.5rem !important; 
    line-height: 1.1; 
    margin: 20px auto; 
    text-align: center !important;
}

/* SECTION HEADERS (Fixes the White/Left-aligned issue) */
.section-title {
    text-align: center !important; /* Forces centering */
    color: #d4af37 !important;      /* Forces gold color */
    font-family: 'Playfair Display', serif !important;
    margin: 80px auto 30px auto !important; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    font-size: 1.8rem !important;
    display: block;
    width: 100%;
}
/* --- 4. MEDIA GRID & LIGHTBOX --- */
.media-hub-final { 
    display: grid !important; grid-template-columns: repeat(3, 1fr) !important; 
    gap: 20px !important; max-width: 1100px !important; margin: 20px auto !important; padding: 0 20px;
}
.finalist-box img { 
    width: 100% !important; aspect-ratio: 1 / 1 !important; object-fit: cover !important; 
    border: 1px solid #d4af37; cursor: pointer; transition: transform 0.3s ease;
}

#lightbox-modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.95); z-index: 10000; justify-content: center; align-items: center;
}
#lightbox-img { max-width: 90%; max-height: 85vh; border: 2px solid #d4af37; }
.close-lightbox { position: absolute; top: 30px; right: 40px; color: #d4af37; font-size: 50px; cursor: pointer; }

/* --- 5. CENTERED FOOTER --- */
footer { 
    background: rgba(0,0,0,0.9); padding: 40px 20px; border-top: 1px solid #d4af37; 
    text-align: center; width: 100%; margin-top: auto;
}
.social-icons { margin-bottom: 15px; }
.social-icons a { font-size: 1.5rem; margin: 0 10px; color: #d4af37 !important; }
.footer-links { margin-bottom: 10px; display: flex; justify-content: center; gap: 20px; }
footer p { font-size: 0.85rem; color: #ccc; margin: 5px 0; }

/* --- 6. MOBILE NAVIGATION (Under 768px) --- */
@media screen and (max-width: 768px) {
    /* Align hamburger to the LEFT */
    nav {
        justify-content: flex-start !important;
        padding-left: 10px;
    }

    /* Scaling for Hero Title */
    .gold-title { font-size: 1.5rem !important; }
    
    /* Scaling for Media Grid */
    .media-hub-final { grid-template-columns: repeat(2, 1fr) !important; }

    /* The Navigation Menu - Solid black, full screen */
    .nav-links {
        display: none; 
        flex-direction: column;
        position: fixed; 
        top: 60px; 
        left: 0;
        width: 100%;
        height: 100vh; 
        background-color: #000000 !important; 
        padding: 20px; /* Reduced top/bottom padding */
        z-index: 9999;
        gap: 15px; /* TIGHTENED SPACING: Reduced from 25px */
        overflow-y: auto;
    }

    /* Keeps your specific font styling but tightens line height */
    .nav-links a {
        font-size: 0.85rem !important; 
        font-weight: 600 !important;
        text-transform: uppercase;
        display: block;
        padding: 5px 0; /* TIGHTENED SPACING: Reduced vertical padding */
        line-height: 1.2; /* Ensures tight vertical stacking */
    }

    /* Script Toggle */
    .nav-links.active {
        display: flex !important;
    }

    /* Hamburger icon styling */
    .menu-toggle {
        display: block !important;
        visibility: visible !important;
        cursor: pointer;
        padding: 15px;
        color: #d4af37 !important;
        font-size: 1.8rem;
    }
}

/* --- 7. DESKTOP RESET --- */
@media screen and (min-width: 769px) {
    nav { justify-content: center !important; }
    .menu-toggle { display: none !important; }
    .nav-links {
        display: flex !important;
        position: static;
        background: transparent !important;
        height: auto;
    }
}

/* --- MEDIA & CONTESTANT GRID --- */
.media-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.elegant-frame {
    border: 2px solid #d4af37;
    padding: 5px;
    background: #000;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    aspect-ratio: 4/5;
    overflow: hidden;
}

.elegant-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.caption-small {
    padding: 8px 2px;
    text-align: center;
    background: #000;
    color: #d4af37;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- TERMS & POLICY LAYOUT --- */
.policy-container {
    max-width: 800px;
    margin: 100px auto;
    padding: 40px;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid #d4af37;
    line-height: 1.6;
}

.policy-text {
    color: #eee;
    margin-bottom: 30px;
    max-height: 400px;
    overflow-y: auto; /* Adds a scrollbox to force "reading" */
    padding-right: 20px;
    border-bottom: 1px solid #333;
}

.policy-text h2 { color: #d4af37; font-family: 'Playfair Display', serif; }

@media (max-width: 768px) {
    .media-grid-5 { grid-template-columns: repeat(2, 1fr); }
    .policy-container { padding: 20px; width: 90%; }
}



/* CONTESTANT & MEDIA GRID - 5 COLUMNS */
.media-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin: 20px 0;
}

/* ELEGANT FRAME STYLE */
.elegant-frame {
    border: 2px solid #d4af37; /* The Gold Frame */
    padding: 5px; /* Gap between frame and photo */
    background: #000;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    aspect-ratio: 4/5; /* Standardized Portrait Vessel */
    overflow: hidden;
}

.elegant-frame:hover {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
    transform: translateY(-5px);
}

.elegant-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Forces 1x1 or 4x5 to fill the frame elegantly */
}

/* REDUCED CAPTION STYLE */
.caption-small {
    padding: 8px 2px;
    text-align: center;
    background: #000;
    color: #d4af37;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.75rem; /* Small font for long names */
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive: 5 cols to 2 on mobile */
@media (max-width: 1024px) { .media-grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .media-grid-5 { grid-template-columns: repeat(2, 1fr); } }

/* Hero Container */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #000;
}

/* Video Styling */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover; /* Ensures video covers screen without stretching */
}

/* Content Overlay */
.hero-content {
    position: relative;
    z-index: 2; /* Ensures text is above video */
    padding: 0 20px;
}

/* Apply Now Image Button */
.apply-btn-img {
    width: 280px;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.apply-btn-img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Mobile Last Touches */
@media (max-width: 768px) {
    .gold-title { font-size: 2.8rem !important; }
    .journey-text { font-size: 1.2rem !important; }
    .apply-btn-img { width: 220px; }
    .hero-content { margin-top: -20px !important; }
}