/* ============================================================
   Indian Medical Association Health Expo India – Main Stylesheet
   ============================================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --red:        #22c3b6;
    --red-dark:   #189e92;
    --blue:       #0073e6;
    --blue-light: #005bb5;
    --grey-dark:  #222;
    --grey:       #555;
    --grey-light: #f5f5f5;
    --border:     #ddd;
    --white:      #fff;
    --font-head:  Inter, system-ui, sans-serif;
    --font-body:  Inter, system-ui, sans-serif;
    --transition: 0.25s ease;
    --shadow:     0 4px 20px rgba(0,115,230,0.1);
    --radius:     12px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--grey-dark);
    line-height: 1.7;
    background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red); }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-block;
    padding: 10px 22px;
    border-radius: var(--radius);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition);
    border: 2px solid transparent;
}
.btn-primary { background: linear-gradient(135deg, var(--blue) 0%, var(--red) 100%); color: var(--white); border-color: transparent; }
.btn-primary:hover { background: linear-gradient(135deg, var(--blue-light) 0%, var(--red-dark) 100%); border-color: transparent; color: var(--white); }
.btn-red { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-sm { padding: 7px 16px; font-size: 12px; }

.text-center { text-align: center; }

/* ---- Section Titles ---- */
.section-title {
    font-family: var(--font-head);
    font-size: 26px;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 12px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 50px; height: 3px;
    background: var(--red);
}

/* ============================================================
   HEADER / TOP BAR
   ============================================================ */
.top-bar {
    background: linear-gradient(135deg, var(--blue) 0%, var(--red) 100%);
    color: var(--white);
    padding: 6px 0;
}
.top-bar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.visitor-reg-btn {
    background: var(--white);
    color: var(--blue) !important;
    padding: 5px 16px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.visitor-reg-btn:hover { background: rgba(255, 255, 255, 0.85); color: var(--blue-light) !important; }
.top-social { display: flex; gap: 10px; align-items: center; }
.top-social a { display: flex; }
.top-social img { width: 18px; height: 18px; filter: brightness(0) invert(1); }

/* ---- Main Nav ---- */
.main-nav {
    background: linear-gradient(135deg, var(--blue) 0%, var(--red) 100%);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
}
.nav-logo img { width: 100px; }

.nav-menu {
    display: flex;
    gap: 0;
    
    align-items: stretch;
    flex-wrap: wrap;
}
.nav-item {
    position: relative;
}
.nav-item > a {
    display: block;
    padding: 14px 14px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    transition: color var(--transition);
}
.nav-item > a:hover,
.nav-item.active > a { color: var(--white); }
.nav-item.active > a { border-bottom: 3px solid var(--white); }

/* Dropdown */
.dropdown {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    background: var(--white);
    min-width: 240px;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--red);
    z-index: 999;
}
.nav-item:hover .dropdown { display: block; }
.dropdown li a {
    display: block;
    padding: 10px 18px;
    font-size: 13px;
    color: var(--grey-dark);
    border-bottom: 1px solid var(--grey-light);
    white-space: normal;
}
.dropdown li a:hover { background: var(--grey-light); color: var(--red); }

/* Hamburger toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: var(--grey-dark);
    transition: all var(--transition);
}

/* ============================================================
   HERO BANNER
   ============================================================ */
.hero-banner { position: relative; }
.hero-img { width: 100%; }
.hero-tagline {
    background: var(--blue);
    padding: 20px 0;
    color: var(--white);
    text-align: center;
}
.hero-sub {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 14px;
}
.hero-logo { margin: 0 auto; max-width: 220px; }

/* ============================================================
   EVENTS SECTION
   ============================================================ */
.events-section { padding: 50px 0; }
.events-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 40px; }

.event-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-top: 5px solid var(--red);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
}
.event-date-badge { margin-bottom: 12px; }
.event-dates {
    /* font-family: var(--font-head); */
    font-size: 22px;
    font-weight: 800;
    color: var(--blue);
    display: block;
}
.event-venue {
    font-size: 14px;
    color: var(--grey);
    margin-bottom: 18px;
    line-height: 1.5;
}
.event-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}
.event-meta { font-size: 13px; color: var(--grey); border-top: 1px solid var(--border); padding-top: 14px; }
.event-meta p { margin-bottom: 4px; }

/* Countdown */
.countdown {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}
.countdown-box {
    background: var(--blue);
    color: var(--white);
    text-align: center;
    padding: 10px 14px;
    border-radius: var(--radius);
    min-width: 60px;
}
.countdown-num { font-size: 22px; font-weight: 700; font-family: var(--font-head); display: block; }
.countdown-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; }

