/* ===================================
   SIMC 2026 - Modern Redesign
   Premium Mental Health Conference Website
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&display=swap');

/* ===================================
   CSS Variables - Design System
   =================================== */
:root {
    /* Primary Color Palette (Preserved) */
    --color-primary-1: #0D4995;
    --color-primary-2: #165D9F;
    --color-primary-3: #1F71A9;
    --color-primary-4: #2885B3;
    --color-primary-5: #3199BD;
    --color-primary-6: #3AADC7;
    --color-primary-7: #3DB7CB;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary-1) 0%, var(--color-primary-4) 50%, var(--color-primary-7) 100%);
    --gradient-hero: linear-gradient(180deg, rgba(13, 73, 149, 0.9) 0%, rgba(40, 133, 179, 0.7) 50%, rgba(61, 183, 203, 0.5) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 100%);
    --gradient-dark: linear-gradient(180deg, var(--color-primary-1) 0%, #061d3d 100%);

    /* Neutral Colors */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-gray-50: #fafafa;
    --color-gray-100: #f5f5f5;
    --color-gray-200: #eeeeee;
    --color-gray-300: #e0e0e0;
    --color-gray-400: #bdbdbd;
    --color-gray-500: #9e9e9e;
    --color-gray-600: #757575;
    --color-gray-700: #616161;
    --color-gray-800: #424242;
    --color-gray-900: #212121;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-bg-light: rgba(255, 255, 255, 0.25);
    --glass-bg-dark: rgba(0, 0, 0, 0.2);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: blur(20px);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(61, 183, 203, 0.4);
    --shadow-glow-strong: 0 0 60px rgba(61, 183, 203, 0.6);

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
    --font-size-7xl: 4.5rem;

    /* Line Heights */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Z-Index Scale */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal: 400;
    --z-tooltip: 500;
}

/* ===================================
   Reset & Base Styles
   =================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--leading-normal);
    color: var(--color-gray-800);
    background-color: var(--color-white);
    overflow-x: hidden;
    cursor: none;
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-primary-1);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s, border-color 0.2s;
    mix-blend-mode: difference;
}

.custom-cursor.active {
    width: 40px;
    height: 40px;
    background: rgba(61, 183, 203, 0.3);
    border-color: var(--color-primary-7);
}

.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--color-primary-7);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
}

/* Mouse Sparkle */
.mouse-sparkle {
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(61, 183, 203, 0.8) 0%, transparent 70%);
    animation: sparkle-fade 0.8s ease-out forwards;
}

@keyframes sparkle-fade {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2);
    }
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-3);
}

/* Selection */
::selection {
    background: var(--color-primary-5);
    color: var(--color-white);
}

/* ===================================
   Floating Stars Background
   =================================== */
.floating-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: var(--z-base);
    overflow: hidden;
}

.floating-star {
    position: absolute;
    opacity: 0.1;
    animation: float-star 15s ease-in-out infinite;
}

.star-1 {
    width: 60px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.star-2 {
    width: 40px;
    top: 30%;
    right: 10%;
    animation-delay: -3s;
}

.star-3 {
    width: 80px;
    top: 60%;
    left: 8%;
    animation-delay: -6s;
}

.star-4 {
    width: 50px;
    top: 75%;
    right: 15%;
    animation-delay: -9s;
}

.star-5 {
    width: 35px;
    top: 45%;
    left: 50%;
    animation-delay: -12s;
}

@keyframes float-star {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.05;
    }

    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.15;
    }
}

/* ===================================
   Header Navigation
   =================================== */
/* Header Sparks Background */
.header-sparks-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    pointer-events: none;
    z-index: 999;
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    padding: var(--space-4) var(--space-8);
    background: var(--color-primary-7);
    backdrop-filter: var(--glass-blur) saturate(180%);
    -webkit-backdrop-filter: var(--glass-blur) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition-base);
}

.main-header.scrolled {
    background: rgba(13, 73, 149, 0.95);
    padding: var(--space-3) var(--space-8);
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
}

.header-logo .logo-sakina {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    transition: var(--transition-base);
}

.header-logo .logo-sakina:hover {
    transform: scale(1.05);
}

/* Main Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.nav-menu>li>a {
    display: block;
    padding: var(--space-3) var(--space-4);
    color: var(--color-white);
    font-size: var(--font-size-sm);
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}

.nav-menu>li>a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary-7);
    transform: translateX(-50%);
    transition: var(--transition-base);
}

.nav-menu>li>a:hover::before {
    width: 80%;
}

.nav-menu>li>a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Submenu */
.has-submenu {
    position: relative;
}

.has-submenu>a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    margin-left: var(--space-2);
    transition: var(--transition-fast);
}

.has-submenu:hover>a::after {
    transform: rotate(-135deg) translateY(-2px);
}

