/* =============================================
   IUMS 2026 Style Congress Website
   Color Palette & Variables - Açık Tonlar
============================================= */
:root {
    --primary-blue: #4a90a4;
    --primary-orange: #f7931e;
    --primary-green: #7bc043;
    --primary-purple: #9b59b6;
    --primary-cyan: #5dade2;
    --dark-blue: #2c3e50;
    --light-bg: #f0f4f8;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --gradient-hero: linear-gradient(135deg, #5dade2 0%, #48c9b0 50%, #7bc043 100%);
}

/* =============================================
   Global Styles
============================================= */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.6;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary-blue);
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* =============================================
   Top Bar
============================================= */
.top-bar {
    background: var(--dark-blue);
    color: var(--white);
    padding: 8px 0;
    font-size: 0.9rem;
}

.top-bar a {
    color: var(--white);
    margin-right: 15px;
}

.top-bar a:hover {
    color: var(--primary-orange);
}

.top-bar .social-icons a {
    font-size: 1.1rem;
    margin-left: 10px;
}

/* =============================================
   Navigation
============================================= */
header.sticky-top {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
}

.navbar {
    background: var(--white) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
}

.navbar-brand img {
    height: 60px;
    transition: height 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    height: 45px;
}

.navbar .nav-link {
    color: var(--primary-blue) !important;
    font-weight: 600;
    padding: 10px 18px !important;
    position: relative;
}

.navbar .nav-link::after {
    display: none;
}

.navbar .nav-link:not(.dropdown-toggle):hover::after,
.navbar .nav-link:not(.dropdown-toggle).active::after {
    display: none;
}

/* Dropdown toggle için ::after'ı devre dışı bırak */
.registration-dropdown .nav-link.dropdown-toggle::after,
.about-dropdown .nav-link.dropdown-toggle::after {
    position: relative;
    bottom: auto;
    left: auto;
    width: auto;
    height: auto;
    background: none;
}

.navbar .nav-link:hover {
    color: var(--primary-orange) !important;
}

.btn-preregister {
    background: var(--primary-orange);
    color: var(--white) !important;
    padding: 10px 22px !important;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid var(--primary-orange);
    transition: all 0.3s ease;
}

.btn-preregister:hover {
    background: #e8850f;
    border-color: #e8850f;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(247, 147, 30, 0.4);
}

.btn-register {
    background: var(--primary-orange);
    color: var(--white) !important;
    padding: 12px 28px !important;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    transition: all 0.3s ease;
}

.btn-register:hover {
    background: #e8850f;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(247, 147, 30, 0.4);
}

/* =============================================
   Modern Registration & About Dropdown
============================================= */

/* Dropdown toggle ok işareti */
.registration-dropdown .dropdown-toggle::after,
.about-dropdown .dropdown-toggle::after {
    content: '';
    display: inline-block !important;
    margin-left: 6px;
    vertical-align: middle;
    border-top: 5px solid var(--primary-blue);
    border-right: 5px solid transparent;
    border-bottom: 0;
    border-left: 5px solid transparent;
    transition: border-top-color 0.3s ease;
    position: relative;
    width: auto;
    height: auto;
    background: none;
    bottom: auto;
    left: auto;
    pointer-events: none;
}

.registration-dropdown:hover .dropdown-toggle::after,
.registration-dropdown.show .dropdown-toggle::after,
.about-dropdown:hover .dropdown-toggle::after,
.about-dropdown.show .dropdown-toggle::after {
    transform: none;
    border-top-color: var(--primary-orange);
}

/* Dropdown için ayrı alt çizgi */
.registration-dropdown .nav-link::before,
.about-dropdown .nav-link::before {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 18px;
    width: 0;
    height: 3px;
    background: var(--primary-orange);
    transition: width 0.3s ease;
}

.registration-dropdown:hover .nav-link::before,
.about-dropdown:hover .nav-link::before {
    width: calc(100% - 36px);
}