/* About */
.about-text {
    background: var(--grey-light);
    padding: 28px;
    border-left: 4px solid var(--blue);
    border-radius: var(--radius);
}
.about-text p { margin-bottom: 12px; }
.about-text p:last-child { margin-bottom: 0; }

/* ============================================================
   HIGHLIGHTS
   ============================================================ */
.highlights-section { padding: 50px 0; background: var(--grey-light); }
.highlights-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.highlight-item {
    text-align: center;
    flex: 1 1 160px;
    max-width: 200px;
}
.highlight-item img { width: 70px; margin: 0 auto 12px; }
.highlight-item p { font-size: 14px; font-weight: 600; color: var(--blue); }

/* ============================================================
   INDUSTRY SECTION
   ============================================================ */
.industry-section { padding: 50px 0; }
.industry-sub { font-size: 18px; color: var(--red); margin-bottom: 20px; }
.industry-content { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.industry-text p { margin-bottom: 14px; }
.industry-text small a { color: var(--blue); }

/* ============================================================
   VIDEOS
   ============================================================ */
.videos-section { padding: 50px 0; background: var(--grey-light); }
.videos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.video-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.video-thumb img { width: 100%; transition: transform 0.3s; }
.video-thumb:hover img { transform: scale(1.04); }
.play-btn {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.6);
    color: var(--white);
    width: 52px; height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    pointer-events: none;
}

/* ============================================================
   SPECIAL SHOWS
   ============================================================ */
.special-section { padding: 50px 0; }
.specials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.special-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.special-card:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(0,0,0,0.12); }
.special-card img { max-height: 70px; object-fit: contain; margin: 0 auto; }
.special-card h3 { font-family: var(--font-head); font-size: 16px; color: var(--blue); }
.special-card p { font-size: 13px; color: var(--grey); flex: 1; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section { padding: 50px 0; background: var(--grey-light); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 30px; }
.testimonial-card { text-align: center; }
.testimonial-card p { margin-top: 10px; font-weight: 600; font-size: 14px; color: var(--blue); }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-section { padding: 50px 0; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px;
}
.gallery-item { overflow: hidden; border-radius: var(--radius); }
.gallery-item img {
    width: 100%; height: 130px;
    object-fit: cover;
    transition: transform 0.3s;
}
.gallery-item:hover img { transform: scale(1.06); }

/* ============================================================
   SUPPORTED BY / LOGOS
   ============================================================ */
.supported-section { padding: 50px 0; background: var(--grey-light); }
.logos-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin-bottom: 36px;
}
.logo-item img { max-height: 70px; max-width: 160px; object-fit: contain; }
.knowledge-partners {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}
.kp-item { text-align: center; }
.kp-item h4 { font-size: 14px; font-weight: 700; color: var(--blue); margin-bottom: 12px; }
.kp-item img { max-height: 60px; object-fit: contain; }


/* ============================================================
   INNER PAGES
   ============================================================ */
.inner-page {}
.page-hero {
    background: linear-gradient(135deg, var(--blue) 0%, var(--red) 100%);
    padding: 50px 0;
    color: var(--white);
}
.page-hero h1 {
    font-family: var(--font-head);
    font-size: 32px;
    font-weight: 800;
    color: var(--white);
}
.page-content { padding: 50px 20px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: linear-gradient(135deg, var(--blue) 0%, var(--red) 100%); color: rgba(255,255,255,0.9); margin-top: 0; font-family: var(--font-body); }
.footer-top { padding: 70px 0 50px; }
.footer-cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 60px; }

@media (max-width: 991px) {
    .footer-cols { grid-template-columns: 1fr; gap: 40px; }
}