.submenu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 220px;
    background: rgba(13, 73, 149, 0.98);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-xl);
    padding: var(--space-3);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.submenu li a {
    display: block;
    padding: var(--space-3) var(--space-4);
    color: var(--color-white);
    font-size: var(--font-size-sm);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.submenu li a:hover {
    background: rgba(255, 255, 255, 0.15);
    padding-left: var(--space-6);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.logo-seha {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.btn-register {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background: var(--gradient-primary);
    color: var(--color-white);
    font-weight: 600;
    font-size: var(--font-size-sm);
    letter-spacing: 0.02em;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md), 0 0 20px rgba(61, 183, 203, 0.3);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-register::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-register:hover::before {
    left: 100%;
}

.btn-register:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(61, 183, 203, 0.5);
}

.btn-register .btn-icon {
    width: 16px;
    height: 16px;
    animation: spin-slow 8s linear infinite;
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-3);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-white);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

@media screen and (max-width: 768px) {
    .hero-section {
        margin: 100px 0 0 0;
    }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Persistent first frame background - always visible under video */
    background-image: url('img/firstframe.webp');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
}

/* Hero Static Image Background (Screens <= 1440px) */
.hero-static-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    z-index: 1;
    display: block;
    /* Visible by default */
}

/* Hero Video Background (Screens > 1440px) */
.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    z-index: 2;
    display: none;
    /* Hidden by default */
}

/* Screen Size Dependent Visibility */
@media screen and (min-width: 1441px) {
    .hero-static-bg {
        display: none;
    }

    .hero-bg-video {
        display: block;
    }
}

/* Reset visibility for screens <= 1440px where scroll JS won't run */
@media screen and (max-width: 1440px) {
    .hero-fade-content {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }
}

@media (max-width: 768px) {
    .hero-bg-video {
        display: none;
    }

    .hero-background {
        background-image: url('img/banner-bg.webp') !important;
        background-position: left bottom !important;
        background-size: cover !important;
        opacity: 1 !important;
        z-index: 1;
    }

    /* Disable scroll effects on small screens */
    .hero-fade-content {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }

    /* Ensure logo and other specific transforms are reset */
    .hero-logo-wrapper.hero-fade-content,
    .hero-title.hero-fade-content,
    .hero-subtitle.hero-fade-content,
    .save-date-card.hero-fade-content,
    .countdown-container.hero-fade-content {
        transform: none !important;
    }
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

/* Scroll-Controlled Video Container */
.hero-video-wrapper {
    position: relative;
}

.hero-scroll-container {
    position: relative;
    /* Height is set dynamically via JS based on video duration */
}

.hero-section.pinned {
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 10;
}

/* Hero Content Fade Transitions - Base */
.hero-fade-content {
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Specific Motion Entrance Directions - Scattered/Random Feel */

/* Logo: Falls in from top-left with slight rotation */
.hero-logo-wrapper.hero-fade-content {
    transform: translate(-20vw, -50vh) rotate(-15deg) scale(0.8);
}

/* Title: Flies in from right */
.hero-title.hero-fade-content {
    transform: translate(20vw, -10vh) rotate(5deg) scale(1.1);
}

/* Subtitle: Flies in from left */
.hero-subtitle.hero-fade-content {
    transform: translate(-20vw, 0) rotate(-5deg);
}

/* Save Date: Floats up from bottom-left */
.save-date-card.hero-fade-content {
    transform: translate(-10vw, 20vh) rotate(10deg);
}

/* Countdown: Floats up from bottom-right */
.countdown-container.hero-fade-content {
    transform: translate(10vw, 20vh) rotate(-10deg);
}

/* Visible State - Reset Transform to Neutral */
/* Increased specificity to ensure override */
.hero-section .hero-fade-content.visible,
.hero-fade-content.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(0, 0) rotate(0) scale(1) !important;
    /* Slower, gentler ease-out curve, ensuring transform transitions too */
    transition: transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 1.5s cubic-bezier(0.2, 0.8, 0.2, 1),
        visibility 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Staggered Delays for Cinematic Effect */
.hero-logo-wrapper.visible {
    transition-delay: 0s;
}

.hero-title.visible {
    transition-delay: 0.1s;
}

.hero-subtitle.visible {
    transition-delay: 0.2s;
}

.save-date-card.visible {
    transition-delay: 0.3s;
}

.countdown-container.visible {
    transition-delay: 0.4s;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: var(--space-8);
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: var(--space-6);
    /* Reduced gap */
    align-items: center;
}

/* Hero Content Columns */
.hero-main {
    max-width: 550px;
    /* Reduced to make room */
    margin-right: auto;
    margin-left: 0;
    /* Align strictly left */
}

/* Hero Video Showcase */
.hero-video-showcase {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 15px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-width: 480px;
    /* Significantly increased from 300px */
}

.hero-video-showcase .video-title {
    color: var(--color-white);
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-video-showcase video {
    width: 100%;
    border-radius: 10px;
    display: block;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: var(--space-8);
    }

    .hero-main {
        margin: 0 auto;
        max-width: 800px;
    }

    .hero-video-showcase {
        max-width: 400px;
        width: 100%;
    }

    .countdown-container {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        flex-direction: row;
        justify-content: center;
    }
}

.hero-main {

    max-width: 900px;
    margin: 0 auto;
}

/* Hero Logo */
.hero-logo-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-8);
}

