
       /* ---------------------------------------------------- */
/* GLOBAL STYLES & RESET */
/* ---------------------------------------------------- */
:root {
    /* Dubai/UAE Flag Colors */
    --color-red: #da291c;
    --color-green: #007234;
    --color-black: #000000;
    --color-white: #ffffff;
    
    /* Theme Colors */
    --color-primary: var(--color-red); /* Main accent: Red */
    --color-secondary: var(--color-green); /* Secondary accent: Green */
    
    /* --- LIGHT THEME ADJUSTMENTS --- */
    --color-bg-body: #f4f7f6; /* Very light background for body */
    --color-bg-section: #ffffff; /* White background for sections */
    --color-glass-dark: rgba(255, 255, 255, 0.4); /* Light glass base */
    --color-glass-light: rgba(255, 255, 255, 0.85); /* Lighter glass base for higher contrast */
    --color-text-light: #333333; /* Dark text for contrast */
    --color-text-dark: #1a1a1a; /* Very dark text for headings/strong elements */

    /* Fonts (No change needed) */
    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    /* Spacing & Transitions (No change needed) */
    --padding-section: 100px 5%;
    --transition-smooth: 0.3s ease-in-out;
    --border-radius-card: 15px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg-body); /* Lighter background */
    color: var(--color-text-light); /* Dark text */
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: var(--color-text-dark); /* Dark link color for contrast */
    transition: color var(--transition-smooth);
}
a:hover {
    color: var(--color-primary);
}

/* Reusable Section Title Style */
.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 3em;
    color: var(--color-text-dark); /* Dark title text */
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.1); /* Subtle dark shadow */
}

/* ---------------------------------------------------- */
/* LIQUID GLASSMOPRHISM BASE MIXIN (Adjusted for Light BG) */
/* ---------------------------------------------------- */
.glass-card {
    background: var(--color-glass-light); /* Lighter glass base */
    border: 1px solid rgba(0, 0, 0, 0.1); /* Darker, subtler border */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius-card);
    /* Shadow is a subtle dark shade */
    box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.1); 
    padding: 30px;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.glass-card:hover {
    transform: translateY(-3px) scale(1.005);
    box-shadow: 0 8px 25px 0 rgba(0, 0, 0, 0.2);
}

/* Neon Glow Effect (Used on cards/CTAs) */
.neon-glow-primary {
    /* Subtle glow on light background */
    box-shadow: 0 0 10px rgba(218, 41, 28, 0.5), 0 0 20px rgba(218, 41, 28, 0.2);
}

/* ---------------------------------------------------- */
/* BUTTON STYLING (No major functional color change needed, just minor adjustments) */
/* ---------------------------------------------------- */
.cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1.1em;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-white); /* Keep white text for contrast on dark button */
    background: linear-gradient(45deg, var(--color-red), var(--color-black)); /* Red and Black blend */
    border: none;
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--color-red); /* Red glow on hover */
}

/* ---------------------------------------------------- */
/* HEADER / NAVBAR (Adjusted for Light BG) */
/* ---------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    z-index: 1000;
    transition: background var(--transition-smooth), backdrop-filter var(--transition-smooth);
}

.header.scrolled {
    /* Use a white/light glass effect when scrolled */
    background: rgba(255, 255, 255, 0.7); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1); /* Subtle dark border */
}

/* Update the .logo container to give it a visible background */
.logo {
    /* Set a maximum height for the logo container */
    max-height: 60px; 
    width: auto;
    
    /* Make the logo container a flexbox to easily center the image */
    display: flex;
    align-items: center; 
    
    /* --- NEW BACKGROUND & GLASS EFFECT --- */
    padding: 5px 10px; /* Small padding around the image */
    border-radius: 8px; /* Rounded corners */
    
    /* Use a white or very light glass background for high contrast on the light theme */
    background: rgba(255, 255, 255, 0.85); /* Slightly transparent white */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    
    /* Subtle border and shadow to lift it off the header */
    border: 1px solid rgba(0, 0, 0, 0.1); 
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); 
    /* ----------------------------------- */

    /* Reset irrelevant text properties */
    font-size: unset; 
    font-weight: unset;
    letter-spacing: unset;
    color: unset;
    font-family: unset;
}