/* Col 1 */
.footer-brand-logo { max-height: 85px; margin-bottom: 20px; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3)); background: #fff; padding: 10px 15px; border-radius: 8px; }
.footer-desc { font-size: 0.95rem; line-height: 1.7; margin-bottom: 25px; color: rgba(255,255,255,0.85); }
.footer-social-pro { display: flex; gap: 12px; }
.social-icon { 
    display: inline-flex; 
    align-items: center; 
    justify-content: center; 
    width: 38px; height: 38px; 
    background: rgba(255,255,255,0.05); 
    color: #fff; 
    border-radius: 50%; 
    font-size: 15px; 
    transition: all 0.3s ease; 
}
.social-icon:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.social-icon.facebook:hover { background: #1877F2; }
.social-icon.instagram:hover { background: #E1306C; }
.social-icon.twitter:hover { background: #1DA1F2; }
.social-icon.linkedin:hover { background: #0A66C2; }
.social-icon.youtube:hover { background: #FF0000; }

/* Headings */
.footer-col h4 {
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 40px; height: 3px;
    background: #fff;
    border-radius: 2px;
}

/* Links */
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; transition: transform 0.2s; }
.footer-links li:hover { transform: translateX(5px); }
.footer-links a { color: rgba(255,255,255,0.9); font-size: 0.95rem; display: flex; align-items: center; gap: 8px; }
.footer-links a i { font-size: 10px; color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: #fff; }

/* Contact Info */
.footer-contact-info { list-style: none; padding: 0; margin: 0 0 25px 0; }
.footer-contact-info li { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 15px; color: rgba(255,255,255,0.9); font-size: 0.95rem; line-height: 1.5; }
.footer-contact-info li i { color: rgba(255,255,255,0.7); font-size: 16px; margin-top: 3px; }
.btn-footer-contact {
    display: inline-block;
    background: var(--red);
    color: #fff !important;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: background 0.3s;
}
.btn-footer-contact:hover { background: var(--blue); }

/* Bottom */
.footer-bottom { background: var(--blue); padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.15); }
.fb-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.fb-left, .fb-right { font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.fb-left a, .fb-right a { color: rgba(255,255,255,0.9); font-weight: 600; }
.fb-left a:hover, .fb-right a:hover { color: #fff; }
.fb-right .sep { margin: 0 10px; opacity: 0.5; }

/* ============================================================
   NEW MODERN NAVIGATION BAR
   ============================================================ */
.site-header-modern {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}
.nav-bar-modern {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    position: relative;
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 8px 20px;
    max-width: 1450px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}
.nav-brand {
    flex-shrink: 0;
}
.nav-brand img {
    height: 70px;
    width: auto;
    display: block;
}
.nav-list-modern {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 6px;
    flex-wrap: nowrap;
}
.nav-list-modern li {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap !important;
}
.nav-list-modern li a {
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.25s ease;
    white-space: nowrap !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    line-height: 1.2;
    box-sizing: border-box;
    flex-shrink: 0;
}
.nav-list-modern li a:hover,
.nav-list-modern li a.active {
    background-color: #f1f5f9;
    color: var(--blue);
}
.nav-list-modern li a.btn-register {
    background: linear-gradient(135deg, var(--blue) 0%, var(--red) 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 7px 14px;
    border-radius: 50px;
    white-space: nowrap !important;
    box-shadow: 0 4px 10px rgba(0, 115, 230, 0.22);
    line-height: 1.2;
    margin-left: 2px;
    flex-shrink: 0;
}
.nav-list-modern li a.btn-register.blink-button {
    margin-right: 2px;
}
.nav-list-modern li a.btn-register:hover {
    background: linear-gradient(135deg, var(--red) 0%, var(--blue) 100%);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 115, 230, 0.35);
}
.nav-list-modern li a.btn-appointment {
    background: linear-gradient(135deg, #0284c7 0%, #0d9488 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 7px 14px;
    border-radius: 50px;
    white-space: nowrap !important;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.28);
    margin-left: 2px;
    line-height: 1.2;
    flex-shrink: 0;
}
.nav-list-modern li a.btn-appointment:hover {
    background: linear-gradient(135deg, #0369a1 0%, #0f766e 100%);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 148, 136, 0.4);
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(13, 148, 136, 0.65), 0 0 0 3px rgba(13, 148, 136, 0.2);
    }
}
.blink-button {
    animation: pulseGlow 2.5s infinite;
}
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #0f172a;
    padding: 6px;
}

/* Medium Desktop & Laptop Display Tuning (1025px to 1350px) */
@media (min-width: 1025px) and (max-width: 1350px) {
    .nav-container {
        padding: 6px 12px;
    }
    .nav-brand img {
        height: 52px;
    }
    .nav-list-modern {
        gap: 3px;
    }
    .nav-list-modern li a {
        font-size: 0.76rem;
        padding: 5px 6px;
    }
    .nav-list-modern li a.btn-register,
    .nav-list-modern li a.btn-appointment {
        font-size: 0.74rem;
        padding: 6px 10px;
    }
}

/* Mobile & Tablet Responsive Navigation Breakpoint (<= 1024px) */
@media (max-width: 1024px) {
    .nav-container {
        justify-content: space-between;
        padding: 8px 16px;
    }
    .mobile-menu-toggle {
        display: block !important;
    }
    .nav-list-modern {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: stretch;
        padding: 15px 20px;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        border-top: 1px solid #e2e8f0;
        border-bottom: 3px solid #0d9488;
        gap: 8px;
        z-index: 1001;
    }
    .nav-list-modern.active {
        display: flex !important;
    }
    .nav-list-modern li {
        width: 100%;
        white-space: normal !important;
    }
    .nav-list-modern li a {
        width: 100%;
        justify-content: flex-start;
        padding: 10px 16px;
        font-size: 0.9rem;
        border-radius: 8px;
        white-space: normal !important;
    }
    .nav-list-modern li a.btn-appointment,
    .nav-list-modern li a.btn-register {
        justify-content: center;
        margin-left: 0;
        margin-top: 4px;
        padding: 12px 20px;
        font-size: 0.9rem;
        border-radius: 8px;
        white-space: normal !important;
    }
}

/* ============================================================
   NEW MODERN HERO SECTION
   ============================================================ */
.hero-reference {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 102, 204, 0.85), rgba(0, 168, 150, 0.85));
}
.hero-content {
    position: relative;
    z-index: 2;
}
.btn-hero-solid {
    background: #fff;
    color: var(--blue);
    padding: 14px 32px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}
.btn-hero-solid:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}
.btn-hero-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-hero-outline:hover {
    background: #fff;
    color: var(--blue);
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.25rem; }
    .hero-desc { font-size: 1rem; }
    .hero-buttons { flex-direction: column; gap: 15px; width: 100%; max-width: 300px; margin: 0 auto; }
}

/* ============================================================
   GROWING COMMUNITY SECTION (Restore Missing)
   ============================================================ */
.community-section {
    position: relative;
    height: calc(40vh - 80px);
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
        padding: 30px 0 20px 0 !important;
    background: linear-gradient(135deg, #f0f7fa 0%, #e8f0fe 100%);
    z-index: 10;
}
.community-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 10px;
}

/* Ensure the hero and community height logic only applies on larger screens where it fits nicely */
@media (max-width: 991px) {
    .hero-reference {
        height: auto !important;
        min-height: auto !important;
        padding: 60px 0 40px 0 !important;
    }
    .community-section {
        height: auto !important;
        min-height: auto !important;
        padding: 40px 0 !important;

    }
}

.community-desc {
    text-align: center;
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
    height: auto !important;
}
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid rgba(0, 102, 204, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.stat-num {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--blue);
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--blue) 0%, #00a896 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label {
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 500;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .community-title {
        font-size: 1.8rem;
    }
    .stat-num {
        font-size: 2.5rem;
    }
}

