@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&family=Roboto+Mono:wght@400;700&display=swap');

/* --- THEME VARIABLES --- */
:root {
    --font-primary: 'Poppins', sans-serif;
    --font-mono: 'Roboto Mono', monospace;

    /* Light Theme */
    --bg-color: #f4f7f9;
    --bg-secondary-color: #ffffff;
    --text-primary-color: #2c3e50;
    --text-secondary-color: #7f8c8d;
    --accent-color: #055844;
    --accent-hover-color: #0493f1;
    --border-color: #e0e6ed;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    --glow-color: rgba(52, 152, 219, 0.5);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body.dark-theme {
    /* Dark Theme */
    --bg-color: #1a1a2e;
    --bg-secondary-color: #16213e;
    --text-primary-color: #e0e6ed;
    --text-secondary-color: #94a3b8;
    --accent-color: #00fddc;
    --accent-hover-color: #50fa7b;
    --border-color: #2a3b5c;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --glow-color: rgba(0, 253, 220, 0.4);
    --glass-bg: rgba(22, 33, 62, 0.2);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* --- BASE & RESET --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-primary-color);
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

/* --- UTILITIES --- */
.content-section { padding: 60px 5%; position: relative; z-index: 5; }
.section-title { text-align: center; font-size: clamp(1.8rem, 5vw, 2.5rem); font-weight: 700; margin-bottom: 40px; color: var(--text-primary-color); }
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 999; opacity: 0; pointer-events: none; transition: opacity 0.4s ease-in-out; }
.overlay.active { opacity: 1; pointer-events: auto; }
.animate-on-scroll { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.is-hidden { display: none !important; }

/* --- HEADER & NAVIGATION --- */
.main-header { position: fixed; top: 10px; left: 10px; right: 10px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border: 1px solid var(--border-color); border-radius: 50px; padding: 8px 15px; display: flex; align-items: center; justify-content: space-between; z-index: 1000; box-shadow: var(--card-shadow); transition: all 0.3s ease; }
.main-header.scrolled { top: 10px; padding: 4px 15px; background: rgba(255, 255, 255, 0.3); }
body.dark-theme .main-header.scrolled { background: rgba(22, 33, 62, 0.5); }
.logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.floating-nav { position: fixed; top: 0; right: -100%; width: 70%; max-width: 300px; height: 100vh; background: var(--bg-secondary-color); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px; transition: right 0.4s ease-in-out; box-shadow: -10px 0 30px rgba(0,0,0,0.1); z-index: 1000; }
.floating-nav.active { right: 0; }
.nav-link { padding: 15px 25px; font-size: 1.2rem; text-decoration: none; color: var(--text-secondary-color); font-weight: 600; border-radius: 30px; transition: all 0.3s ease; }
.nav-link:hover, .nav-link.active { background: var(--accent-color); color: var(--bg-secondary-color); }
body.dark-theme .nav-link:hover, body.dark-theme .nav-link.active { color: #1a1a2e; }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* New Register Button Style */
.register-btn-header {
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease-out;
    border: none;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-hover-color));
    color: var(--bg-color); /* White text on gradient for light theme */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.dark-theme .register-btn-header {
    color: #1a1a2e; /* Dark text on bright gradient for dark theme */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.register-btn-header:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 25px var(--glow-color);
}

.mobile-menu-toggle { display: block; background: none; border: none; color: var(--text-primary-color); font-size: 1.5rem; cursor: pointer; z-index: 1001; }
.theme-switcher { display: flex; align-items: center; cursor: pointer; padding: 0 5px; }
.theme-switcher input { display: none; }
.slider { width: 50px; height: 26px; background-color: #ccc; border-radius: 26px; position: relative; transition: background-color 0.3s; }
.slider:before { content: ""; position: absolute; height: 20px; width: 20px; left: 3px; bottom: 3px; background-color: white; border-radius: 50%; transition: transform 0.3s; }
input:checked + .slider { background-color: var(--accent-hover-color); }
input:checked + .slider:before { transform: translateX(24px); }
/* --- New CSS-Based Logo --- */
.css-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    background: linear-gradient(45deg, #00c6ff, #0072ff);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

body.dark-theme .css-logo {
    background: linear-gradient(45deg, var(--accent-color), var(--accent-hover-color));
    color: var(--bg-color);
}

.logo-link:hover .css-logo {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 0 20px var(--glow-color);
}
/* Ensure both images are hidden by default, then show based on media query */


/* Show desktop logo on larger screens */
@media (min-width: 768px) {
    .logo-desktop {
        display: block; /* Show desktop logo */
    }
    .logo-mobile {
        display: none; /* Hide mobile logo */
    }
}

/* Show mobile logo on smaller screens */
@media (max-width: 767px) {
    .logo-desktop {
        display: none; /* Hide desktop logo */
    }
    .logo-mobile {
        display: block; /* Show mobile logo */
        width: 35px; /* Adjust size for mobile if needed */
        height: 35px;
    }
}

/* Hover effect applies to whichever logo is currently visible */
.logo-link:hover .logo-image {
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--glow-color);
}

/* --- BACKGROUNDS --- */
#particles-js { position: fixed; width: 100%; height: 100%; top: 0; left: 0; z-index: 1; }

/* --- HOME SECTION --- */
#home { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; position: relative; z-index: 2; padding: 20px; }
.main-title-container { perspective: 1000px; flex-grow: 1; display: flex; align-items: center; justify-content: center;}
.title-3d-wrapper { transform-style: preserve-3d; transition: transform 0.5s; }
.main-title { font-size: clamp(2.8rem, 10vw, 5rem); font-weight: 700; letter-spacing: -2px; transform: translateZ(20px); }
.subtitle { font-size: clamp(1.8rem, 7vw, 3rem); font-weight: 400; color: var(--accent-color); transform: translateZ(40px); }
.bottom-section { width: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 30px; padding: 40px 0 20px; }
#countdown { display: flex; gap: 15px; font-family: var(--font-mono); flex-wrap: wrap; justify-content: center; }
.time-box { position: relative; width: 75px; height: 75px; display: flex; align-items: center; justify-content: center; }
.time-text { text-align: center; }
.time-box span { font-size: 1.6rem; font-weight: 700; display: block; line-height: 1; color: var(--text-primary-color); }
.time-box .label { font-size: 0.7rem; text-transform: uppercase; color: var(--text-secondary-color); margin-top: 4px; }
.time-box svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.time-box svg circle { fill: none; stroke-width: 4; cx: 50%; cy: 50%; r: calc(50% - 4px); }
.progress-ring__bg { stroke: var(--border-color); opacity: 0.3; }
.progress-ring__fg { stroke: var(--accent-color); transition: stroke-dashoffset 0.35s; stroke-linecap: round; }
.register-btn-home { background: var(--accent-color); color: var(--bg-color); padding: 12px 30px; border-radius: 50px; font-size: 1rem; font-weight: 700; text-decoration: none; transition: all 0.3s ease; box-shadow: 0 5px 20px var(--glow-color); }
.register-btn-home:hover { background: var(--accent-hover-color); transform: translateY(-3px); }

/* --- ORGANIZING TEAM SECTION (MODIFIED) --- */
#organizers {
    padding-top: 60px;
    padding-bottom: 60px;
}

.organizer-main-title {
    font-size: clamp(1.1rem, 4vw, 1.4rem);
    font-weight: 600;
    color: var(--text-secondary-color);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.organizer-strip {
    background: var(--bg-secondary-color);
    border-radius: 15px;
    padding: 30px 40px;
    box-shadow: var(--card-shadow);
    max-width: 1000px;
    margin: 0 auto;
}

.logo-group {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 30px;
    flex-wrap: nowrap; /* Forces logos into a single row */
}

.organizer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.rounded-logo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid var(--border-color);
    padding: 8px;
    background-color: var(--bg-color);
    flex-shrink: 0; /* Prevents rounded logos from shrinking too much */
}

.department-logo {
    width: 250px;
    height: 150px;
    flex-shrink: 1; /* Allows department logo to shrink more if needed */
}

.organizer-strip-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.rounded-logo .organizer-strip-logo {
    border-radius: 50%;
    object-fit: cover;
}


@media (max-width: 767px) {
    .logo-group {
        /* flex-direction: column; REMOVED to keep logos in a row */
        gap: 20px; /* Adjusted gap for mobile single row view */
    }
    .rounded-logo {
        width: 100px; /* Adjusted size for mobile */
        height: 100px;
    }
    .department-logo {
        width: 180px; /* Adjusted size for mobile */
        height: 90px;
    }
    .organizer-strip {
        padding: 25px 15px; /* Added horizontal padding adjustment */
    }
}


/* --- ABOUT SECTION --- */
#about .about-container { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; max-width: 1200px; margin: 0 auto;}
#about .section-title { text-align: left; }
#about p { line-height: 1.8; color: var(--text-secondary-color); }
.gallery-section { width: 100%; height: 400px; overflow: hidden; position: relative; border-radius: 15px; transition: box-shadow 0.4s ease-in-out; }
.gallery-section:hover { box-shadow: 0 0 25px var(--glow-color); } /* MODIFIED: Added glow effect on hover */
.scroll-images { display: flex; flex-direction: column; animation: scroll-vertical 30s linear infinite; }
.gallery-section:hover .scroll-images { animation-play-state: paused; } /* MODIFIED: Pauses scrolling animation on hover */
.scroll-images img { width: 100%; height: auto; margin-bottom: 10px; }
@keyframes scroll-vertical { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }

/* --- SPONSORS SECTION (2x2 GRID) --- */
.sponsors-container { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 20px; 
    max-width: 800px; 
    margin: 0 auto; 
}
.sponsor-card { 
    background: var(--bg-secondary-color); 
    padding: 20px; 
    border-radius: 15px; 
    box-shadow: var(--card-shadow); 
    text-align: center; 
    transition: all 0.3s ease; 
    flex: 1 1 40%; 
    max-width: 280px; 
}
.sponsor-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 15px 40px rgba(0,0,0,0.1); 
}
body.dark-theme .sponsor-card:hover { 
    box-shadow: 0 0 25px var(--glow-color); 
}
.sponsor-card img { 
    max-width: 100%; 
    height: 50px; 
    object-fit: contain; 
    margin-bottom: 15px; 
}
.sponsor-card p { 
    font-weight: 600; 
    font-size: 1rem; 
}