/* Target the <img> element to control its size inside the padded container */
.logo img {
    /* Sizing should be relative to the container max-height */
    height: 100%; 
    max-height: 50px; /* Reduced the image max-height slightly to fit inside the padding */
    width: auto;
    display: block; 
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-menu ul {
    display: flex;
    list-style: none;
}

.nav-menu ul li {
    margin-left: 30px;
}

.nav-menu ul li a {
    font-family: var(--font-body);
    font-weight: 600;
    padding: 5px 0;
    position: relative;
    color: var(--color-text-dark); /* Dark text for contrast */
}

.nav-menu ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-smooth);
}

.nav-menu ul li a:hover::after,
.nav-menu ul li a.active::after {
    width: 100%;
}

/* Mobile Menu Toggle (No change needed) */
.menu-toggle {
    display: none;
    font-size: 1.8em;
    cursor: pointer;
    color: var(--color-text-dark); /* Dark icon */
}

/* ---------------------------------------------------- */
/* HERO SECTION (Adjusted for Light BG with Dark Text) */
/* ---------------------------------------------------- */
#home {
    position: relative;
/*    width: 100vw;*/
    height: 100vh;
    margin: 0; /* remove margin */
    padding: 0; /* remove padding */
    padding-top: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Background color effect overlays */
#home::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top left, var(--color-green) 0%, transparent 40%), 
                radial-gradient(circle at bottom right, var(--color-red) 0%, transparent 40%);
    opacity: 0.1;
    z-index: 1;
}

/* Slider */
.slider {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* HERO CONTENT */
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    color: #fff;
}

.hero-content h1 {
    font-size: 2em;
    margin-bottom: 10px;
    font-weight: bold;
    letter-spacing: 1px;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 20px;
}
/* Make slider responsive */
#home, .slider, .slide {
    width: 100%;
    height: 100vh;
}

@media (max-width: 768px) {
    #home, .slider, .slide {
        height: 70vh; /* reduce banner height on mobile */
    }

    .slide {
        background-size: cover;
        background-position: center top;
    }

    .hero-content {
        width: 90%;
        top: 60%;
        transform: translate(-50%, -60%);
        padding: 0 10px;
    }

    .hero-content h1 {
        font-size: 1.4em;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 0.95em;
        line-height: 1.4;
    }

    .cta-button {
        font-size: 0.9em;
        padding: 10px 20px;
    }
}

/* For very small phones */
@media (max-width: 480px) {
    #home, .slider, .slide {
        height: 60vh;
    }

    .hero-content {
        top: 65%;
        transform: translate(-50%, -65%);
    }

    .hero-content h1 {
        font-size: 1.2em;
    }
}


/*.cta-button {
    background: #00bcd4;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.cta-button:hover {
    background: #0288d1;
}

.neon-glow-primary {
    box-shadow: 0 0 10px #00bcd4, 0 0 20px #00bcd4, 0 0 30px #00bcd4;
}
*/

/* ---------------------------------------------------- */
/* GENERAL SECTION STYLING (No change needed) */
/* ---------------------------------------------------- */
section {
    padding: var(--padding-section);
    min-height: 50vh;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

#about {
    /* Lighter overlay on the background image */
    background: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), 
    url('assets/bg1.jpg') center/cover no-repeat;
    background-color: var(--color-bg-section); /* White background for contrast */
}

#about .glass-card {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    /* Using the lighter glass base, so the border color is a must-have */
    border: 1px solid rgba(0, 0, 0, 0.1); 
}

#about h3 {
    color: var(--color-secondary); /* Green accent */
    margin-bottom: 15px;
    font-size: 2em;
}

/* ---------------------------------------------------- */
/* TRAINING PROGRAMS SECTION */
/* ---------------------------------------------------- */
#training {
    background-color: var(--color-bg-body); /* Body light background */
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.training-card {
    text-align: center;
    padding: 40px 20px;
    /* Training cards use the light glass style for contrast */
    background: var(--color-glass-light); 
}

.training-card i {
    font-size: 3em;
    color: var(--color-primary);
    margin-bottom: 15px;
    transition: color var(--transition-smooth);
}

.training-card:nth-child(even) i {
    color: var(--color-secondary); /* Alternating accent color */
}

.training-card h4 {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: var(--color-text-dark); /* Dark text */
}

/* ---------------------------------------------------- */
/* COACHES SECTION */
/* ---------------------------------------------------- */
#coaches {
    background-color: var(--color-bg-section); /* White background */
}

.coaches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.coach-card {
    text-align: center;
    padding: 0;
    overflow: hidden;
    border-radius: var(--border-radius-card);
    /* Subtle light card border */
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.coach-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.coach-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%); /* Slightly less grayscale for light theme */
    transition: filter var(--transition-smooth), transform 0.6s ease;
}

