/* --- VARIABLES & BASE STYLES --- */
:root {
    --logo-blue: #1b2d3d; 
    --primary-red: #cc5533; 
    --accent-gold: #d9c5a0; 
    --dark-navy: #13212d;    
    --light-bg: #f8f9fa;
    --text-main: #333;
    --shadow: 0 10px 30px rgba(0,0,0,0.15);
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: var(--light-bg);
    color: var(--text-main);
    overflow-x: hidden;
}

/* --- 1. SLIMMED TOP UTILITY BAR --- */
.top-bar {
    background-color: var(--dark-navy);
    padding: 2px 5%; /* Minimized height */
    border-bottom: 1px solid rgba(217, 197, 160, 0.1);
}

.top-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 24px; /* Tight fixed height */
}

.social-icons { display: flex; align-items: center; gap: 12px; }
.social-icons a { 
    color: var(--accent-gold); 
    font-size: 0.8rem; 
    transition: 0.3s; 
    text-decoration: none; 
}
.social-icons a:hover { color: white; transform: translateY(-1px); }

.top-bar-right { display: flex; align-items: center; gap: 15px; }
.top-bar-right a { 
    color: white; 
    text-decoration: none; 
    font-size: 0.75rem; 
    font-weight: 600; 
}
.top-bar-right .divider { color: rgba(255, 255, 255, 0.2); font-size: 0.75rem; }

/* --- 2. MAIN NAVBAR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 5%; /* Slightly slimmer vertical padding */
    background: var(--logo-blue); 
    border-bottom: 2px solid var(--accent-gold); /* Gold border matches footer */
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand-link { text-decoration: none; display: flex; align-items: center; }
.logo-wrapper { display: flex; align-items: center; gap: 15px; }
.nav-icon { height: 45px; width: auto; } /* Constrained logo height */

.brand-text, .footer-brand-text { 
    font-size: 1.3rem; 
    font-weight: 900; 
    text-transform: uppercase; 
    font-family: 'Arial Black', sans-serif; /* Unified brand font */
}
.text-white { color: var(--accent-gold); }
.text-red { color: var(--primary-red); margin-left: 4px; }

.nav-links a { color: var(--accent-gold); text-decoration: none; margin-left: 20px; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; }
.nav-btn { background: var(--primary-red); color: white !important; padding: 10px 20px; border-radius: 4px; box-shadow: 0 4px 0px #8e3a22; }

/* --- 3. HERO & TRUST BAR --- */
.hero-banner {
    background: linear-gradient(rgba(27, 45, 61, 0.9), rgba(19, 33, 45, 0.95));
    background-size: cover;
    background-position: center;
    padding: 50px 20px;
    text-align: center;
    border-bottom: 3px solid var(--accent-gold); 
}

.hero-content h1 { font-family: 'Arial Black', sans-serif; font-size: 2.5rem; color: var(--accent-gold); text-transform: uppercase; margin-bottom: 10px; }
.hero-content h1 .text-red { color: var(--primary-red); }
.hero-subtitle { font-size: 1.1rem; font-weight: 600; color: var(--accent-gold); text-transform: uppercase; letter-spacing: 2px; }

.hero-btns { margin-top: 30px; display: flex; justify-content: center; gap: 20px; }
.btn-primary-cta { background: var(--primary-red); color: white; padding: 15px 35px; text-decoration: none; border-radius: 4px; font-weight: 800; text-transform: uppercase; box-shadow: 0 4px 0px #8e3a22; }
.btn-secondary-cta { border: 2px solid var(--accent-gold); color: var(--accent-gold); padding: 13px 35px; text-decoration: none; border-radius: 4px; font-weight: 700; text-transform: uppercase; }

.trust-bar { background-color: white; padding: 25px 5%; border-bottom: 2px solid var(--accent-gold); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.trust-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.trust-item { display: flex; align-items: center; gap: 15px; flex: 1; }
.trust-icon { background-color: var(--light-bg); width: 45px; height: 45px; border-radius: 50%; display: flex; justify-content: center; align-items: center; border: 1px solid var(--accent-gold); transition: 0.3s; }
.trust-icon i { color: var(--primary-red); font-size: 1.1rem; }
.trust-text strong { display: block; color: var(--logo-blue); font-size: 0.9rem; text-transform: uppercase; }
.trust-text p { margin: 0; color: #666; font-size: 0.8rem; }

/* --- 4. COMPETITION GRID (2x2) --- */
.container { max-width: 1200px; margin: 0 auto; padding: 30px 20px; }
.section-title { text-align: center; color: var(--logo-blue); text-transform: uppercase; font-size: 2.2rem; margin-bottom: 40px; }

.comp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2x2 layout */
    gap: 30px;
    align-items: stretch;
}

.comp-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: 0.3s;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.comp-card:hover { transform: translateY(-10px); }
.card-img-wrapper { position: relative; height: 250px; }
.card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }

/* --- 5. BADGE & PULSE DOT --- */
.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-red);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 50%;
    animation: pulse-animation 1.5s infinite ease-out; /* Pulse animation logic */
}