/* Hover ile dropdown açılması - Desktop only */
@media (min-width: 992px) {
    .nav-item.dropdown {
        position: relative;
    }

    /* İki nav-link arasında nötr boşluk: mouse buradan geçerken
       hiçbir nav-link hover olmaz, hover-state karışması önlenir. */
    .navbar-nav > .nav-item.dropdown {
        margin: 0 4px;
    }

    /* Dropdown menü nav-link'e doğrudan bitişik (gap yok = hover stabil).
       İçte 18px padding ile menü öğeleri biraz aşağıda başlar. */
    .dropdown-menu-modern {
        display: block;
        opacity: 0;
        visibility: hidden;
        margin-top: 0 !important;
        top: 100%;
        transform: translateY(0);
        padding-top: 18px !important;
        /* Açılış 80ms gecikmeli (hover-intent: yan menüden hızlı geçerken
           anlık dokunuşlar dropdown'u tetiklemez, titreme önler).
           Kapanış 320ms gecikmeli (yan menüye smooth geçiş). */
        transition: opacity 0.18s ease 0.08s, visibility 0s linear 0.4s;
    }

    .nav-item.dropdown:hover > .dropdown-menu-modern,
    .nav-item.dropdown:focus-within > .dropdown-menu-modern,
    .nav-item.dropdown.show > .dropdown-menu-modern {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.18s ease 0.08s, visibility 0s;
    }

    /* Triangle (::before) ve eski köprü (::after) kaldırıldı:
       hover-area kesintisi yaratıyorlardı. */
    .dropdown-menu-modern::before,
    .dropdown-menu-modern::after {
        display: none !important;
    }
}

.dropdown-menu-modern {
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 12px;
    min-width: 280px;
    margin-top: 0 !important;
    background: var(--white);
    overflow: visible;
    top: 100%;
}

/* Görünmez köprü - menü ile link arası boşluk için */
.dropdown-menu-modern::after {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

.dropdown-menu-modern::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--white);
}

.dropdown-menu-modern .dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    transition: all 0.2s ease;
    margin-bottom: 4px;
    background: transparent;
}

.dropdown-menu-modern .dropdown-item:last-child {
    margin-bottom: 0;
}

.dropdown-menu-modern .dropdown-item:hover {
    background: linear-gradient(135deg, rgba(74, 144, 164, 0.08) 0%, rgba(93, 173, 226, 0.08) 100%);
    transform: translateX(4px);
}

.dropdown-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-cyan) 100%);
    color: var(--white);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.dropdown-item-icon.pre-reg-icon {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #ffb347 100%);
}

.dropdown-menu-modern .dropdown-item:hover .dropdown-item-icon {
    transform: scale(1.08);
    box-shadow: 0 4px 15px rgba(74, 144, 164, 0.3);
}

.dropdown-menu-modern .dropdown-item:hover .dropdown-item-icon.pre-reg-icon {
    box-shadow: 0 4px 15px rgba(247, 147, 30, 0.3);
}

.dropdown-item-content {
    display: flex;
    flex-direction: column;
}

.dropdown-item-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.3;
}

.dropdown-item-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* =============================================
   Hero Section & Carousel
============================================= */
.hero-section {
    min-height: 550px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-bottom: 40px;
}

/* Arka Plan Resimleri Container */
.hero-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-bg.active {
    opacity: 1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(30, 80, 120, 0.75) 0%, rgba(30, 80, 120, 0.4) 35%, transparent 60%);
}

/* Carousel Styles */
#heroCarousel {
    position: relative;
    z-index: 1;
}

#heroCarousel .carousel-inner {
    overflow: visible;
}

#heroCarousel .carousel-item {
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
}

.min-vh-hero {
    min-height: 550px;
    padding: 80px 0;
}

/* Carousel Indicators */
#heroCarousel .carousel-indicators {
    bottom: 30px;
    z-index: 15;
}

#heroCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    border: 2px solid rgba(255,255,255,0.8);
    margin: 0 6px;
    transition: all 0.3s ease;
}

#heroCarousel .carousel-indicators button.active {
    background-color: var(--primary-orange);
    border-color: var(--primary-orange);
    transform: scale(1.2);
}

/* Carousel Controls */
#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    opacity: 0.7;
    transition: all 0.3s ease;
}

#heroCarousel .carousel-control-prev {
    left: 20px;
}