/* --- THEMES SECTION (GRID GLASS LAYOUT) --- */
.themes-grid-container { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 20px; 
    max-width: 1200px; 
    margin: 0 auto; 
}
/* MODIFIED: Updated theme card styles for better hover effect and transparency */
.theme-card {
    position: relative;
    flex: 0 1 30%;
    max-width: 350px;
    min-width: 90px;
    aspect-ratio: 4 / 3;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--card-shadow);

    /* Enhanced Glassmorphism & Transitions */
    background: var(--glass-bg); /* This makes the card semi-transparent */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    /* Added 'background' to the transition for a smoother effect */
    transition: transform 0.4s ease, box-shadow 0.3s ease, background 0.4s ease;
}

.theme-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
    /* Make the background slightly more opaque on hover */
    background: rgba(255, 255, 255, 0.2);
}

body.dark-theme .theme-card:hover {
    box-shadow: 0 0 30px var(--glow-color);
    /* Adjust background for dark theme hover to be more opaque */
    background: rgba(22, 33, 62, 0.5);
}

.theme-card-bg { 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background-size: cover; 
    background-position: center; 
    transition: opacity 0.5s ease-out; 
    opacity: 0; /* Image is hidden by default */
}
.theme-card:hover .theme-card-bg { 
    opacity: 1; /* Image appears on hover (or tap on mobile) */
}
.theme-card::before { 
    content: ''; 
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%; 
    background: linear-gradient(to top, rgba(0,0,0,0.85) 10%, transparent 50%); 
    z-index: 1; 
    opacity: 0; 
    transition: opacity 0.5s ease-out; 
}
.theme-card:hover::before { 
    opacity: 1; 
}
.theme-content { 
    position: absolute; 
    inset: 0; 
    z-index: 2; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    padding: 10px; 
    transition: all 0.4s ease-out; 
}
.theme-card:hover .theme-content { 
    color: white; 
    transform: scale(1.05); 
}
.theme-content h3 { 
    font-size: clamp(0.7rem, 3.5vw, 1.4rem); 
    font-weight: 700; 
}
.theme-card[data-theme="0"] .theme-card-bg { background-image: url('images/logo/Artificial_Intelligence.jpeg'); }
.theme-card[data-theme="1"] .theme-card-bg { background-image: url('images/logo/health_biotech.jpeg'); }
.theme-card[data-theme="2"] .theme-card-bg { background-image: url('images/logo/smartcity_mobility.jpeg'); }
.theme-card[data-theme="3"] .theme-card-bg { background-image: url('images/logo/security_privacy.jpeg'); }
.theme-card[data-theme="4"] .theme-card-bg { background-image: url('images/logo/Sustain_agri.jpeg'); }

