@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Playfair+Display:ital,wght@0,400;0,700;1,700&display=swap');

/* --- CSS VARIABLES (Fixes broken colors/shadows) --- */
:root {
    --primary-dark: #1a1a2e;
    --primary-gold: #c9a84c;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --text-dark: #333333;
    --text-muted: #666666;
    --transition: all 0.3s ease-in-out;
    --shadow-card: 0 10px 30px -10px rgba(0,0,0,0.1);
}

body { font-family: 'Inter', sans-serif; }
h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', serif; }

/* Custom Color Overrides */
.bg-cosmos-dark { background-color: #1a1a2e !important; }
.text-cosmos-gold { color: #c9a84c !important; }
.btn-cosmos-gold {
    background-color: #c9a84c;
    color: #1a1a2e;
    font-weight: 600;
    transition: all 0.3s ease;
}
.btn-cosmos-gold:hover { background-color: #b5973f; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(201, 168, 76, 0.4); }

/* Navbar Override */
.navbar { 
    padding-top: 15px; 
    padding-bottom: 15px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.3); 
}
.navbar-brand img { height: 50px; width: auto; object-fit: contain; }
.nav-link { color: #ffffff !important; font-weight: 500; transition: all 0.3s; }
.nav-link:hover, .nav-link.active { color: #c9a84c !important; }

/* Hero Section */
.hero { 
    position: relative; 
    width: 100%; 
    height: 85vh; 
    background: url('https://images.unsplash.com/photo-1519567241046-7f570eee3d9b?q=80&w=1920&auto=format&fit=crop') center/cover no-repeat; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.hero-overlay { 
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(26, 26, 46, 0.6); 
}
.hero-content { position: relative; z-index: 10; max-width: 800px; color: white; }

/* Card Enhancements */
.cosmos-card { 
    transition: all 0.3s ease-in-out; 
    border: none; 
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1); 
    overflow: hidden;
}
.cosmos-card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px -10px rgba(0,0,0,0.15); }
.cosmos-card img { height: 200px; object-fit: cover; }

/* Animation Fade-In */
.fade-in-up { opacity: 1 !important; transform: translateY(0) !important; }

/* --- NEW DESIGN ADDITIONS --- */

/* Dark Section Backgrounds */
.dark-section { background-color: #111; color: #fff; }
.dark-section h1, .dark-section h2, .dark-section h3, .dark-section h4 { color: #fff; }

/* Section Title with Gold Underline */
.section-title-inline {
    font-size: 2.5rem; margin-bottom: 30px; position: relative; display: inline-block;
}
.section-title-inline span { color: var(--primary-gold); }
.section-title-inline::after {
    content: ''; position: absolute; left: 0; bottom: -10px; width: 60px; height: 3px; background: var(--primary-gold);
}

/* Hero Play Button */
.hero-play-btn {
    display: inline-flex; align-items: center; justify-content: center; color: #fff;
    text-decoration: none; margin-top: 30px; font-size: 1.2rem; font-weight: 600; gap: 15px;
}
.hero-play-btn .circle {
    width: 70px; height: 70px; border: 4px solid #fff; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; transition: 0.3s;
}
.hero-play-btn .circle i { font-size: 1.5rem; margin-left: 5px; }
.hero-play-btn:hover .circle { background: rgba(255,255,255,0.2); border-color: var(--primary-gold); }
.hero-play-btn:hover { color: var(--primary-gold); }

/* Services Outline Cards */
.service-card {
    background: transparent; border: 1px solid #ccc; border-radius: 15px;
    padding: 30px 15px; text-align: center; height: 100%; transition: 0.3s;
}
.service-card i { font-size: 3rem; color: var(--text-dark); margin-bottom: 20px; }
.service-card h5 { font-weight: 600; margin-bottom: 15px; }
.service-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.service-card:hover { border-color: var(--primary-gold); transform: translateY(-5px); }

/* Mission & Vision Overlays */
.mission-vision-card { position: relative; border-radius: 12px; overflow: hidden; height: 250px; }
.mission-vision-card img { width: 100%; height: 100%; object-fit: cover; }
.mission-vision-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(26, 26, 46, 0.7); display: flex; flex-direction: column;
    align-items: center; justify-content: center; color: #fff; text-decoration: none;
    transition: 0.3s;
}
.mission-vision-overlay h4 { color: #fff; font-weight: 600; margin-bottom: 5px; }
.mission-vision-overlay i { font-size: 1.2rem; margin-left: 5px; }
.mission-vision-overlay:hover { background: rgba(201, 168, 76, 0.8); }

/* Stats Section */
.stat-box { text-align: center; padding: 20px 10px; }
.stat-box h2 { font-size: 2.5rem; color: var(--primary-dark); font-weight: 700; font-family: 'Inter', sans-serif; }
.stat-box p { font-size: 1.1rem; font-weight: 600; color: var(--text-dark); text-transform: uppercase; letter-spacing: 1px; }

/* Countdown Box */
.countdown-box {
    border: 3px solid #fff; display: inline-flex; padding: 20px 40px; gap: 30px;
    border-radius: 5px; margin-bottom: 30px;
}
.countdown-box div { text-align: center; color: #fff; }
.countdown-box div h3 { color: #fff; font-size: 2.5rem; font-weight: 700; font-family: 'Inter', sans-serif; margin-bottom: 0; }
.countdown-box div span { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }

/* Event Card Layout */
.event-price { font-size: 1.8rem; font-weight: 700; color: var(--primary-dark); }
.event-date-badge {
    background: var(--primary-gold); color: #fff; padding: 5px 15px; border-radius: 20px;
    font-size: 0.85rem; display: inline-flex; align-items: center; gap: 8px; margin-top: 15px;
}

/* Footer Newsletter */
.newsletter-section { background: #1c1c1c; padding: 40px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.newsletter-section h4 { color: #fff; font-weight: 700; }
.newsletter-input-wrapper { position: relative; max-width: 400px; margin: 0 auto; }
.newsletter-input-wrapper input {
    width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.5);
    color: #fff; padding: 10px 30px 10px 0; outline: none;
}
.newsletter-input-wrapper input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-input-wrapper i {
    position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: #fff; cursor: pointer;
}

/* Back To Top */
#back-to-top {
    position: fixed; bottom: 30px; right: 30px; background: #000; color: #fff;
    width: 50px; height: 50px; border-radius: 50%; text-align: center; line-height: 50px;
    z-index: 9999; box-shadow: 0 2px 10px rgba(0,0,0,0.3); transition: 0.3s; display: none;
}
#back-to-top:hover { background: var(--primary-gold); color: #000; }

/* --- CUSTOM SCROLLBAR FOR EVENTS & STORE LOCATOR --- */
.custom-scroll::-webkit-scrollbar { width: 6px; }
.custom-scroll::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 10px; }
.custom-scroll::-webkit-scrollbar-thumb { background: var(--primary-gold); border-radius: 10px; }
.custom-scroll::-webkit-scrollbar-thumb:hover { background: #b5973f; }

/* --- ANIMATED GALLERY --- */
.gallery-wrapper { overflow: hidden; border-radius: 12px; position: relative; height: 100%; }
.gallery-wrapper img { 
    width: 100%; height: 100%; object-fit: cover; 
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}
.gallery-wrapper:hover img { transform: scale(1.08); }
.gallery-wrapper .overlay-text {
    position: absolute; bottom: 20px; left: 20px; background: rgba(0,0,0,0.6);
    color: #fff; padding: 5px 15px; border-radius: 20px; font-weight: bold; font-size: 0.9rem;
}
.gallery-wrapper:hover .overlay-text { background: var(--primary-gold); color: #000; }

/* --- HERO BACKGROUND VIDEO FIX --- */
.hero-video { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    object-fit: cover; z-index: 0; pointer-events: none; /* Prevents accidental clicks on video itself */
}
.hero { position: relative; width: 100%; height: 85vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(26, 26, 46, 0.6); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 800px; color: white; }

/* --- VIDEO MODAL FIX --- */
#videoModal .modal-content { background-color: #000; border: none; border-radius: 12px; overflow: hidden; }
#videoModal .btn-close { position: absolute; top: -40px; right: 0; background: none; font-size: 2rem; opacity: 1; color: #fff; z-index: 10; }
#videoModal .btn-close:hover { color: var(--primary-gold); }

/* --- STORE LOCATOR --- */
.map-container { width: 100%; height: 450px; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-card); }
.store-list-wrapper { max-height: 450px; overflow-y: auto; padding-right: 10px; }
.btn-outline-cosmos-gold { color: var(--primary-gold); border: 1px solid var(--primary-gold); }
.btn-outline-cosmos-gold:hover { background: var(--primary-gold); color: #000; }

/* --- STATS SECTION FIX --- */
.stat-box { text-align: center; padding: 15px 10px; margin-bottom: 20px; }
.stat-box h2 { 
    font-size: 2.2rem; font-weight: 700; color: #1a1a2e; margin-bottom: 5px; 
    font-family: 'Inter', sans-serif; white-space: nowrap; 
}
.stat-box .stat-label { 
    font-size: 1rem; font-weight: 700; text-transform: uppercase; color: #333; display: block; margin-bottom: 2px;
}
.stat-box .stat-sub { 
    font-size: 0.85rem; font-weight: 400; color: #666; display: block; text-transform: uppercase; 
}

/* --- LATEST POSTS CARDS --- */
.latest-posts-section { background: #f8f9fa; padding: 60px 0; }
.section-desc { color: #666; text-align: right; font-size: 1rem; margin-top: 10px; }
.latest-post-card {
    background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-card); transition: all 0.3s; height: 100%; border: none;
}
.latest-post-card img { height: 220px; width: 100%; object-fit: cover; }
.latest-post-card h5 { font-size: 1.1rem; font-weight: 700; color: #1a1a2e; padding: 20px 20px 5px 20px; margin: 0; }
.latest-post-card p { padding: 0 20px 20px 20px; color: #666; font-size: 0.95rem; line-height: 1.5; margin: 0; }
.latest-post-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.15); }

/* --- BRANDS HERE WITH AUTO SCROLL --- */
.brands-section { padding: 40px 0; overflow: hidden; }
.brands-scroll-wrapper { position: relative; width: 100%; overflow: hidden; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.brands-scroll-track {
    display: flex; width: max-content; animation: scrollBrands 25s linear infinite;
}
.brands-scroll-track img {
    height: 45px; margin: 0 30px; object-fit: contain; flex-shrink: 0; opacity: 0.7; transition: 0.3s;
}
.brands-scroll-track:hover { animation-play-state: paused; }
.brands-scroll-track img:hover { opacity: 1; }

@keyframes scrollBrands {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Store Locator Search Bar Fix (from screenshot) */
.search-btn-custom { background: #1a1a2e; color: white; border: none; border-radius: 0 5px 5px 0 !important; }
.search-btn-custom:hover { background: var(--primary-gold); color: #1a1a2e; }

/* --- MOBILE RESPONSIVE FIXES --- */

/* Tablet & Small Screens (<= 991px) */
@media (max-width: 991px) {
    /* Mobile Nav Alignment & Spacing */
    .navbar-nav .nav-item { text-align: center; width: 100%; padding: 8px 0; }
    .navbar-nav .nav-item.ms-lg-3, .navbar-nav .nav-item.ms-lg-2 { margin-left: 0 !important; margin-top: 10px; }
    .btn-cosmos-gold { width: 100%; max-width: 200px; margin: 0 auto; }
    .navbar-brand img { height: 40px; }
}

/* Tablet & Medium Screens (<= 768px) */
@media (max-width: 768px) {
    .hero { height: 65vh; }
    .hero h1 { font-size: 2.2rem; }
    .hero .hero-play-btn .circle { width: 50px; height: 50px; }
    .hero .hero-play-btn .circle i { font-size: 1.2rem; }
    .hero-video { height: 100%; }
    .dark-section h3.display-5 { font-size: 2.5rem; text-align: center; }
    .stat-box h2 { font-size: 1.6rem; white-space: nowrap; }
    .stat-box .stat-label { font-size: 0.8rem; }
    .stat-box .stat-sub { font-size: 0.7rem; }
    .countdown-box { flex-direction: row; flex-wrap: wrap; justify-content: center; padding: 20px; gap: 15px; border-width: 2px; }
    .countdown-box div h3 { font-size: 2rem; }
    .service-card { padding: 20px 10px; }
    .service-card i { font-size: 2rem; }
    .service-card h5 { font-size: 1rem; }
    .service-card p { font-size: 0.8rem; }
    .event-card .d-flex { flex-direction: column; align-items: flex-start !important; }
    .event-card img { width: 100%; height: 150px; margin-bottom: 15px; }
    .event-card .btn-dark { width: 100%; margin-top: 10px; }
    .store-list-wrapper { max-height: 300px !important; }
    .gallery-wrapper { height: 200px; }
}

/* Mobile Phones (<= 576px) - UPDATED & OPTIMIZED */
/* Mobile Phones (<= 576px) - UPDATED & OPTIMIZED */
@media (max-width: 576px) {
    /* 1. PREVENT SIDE CLIPPING & WHITE SPACE GAP */
    html, body { max-width: 100% !important; overflow-x: hidden !important; margin: 0 !important; padding: 0 !important; }
    .container, .container-fluid { padding-left: 12px !important; padding-right: 12px !important; max-width: 100% !important; box-sizing: border-box !important; }
    
    /* FIX COUNTDOWN SECTION CONTAINER OVERFLOW */
    .position-relative.py-5 .container {
        overflow-x: hidden !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* 2. HEADER & LOGO */
    .navbar-brand img { height: 35px !important; }

    /* 3. HERO SECTION */
    .hero { height: 60vh !important; min-height: 400px !important; }
    .hero-video, .hero img { object-position: center center !important; }
    .hero-content { padding: 0 15px !important; width: 100% !important; box-sizing: border-box !important; }
    .hero h1 { font-size: 1.6rem !important; word-break: break-word !important; }
    .hero p.fs-5 { font-size: 0.95rem !important; }
    .hero-play-btn { font-size: 1rem !important; }
    .hero-play-btn .circle { width: 45px !important; height: 45px !important; }
    .hero-play-btn .circle i { font-size: 1.2rem !important; }

    /* 4. STATS SECTION */
    .stat-box { padding: 5px 0 !important; }
    .stat-box h2 { 
        font-size: 1.2rem !important; 
        white-space: nowrap !important; 
        line-height: 1.2 !important; 
    }
    .stat-box .stat-label { font-size: 0.65rem !important; line-height: 1.2 !important; }
    .stat-box .stat-sub { font-size: 0.6rem !important; }

    /* 5. COUNTDOWN TIMER (FIX WHITE SPACE & ALIGNMENT) */
    .countdown-box { 
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        width: 100% !important; 
        max-width: 100% !important; /* Force prevent overflow */
        padding: 15px 5px !important; 
        gap: 5px !important; 
        border: 1px solid #fff !important; 
        box-sizing: border-box !important;
        margin: 0 auto 30px auto !important; /* Ensures center */
    }
    .countdown-box div { text-align: center !important; }
    .countdown-box div h3 { font-size: 1.2rem !important; margin-bottom: 0 !important; font-weight: 700 !important; }
    .countdown-box div span { font-size: 0.6rem !important; display: block !important; text-transform: uppercase !important; }
    
    /* ENSURE TITLE TEXT IS ALIGNED PROPERLY */
    .position-relative.py-5 h2 { 
        text-align: center !important; 
        padding: 0 5px !important;
        font-size: 1.8rem !important; 
    }

    /* 6. TITLES & DESCRIPTIONS */
    .section-title-inline { font-size: 1.6rem !important; }
    .section-desc { text-align: left !important; margin-top: 10px !important; font-size: 0.9rem !important; }

    /* 7. EVENT UPDATES */
    .dark-section .bg-white.d-flex { flex-direction: column !important; align-items: stretch !important; }
    .dark-section .bg-white.d-flex .flex-grow-1 { width: 100% !important; }
    .dark-section .bg-white.d-flex .btn-dark { width: 100% !important; margin-top: 12px !important; text-align: center !important; }

    /* 8. LATEST POSTS */
    .latest-posts-section .row.align-items-end { flex-direction: column !important; align-items: flex-start !important; }
    .latest-post-card img { height: 160px !important; }
    .latest-post-card h5 { font-size: 0.95rem !important; }
    .latest-post-card p { font-size: 0.85rem !important; }

    /* 9. SERVICES */
    .service-card { padding: 15px 10px !important; margin-bottom: 15px !important; height: 100% !important; }
    .service-card i { font-size: 2rem !important; margin-bottom: 10px !important; }
    .service-card h5 { font-size: 0.9rem !important; font-weight: 600 !important; }
    .service-card p { font-size: 0.8rem !important; line-height: 1.4 !important; margin-bottom: 0 !important; }

    /* 10. GALLERY */
    .gallery-wrapper { height: 150px !important; }

    /* 11. BRANDS HERE */
    .brands-scroll-track img { height: 25px !important; margin: 0 12px !important; }

    /* 12. EXPLORE/INDULGE TEXT */
    .dark-section h3.display-5 { font-size: 2.2rem !important; text-align: center !important; }
    .dark-section .bg-dark.bg-opacity-50 { padding: 20px !important; }

    /* 13. NEWSLETTER INPUT */
    .newsletter-input-wrapper { max-width: 100% !important; }
}

/* --- NEW TESTIMONIALS SLIDER STYLE (Premium Dark Theme) --- */

/* 1. Section Background & Typography */
.testimonial-section {
    background: #151525 !important; /* Dark Navy matching site footer */
    border-top: 3px solid var(--primary-gold);
    border-bottom: 3px solid var(--primary-gold);
}
.testimonial-section h2 { color: #ffffff !important; }

/* 2. The Slider Cards */
.testimonial-card {
    background: rgba(255, 255, 255, 0.05) !important; /* Glassmorphism effect */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-top: 4px solid var(--primary-gold) !important; /* Gold top border for premium look */
    color: #ffffff !important;
    transition: all 0.3s ease;
}
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(201, 168, 76, 0.2);
    border-color: var(--primary-gold) !important;
}

/* 3. Text Styling inside the card */
.testimonial-card .lead { color: #e0e0e0 !important; }
.testimonial-card h5 { color: #ffffff !important; }
.testimonial-card small { color: #b0b0b0 !important; }

/* 4. Profile Picture Gold Ring */
.testimonial-card img {
    border: 4px solid var(--primary-gold) !important;
    padding: 3px !important;
    background: #1a1a2e !important;
}

/* 5. Gold Controls (Arrows & Dots) */
#testimonialSlider .carousel-control-prev, 
#testimonialSlider .carousel-control-next {
    background-color: var(--primary-gold) !important; /* Gold circular background */
    width: 45px;
    height: 45px;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}
#testimonialSlider .carousel-control-prev:hover, 
#testimonialSlider .carousel-control-next:hover {
    background-color: #b5973f !important;
    transform: translateY(-50%) scale(1.1);
}

/* Fix the arrow icons to be dark navy against the gold button */
#testimonialSlider .carousel-control-prev-icon,
#testimonialSlider .carousel-control-next-icon {
    filter: invert(1) brightness(0.2); /* Makes the arrows dark navy */
}

/* 6. Mobile Adjustments */
@media (max-width: 768px) {
    #testimonialSlider .carousel-control-prev { left: 0px; }
    #testimonialSlider .carousel-control-next { right: 0px; }
    #testimonialSlider .carousel-control-prev, 
    #testimonialSlider .carousel-control-next { width: 35px; height: 35px; }
    .testimonial-card { padding: 20px !important; }
}