.hero-logo {
    max-width: 320px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
    animation: float 6s ease-in-out infinite;
    opacity: 1;
    visibility: visible;
    display: block;
}



@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Hero Title */
.hero-title {
    margin-bottom: var(--space-6);
}

.title-line {
    display: block;
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 800;
    color: var(--color-white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: var(--leading-tight);
}

/* .title-line.gradient-text {
    background: linear-gradient(146deg, rgb(255, 255, 255), #3db7cb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
} */

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    margin-bottom: var(--space-10);
}

.hero-subtitle strong {
    font-size: 1.3rem;
    position: relative;
    color: var(--color-accents-2);
    /* Ensure height is retained to minimize layout shift, though difficult with variable text length.
       The parent container usually centers it. */
}

/* Blinking Cursor attached to the pseudo-element */
.hero-subtitle strong.typewriter-active::after {
    content: '|';
    position: absolute;
    right: -12px;
    color: var(--color-primary-1);
    animation: blinkCursor 0.8s step-end infinite;
}

.hero-subtitle strong.typing-done::after {
    display: none;
    /* Hide cursor when done */
}

@keyframes blinkCursor {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Save the Date Card */
.save-date-card {
    position: relative;
    display: inline-block;
    background: linear-gradient(146deg, rgb(13 73 149), #3db7cb);
    border-radius: var(--radius-2xl);
    padding: var(--space-8) var(--space-10);
    box-shadow: 0 20px 60px rgba(13, 73, 149, 0.4);
    transition: var(--transition-base);
    text-align: center;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.save-date-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 80px rgba(13, 73, 149, 0.5);
}

.card-glow {
    display: none;
}

.save-date-content {
    position: relative;
    text-align: center;
}

/* Header row: star icon + title inline */
.save-date-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.save-date-header .star-icon {
    width: 32px;
    height: 32px;
    animation: spin-slow 10s linear infinite;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.save-date-title {
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 700;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0;
}

/* Date number - its own row */
.date-number {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    color: var(--color-white);
    line-height: 1;
    margin-bottom: var(--space-3);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Month/Year and Location in same row */
.date-location-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.date-text {
    font-size: var(--font-size-base);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.date-separator {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--font-size-lg);
}

.location-text {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-white);
    font-size: var(--font-size-base);
    font-weight: 500;
}

.location-text i {
    color: var(--color-primary-7);
}

/* Countdown Timer */
.countdown-container {
    position: relative;
    /* Fixed overlap by using grid layout */
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 10;
    margin-left: auto;
}

.countdown-box {
    position: relative;
    width: 140px;
    /* Adjusted size to fit layout better */
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    /* Glassmorphism Styles */
    background-image: linear-gradient(146deg, rgb(13 73 149), #3db7cb);
    /* Darker background for contrast */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 5px solid rgb(255, 255, 255);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);

    /* Initial Transition for hover effects */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Alternating Border Colors */
.countdown-box:nth-child(odd) {
    border-color: var(--color-primary-6);
    /* Cyan-ish */
    box-shadow: 0 0 15px rgba(58, 173, 199, 0.3), inset 0 0 20px rgba(58, 173, 199, 0.1);
}

.countdown-box:nth-child(even) {
    border-color: var(--color-primary-4);
    /* Blue-ish */
    box-shadow: 0 0 15px rgba(40, 133, 179, 0.3), inset 0 0 20px rgba(40, 133, 179, 0.1);
}

/* Hover Effect */
.countdown-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow-strong);
}

.countdown-box .number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    /* Adjusted for container size */
    font-weight: 900;
    letter-spacing: 2px;
    margin: 0;

    /* Gradient Text Logic */
    background: linear-gradient(135deg, #ffffff 0%, var(--color-primary-7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Text Drop Shadow for legibility */
    filter: drop-shadow(0 0 5px rgba(61, 183, 203, 0.5));
}

/* Make the even numbers slightly different color */
.countdown-box:nth-child(even) .number {
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-primary-6) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.countdown-box .label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gray-300);
    margin-top: 10px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* --- CUSTOM LAYOUT (1100px - 1440px) --- */
@media (min-width: 1100px) and (max-width: 1440px) {
    .hero-content {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: var(--space-6);
        align-items: start;
        justify-items: start;
    }

    .hero-main {
        grid-column: 1;
        grid-row: 1;
        max-width: 100%;
        margin-right: 20px;
    }

    .hero-video-showcase {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        max-width: 500px;
        /* Limit width */
        margin-top: 20px;
        justify-self: start;
    }

    .countdown-container {
        grid-column: 2;
        grid-row: 1 / span 2;
        position: relative;
        align-self: center;
        margin-left: auto;
        flex-direction: column;
        /* Ensure vertical stack if desired, or keep default */
    }

    .hero-section {
        min-height: 130vh;
    }
}

/* --- RESPONSIVE DESIGN --- */
/* For iPad (approx 1024px) and Mobile: Switch to HORIZONTAL */
@media (max-width: 1100px) {
    .hero-section.pinned {
        height: 150vh;
    }

    @media (max-width: 768px) {
        .hero-section.pinned {
            height: 175vh;
        }
    }

    .countdown-container {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        flex-direction: row;
        flex-wrap: wrap;
        /* Allows wrapping on very small phones */
        justify-content: center;
        margin-top: var(--space-8);
        width: 100%;
    }

    .countdown-box {
        width: 120px;
        /* Slightly smaller on tablets */
        height: 120px;
    }

    .countdown-box .number {
        font-size: 2.2rem;
    }
}

/* Mobile specific tweaks */
@media (max-width: 600px) {
    .countdown-box {
        width: 44%;
        /* Two per row on mobile */
        height: 110px;
    }

    .countdown-box .number {
        font-size: 2rem;
    }

    .countdown-box .label {
        font-size: 0.7rem;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-white);
    font-size: var(--font-size-sm);
    opacity: 0.8;
    animation: bounce-slow 2s ease-in-out infinite;
}

.scroll-arrow {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-arrow i {
    animation: scroll-bounce 1.5s ease-in-out infinite;
}

@keyframes bounce-slow {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

@keyframes scroll-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }
}

/* ===================================
   Section Styles (Shared)
   =================================== */
.section-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-8);
}