/* --- EVENT FLOW SECTION --- */
.vertical-timeline { position: relative; max-width: 800px; margin: 50px auto; }
.vertical-timeline::after { content: ''; position: absolute; width: 4px; background-color: var(--border-color); top: 0; bottom: 0; left: 10px; z-index: 1; border-radius: 2px; }
.timeline-item { padding: 10px 0 10px 50px; position: relative; width: 100%; }
.timeline-item::after { content: ''; position: absolute; width: 20px; height: 20px; background-color: var(--bg-secondary-color); border: 3px solid var(--border-color); top: 25px; left: 2px; border-radius: 50%; z-index: 2; transition: all 0.3s ease; }
.timeline-content { padding: 20px; background: var(--bg-secondary-color); position: relative; border-radius: 8px; box-shadow: var(--card-shadow); border: 1px solid var(--border-color); transition: all 0.3s ease; }
.timeline-item.upcoming .timeline-content, .timeline-item.upcoming::after { border-color: #3498db; }
.timeline-item.imminent .timeline-content, .timeline-item.imminent::after { border-color: #e74c3c; }
.timeline-item.dim { opacity: 0.6; }
.timeline-item.dim .timeline-content, .timeline-item.dim::after { box-shadow: none; }
.timeline-item.dim::after { background: var(--border-color); }
.timeline-content::before { content: " "; height: 0; position: absolute; top: 28px; width: 0; z-index: 1; border: medium solid var(--border-color); left: -16px; border-width: 8px 8px 8px 0; border-color: transparent var(--border-color) transparent transparent; transition: border-color 0.3s ease; }
.timeline-item.upcoming .timeline-content::before { border-color: transparent #3498db transparent transparent; }
.timeline-item.imminent .timeline-content::before { border-color: transparent #e74c3c transparent transparent; }

/* --- BOOKING SECTION (MODIFIED) --- */
#booking { 
    background: transparent; 
    text-align: center; 
    padding: 60px 5%;
}

#booking .section-content {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: var(--bg-secondary-color);
    border-radius: 15px;
    padding: 40px 20px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--card-shadow);
}

#booking .section-content::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    padding-bottom: 150%;
    background: conic-gradient(
        transparent, 
        var(--accent-color), 
        var(--accent-hover-color), 
        transparent 30%
    );
    z-index: -2;
    animation: rotate-gradient 4s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#booking .section-content:hover::before {
    opacity: 1;
}