#heroCarousel .carousel-control-next {
    right: 20px;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    background: var(--primary-orange);
    opacity: 1;
}

#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

/* Hero Floating Images */
.hero-images {
    position: relative;
    height: 550px;
    z-index: 2;
}

/* Slide 1 - Congress Visual */
.slide-1-images {
    display: flex;
    align-items: center;
    justify-content: center;
}

.congress-visual {
    position: relative;
    width: 100%;
    height: 450px;
}

.congress-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 350px;
    filter: drop-shadow(0 10px 40px rgba(232, 146, 75, 0.3));
    animation: pulse 4s ease-in-out infinite;
}

/* Floating dots for slide 1 */
.floating-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(232, 146, 75, 0.6);
    border-radius: 50%;
    animation: floatDot 5s ease-in-out infinite;
}

.floating-dot.dot-1 {
    top: 15%;
    left: 20%;
    width: 25px;
    height: 25px;
    animation-delay: 0s;
}

.floating-dot.dot-2 {
    bottom: 25%;
    right: 15%;
    width: 18px;
    height: 18px;
    animation-delay: 1.5s;
}

.floating-dot.dot-3 {
    top: 55%;
    left: 8%;
    width: 15px;
    height: 15px;
    animation-delay: 3s;
}

@keyframes floatDot {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-15px) scale(1.1); opacity: 0.9; }
}

/* Slide 2 - Promastigote SVGs - Artık burada */

/* Ana SVG Promastigote - Gerçekçi Stil */
.promastigote-svg {
    position: absolute;
    width: 400px;
    height: 600px;
    top: -80px;
    right: -20px;
    animation: promasMain 6s ease-in-out infinite;
}

.promastigote-svg.main-promas {
    filter: drop-shadow(0 10px 40px rgba(232, 146, 75, 0.4));
}

/* Flagellum (Kuyruk) Animasyonu */
.flagellum {
    animation: flagWave 3s ease-in-out infinite;
}

.flagellum-glow {
    animation: flagWave 3s ease-in-out infinite;
    filter: blur(2px);
}

@keyframes flagWave {
    0%, 100% { 
        d: path("M200 80 C220 60 240 30 250 -20 C260 -70 250 -100 240 -130"); 
    }
    33% { 
        d: path("M200 80 C225 55 245 25 255 -25 C265 -75 252 -105 242 -130"); 
    }
    66% { 
        d: path("M200 80 C215 62 235 35 245 -15 C255 -65 248 -98 238 -130"); 
    }
}

/* Gövde Pulse Animasyonu - Daha Belirgin */
.body-glow {
    animation: bodyPulse 4s ease-in-out infinite;
}

@keyframes bodyPulse {
    0%, 100% { opacity: 0.25; stroke-width: 25; }
    50% { opacity: 0.4; stroke-width: 35; }
}

/* Body Outer Glow */
.body-outer {
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.3));
}

/* Nucleus Animasyonu - Daha Belirgin */
.nucleus {
    animation: nucleusPulse 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(232,160,32,0.5));
}

@keyframes nucleusPulse {
    0%, 100% { fill: rgba(232,160,32,0.4); }
    50% { fill: rgba(232,160,32,0.7); }
}

/* Kinetoplast Animasyonu - Daha Belirgin */
.kinetoplast {
    animation: kinetoplastPulse 2.5s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.4));
}

@keyframes kinetoplastPulse {
    0%, 100% { fill: rgba(255,255,255,0.3); }
    50% { fill: rgba(255,255,255,0.5); }
}

/* Orbit Line Animasyonu */
.orbit-line {
    animation: orbitRotate 20s linear infinite;
    transform-origin: center;
}

.orbit-line-2 {
    animation: orbitRotate 30s linear infinite reverse;
    transform-origin: center;
}

@keyframes orbitRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Ana Gövde Hareket Animasyonu */
@keyframes promasMain {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-8px) rotate(0.5deg); }
    66% { transform: translateY(4px) rotate(-0.3deg); }
}

/* Küçük Yüzen Promastigoteler */
.floating-promas {
    position: absolute;
    filter: drop-shadow(0 5px 20px rgba(232, 146, 75, 0.3));
}