.coach-card:hover .coach-image img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.coach-info {
    padding: 20px;
    /* Using a lighter glass/opaque background for the info section */
    background: rgba(255, 255, 255, 0.9); 
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.coach-info h4 {
    margin: 0;
    font-size: 1.4em;
    color: var(--color-primary);
}

.coach-info p {
    font-size: 0.9em;
    opacity: 0.8;
    color: var(--color-text-light);
    margin-top: 5px;
}

/* ---------------------------------------------------- */
/* GALLERY SECTION (Masonry/Grid) */
/* ---------------------------------------------------- */
#gallery {
    background-color: var(--color-bg-body);
}

.gallery-masonry {
    display: grid;
    grid-gap: 15px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-auto-rows: minmax(100px, auto);
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    /* Light theme item background */
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease-in-out;
}

.gallery-item:hover img {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Lightbox (Hidden by default) - No major change needed here, just background color */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    text-align: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    max-height: 90vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: var(--color-white); /* White close button on dark overlay */
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

/* ---------------------------------------------------- */
/* CONTACT SECTION */
/* ---------------------------------------------------- */
/* NOTE: The original contact section code was ALMOST a light theme, 
         but the variables needed to be updated to the new light theme vars. */
         #contact {
            background: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), 
            url('assets/bg3.jpg') center/cover no-repeat;
            background-color: var(--color-bg-section); /* White background */
        }

        .contact-container {
            max-width: 900px;
            margin: 0 auto;
        }

        .contact-form {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }

        .form-group {
            width: 100%;
        }

        .form-group.full-width {
            grid-column: 1 / -1;
        }

        .contact-form label {
            display: block;
            margin-bottom: 5px;
            font-weight: 600;
            font-size: 0.9em;
            color: var(--color-text-dark); /* Dark label text */
        }

/* Style for all form controls (Input/Textarea/Select) */
.contact-form .form-control,
.contact-form .form-select {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1em;
    
    /* Light Theme Glass Inputs - Opaque white background */
    background: rgba(255, 255, 255, 0.95); 
    color: var(--color-text-dark);
    border: 1px solid rgba(0, 0, 0, 0.15); 
    
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all var(--transition-smooth);
    appearance: none;
}

/* Placeholder color correction for light theme */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(0, 0, 0, 0.5); 
}