#booking .section-content::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    right: 3px;
    bottom: 3px;
    background: var(--bg-secondary-color);
    z-index: -1;
    border-radius: 12px;
}

@keyframes rotate-gradient {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

#booking h2 { 
    font-size: clamp(1.5rem, 4vw, 2rem); 
    margin-bottom: 20px; 
}

.register-btn-bottom { 
    background: var(--accent-color); 
    color: var(--bg-color); 
    padding: 15px 40px; 
    border-radius: 50px; 
    font-size: 1.2rem; 
    font-weight: 700; 
    text-decoration: none; 
    transition: all 0.3s ease; 
    box-shadow: 0 5px 20px var(--glow-color); 
    display: inline-block; 
}

.register-btn-bottom:hover { 
    background: var(--accent-hover-color); 
    transform: translateY(-3px); 
}

/* --- TEAM SECTION --- */
.team-showcase-section { padding: 60px 0; text-align: center; }
.team-carousel-wrapper { position: relative; display: flex; align-items: center; gap: 10px; }
.team-arrow { display: none; }
.team-container { background: var(--bg-secondary-color); border: 1px solid var(--border-color); border-radius: 15px; padding: 25px; display: flex; flex-direction: column; gap: 20px; align-items: center; justify-content: flex-start; margin: 0 15px; box-shadow: var(--card-shadow); min-width: 320px; }
.team-container-title { font-size: 1.6rem; font-weight: 700; color: var(--accent-color); text-align: center; width: 100%; padding-bottom: 10px; border-bottom: 2px solid var(--border-color); }
.member-cards-wrapper { display: flex; gap: 25px; align-items: center; justify-content: center; flex-wrap: wrap; }
.member-marquee-container { width: 100%; overflow: hidden; cursor: grab; -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.member-marquee-content { display: inline-flex; align-items: flex-start; gap: 0; width: max-content; padding: 20px 0; animation: member-marquee 90s linear infinite; will-change: transform; }
.member-marquee-container:hover .member-marquee-content { animation-play-state: paused; }
@keyframes member-marquee { from { transform: translateX(0%); } to { transform: translateX(-50%); } }
@keyframes float-subtle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.member-card { text-align: center; transition: transform 0.4s ease; animation: float-subtle 6s ease-in-out infinite; flex-shrink: 0; }
.team-container > .member-cards-wrapper > .member-card:nth-child(2n) { animation-delay: -3s; }
.member-card:hover { animation-play-state: paused; transform: translateY(-10px) scale(1.05); }
.member-card img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; padding: 4px; background: linear-gradient(45deg, var(--accent-color), var(--accent-hover-color)); box-shadow: var(--card-shadow); }
.member-card p { font-weight: 700; font-size: 1.1rem; margin-top: 15px; margin-bottom: 5px; color: var(--text-primary-color); }
.member-card span { font-size: 0.9rem; font-weight: 600; color: var(--accent-color); }