.floating-promas.promas-1 {
    width: 130px;
    height: 200px;
    top: 10px;
    left: -40px;
    animation: floatPromas1 6s ease-in-out infinite;
}

.floating-promas.promas-2 {
    width: 100px;
    height: 160px;
    bottom: 60px;
    left: 20px;
    animation: floatPromas2 7s ease-in-out infinite;
    opacity: 0.85;
}

.floating-promas.promas-3 {
    width: 85px;
    height: 135px;
    bottom: 20px;
    right: -30px;
    animation: floatPromas3 5s ease-in-out infinite;
    opacity: 0.75;
}

@keyframes floatPromas1 {
    0%, 100% { transform: translateY(0) rotate(-10deg); }
    50% { transform: translateY(-20px) rotate(-5deg); }
}

@keyframes floatPromas2 {
    0%, 100% { transform: translateY(0) rotate(15deg); }
    50% { transform: translateY(-15px) rotate(20deg); }
}

@keyframes floatPromas3 {
    0%, 100% { transform: translateY(0) rotate(5deg); }
    50% { transform: translateY(-25px) rotate(-5deg); }
}

/* 4. Küçük Promastigote */
.floating-promas.promas-4 {
    width: 60px;
    height: 90px;
    top: 200px;
    left: -20px;
    animation: floatPromas4 8s ease-in-out infinite;
    opacity: 0.5;
}

@keyframes floatPromas4 {
    0%, 100% { transform: translateY(0) rotate(-15deg) scale(1); }
    50% { transform: translateY(-30px) rotate(-8deg) scale(1.05); }
}

/* Eski floating-img stilleri (geriye uyumluluk) */
.floating-img {
    position: absolute;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2));
}

.floating-img.img-1 {
    width: 200px;
    top: 20px;
    right: 50px;
    animation: float1 6s ease-in-out infinite;
}

.floating-img.img-2 {
    width: 140px;
    top: 180px;
    right: 200px;
    animation: float2 5s ease-in-out infinite;
    opacity: 0.9;
}

.floating-img.img-3 {
    width: 100px;
    bottom: 50px;
    right: 80px;
    animation: float3 7s ease-in-out infinite;
    opacity: 0.8;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-5deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(8deg); }
}

.hero-meta-line {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 12px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.hero-date {
    background: var(--primary-orange);
    display: inline-block;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff !important;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #ff8c00 !important;
    margin-bottom: 15px;
    font-weight: 800;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.hero-location {
    font-size: 1.3rem;
    color: #ffffff !important;
    margin-bottom: 30px;
    font-weight: 700;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}

.hero-location i {
    color: #ff8c00 !important;
    margin-right: 8px;
}

.hero-buttons .btn {
    padding: 15px 35px;
    font-weight: 700;
    border-radius: 50px;
    margin-right: 15px;
    margin-bottom: 10px;
}

.btn-primary-custom {
    background: var(--primary-orange);
    border: none;
    color: var(--white);
}

.btn-primary-custom:hover {
    background: #e8850f;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(247, 147, 30, 0.4);
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline-custom:hover {
    background: var(--white);
    color: var(--primary-blue);
}

/* =============================================
   Hero Countdown Badge
============================================= */
.hero-countdown {
    position: absolute;
    bottom: 50px;
    right: 40px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 18px 28px;
    text-align: center;
    min-width: 130px;
}

.hero-countdown-number {
    font-size: 3rem;
    font-weight: 900;
    color: #f7931e;
    line-height: 1;
    letter-spacing: -1px;
}

.hero-countdown-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 6px;
    font-weight: 600;
}


/* =============================================
   Congress Theme Banner
============================================= */
.congress-theme-banner {
    background: linear-gradient(135deg, #1a3a5c 0%, #2c5282 50%, #1e4a6e 100%);
    padding: 50px 0;
    position: relative;
    overflow: hidden;
}

.congress-theme-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.theme-content {
    position: relative;
    z-index: 1;
}

.theme-title {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}

.theme-highlight {
    color: #f7931e;
    display: block;
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.theme-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
    font-weight: 400;
}

.theme-subtitle strong {
    color: #7bc043;
    font-weight: 700;
}

.theme-divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #f7931e, #7bc043);
    margin: 20px auto;
    border-radius: 2px;
}

.theme-invitation {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    margin: 0;
}

@media (max-width: 768px) {
    .theme-title {
        font-size: 1.6rem;
    }
    .theme-highlight {
        font-size: 1.8rem;
    }
    .theme-subtitle {
        font-size: 1.1rem;
    }
    .congress-theme-banner {
        padding: 35px 0;
    }
}

/* =============================================
   Venue Banner
============================================= */
.venue-banner {
    position: relative;
    overflow: hidden;
    margin-top: 40px;
}

.venue-backdrop {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 50px 0;
    position: relative;
}

.venue-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 40, 70, 0.72) 0%, rgba(30, 60, 100, 0.55) 100%);
}