/* ============================================================
   SCROLL ANIMATIONS (Restore Missing)
   ============================================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.is-visible,
.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 900px;
    animation: fadeIn 1s ease forwards;
}
.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
@media (min-width: 992px) {
    .hero-content {
        max-width: 1100px;
    }
    .hero-title {
        font-size: clamp(2.8rem, 4.5vw, 4rem);
        white-space: nowrap;
    }
}
.hero-subtitle {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -0.5px;
}
.hero-subtitle-small {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: -0.3px;
}
.hero-desc {
    font-size: 1.2rem;
    margin-bottom: 40px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero-countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 35px auto;
    flex-wrap: wrap;
}
.hero-countdown-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 16px 20px;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
}
.hero-countdown-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 204, 0, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}
.hero-countdown-card:hover {
    transform: translateY(-5px) scale(1.03);
    border-color: rgba(255, 204, 0, 0.4);
    box-shadow: 0 18px 40px rgba(255, 204, 0, 0.15), 0 0 1px rgba(255, 204, 0, 0.2);
}
.hero-countdown-card:hover::before {
    opacity: 1;
}
.hero-countdown-num {
    position: relative;
    font-size: 2.6rem;
    font-weight: 800;
    font-family: var(--font-head);
    color: #ffcc00;
    line-height: 1.1;
    margin-bottom: 4px;
    text-shadow: 0 2px 12px rgba(255, 204, 0, 0.4);
    z-index: 1;
}
.hero-countdown-label {
    position: relative;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    z-index: 1;
}

/* ============================================================
   FIX DESKTOP HERO & COMMUNITY LAYOUT 
   ============================================================ */
