/* --- EDITABLE THEME VARIABLES --- */
:root {
    --main-font: 'Rockwell', 'Constantia', 'Georgia', serif;
    --background-color: #019042;     /* Dark green page background */
    --card-background: #bce6c7;      /* Light green for sections */
    --header-color: #1A6B40;         /* Darker green for the main header */
    --text-color: #000000;           /* Black text for contrast */
    --link-color: #019042;           /* Dark green links for contrast */
    --title-color: #000000;          /* Black titles for contrast */
    --font-size-base: 16px;          /* Base font size for body text */
    --line-height-base: 1.6;         /* Base line height */
    --medium-green: #01a052;         /* Medium green for internal links */
    --parallel-bg: #f8f8f8;          /* Dimmer background for parallel sessions */
    --parallel-border: #ddd;          /* Lighter border for parallel sessions */
}
/* --- END OF EDITABLE THEME --- */


/* General Body & Font Styling */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--main-font);
    line-height: var(--line-height-base);
    margin: 0;
    padding-top: 60px;
    background-color: var(--background-color);
    color: var(--text-color);
    font-size: var(--font-size-base);
}

/* === STICKY NAVIGATION BAR === */
.navbar {
    background-color: var(--background-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    box-sizing: border-box;
}

.navbar .menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.navbar .nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
}

.navbar a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 0.9rem;
    transition: color 0.2s;
    white-space: nowrap;
}

.navbar a:hover {
    color: #c8e6c9;
}

/* Active navigation state */
.navbar .active a {
    color: #c8e6c9;
    text-decoration: underline;
}

/* Mobile menu styles */
@media (max-width: 768px) {
    .navbar .menu-toggle {
        display: block;
    }
    
    .navbar .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background-color: var(--background-color);
        flex-direction: column;
        padding: 0.5rem 1rem;
        gap: 0.3rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
    
    .navbar .nav-links.active {
        display: flex;
    }
    
    .navbar a {
        font-size: 0.85rem;
        padding: 0.4rem 0;
        display: block;
        text-align: center;
    }
}

/* Main Content Container */
main {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Schedule Page - WIDER LAYOUT */
main.schedule-page {
    max-width: 1200px;
}

/* Header Styling */
header {
    background-color: var(--header-color);
    color: #ffffff;
    padding: 3rem 1.5rem;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 2rem;
}

header h1 { 
    margin: 0; 
    font-size: 2.8rem; 
    line-height: 1.2;
}
header h2 { 
    margin: 0.5rem 0; 
    font-size: 1.6rem; 
    font-weight: normal; 
    color: #e0e0e0;
    line-height: 1.3;
}
header p { 
    margin: 0.2rem 0; 
    font-size: 1.1rem; 
    line-height: 1.4;
}

/* Schedule and venue header - consistent styling */
.schedule-header,
.venue-header {
    padding: 2rem 1.5rem;
}

/* Section Styling */
section {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    scroll-margin-top: 80px;
}

h3 {
    font-size: 2rem;
    color: var(--title-color);
    border-bottom: 3px solid #a9d9b7;
    padding-bottom: 0.5rem;
    margin-top: 0;
    line-height: 1.2;
}

h4 { 
    font-size: 1.3rem; 
    color: var(--text-color); 
    margin-top: 1.5rem; 
    margin-bottom: 0.5rem; 
    line-height: 1.3;
}

/* ADDED RULE FOR DAY HEADERS WITH DIVIDERS */
.day-schedule h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #a9d9b7;
}


ul { 
    padding-left: 20px; 
    line-height: 1.5;
}
li { 
    margin-bottom: 0.6rem; 
}

/* Call for Papers list - simplified formatting */
.cfp-list {
    padding-left: 60px;
}

/* Zoom links styling - REMOVED MARGIN AND PADDING */
.zoom-link {
    border-radius: 5px;
    text-align: left;
}

/* Zoom links container - SAME SPACING AS PAYMENT BUTTONS */
.zoom-links-container {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 10px; /* Same gap as payment buttons */
    align-items: flex-start;
}

/* Section a links */
section a {
    color: var(--link-color);
    font-weight: bold;
}
section a:hover {
    text-decoration: underline;
}

/* === EXTERNAL LINK STYLING === */
.external-link {
    color: var(--link-color);
    font-weight: bold;
}

/* === PDF LINK STYLING (CONSISTENT ACROSS PAGES) === */
.pdf-link {
    background-color: #e0f7e5;
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--link-color);
}

/* === SCHEDULE STYLING === */
/* CHANGED TO VERTICAL STACKING */
.schedule-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 2rem;
}