.section-header {
    margin-bottom: var(--space-12);
}

.section-header.centered {
    text-align: center;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}

.section-badge.light {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.section-badge .badge-icon {
    width: 16px;
    height: 16px;
    animation: spin-slow 8s linear infinite;
}

.section-badge span {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.section-title.large {
    font-size: clamp(3rem, 6vw, 5rem);
    letter-spacing: 0.1em;
}

.section-description {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 900px;
    margin: 0 auto;
    line-height: var(--leading-relaxed);
}

.section-description strong {
    color: var(--color-primary-7);
}

.section-description em {
    color: var(--color-primary-7);
    font-style: italic;
}

/* ===================================
   Welcome Section
   =================================== */
.welcome-section {
    padding: var(--space-24) 0;
    position: relative;
    overflow: hidden;
    background: url('img/welcome-bg.webp') no-repeat center center;
    background-size: cover;
}

/* White Overlay for text readability */
.welcome-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgb(255 255 255 / 0%) 0%, rgb(255 255 255 / 75%) 50%, rgb(255 255 255 / 31%) 100%);
    z-index: 0;
}

.welcome-section .section-container {
    position: relative;
    z-index: 1;
}

.welcome-section .section-badge {
    background: var(--color-primary-1);
}

.welcome-section .section-badge span {
    color: var(--color-white);
}

/* Animated Welcome Title */
.welcome-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.welcome-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    color: var(--color-primary-1);
    line-height: 1.2;
    margin-top: var(--space-6);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-3);
}

.welcome-title .title-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.welcome-title .title-word:nth-child(1) {
    animation-delay: 0.1s;
}

.welcome-title .title-word:nth-child(2) {
    animation-delay: 0.2s;
}

.welcome-title .title-word:nth-child(3) {
    animation-delay: 0.3s;
}

.welcome-title .title-word:nth-child(4) {
    animation-delay: 0.4s;
}

.welcome-title .title-word.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.welcome-title .title-word.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {

    0%,
    100% {
        opacity: 0.5;
        transform: scaleX(0.8);
    }

    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

.welcome-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    align-items: start;
}

@media (min-width: 1024px) {
    .welcome-grid {
        grid-template-columns: 1fr;
    }
}

/* Welcome Message Card */
.welcome-message-card {
    background: var(--color-white);
    border-radius: var(--radius-3xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-gray-200);
    position: relative;
    overflow: hidden;
}

.welcome-message-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.message-header {
    margin-bottom: var(--space-6);
}

.message-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-primary-1);
    line-height: var(--leading-tight);
}

.title-accent {
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    margin-top: var(--space-4);
    border-radius: var(--radius-full);
}

.message-body {
    color: var(--color-gray-700);
    line-height: var(--leading-relaxed);
}

.message-body p {
    margin-bottom: var(--space-4);
    text-align: justify;
}

.message-body .intro-text {
    font-size: var(--font-size-lg);
    color: var(--color-primary-2);
}

.message-body strong {
    color: var(--color-primary-1);
    font-weight: 600;
}

.message-body em {
    color: var(--color-primary-3);
    font-style: italic;
}

.closing-text {
    font-weight: 600;
    color: var(--color-primary-2);
    margin-top: var(--space-6) !important;
}