/* --- STANDARD SECTION FOOTER --- */
#footer .footer-content-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 50px;
}

.footer-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-primary-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

.contact-info-group {
    margin-bottom: 30px;
}

.contact-line { 
    display: flex; 
    align-items: flex-start; 
    gap: 15px; 
    color: var(--text-secondary-color); 
    text-decoration: none; 
    margin-bottom: 20px;
}

.contact-line i { 
    font-size: 1.2rem; 
    color: var(--accent-color); 
    width: 20px; 
    text-align: center; 
    margin-top: 5px; 
}

.coordinator-details { 
    display: flex; 
    flex-direction: column; 
    gap: 4px; 
}

.coordinator-title { 
    color: var(--text-primary-color); 
    font-weight: 600; 
    font-size: 1.1rem;
}

.social-link { 
    transition: color 0.3s ease; 
    display: inline-flex;
}

.social-link:hover { 
    color: var(--accent-color); 
}

.student-coordinators-list { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.student-coordinator-card { 
    background: var(--bg-secondary-color); 
    border-radius: 12px; 
    padding: 15px; 
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

body.dark-theme .student-coordinator-card {
    background: var(--bg-color);
}

.student-coordinator-card .coordinator-name {
    font-weight: 600;
    font-size: 1rem; 
    color: var(--text-primary-color);
}

.student-coordinator-card .coordinator-phone {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-info { 
    display: flex; 
    align-items: flex-start; 
    gap: 15px; 
    margin-bottom: 20px; 
    color: var(--text-primary-color); 
}

.location-info p { 
    margin: 0; 
    color: var(--text-secondary-color); 
}

.map-embed-container { 
    position: relative; 
    width: 100%; 
    overflow: hidden; 
    border-radius: 15px; 
    padding-top: 75%; /* 4:3 Aspect Ratio */
    border: 1px solid var(--border-color); 
    box-shadow: var(--card-shadow);
}

.map-embed-container iframe { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    border: 0; 
}

#footer .footer-bottom { 
    max-width: 1200px;
    margin: 60px auto 0 auto;
    padding-top: 30px;
    text-align: center; 
    color: var(--text-secondary-color); 
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

#footer .footer-bottom a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

#footer .footer-bottom a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* --- Media query for footer columns --- */
@media (min-width: 992px) {
    #footer .footer-content-grid {
        grid-template-columns: 1.2fr 1fr;
    }
}
/* --- SCROLL TO TOP --- */
.scroll-to-top { position: fixed; bottom: 20px; right: 20px; width: 45px; height: 45px; background-color: var(--accent-color); color: var(--bg-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; text-decoration: none; z-index: 998; opacity: 0; pointer-events: none; transform: translateY(20px); transition: opacity 0.3s ease, transform 0.3s ease; }
.scroll-to-top.active { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-to-top:hover { background-color: var(--accent-hover-color); }
body.dark-theme .scroll-to-top { color: #1a1a2e; }

/* --- MEDIUM SCREENS (TABLETS) --- */
@media (min-width: 768px) {
    .content-section { padding: 80px 5%; }
    .mobile-menu-toggle { display: none; }
    .floating-nav { position: static; flex-direction: row; height: auto; width: auto; background: transparent; box-shadow: none; gap: 10px; }
    .nav-link { padding: 8px 18px; font-size: 1rem; }
    .bottom-section { flex-direction: row; justify-content: space-around; align-items: center; }
    .time-box { width: 90px; height: 90px; }
    .time-box span { font-size: 2rem; }
    #about .about-container { grid-template-columns: 1fr 1fr; }
    #about .section-title { text-align: center; }
    .vertical-timeline::after { left: 50%; margin-left: -2px; }
    .timeline-item { width: 50%; padding: 10px 40px; }
    .timeline-item.left { left: 0; }
    .timeline-item.right { left: 50%; }
    .timeline-item.left::after { right: -11.5px; left: auto; }
    .timeline-item.right::after { left: -11.5px; }
    .timeline-content::before { display: block; }
    .timeline-item.left .timeline-content::before { right: -16px; border-width: 8px 0 8px 8px; border-color: transparent transparent transparent var(--border-color); left:auto; }
    .timeline-item.right .timeline-content::before { left: -16px; border-width: 8px 8px 8px 0; border-color: transparent var(--border-color) transparent transparent; }
    .timeline-item.left.upcoming .timeline-content::before { border-color: transparent transparent transparent #3498db; }
    .timeline-item.right.upcoming .timeline-content::before { border-color: transparent #3498db transparent transparent; }
    .timeline-item.left.imminent .timeline-content::before { border-color: transparent transparent transparent #e74c3c; }
    .timeline-item.right.imminent .timeline-content::before { border-color: transparent #e74c3c transparent transparent; }
    .team-arrow { display: inline-flex; }
    .footer-content-wrapper { grid-template-columns: 1.2fr 1fr; padding: 40px; }
}

/* --- MOBILE VIEW ADJUSTMENTS --- */
@media (max-width: 767px) {
    /* Team Section Mobile Adjustments */
    .team-container {
        min-width: 280px; /* Reduced from 320px */
        padding: 20px;
    }
    .team-container-title {
        font-size: 1.4rem; /* Reduced from 1.6rem */
    }
    .member-card img {
        width: 80px; /* Reduced from 100px */
        height: 80px;
    }
    .member-card p {
        font-size: 1rem; /* Reduced from 1.1rem */
        margin-top: 12px;
    }
    .member-card span {
        font-size: 0.85rem; /* Reduced from 0.9rem */
    }
}


/* --- LARGE SCREENS (DESKTOPS) --- */
@media (min-width: 1024px) {
    .time-box { width: 100px; height: 100px; }
    .time-box span { font-size: 2.2rem; }
    .member-card img { width: 120px; height: 120px; }
}