/* --------------------
   General and Base Styles
   -------------------- */
   * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1868db 0%, #004aad 50%, #bf63f3 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(10px, 4vw, 20px); /* Fluid padding for smaller screens */
}

/* --------------------
   Header Styles
   -------------------- */
header {
    padding: clamp(2rem, 10vh, 5rem) 0; /* Fluid padding based on viewport height */
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 300"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23004aad;stop-opacity:0.8" /><stop offset="50%" style="stop-color:%23bf63f3;stop-opacity:0.9" /><stop offset="100%" style="stop-color:%2382b535;stop-opacity:0.8" /></linearGradient></defs><path fill="url(%23grad)" d="M0,100 C300,200 700,0 1000,100 L1000,300 L0,300 Z"/></svg>') no-repeat center center/cover;
    z-index: -1;
}

/* Hero CTA Styles */
.hero-cta {
    margin-top: clamp(1rem, 5vw, 2rem);
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-cta-button {
    display: inline-block;
    background: linear-gradient(45deg, #ffbd59, #82b535);
    color: #004aad;
    /* Use clamp() for fluid padding and font size */
    padding: clamp(1rem, 3vw, 1.2rem) clamp(2rem, 6vw, 2.5rem);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(1rem, 4vw, 1.3rem);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255,189,89,0.4);
    border: 3px solid rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.hero-cta-button::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.5s;
}

.hero-cta-button:hover::before {
    left: 100%;
}

.hero-cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(255,189,89,0.6);
    background: linear-gradient(45deg, #82b535, #ffbd59);
}

.cta-subtext {
    margin-top: clamp(0.5rem, 2vw, 1rem);
    margin-bottom: clamp(1rem, 5vw, 2rem);
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    opacity: 0.9;
    font-style: italic;
}

/* Logo Styles */
.logo-section {
    margin-bottom: clamp(1rem, 5vw, 2rem);
    animation: fadeInUp 1s ease-out;
}

.event-logo {
    /* Set max-width as a percentage of the container for fluidity */
    max-width: 80%;
    max-height: 150px;
    height: auto;
    width: auto;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

h1 {
    /* Use clamp() for responsive font sizing */
    font-size: clamp(2.5rem, 8vw, 3.5rem);
    font-weight: 700;
    margin-bottom: clamp(0.5rem, 2vw, 1rem);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.subtitle {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    margin-bottom: clamp(1rem, 5vw, 2rem);
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.date-location {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: clamp(0.75rem, 3vw, 1.5rem);
    display: inline-block;
    margin-top: clamp(0.5rem, 3vw, 1rem);
    animation: fadeInUp 1s ease-out 0.4s both;
    border: 1px solid rgba(255,255,255,0.2);
}

/* --------------------
   Main Content Styles
   -------------------- */
.main-content {
    background: white;
    margin-top: -5vh; /* Fluid margin for better spacing */
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

.section {
    padding: clamp(2rem, 8vw, 3rem) 0;
}

.section:not(:last-child) {
    border-bottom: 1px solid #eee;
}

h2 {
    font-size: clamp(2rem, 6vw, 2.5rem);
    color: #004aad;
    margin-bottom: clamp(1rem, 4vw, 2rem);
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(45deg, #1868db, #bf63f3, #82b535);
    margin: 1rem auto;
    border-radius: 2px;
}

/* Schedule Grid Styles */
.schedule-grid {
    /* Ensures the grid items wrap responsively */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(1rem, 4vw, 2rem);
    margin-top: clamp(1rem, 4vw, 2rem);
}

.day-card {
    background: #cce86e;
    border-radius: 15px;
    padding: clamp(1.5rem, 5vw, 2rem);
    box-shadow: 0 8px 25px rgba(24,104,219,0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.day-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #82b535;
}

.day-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(24,104,219,0.15);
    border-color: #bf63f3;
}

.day-title {
    font-size: clamp(1.5rem, 5vw, 1.8rem);
    font-weight: 600;
    color: #004aad;
    margin-bottom: 0.5rem;
}

.day-date {
    font-size: clamp(1rem, 3vw, 1.1rem);
    color: #666;
    margin-bottom: clamp(0.5rem, 3vw, 1rem);
}

.day-time {
    font-size: clamp(1.1rem, 4vw, 1.3rem);
    font-weight: 500;
    color: #004aad;
    background: #ffbd59;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    display: inline-block;
}

/* Event Details Styles */
.event-details {
    background: #f8f8f8;
    border-radius: 15px;
    padding: clamp(1.5rem, 5vw, 2rem);
    margin-top: clamp(1rem, 5vw, 2rem);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: clamp(1rem, 4vw, 2rem);
    margin-top: clamp(1rem, 4vw, 2rem);
}

.detail-item {
    text-decoration: none;
    text-align: center;
    padding: clamp(1rem, 4vw, 1.5rem);
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 2px solid transparent; /* Add a transparent border by default */
    display: block;
}

.detail-item:hover {
    transform: translateY(-5px); /* Lifts the box up */
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); /* More pronounced shadow */
    border-color: #1868db; /* Changes border color on hover */
}

.detail-icon {
    font-size: clamp(2rem, 8vw, 3rem);
    margin-bottom: 1rem;
}

.detail-title {
    font-size: clamp(1.1rem, 4vw, 1.3rem);
    font-weight: 600;
    color: #004aad;
    margin-bottom: 0.5rem;
}


/* --------------------
   New Philanthropy Page Styles
   -------------------- */

.eduvillage-icon {
    height: 1.3rem;
    width: auto;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* Fix for list items and spacing */
.event-details ul li {
    /* Ensures the list item behaves like a standard bullet point */
    display: list-item;
    list-style-type: disc;
    margin-bottom: 1em; /* Adds space between each bullet point for readability */
}

.event-details ul {
    padding-left: 2rem;   /* or 40px — controls how far the bullets sit from the left edge */
}

.event-details ul li {
    margin-bottom: 1em;   /* keep your spacing between items */
}


/* CTA Section Styles */
.cta-section {
    background: linear-gradient(135deg, #1868db 0%, #004aad 50%, #82b535 100%);
    color: white;
    text-align: center;
    padding: clamp(2rem, 10vw, 4rem) clamp(1rem, 5vw, 2rem);
    margin-top: 3rem;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #004aad;
    padding: clamp(0.8rem, 3vw, 1rem) clamp(2rem, 6vw, 2.5rem);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(1rem, 3vw, 1.2rem);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255,255,255,0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255,255,255,0.3);
    background: #ffbd59;
}

/* --------------------
   Animation Styles
   -------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Floating Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-element {
    position: absolute;
    width: clamp(15px, 4vw, 20px);
    height: clamp(15px, 4vw, 20px);
    background: rgba(130,181,53,0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

/* --------------------
   Agenda Styles
   -------------------- */
.agenda-container {
    background: white;
    border-radius: 15px;
    margin-bottom: clamp(1.5rem, 5vw, 2rem);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 2px solid #e0e0e0;
}

.agenda-day-header {
    background: linear-gradient(135deg, #1868db, #004aad);
    color: white;
    padding: clamp(1rem, 4vw, 1.5rem) clamp(1.5rem, 5vw, 2rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.agenda-day-title {
    font-size: clamp(1.5rem, 5vw, 1.8rem);
    font-weight: 600;
    margin: 0;
}

.agenda-day-time {
    font-size: clamp(1rem, 3vw, 1.2rem);
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

/* Use a table-like layout for better column alignment on larger screens */
.agenda-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
}

.agenda-header,
.agenda-row {
    display: table-row;
    border-bottom: 1px solid #e0e0e0;
}

.agenda-header {
    background: #f8f9fa;
    border-bottom: 2px solid #e0e0e0;
}

.agenda-time-header,
.agenda-activity-header {
    display: table-cell;
    padding: clamp(0.75rem, 3vw, 1rem) clamp(1rem, 4vw, 1.5rem);
    font-weight: 700;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
    color: #004aad;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.agenda-time-header {
    background: #cce86e;
    border-right: 2px solid #e0e0e0;
    width: 280px;
}

.agenda-activity-header {
    background: #dfb0eb;
}

.agenda-row:hover {
    background: #f8f9ff;
    transform: translateX(5px);
}

.agenda-row:last-child {
    border-bottom: none;
}

.agenda-time {
    display: table-cell;
    padding: clamp(1rem, 4vw, 1.5rem);
    font-weight: 600;
    color: #004aad;
    background: rgba(204,232,110,0.3);
    border-right: 2px solid #e0e0e0;
    vertical-align: top;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
}

.agenda-activity {
    display: table-cell;
    padding: clamp(1rem, 4vw, 1.5rem);
    vertical-align: top;
    line-height: 1.4;
    font-size: clamp(0.9rem, 3vw, 1.1rem);
}

.keynote-row {
    background: linear-gradient(135deg, rgba(255,189,89,0.1), rgba(130,181,53,0.1));
    border-left: 4px solid #ffbd59;
}

.keynote-row .agenda-time {
    background: rgba(255,189,89,0.3);
    font-weight: 700;
}

.keynote-row .agenda-activity {
    font-weight: 500;
}

.keynote-row .agenda-activity strong {
    color: #bf63f3;
    font-size: clamp(1rem, 4vw, 1.2rem);
}

.coming-soon-agenda {
    background: #f8f9fa;
    border-radius: 10px;
    margin: 1rem;
}

/* Multi-track and Special Row Styles */
.multi-track-row {
    background: linear-gradient(135deg, rgba(204,232,110,0.1), rgba(223,176,235,0.1));
    border-left: 4px solid #82b535;
    position: relative;
}

.multi-track-row .agenda-time {
    background: rgba(204,232,110,0.4);
}

.track-container {
    display: flex;
    gap: clamp(0.5rem, 2vw, 1rem);
    margin: 0.5rem 0;
    position: relative;
    align-items: stretch;
}

.track-container .track-item {
    flex: 1;
    min-width: 0;
}

.track-item {
    padding: clamp(0.75rem, 3vw, 1rem);
    background: white;
    border-radius: 12px;
    border: 2px solid transparent;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.track-item:hover {
    cursor: pointer;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.track-item:nth-child(1) {
    border-color: #1868db;
    background: linear-gradient(135deg, rgba(24,104,219,0.05), rgba(24,104,219,0.1));
}

.track-item:nth-child(2) {
    border-color: #82b535;
    background: linear-gradient(135deg, rgba(130,181,53,0.05), rgba(130,181,53,0.1));
}

.track-item:nth-child(3) {
    border-color: #bf63f3;
    background: linear-gradient(135deg, rgba(191,99,243,0.05), rgba(191,99,243,0.1));
}

.track-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 12px 12px 0 0;
}

.track-item:nth-child(1)::before {
    background: #1868db;
}

.track-item:nth-child(2)::before {
    background: #82b535;
}

.track-item:nth-child(3)::before {
    background: #bf63f3;
}

.track-item::after {
    content: '⟷';
    position: absolute;
    top: -10px;
    right: -10px;
    background: rgba(255,255,255,0.9);
    color: #666;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 1px solid #e0e0e0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.track-container:hover .track-item::after {
    opacity: 1;
}

.track-item strong {
    color: #004aad;
    font-size: clamp(0.9rem, 3vw, 1rem);
    display: block;
    margin-bottom: 0.5rem;
}

.track-item em {
    color: #666;
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    display: block;
    margin-top: 0.5rem;
}

/* --------------------
   Speakers Grid Styles
   -------------------- */
.speakers-grid {
    display: grid;
    /* Uses minmax() for a responsive grid with a min card width of 200px */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(1rem, 4vw, 2rem);
    margin-top: clamp(1rem, 4vw, 2rem);
    justify-items: center;
}

.speaker-card {
    background: white;
    padding: clamp(1.5rem, 5vw, 2rem) clamp(1rem, 4vw, 1.5rem);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.speaker-card:hover {
    cursor: pointer;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.speaker-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #1868db;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.speaker-name {
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    font-weight: 600;
    color: #004aad;
    margin: 0;
}

.speaker-title {
    font-size: clamp(0.9rem, 3vw, 1rem);
    color: #666;
    margin-top: 0.5rem;
}

/* New carousel container for speakers on mobile screens */
@media (max-width: 768px) {
    .speakers-grid {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 1.5rem;
        padding-bottom: 1rem;
        justify-content: flex-start;
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .speakers-grid::-webkit-scrollbar {
        display: none;
    }

    .speaker-card {
        flex: 0 0 auto;
        width: 80%;
        max-width: 300px;
        scroll-snap-align: start;
    }
}
/* --------------------
   Sponsor Grid Styles
   -------------------- */
.sponsors-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: clamp(1.5rem, 5vw, 2rem);
}

.sponsor-tier {
    margin-bottom: clamp(2rem, 6vw, 3rem);
}

.sponsor-tier:last-child {
    margin-bottom: 0;
}

.sponsor-tier-title {
    text-align: center;
    font-size: clamp(1.3rem, 4vw, 1.5rem);
    font-weight: 600;
    color: #004aad;
    margin-bottom: clamp(1rem, 4vw, 1.5rem);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.platinum-tier .sponsor-tier-title { color: #bf63f3; }
.gold-tier .sponsor-tier-title { color: #ffbd59; }
.silver-tier .sponsor-tier-title { color: #82b535; }
.bronze-tier .sponsor-tier-title { color: #1868db; }

.sponsors-grid {
    display: grid;
    gap: clamp(1.5rem, 5vw, 2rem);
    justify-items: center;
    align-items: center;
}

/* Platinum sponsors - largest, 1 per row */
.platinum-tier .sponsors-grid { grid-template-columns: 1fr; }
/* Gold sponsors - 2 per row */
.gold-tier .sponsors-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
/* Silver sponsors - 3 per row */
.silver-tier .sponsors-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
/* Bronze sponsors - 4 per row */
.bronze-tier .sponsors-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
/* Innovation sponsor - special sizing between silver and bronze */
.bronze-tier:nth-of-type(4) .sponsors-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.sponsor-logo-container {
    background: white;
    padding: clamp(1.5rem, 5vw, 2rem);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    width: 100%;
    max-width: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.sponsor-logo-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.platinum-tier .sponsor-logo-container {
    max-width: 500px; min-height: 200px; border-color: #bf63f3;
}
.gold-tier .sponsor-logo-container {
    border-color: #ffbd59; max-width: 400px; min-height: 180px;
}
.silver-tier .sponsor-logo-container {
    border-color: #82b535; max-width: 300px; min-height: 140px;
}
.bronze-tier .sponsor-logo-container {
    border-color: #1868db; max-width: 280px; min-height: 120px;
}
/* Innovation sponsor - larger than other bronze sponsors */
.bronze-tier:nth-of-type(4) .sponsor-logo-container {
    border-color: #1868db; max-width: 320px; min-height: 140px;
}

.sponsor-logo {
    max-width: 100%;
    max-height: 100px;
    height: auto;
    object-fit: contain;
    min-width: 120px;
    min-height: 60px;
}
.platinum-tier .sponsor-logo { max-height: 180px; min-width: 180px; min-height: 100px; }
.gold-tier .sponsor-logo { max-height: 150px; min-width: 160px; min-height: 85px; }
.silver-tier .sponsor-logo { max-height: 100px; min-width: 130px; min-height: 65px; }
.bronze-tier .sponsor-logo { max-height: 80px; min-width: 100px; min-height: 50px; }
/* Innovation sponsor - larger than other bronze sponsors */
.bronze-tier:nth-of-type(4) .sponsor-logo { max-height: 90px; min-width: 115px; min-height: 60px; }

/* Placeholder styling for demo */
.sponsor-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 500;
    text-align: center;
}

/* --------------------
   Responsive Design
   -------------------- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .schedule-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
    }

    .event-logo {
        max-height: 120px;
        max-width: 250px;
    }

    .day-card {
        padding: 1.5rem;
    }

    .detail-item {
        padding: 1rem;
    }

    /* Sponsor responsive design */
    .sponsors-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .sponsor-logo-container {
        max-width: 100%;
        padding: 1.5rem;
    }

    .sponsor-tier-title {
        font-size: 1.3rem;
    }

    .sponsors-container {
        padding: 1.5rem;
    }

    /* Agenda Responsive Design */
    .agenda-day-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .agenda-header,
    .agenda-row {
        /* Stack the columns on smaller screens */
        display: grid;
        grid-template-columns: 160px 1fr;
    }
    
    .agenda-time,
    .agenda-activity {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .agenda-day-title {
        font-size: 1.5rem;
    }
    
    .agenda-day-time {
        font-size: 1rem;
    }
    
    .track-container {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Tablet-specific layout for multi-track sections */
@media (min-width: 481px) and (max-width: 768px) {
    .multi-track-row .agenda-activity .track-container {
        /* Ensures two items per row on tablets */
        flex-wrap: wrap; 
        justify-content: center;
    }
    .track-item {
        /* Each item takes up roughly half the width */
        flex-basis: calc(50% - 0.5rem); 
    }
}

@media (max-width: 600px) {
    .speakers-grid {
        gap: 1.5rem;
    }
    
    .speaker-card {
        padding: 1.5rem 1rem;
    }

    /* Responsive adjustments for modal */
    .modal-content {
        padding: 1.5rem;
    }
    .modal-header h3 {
        font-size: 1.5rem;
    }
    .modal-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .agenda-header {
        display: none; /* This is the key change to hide the headers */
    }
    
    .agenda-row {
        grid-template-columns: 1fr;
        display: block; /* Force single column layout */
    }
    
    .agenda-time {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        text-align: center;
        background: #cce86e;
        color: #004aad;
        font-weight: 700;
        display: block;
    }
    
    .agenda-activity {
        display: block; /* Ensure activity is a separate block */
    }
    
    .keynote-row .agenda-time {
        background: #ffbd59;
    }
    
    .multi-track-row .agenda-time {
        background: rgba(204,232,110,0.8);
    }
    
    .reception-row .agenda-time {
        background: rgba(191,99,243,0.6);
    }
    
    .agenda-time-header {
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        text-align: center;
    }
    
    .track-container {
        gap: 0.75rem;
    }
    
    .track-item {
        padding: 0.75rem;
    }
}
/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    max-width: 600px;
    width: 100%;
    position: relative;
    transform: scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #1868db;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.modal-header h3 {
    margin-top: 1rem;
    font-size: 2rem;
    color: #004aad;
}

.modal-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
    text-align: justify;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover,
.close-button:focus {
    color: #333;
}

/* Speaker card hover effect enhancement */
.speaker-card:hover {
    cursor: pointer;
}

/* Workshop Modal Specific Styles */
#workshopModal .modal-content {
    background: #f8f9fa;
    text-align: center;
}

#modal-workshop-title {
    font-size: 1.5rem;
    color: #004aad;
    margin-bottom: 1rem;
}

#modal-workshop-abstract {
    font-size: 1rem;
    color: #444;
    line-height: 1.7;
    margin-bottom: 2rem;
    text-align: left;
}

.modal-buttons {
    margin-top: 1.5rem;
}

.modal-buttons .cta-button {
    font-size: 1rem;
    padding: 0.8rem 2rem;
}

/* Styles for paragraphs within the workshop abstract modal */
#modal-workshop-abstract p {
    margin-bottom: 1em; /* Adds space below each paragraph */
    text-align: left; /* Ensures text alignment remains consistent */
}

#modal-workshop-abstract p:last-child {
    margin-bottom: 0; /* Removes extra margin from the last paragraph */
}

.workshop-item.disabled {
    pointer-events: none;   /* makes them unclickable */
    opacity: 0.5;           /* visually faded */
    cursor: not-allowed;    /* shows "not allowed" mouse pointer */
}

/* --------------------
   FAQ Styles
   -------------------- */
   .faq-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 15px;
    background: #ffffff;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.faq-item {
    border-bottom: 1px solid #e0e0e0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question h3 {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    font-weight: 500;
    color: #333;
    margin: 0;
}

.toggle-icon {
    font-size: 1.5rem;
    color: #1868db;
    transition: transform 0.3s ease;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
    color: #bf63f3;
}

.faq-answer {
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* A value large enough to fit all content */
    padding: 1rem;
}

.faq-answer p {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* --------------------
   Video Embed Styles
   -------------------- */
   .video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 2rem auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

/* Styling for the Dootrips image */
.dootrips-image {
    max-width: 60%; /* Or any percentage you prefer */
    height: auto;   /* Ensures the image maintains its aspect ratio */
    display: block; /* Makes the image a block element */
    margin: 0 auto 2rem; /* Centers the image and adds space below it */
}

/* Optional: Clean up the inline styles in your HTML by moving them here */
.event-details p {
    margin-top: 1rem; /* Apply this to all paragraphs within .event-details for consistency */
}