@keyframes pulse-animation {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

.card-body { padding: 25px; }
.price-tag { font-size: 1.3rem; font-weight: 800; color: var(--primary-red); }
.progress-container { background: #e9ecef; height: 12px; border-radius: 10px; margin: 20px 0 8px; overflow: hidden; }
.progress-bar { background: linear-gradient(90deg, var(--primary-red), #ff7e5f); height: 100%; }
.tickets-left { font-size: 0.85rem; font-weight: 600; text-align: right; color: #555; }
.btn-card { display: block; text-align: center; background: var(--logo-blue); color: white; padding: 14px; border-radius: 6px; text-decoration: none; font-weight: bold; margin-top: 15px; }

/* --- 6. WINNERS GALLERY --- */
.winner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.winner-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid #eee; transition: 0.3s; }
.winner-img-wrapper { position: relative; height: 250px; border-bottom: 3px solid var(--accent-gold); }
.winner-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.winner-badge { position: absolute; bottom: 15px; right: 15px; background: rgba(27, 45, 61, 0.9); color: var(--accent-gold); padding: 5px 12px; border-radius: 20px; font-size: 0.75rem; border: 1px solid var(--accent-gold); }
.winner-info { padding: 20px; text-align: center; }
.winner-info h4 { font-family: 'Arial Black', sans-serif; color: var(--logo-blue); margin: 0; }
.won-item { font-weight: 700; margin: 10px 0; }
.divider { border: 0; height: 1px; background: #eee; margin: 40px 0; }

/* --- 7. SLIMMED FOOTER (FIXED) --- */
.main-footer {
    background-color: var(--logo-blue); /* Matches header navy */
    padding: 8px 5% 4px; /* Tight vertical padding for slim look */
    border-top: 2px solid var(--accent-gold); /* Matches header gold border */
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo img { 
    height: 30px; /* Constrains full-size logo */
    width: auto; 
    object-fit: contain;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a { 
    color: var(--accent-gold); 
    text-decoration: none; 
    font-size: 0.75rem; 
    font-weight: 700; 
    text-transform: uppercase; 
}

.footer-bottom {
    width: 100%;
    text-align: center;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid rgba(217, 197, 160, 0.1);
    color: var(--accent-gold);
    font-size: 0.65rem;
    opacity: 0.7;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    /* 1. Top Bar: Stack social and login for more space */
    .top-bar-container {
        flex-direction: column;
        gap: 8px;
        padding: 5px 0;
    }

    /* 2. Navbar: Center the logo and wrap links */
    .navbar {
        flex-direction: column;
        padding: 15px 5%;
    }

    .nav-links {
        margin-top: 15px;
        margin-left: 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .nav-links a {
        margin-left: 0;
        font-size: 0.8rem;
    }

    /* 3. Hero: Resize text and stack buttons */
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .btn-primary-cta, .btn-secondary-cta {
        width: 100%;
        max-width: 300px;
        padding: 12px 20px;
    }

    /* 4. Trust Bar: Stack items vertically */
    .trust-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    /* 5. Grids: Change 2x2 to single column */
    .comp-grid {
        grid-template-columns: 1fr; /* Single column for easy scrolling */
    }

    .winner-grid {
        grid-template-columns: 1fr;
    }

    /* 6. Footer: Center all elements */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-links {
        justify-content: center;
    }

    .custom-modal {
        border: none;
        border-radius: 12px;
        padding: 24px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        max-width: 400px;
        text-align: center;
        font-family: Arial, sans-serif;
      }
      
      .custom-modal::backdrop {
        background: rgba(0, 0, 0, 0.5); /* Dims the background */
      }
      
      .custom-modal button {
        background-color: #2563EB; /* Your primary brand color */
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 6px;
        cursor: pointer;
        font-weight: bold;
      }
}