.hero-reference {
    height: auto !important;
    min-height: 80vh !important;
    padding: 140px 0 100px 0 !important;
}
.community-section {
    height: auto !important;
    min-height: auto !important;
    padding: 80px 0 !important;
    margin-bottom: 40px !important;
}
.stats-grid {
    gap: 50px !important;
    max-width: 900px !important;
}
.stat-card {
    padding: 50px 30px !important;
    border-radius: 20px !important;
    border: none !important;
    background: #ffffff !important;
    box-shadow: 0 15px 35px rgba(0, 102, 204, 0.08) !important;
}
.stat-card:hover {
    box-shadow: 0 20px 45px rgba(0, 102, 204, 0.15) !important;
}
.stat-num {
    font-size: 4rem !important;
    font-weight: 900 !important;
    margin-bottom: 15px !important;
}
.stat-label {
    font-size: 1.25rem !important;
}

@media (max-width: 991px) {
    .hero-reference {
        padding: 80px 0 60px 0 !important;
        min-height: 60vh !important;
    }
    .community-section {
        padding: 50px 0 !important;
    }
    .stat-card {
        padding: 30px 20px !important;
    }
    .stat-num {
        font-size: 3rem !important;
    }
}

/* ============================================================
   FULL SCREEN HERO 
   ============================================================ */
.hero-reference {
    height: auto !important;
    min-height: calc(100vh - 90px) !important;
    padding: 60px 0 !important;
}

@media (max-width: 991px) {
    .hero-reference {
        min-height: calc(100vh - 100px) !important;
        padding: 40px 0 !important;
    }
}

/* ============================================================
   GLOBAL 3D BACKGROUND & GLASSMORPHISM UPDATE
/* ============================================================
   HERO RESPONSIVE TWEAKS (MOBILE)
   ============================================================ */
@media (max-width: 768px) {
    .nav-container {
        padding: 5px 15px !important;
    }
    .mobile-menu-toggle {
        margin-bottom: 0 !important;
    }
    .hero-reference {
        min-height: auto !important;
        padding: 40px 20px 30px 20px !important;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
    }
    
    .hero-subtitle {
        font-size: 1.1rem !important;
        margin-bottom: 15px !important;
    }
    
    .hero-subtitle-small {
        font-size: 0.95rem !important;
        margin-bottom: 15px !important;
    }
    
    .hero-desc {
        font-size: 0.95rem !important;
        margin-bottom: 25px !important;
    }
    
    .hero-buttons {
        flex-direction: column !important;
        width: 100% !important;
        gap: 15px !important;
    }
    
    .btn-hero-solid, .btn-hero-outline {
        width: 100% !important;
        text-align: center !important;
        padding: 12px 20px !important;
    }
    
    .hero-countdown-container {
        gap: 6px !important;
        margin: 20px auto !important;
        flex-wrap: nowrap !important;
        max-width: 300px !important; /* Limit width to keep it centered and elegant */
    }
    .hero-countdown-card {
        padding: 8px 4px !important;
        flex: 1 1 0 !important;
        max-width: 68px !important;
        border-radius: 10px !important;
    }
    .hero-countdown-num {
        font-size: 1.25rem !important;
    }
    .hero-countdown-label {
        font-size: 0.5rem !important;
        letter-spacing: 0.5px !important;
    }
}

/* ============================================================
   GLOBAL DISCOUNT TICKER MARQUEE
   ============================================================ */
.discount-ticker-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, #fff980 0%, #ffcc00 100%);
    border-bottom: 2px solid #e6b800;
    z-index: 10;
    padding: 5px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.discount-ticker {
    display: inline-flex;
    white-space: nowrap;
    animation: discountMarquee 25s linear infinite;
}
.discount-ticker:hover {
    animation-play-state: paused;
}
.discount-ticker-item {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0c3e66;
    padding-right: 100px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 12px;
}
.discount-ticker-item i {
    color: #b0171d;
    animation: pulseIcon 1.5s infinite ease-in-out;
}
.discount-ticker-item .highlight {
    background: #b0171d;
    color: #fff;
    padding: 1.5px 8px;
    border-radius: 4px;
    font-weight: 900;
    box-shadow: 0 2px 5px rgba(176, 23, 29, 0.3);
    display: inline-block;
}
.discount-ticker-item .date-highlight {
    color: #b0171d;
    font-weight: 900;
}
@keyframes discountMarquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-33.3333%, 0, 0); }
}
@keyframes pulseIcon {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}