.signature {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-primary-1);
    font-style: italic;
    margin-top: var(--space-4) !important;
    margin-bottom: 0 !important;
}

/* Doctors Showcase */
.doctors-showcase {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-8);
    opacity: 1;
    visibility: visible;
}

.doctor-card {
    text-align: center;
    padding: var(--space-6);
    background: var(--color-white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-gray-200);
    transition: var(--transition-base);
    opacity: 1;
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.doctor-image-container {
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-4);
}

.image-frame {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    padding: 4px;
    background: var(--gradient-primary);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
}

.doctor-card:hover .image-frame {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.doctor-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-white);
}


.doctor-card:hover .doctor-glow {
    opacity: 1;
    width: 130%;
    height: 130%;
}

.doctor-star {
    position: absolute;
    top: 0;
    right: 0;
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 0 8px rgba(61, 183, 203, 0.8));
    animation: spin-slow 6s linear infinite;
}

.doctor-info {
    margin-top: var(--space-2);
}

.doctor-name {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-primary-1);
    margin-bottom: var(--space-2);
    transition: var(--transition-base);
}

.doctor-card:hover .doctor-name {
    color: var(--color-primary-3);
}

.doctor-title {
    font-size: var(--font-size-base);
    color: var(--color-gray-600);
    font-weight: 500;
}

/* ===================================
   Objectives Section
   =================================== */
.objectives-section {
    padding: var(--space-24) 0;
    position: relative;
    overflow: hidden;
    background-color: var(--color-primary-1);
    /* Fallback */
}

/* Objectives Video Background */
.objectives-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.objectives-video-bg .bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    /* Slight transparency to blend or just direct video */
}

.objectives-video-bg .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark overlay to ensure text readability */
    background: linear-gradient(180deg, #04152b 0%, rgb(13 73 149 / 0%) 50%, rgb(13 73 149 / 48%) 100%);
    z-index: 1;
}



.objectives-section .section-container {
    position: relative;
    z-index: 1;
}

/* North Star Container */

.star-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.objectives-star {
    width: 200px;
    height: 200px;
    filter: drop-shadow(0 0 40px rgba(61, 183, 203, 0.6));
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.star-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: ring-pulse 4s ease-in-out infinite;
}

.ring-1 {
    width: 80%;
    height: 80%;
    animation-delay: 0s;
}

.ring-2 {
    width: 100%;
    height: 100%;
    animation-delay: 0.5s;
}

.ring-3 {
    width: 120%;
    height: 120%;
    animation-delay: 1s;
}

@keyframes ring-pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

/* Objectives Grid */
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.objective-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    position: relative;
    overflow: hidden;
    transition: var(--transition-base);
    opacity: 1;
}

.objective-card::before {
    content: attr(data-number);
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    font-size: var(--font-size-4xl);
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
}

.objective-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-base);
}

.objective-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(61, 183, 203, 0.5);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.objective-card:hover::before {
    color: rgba(61, 183, 203, 0.3);
}

.objective-card:hover::after {
    transform: scaleX(1);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    box-shadow: 0 4px 15px rgba(61, 183, 203, 0.3);
    transition: var(--transition-base);
}

.objective-card:hover .card-icon {
    transform: scale(1.1) rotate(360deg);
}

.card-icon .icon-star {
    width: 24px;
    height: 24px;
}

.card-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-3);
    line-height: var(--leading-snug);
}

.card-description {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.85);
    line-height: var(--leading-relaxed);
}

/* ===================================
   Topics Section
   =================================== */
.topics-section {
    padding: var(--space-24) 0;
    position: relative;
    overflow: hidden;
    /* Fixed Background Image */
    background: url('img/topics-bg.webp') no-repeat center center fixed;
    background-size: cover;
}

/* Overlay for Topics Section */
.topics-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(61, 183, 203, 0.9) 0%, rgb(58 173 199 / 53%) 100%);
    z-index: 0;
}

/* Hide Network Background Canvas as we are using an image now */
.network-bg {
    display: none;
}

.topics-section .section-container {
    position: relative;
    z-index: 1;
}

.topics-wrapper {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: var(--space-8);
    align-items: start;
}

/* Topics Navigation */
.topics-nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.topic-tab {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-5) var(--space-6);
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-xl);
    color: var(--color-primary-1);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-align: left;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.topic-tab:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.topic-tab.active {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: translateX(12px);
}

.tab-icon {
    width: 20px;
    height: 20px;
    opacity: 0.5;
    transition: var(--transition-base);
}

.topic-tab.active .tab-icon {
    opacity: 1;
    animation: spin-slow 6s linear infinite;
}

.topic-tab:hover .tab-icon {
    opacity: 0.8;
}

/* Topics Content Area */
.topics-content-area {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-xl);
    min-height: 400px;
}

.topic-panel {
    display: none;
    /* Explicitly hide as per user request */
}