/* Select element styling */
.contact-form .form-select {
    /* Custom styling for the select dropdown arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form .form-select:focus {
    outline: none;
    box-shadow: 0 0 8px rgba(0, 114, 52, 0.4); 
    border-color: var(--color-green);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

/* Required field color */
.contact-form .text-danger {
    color: var(--color-red); 
    margin-left: 3px;
}

.form-group.hidden {
    display: none;
}

/* Submit button remains high-contrast, professional, and full-width */
.form-submit-btn {
    display: block;
    width: 100%;
    background: linear-gradient(90deg, var(--color-green), var(--color-black), var(--color-red)); 
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    border-radius: 8px;
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.2em;
    font-weight: 700;
    letter-spacing: 1px;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.form-submit-btn:hover {
    transform: scale(1.01);
    box-shadow: 0 0 15px rgba(0, 114, 52, 0.7); 
}


/* Media Query for Mobile: single column layout */
@media (max-width: 768px) {
    .contact-form {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

/* ---------------------------------------------------- */
/* FOOTER (Dark footer for contrast in a light theme) */
/* ---------------------------------------------------- */
.footer {
    background-color: var(--color-black); /* Keeps a strong dark contrast */
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 5%;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 30px;
}

.footer-column {
    flex-basis: 350px;
    text-align: left;
}

.footer-column h5 {
    font-family: var(--font-heading);
    font-size: 1.2em;
    color: var(--color-white);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.social-icons {
    margin-top: 15px;
}

.social-icons a {
    font-size: 1.5em;
    margin: 0 10px;
    color: var(--color-white);
    transition: color var(--transition-smooth);
}

.social-icons a:hover {
    color: var(--color-primary);
}

.copyright {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    font-size: 0.9em;
}

/* ---------------------------------------------------- */
/* MEDIA QUERIES (RESPONSIVENESS) - No major changes */
/* ---------------------------------------------------- */
@media (max-width: 992px) {
    :root {
        --padding-section: 80px 4%;
    }
    .hero-content h1 {
        font-size: 3.5em;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        /* Light glass for mobile menu */
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
    }
    
    .nav-menu.active {
        max-height: 300px;
    }

    .nav-menu ul {
        flex-direction: column;
        padding: 20px 0;
    }

    .nav-menu ul li {
        margin: 10px 0;
        text-align: center;
    }
    
    .menu-toggle {
        display: block;
    }

    .header {
        padding: 15px 4%;
    }

    .hero-content h1 {
        font-size: 2.5em;
    }
    
    .section-title {
        font-size: 2em;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-column h5 {
        border-bottom: none;
        padding-bottom: 0;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2em;
    }
    .hero-content p {
        font-size: 1.1em;
    }
}
/* --- NEW ANIMATIONS FOR CORNER ELEMENTS --- */
@keyframes slow-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slow-float {
    0% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(10px) translateX(10px); }
    100% { transform: translateY(0px) translateX(0px); }
}
/* ------------------------------------------- */

/* ---------------------------------------------------- */
/* TRAINING PROGRAMS SECTION (Updated) */
/* ---------------------------------------------------- */

/* Ensure positioning and overflow are set for the container */
#training {
    position: relative; 
    overflow: hidden; 
    background-color: var(--color-bg-body); 
    z-index: 1; 
}

/* Base style for all corner elements */
.training-corner-element {
    position: absolute;
    width: 150px; /* Small Size */
    height: 150px;
    background-size: contain; /* Ensure the graphic fits without tiling */
    background-repeat: no-repeat;
    opacity: 0.1; /* Low Opacity */
    pointer-events: none; 
    z-index: 0; /* Keep behind all content */
}

/* Top-Left Element: element1.png */
.training-corner-element.top-left {
    top: 0;
    left: 0;
    width: 180px; /* Slightly larger for visual interest */
    height: 180px;
    background-image: url('assets/element1.png');
    animation: slow-rotate 120s linear infinite; /* Very slow rotation */
    transform-origin: top left;
}

/* Bottom-Right Element: element2.png */
.training-corner-element.bottom-right {
    bottom: 0;
    right: 0;
    background-image: url('assets/element3.png');
    animation: slow-float 40s ease-in-out infinite alternate; /* Slow floating/breathing */
    transform-origin: bottom right;
    filter: hue-rotate(90deg); /* Subtle color difference */
}

/* The third element (element3.png) can be used for another section or a third corner if needed.
   For now, we'll keep it simple with two corners. */


/* Container for all content to ensure it's on top */
.content-container {
    position: relative;
    z-index: 5; /* Puts content clearly above background */
    width: 100%;
    height: 100%;
}

/* Ensure the glass cards are correctly layered above the content-container */
.coach-card {
    position: relative; 
    z-index: 6; 
}

/* ... (rest of your existing .training-grid and .coaches-grid styles) ... */

/* --- NOTIFICATION BAR STYLES --- */
.notification-bar {
    position: fixed; /* Fixed position so it stays visible regardless of scroll */
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000; /* Ensure it's above all other elements */
    padding: 15px 40px 15px 20px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    color: #fff;
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: opacity 0.6s ease-in-out;
}

/* Success Styles */
.notification-bar-success {
    background-color: #4CAF50; /* Green */
}

/* Warning (Duplicate) Styles */
.notification-bar-warning {
    background-color: #ff9800; /* Orange */
}

/* Error Styles */
.notification-bar-error {
    background-color: #f44336; /* Red */
}

/* Close button style */
.close-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 20px;
    cursor: pointer;
    line-height: 20px;
    padding: 0 5px;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #ddd;
}

/* Popup background overlay */
  .popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease-in-out;
    z-index: 9999;
  }
  .popup-overlay.active {
    visibility: visible;
    opacity: 1;
  }

  /* Popup box */
  .popup-box {
    position: relative;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    animation: fadeIn 0.5s ease;
  }

  /* Close button */
  .close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    background: #ff4d4d;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    z-index: 10;
  }

  /* Slider styles */
  .popup-slider {
    position: relative;
    overflow: hidden;
  }

  .popup-slide {
    display: none;
    transition: opacity 0.6s ease;
  }

  .popup-slide.active {
    display: block;
  }

  .popup-slide img {
    width: 100%;
    border-radius: 8px;
    display: block;
  }

  /* Slider navigation buttons */
  .popup-prev, .popup-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
  }
  .popup-prev:hover, .popup-next:hover {
    background: rgba(0,0,0,0.6);
  }
  .popup-prev { left: 10px; }
  .popup-next { right: 10px; }

  @keyframes fadeIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}