.venue-content {
    position: relative;
    z-index: 1;
}

.venue-label {
    display: inline-block;
    background: var(--primary-orange);
    color: #fff;
    padding: 7px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
}

.venue-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
    letter-spacing: 1px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
}

.venue-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 28px;
    font-weight: 400;
}

.venue-slogan {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    max-width: 700px;
    margin: 0 auto 24px;
    line-height: 1.6;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.5);
    font-style: italic;
}

.venue-btn {
    display: inline-block;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.venue-btn:hover {
    background: #fff;
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

@media (max-width: 767px) {
    .venue-title {
        font-size: 1.6rem;
    }
    .venue-subtitle {
        font-size: 1rem;
    }
}

/* =============================================
   Promastigote Countdown Section
============================================= */
.promas-countdown-section {
    position: relative;
    background: linear-gradient(135deg, #0d2137 0%, #1a3a5c 50%, #0f2a45 100%);
    padding: 80px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

/* Floating promastigotes */
.promas-float {
    position: absolute;
    opacity: 0.85;
    filter: drop-shadow(0 0 12px rgba(93,173,226,0.3));
}

.pf-1 { width: 70px; top: 10%; left: 5%;  animation: swimFloat 7s ease-in-out infinite; }
.pf-2 { width: 55px; top: 55%; left: 12%; animation: swimFloat 9s ease-in-out infinite 1.5s; transform: rotate(20deg); }
.pf-3 { width: 85px; top: 5%;  left: 22%; animation: swimFloat 6s ease-in-out infinite 0.8s; transform: rotate(-15deg); }
.pf-4 { width: 60px; top: 60%; right: 10%;animation: swimFloat 8s ease-in-out infinite 2s; transform: rotate(10deg); }
.pf-5 { width: 75px; top: 8%;  right: 18%;animation: swimFloat 10s ease-in-out infinite 0.3s; transform: rotate(-20deg); }
.pf-6 { width: 50px; top: 50%; right: 5%; animation: swimFloat 7.5s ease-in-out infinite 1s; transform: rotate(30deg); }

@keyframes swimFloat {
    0%   { transform: translateY(0)   rotate(var(--r, 0deg)) scale(1); }
    33%  { transform: translateY(-18px) rotate(var(--r, 0deg)) scale(1.04); }
    66%  { transform: translateY(10px)  rotate(var(--r, 0deg)) scale(0.97); }
    100% { transform: translateY(0)   rotate(var(--r, 0deg)) scale(1); }
}

/* Center countdown */
.promas-center {
    position: relative;
    z-index: 10;
    text-align: center;
}

.promas-cd-title {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.promas-cd-number {
    font-size: 6rem;
    font-weight: 900;
    color: #f7931e;
    line-height: 1;
    text-shadow: 0 0 30px rgba(247,147,30,0.5);
    font-family: 'Segoe UI', sans-serif;
}

.promas-cd-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-top: 8px;
    margin-bottom: 20px;
}

.promas-cd-date {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.promas-cd-date i {
    color: #f7931e;
}

@media (max-width: 767px) {
    .promas-cd-number { font-size: 4rem; }
    .pf-3, .pf-5 { display: none; }
}

/* =============================================
   Countdown Section
============================================= */
.countdown-section {
    background: linear-gradient(135deg, #2c5282 0%, #1a3a5c 100%);
    padding: 60px 0;
    position: relative;
    z-index: 10;
}

.countdown-container {
    text-align: center;
}

.countdown-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px 30px;
    min-width: 120px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.countdown-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #f7931e;
    line-height: 1;
    font-family: 'Segoe UI', sans-serif;
}

.countdown-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.countdown-separator {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1;
}

.countdown-date {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-top: 35px;
    margin-bottom: 0;
}

.countdown-date i {
    color: #f7931e;
}

@media (max-width: 768px) {
    .countdown-timer {
        gap: 10px;
    }
    
    .countdown-item {
        padding: 20px 15px;
        min-width: 80px;
    }
    
    .countdown-number {
        font-size: 2.2rem;
    }
    
    .countdown-separator {
        font-size: 2rem;
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .countdown-separator {
        display: none;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 15px 10px;
    }
    
    .countdown-number {
        font-size: 1.8rem;
    }
}

/* =============================================
   Why Attend Section
============================================= */
.section-padding {
    padding: 80px 0;
    position: relative;
    z-index: 1;
    background: var(--white);
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    position: relative;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 50px;
}

.feature-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: var(--white);
}

.feature-icon.blue { background: var(--primary-blue); }
.feature-icon.orange { background: var(--primary-orange); }
.feature-icon.green { background: var(--primary-green); }
.feature-icon.purple { background: var(--primary-purple); }
.feature-icon.cyan { background: var(--primary-cyan); }

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-blue);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* =============================================
   About Congress Section
============================================= */
.about-section {
    background: var(--light-bg);
    position: relative;
    z-index: 1;
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.about-image img {
    width: 100%;
    height: auto;
}

.about-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.discipline-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    margin: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

.discipline-badge.bacteriology { background: rgba(0, 166, 81, 0.15); color: var(--primary-green); }
.discipline-badge.virology { background: rgba(102, 45, 145, 0.15); color: var(--primary-purple); }
.discipline-badge.mycology { background: rgba(0, 174, 239, 0.15); color: var(--primary-cyan); }

/* =============================================
   Newsletter Section
/* =============================================
   Newsletter Section
============================================= */
.newsletter-section {
    background: linear-gradient(135deg, #48c9b0 0%, #5dade2 100%);
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

.newsletter-section h3 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 10px;
}

.newsletter-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .form-control {
    border-radius: 50px;
    padding: 15px 25px;
    border: none;
    font-size: 1rem;
}

.newsletter-form .btn {
    border-radius: 50px;
    padding: 15px 35px;
    background: var(--primary-orange);
    border: none;
    font-weight: 700;
}

.newsletter-form .btn:hover {
    background: #e8850f;
}

/* =============================================
   Testimonials Section
============================================= */
.testimonials-section {
    background: var(--white);
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background: var(--light-bg);
    border-radius: 20px;
    padding: 30px;
    margin: 15px;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 25px;
    font-size: 4rem;
    color: var(--primary-orange);
    opacity: 0.3;
    line-height: 1;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-top: 30px;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-blue);
}

.testimonial-role {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* =============================================
   Social Section
============================================= */
.social-section {
    background: #f8f9fa;
    padding: 60px 0;
}

.social-title {
    color: var(--primary-blue);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.social-subtitle {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.social-subtitle strong {
    color: var(--primary-blue);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    color: var(--primary-blue);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--primary-blue);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(74, 144, 164, 0.3);
}

/* =============================================
   Site Footer
============================================= */
.site-footer {
    background: #f8f9fa;
    color: #333;
    padding: 60px 0 0;
    border-top: 3px solid var(--primary-orange);
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.footer-desc {
    color: var(--primary-orange);
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-info {
    color: #555;
    line-height: 2;
    font-size: 0.95rem;
}

.footer-heading {
    color: var(--primary-blue);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-orange);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 12px;
    color: #555;
    font-size: 0.95rem;
}

.footer-contact a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--primary-orange);
}

.footer-organizer {
    margin-bottom: 15px;
}

.footer-logo {
    max-width: 200px;
    height: auto;
    transition: all 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.02);
}

.footer-bottom {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2c3e50 100%);
    padding: 20px 0;
    margin-top: 50px;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-bottom-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-bottom-logo {
    height: 35px;
    width: auto;
}

.footer-bottom-address {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    padding-left: 15px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-bottom-right span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

.footer-bottom-right .separator {
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-right a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-bottom-right a:hover {
    color: var(--primary-orange);
}

@media (max-width: 991px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-bottom-left {
        justify-content: center;
    }
    
    .footer-bottom-address {
        border-left: none;
        padding-left: 0;
        width: 100%;
        margin-top: 10px;
    }
    
    .footer-bottom-right {
        justify-content: center;
    }
}

/* =============================================
   Responsive Styles
============================================= */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-section {
        min-height: unset;
        text-align: center;
    }

    .min-vh-hero {
        min-height: unset;
        padding: 50px 0 80px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .hero-date {
        font-size: 0.9rem;
        padding: 8px 18px;
        margin-bottom: 12px;
    }

    .hero-location {
        font-size: 1rem;
        margin-bottom: 18px;
    }

    .hero-buttons .btn {
        padding: 11px 22px;
        font-size: 0.9rem;
        margin-right: 8px;
    }

    .hero-bg::after {
        background: rgba(20, 60, 100, 0.6);
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid #eee;
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .navbar .nav-link {
        padding: 12px 0 !important;
    }

    .navbar .nav-link::after {
        display: none;
    }

    #heroCarousel .carousel-indicators {
        bottom: 10px;
    }

    .hero-countdown {
        bottom: 12px;
        left: unset;
        right: 12px;
        padding: 10px 16px;
        min-width: 90px;
    }

    .hero-countdown-number {
        font-size: 1.8rem;
    }

    .hero-countdown-label {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }

    .min-vh-hero {
        padding: 35px 0 70px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stats-container {
        margin: 0 15px;
    }
}

/* =============================================
   Animations
============================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Smooth scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ── Participant Avatar Dropdown ─────────────────────────────────────────── */
.participant-avatar-btn {
    display: flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #1a3c6e, #2c7a9a);
    border: none; border-radius: 50px; padding: 7px 14px 7px 7px;
    cursor: pointer; transition: all 0.2s; color: #fff;
}
.participant-avatar-btn:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(26,60,110,0.3); }
.participant-avatar-btn::after { display: none; }

.participant-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,0.25);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; font-weight: 800; color: #fff; letter-spacing: 0.5px;
    flex-shrink: 0; overflow: hidden;
}
.participant-avatar-pic { background: transparent; border: 2px solid rgba(255,255,255,0.6); }
.participant-avatar-pic img { width: 100%; height: 100%; object-fit: cover; }
.participant-avatar-name {
    font-size: 0.85rem; font-weight: 700; color: #fff; max-width: 110px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.participant-chevron { font-size: 0.65rem; color: rgba(255,255,255,0.8); }

.participant-dropdown-menu {
    min-width: 240px; border-radius: 14px; border: none;
    box-shadow: 0 8px 40px rgba(0,0,0,0.14); padding: 8px 0; margin-top: 6px !important;
}
@media (max-width: 991px) {
    .participant-dropdown-menu {
        max-height: 80vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}
.participant-dropdown-header {
    display: flex; align-items: center; gap: 12px; padding: 14px 18px 10px;
}
.participant-dropdown-avatar {
    width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, #1a3c6e, #2c7a9a);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.9rem; font-weight: 800; color: #fff; overflow: hidden;
}
.participant-dropdown-avatar-pic { background: #e5e7eb; }
.participant-dropdown-avatar-pic img { width: 100%; height: 100%; object-fit: cover; }
.participant-dropdown-name { font-size: 0.9rem; font-weight: 700; color: #1a3c6e; line-height: 1.3; }
.participant-dropdown-email { font-size: 0.75rem; color: #6b7280; }

.participant-menu-item {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.88rem; color: #374151 !important; padding: 9px 18px;
    transition: background 0.15s;
}
.participant-menu-item i { width: 16px; color: #4a90a4; font-size: 0.95rem; }
.participant-menu-item:hover { background: #f0f6ff; color: #1a3c6e !important; }
.participant-logout { color: #dc2626 !important; }
.participant-logout i { color: #dc2626; }
.participant-logout:hover { background: #fef2f2 !important; }