.btn-view-bio {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: transparent;
    border: 2px solid var(--color-primary-1);
    color: var(--color-primary-1);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.btn-view-bio:hover {
    background: var(--color-primary-1);
    color: #fff;
    transform: translateY(-2px);
}

.btn-view-bio i {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.btn-view-bio:hover i {
    transform: translateX(4px);
}

/* ===================================
   Magical Contact Page
   =================================== */
.contact-section-magical {
    padding: 80px 20px;
    background: radial-gradient(circle at top right, rgba(13, 73, 149, 0.1), transparent 40%),
        radial-gradient(circle at bottom left, rgba(61, 183, 203, 0.1), transparent 40%);
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    max-width: 1100px;
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 50px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.contact-heading {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.contact-subheading {
    color: var(--color-gray-600);
    margin-bottom: 40px;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-control {
    width: 100%;
    padding: 15px 0;
    font-size: 16px;
    color: var(--color-primary-1);
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(13, 73, 149, 0.3);
    outline: none;
    transition: all 0.3s;
}

.form-control~label {
    position: absolute;
    top: 15px;
    left: 0;
    color: #999;
    transition: all 0.3s;
    pointer-events: none;
}

.form-control:focus~label,
.form-control:valid~label {
    top: -10px;
    font-size: 12px;
    color: var(--color-accents-2);
}

.focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: 0.4s;
}

.form-control:focus~.focus-border,
.form-control:valid~.focus-border {
    width: 100%;
}

/* Submit Button */
.btn-submit-magical {
    position: relative;
    padding: 15px 40px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 10px 20px rgba(13, 73, 149, 0.3);
}

.btn-submit-magical:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(13, 73, 149, 0.4);
}

/* Alert Styles */
.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.alert-success {
    background: rgba(72, 187, 120, 0.2);
    color: #22543d;
    border: 1px solid rgba(72, 187, 120, 0.4);
}

.alert-important {
    background: rgba(245, 101, 101, 0.2);
    color: #742a2a;
    border: 1px solid rgba(245, 101, 101, 0.4);
}

/* Contact Info Sidebar */
.contact-info-magical {
    padding-left: 40px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
}

.info-item-m {
    display: flex;
    align-items: center;
    gap: 20px;
}

.info-item-m i {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-1);
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.info-item-m h3 {
    font-size: 0.9rem;
    color: var(--color-gray-600);
    margin-bottom: 5px;
}

.info-item-m p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary-1);
}

@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .contact-info-magical {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(200, 200, 200, 0.2);
        padding-top: 40px;
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .contact-info-magical {
        flex-direction: column;
    }
}

.topic-panel.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 3px solid var(--color-primary-7);
}

.panel-number {
    font-size: var(--font-size-3xl);
    font-weight: 900;
    color: var(--color-primary-7);
    opacity: 0.5;
}

.panel-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-primary-1);
}

.topic-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.topic-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--color-gray-50);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

.topic-list li:hover {
    background: var(--color-gray-100);
    transform: translateX(8px);
}

.list-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 4px;
    opacity: 1;
    background-color: #0d4995;
}

.topic-list li span {
    font-size: var(--font-size-base);
    color: var(--color-gray-700);
    line-height: var(--leading-relaxed);
}

/* ===================================
   Footer Section
   =================================== */
.main-footer {
    background: var(--gradient-dark);
    color: var(--color-white);
    padding: var(--space-20) 0 0;
    position: relative;
    overflow: hidden;
}

.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.footer-star {
    position: absolute;
    opacity: 0.1;
    animation: float-star 20s ease-in-out infinite;
}

.footer-star.star-1 {
    width: 80px;
    top: 10%;
    left: 5%;
}

.footer-star.star-2 {
    width: 50px;
    top: 50%;
    right: 10%;
    animation-delay: -7s;
}

.footer-star.star-3 {
    width: 40px;
    bottom: 20%;
    left: 50%;
    animation-delay: -14s;
}

/* Footer Sparks Canvas */
.footer-sparks-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-8);
    text-align: center;
    position: relative;
    z-index: 1;
}

/* CTA Section */
.footer-cta {
    margin-bottom: var(--space-16);
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--space-4);
    letter-spacing: 0.05em;
}

.cta-description {
    font-size: var(--font-size-lg);
    opacity: 0.9;
    margin-bottom: var(--space-8);
    line-height: var(--leading-relaxed);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-10);
    background: var(--color-white);
    color: var(--color-primary-1);
    font-size: var(--font-size-lg);
    font-weight: 700;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(255, 255, 255, 0.2);
    transition: var(--transition-base);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(255, 255, 255, 0.3);
}

.cta-button .btn-star {
    width: 20px;
    height: 20px;
    filter: brightness(0) saturate(100%) invert(24%) sepia(98%) saturate(1144%) hue-rotate(196deg) brightness(93%) contrast(95%);
    animation: spin-slow 6s linear infinite;
}

/* Event Info */
.footer-info {
    margin-bottom: var(--space-12);
}