.day-schedule {
    background-color: white;
    border-radius: 8px;
    padding: 1.8rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%; /* Ensure it doesn't exceed container width */
    box-sizing: border-box; /* Include padding in width calculation */
}

.session {
    border: 1px solid #88a894;
    padding: 14px;
    margin-bottom: 14px;
    border-radius: 5px;
    word-wrap: break-word; /* Ensure long text wraps properly */
}

.session strong {
    display: block;
    margin-bottom: 5px;
    color: var(--link-color);
}

/* ADDED PARALLEL SESSIONS STYLING */
.parallel-sessions {
    display: flex;
    gap: 15px;
    /* REMOVED margin-bottom: 15px; */
    flex-wrap: wrap;
}

.parallel-session {
    flex: 1;
    border: 1px solid var(--parallel-border);
    padding: 14px;
    border-radius: 5px;
    word-wrap: break-word; /* Ensure long text wraps properly */
    background-color: var(--parallel-bg); /* Dimmer background */
}

/* CTA Button for main page - ALL BUTTONS NOW LEFT-ALIGNED */
.cta-button {
    display: inline-block;
    background-color: var(--link-color);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none;
    text-align: left; /* CHANGED TO LEFT-ALIGN FOR ALL BUTTONS */
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}
.cta-button:hover {
    background-color: #017a38;
}

/* Payment list styling - REMOVED SPECIAL STYLING */
.payment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.payment-list li {
    margin-bottom: 10px;
}

/* Submission button spacing - increased to 3rem (double the previous 1.5rem) */
.submit-button-spacing {
    margin-bottom: 3rem;
}

/* Internal links (medium green) */
.internal-link {
    color: var(--medium-green);
    font-weight: bold;
}
.internal-link:hover {
    color: #01b062;
}

/* === VENUE PAGE STYLING === */
.map-container {
    margin: 2rem 0;
    text-align: left;
}

.venue-map {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.map-caption {
    margin-top: 0.5rem;
    font-style: italic;
    color: #555;
}

/* === CO-ORGANIZERS: ADDED DIVIDERS BETWEEN ITEMS === */
.organizer-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.organizer-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.organizer-item img {
    width: auto;
    height: 80px;
    max-width: 200px;
    object-fit: contain;
    display: block;
}
.organizer-item p {
    margin: 0;
    font-weight: bold;
}

/* Divider between organizer items (like committee section) */
.organizer-divider {
    border: 0;
    height: 1px;
    background-color: #a9d9b7;
    margin: 0.5rem 0;
}

/* === KEYNOTE SPEAKERS: CSS-ONLY RESIZING (120px circles) === */
.speakers-grid {
    display: grid;
    gap: 1.5rem;
    text-align: center;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .speakers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.speaker-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    margin: 0 auto 0.5rem auto;
}
.speaker-card p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Committee Section Divider */
.committee-divider {
    border: 0;
    height: 2px;
    background-color: #a9d9b7;
    margin: 2rem 0;
}

/* Footer Styling */
footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
    color: #ffffff;
}

/* === ACCESSIBILITY IMPROVEMENTS === */
/* Ensure sufficient color contrast */
a {
    transition: all 0.2s ease;
}

/* Focus states for keyboard navigation */
a:focus, button:focus {
    outline: 3px solid #c8e6c9;
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    /* Day schedule remains stacked on mobile */
    .schedule-grid {
        grid-template-columns: 1fr;
    }
    
    .navbar ul {
        gap: 15px;
        font-size: 0.8rem;
    }
    
    header h1 {
        font-size: 2.2rem;
    }
    
    header h2 {
        font-size: 1.4rem;
    }
    
    /* Payment buttons stack on mobile */
    .payment-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    /* Zoom buttons stack on mobile */
    .zoom-links-container {
        gap: 10px; /* Same gap as payment buttons */
    }
    
    /* Parallel sessions stack on mobile */
    .parallel-sessions {
        flex-direction: column;
        gap: 5px; /* Reduced from 15px to 5px for better vertical spacing */
    }
    
    /* MOBILE-SPECIFIC FIXES FOR SCHEDULE */
    .day-schedule {
        padding: 1.2rem; /* Reduced padding for mobile */
    }
    
    .parallel-session {
        padding: 8px; /* Reduced from 10px for better spacing with reduced gap */
    }
    
    /* FIX FOR OFFICIAL WEBSITE LINK OVERFLOW */
    #contact p {
        overflow-wrap: break-word;
        word-break: break-word;
    }
}