.info-card {
    display: inline-flex;
    align-items: center;
    gap: var(--space-8);
    padding: var(--space-6) var(--space-10);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--glass-blur);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--color-primary-7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
}

.info-text {
    text-align: left;
}

.info-highlight {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 800;
}

.info-divider {
    display: flex;
    align-items: center;
}

.divider-star {
    width: 24px;
    height: 24px;
    opacity: 0.5;
}

/* Social Media */
.footer-social {
    margin-bottom: var(--space-10);
}

.social-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--space-6);
    letter-spacing: 0.05em;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
}

.social-link {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    color: var(--color-white);
    transition: var(--transition-base);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.social-link.facebook:hover {
    background: #1877f2;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-link.linkedin:hover {
    background: #0077b5;
}

/* Contact */
.footer-contact {
    margin-bottom: var(--space-10);
}

.footer-contact p {
    font-size: var(--font-size-base);
    opacity: 0.8;
    margin-bottom: var(--space-3);
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-primary-7);
    transition: var(--transition-base);
}

.contact-email:hover {
    color: var(--color-white);
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding: var(--space-6) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--space-6);
}

.footer-bottom p {
    font-size: var(--font-size-sm);
    opacity: 0.7;
}

/* ===================================
   Animations
   =================================== */
/* Elements are visible by default, GSAP will animate them */
[data-animate] {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ===================================
   Responsive Design
   =================================== */

/* Large Desktop */
@media (max-width: 1440px) {
    .hero-content {
        grid-template-columns: 1fr;
    }

    .countdown-container {
        position: static;
        transform: none;
        margin-top: var(--space-12);
        display: flex;
        justify-content: center;
    }
}

/* Desktop/Laptop */
@media (max-width: 1200px) {
    .objectives-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .welcome-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .doctors-showcase {
        flex-direction: row;
        justify-content: center;
    }
}

/* Tablet */
@media (max-width: 1024px) {
    .topics-wrapper {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }

    .topics-nav {
        flex-direction: column;
        gap: var(--space-3);
    }

    .topic-tab {
        width: 100%;
        min-width: auto;
        justify-content: flex-start;
    }

    .topic-tab.active {
        transform: translateX(8px);
    }

    .topic-tab:hover {
        transform: translateX(4px);
    }
}

/* Tablet and iPad (Mobile Header Style) */
@media (max-width: 1024px) {
    .main-header {
        padding: var(--space-3) var(--space-4);
    }

    .header-container {
        flex-wrap: wrap;
        gap: var(--space-4);
    }

    .main-nav {
        order: 3;
        flex-basis: 100%;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: var(--space-4);
        background: rgba(13, 73, 149, 0.98);
        border-radius: var(--radius-xl);
        margin-top: var(--space-3);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu>li>a {
        padding: var(--space-4);
    }

    .submenu {
        position: static;
        transform: none;
        margin-top: var(--space-2);
        opacity: 1;
        visibility: visible;
        display: none;
    }

    .objectives-grid {
        grid-template-columns: 1fr;
    }

    .star-wrapper {
        width: 200px;
        height: 200px;
    }

    .objectives-star {
        width: 120px;
        height: 120px;
    }

    .info-card {
        flex-direction: column;
        gap: var(--space-4);
    }

    .info-divider {
        display: none;
    }

    .doctors-showcase {
        flex-direction: column;
    }

    /* Hide scroll indicator on mobile */
    .scroll-indicator {
        display: none;
    }

    /* Ensure hero logo is visible on mobile */
    .hero-logo {
        display: block !important;
        max-width: 200px;
        margin: 0 auto var(--space-6);
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    :root {
        --font-size-base: 0.9375rem;
    }

    .section-container {
        padding: 0 var(--space-4);
    }

    .hero-logo {
        max-width: 220px;
    }

    .save-date-card {
        padding: var(--space-6);
    }

    .countdown-card {
        padding: var(--space-4);
        min-width: auto;
        width: 100%;
    }

    .countdown-value {
        font-size: var(--font-size-2xl);
    }

    .countdown-item {
        min-width: 50px;
        padding: var(--space-2);
    }

    .welcome-message-card,
    .topics-content-area {
        padding: var(--space-6);
    }

    .objective-card {
        padding: var(--space-4);
    }

    .image-frame {
        width: 150px;
        height: 150px;
    }

    .cta-button {
        padding: var(--space-4) var(--space-6);
        font-size: var(--font-size-base);
    }

    .social-link {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-lg);
    }
}

/* Very Small Mobile */
@media (max-width: 360px) {
    .countdown-grid {
        flex-wrap: wrap;
        gap: var(--space-2);
    }

    .countdown-separator {
        display: none;
    }

    .countdown-item {
        width: calc(50% - var(--space-2));
    }
}

/* Inner Banner Styles */
.inner-banner {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px;
    /* Match header height */
}

.inner-banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.inner-banner-bg .banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
}

.inner-banner-bg .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
}

.inner-banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.inner-banner-content .page-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: capitalize;
    background: linear-gradient(135deg, #fff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.inner-banner-content .breadcrumb {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.9);
}

.inner-banner-content .breadcrumb a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.inner-banner-content .breadcrumb a:hover {
    color: var(--color-primary-7);
}

.inner-banner-content .breadcrumb .separator {
    margin: 0 10px;
    opacity: 0.7;
}

.inner-banner-content .breadcrumb .current-page {
    opacity: 0.9;
    font-weight: 500;
}

/* TBA Section Styles */
.tba-section {
    padding: 120px 0;
    background: #f8f9fa;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tba-content {
    text-align: center;
    max-width: 600px;
    padding: 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.tba-content h2 {
    font-size: 2.5rem;
    color: var(--color-primary-1);
    margin-bottom: 20px;
}

.tba-content p {
    font-size: 1.2rem;
    color: var(--color-gray-600);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .inner-banner {
        height: 300px;
        margin-top: 180px;
    }

    .inner-banner-content .page-title {
        font-size: 2.5rem;
    }
}

/* ===================================
   Dynamic Doctors Grid System
   =================================== */

/* Grid Container */
/* Grid Container - Using Flexbox for centered orphans */
.doctors-grid-layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    /* Explicitly ensure cards stretch to same height */
    gap: var(--space-8);
    padding: var(--space-8) 0;
    max-width: 1440px;
    margin: 0 auto;
}

/* Removed specific grid media queries as Flexbox handles wrapping naturally */
/* Mobile adjustment handled by global responsive traits or specific overrides if needed */
@media (max-width: 767px) {
    .doctors-grid-layout {
        padding: var(--space-4) 0;
    }
}

/* Doctor Card Design */
.doctor-card-modern {
    flex: 1 1 280px;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    /* height: 100%; Removed to allow align-items: stretch to control height */
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.doctor-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(61, 183, 203, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.card-image-wrapper {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(13, 73, 149, 0.1) 0%, rgba(0, 0, 0, 0.05) 100%);
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s ease;
}

.doctor-card-modern:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: var(--space-6);
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 1) 100%);
}

.card-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-primary-1);
    margin-bottom: var(--space-2);
    line-height: 1.3;
    min-height: 2.6em;
    /* Accommodates 2 lines (1.3 * 2) */
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary-7);
    margin-bottom: var(--space-4);
    min-height: 2.5em;
    /* Reserve space for at least 2 lines of title */
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.card-org {
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: transparent;
    border: 2px solid var(--color-primary-1);
    color: var(--color-primary-1);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.btn-view-bio:hover {
    background: var(--color-primary-1);
    color: #fff;
    transform: translateY(-2px);
}

.btn-view-bio i {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.btn-view-bio:hover i {
    transform: translateX(4px);
}


/* Bio Modal Styles */
.bio-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: var(--space-4);
}

.bio-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.bio-modal-container {
    width: 100%;
    max-width: 800px;
    background: #fff;
    border-radius: var(--radius-3xl);
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.bio-modal-overlay.active .bio-modal-container {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-gray-700);
    z-index: 10;
    transition: all 0.2s ease;
}

.modal-close-btn:hover {
    background: var(--color-primary-1);
    color: #fff;
    transform: rotate(90deg);
}

.bio-modal-content {
    overflow-y: auto;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--color-gray-300) transparent;
}

.bio-modal-header {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--space-8);
    padding: var(--space-8);
    background: linear-gradient(135deg, rgba(13, 73, 149, 0.05) 0%, rgba(61, 183, 203, 0.1) 100%);
    align-items: center;
}

.bio-image-wrapper {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border: 4px solid #fff;
}

.bio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio-header-info {
    text-align: left;
}

.bio-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-primary-1);
    margin-bottom: var(--space-2);
    line-height: 1.1;
}

.bio-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary-6);
    margin-bottom: var(--space-1);
}

.bio-org {
    font-size: 1.1rem;
    color: var(--color-gray-600);
    font-style: italic;
}

.bio-modal-body {
    padding: var(--space-8);
}

.bio-divider {
    height: 4px;
    width: 60px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin-bottom: var(--space-6);
}

.bio-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-gray-800);
    text-align: justify;
    white-space: pre-wrap;
    /* Preserves whitespace and newlines */
}

/* Mobile Modal Adjustments */
@media (max-width: 768px) {
    .bio-modal-header {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-4);
        padding: var(--space-6);
    }

    .bio-image-wrapper {
        margin: 0 auto;
        width: 140px;
        height: 140px;
    }

    .bio-header-info {
        text-align: center;
    }

    .bio-name {
        font-size: 1.75rem;
    }

    .bio-text {
        text-align: left;
        font-size: 1rem;
    }

    .bio-modal-body {
        padding: var(--space-6);
    }

    .bio-divider {
        margin: 0 auto var(--space-6) auto;
    }
}