/* --- CSS Variables and Global Styles --- */
:root {
    --primary-color: #e37507;
    --secondary-color: #CFCFCF;
    --background-color: #222222;
    --purple-bg: #6c3483;
    --text-color: #ffffff;
    --header-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    padding-top: var(--header-height);
    transition: opacity 0.5s ease-in-out;
}

body.fade-out {
    opacity: 0;
}

h1, h2, h3 {
    font-family: 'Quicksand', cursive;
    color: var(--primary-color);
}

h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }

p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--primary-color);
}

/* --- Header & Navigation --- */
.header {
    background-color: var(--background-color);
    padding: 0 2rem;
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.logo {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
    margin-right: 20px;
}

.separator {
    background-color: var(--primary-color);
    height: 2px;
    width: 30px;
    margin-right: 20px;
}



/* This rule applies to ALL lists in the nav menu to remove bullets */
.nav-menu ul {
    list-style-type: none;
}

/* This rule ONLY applies the flex layout to the TOP-LEVEL list */
.nav-menu > ul {
    display: flex;
}

.nav-menu ul li {
    margin-right: 20px;
    position: relative;
}

.nav-menu ul li a {
    padding: 10px;
    display: block;
}

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--background-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    z-index: 1;
    min-width: 180px;
}

.dropdown-container:hover .dropdown {
    display: block;
}

.dropdown li a:hover {
    background-color: #333;
}

.menu-button {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 2rem;
    cursor: pointer;
    margin-left: auto; /* Pushes button to the right */
}

/* --- Hero & Parallax Sections --- */
.hero {
    min-height: calc(100vh - var(--header-height));
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.parallax { background-image: url('/static/images/plattsburgh image.jpg'); }
.parallax-2 { background-image: url('/static/images/pictureOfConferenceRoom.avif'); }

.high-opacity-box {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 5px;
    max-width: 800px;
    text-align: center;
}

.hero-content .spacer {
    border: none;
    height: 2rem;
}

.theme-box {
    text-align: left;
    width: 75%;
}
.theme-title { font-size: 1.5rem; text-align: left;}
.theme-subtitle { text-align: left; }
.theme-divider { border-color: var(--primary-color); margin: 1rem 0; }

/* --- Content Sections --- */
.content-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.dark-bg { background-color: #000; }
.purple-bg { background-color: var(--purple-bg); }
.map-image { max-width: 100%; height: auto; border: 3px solid var(--primary-color); }
.conference-details-image { width: 80%; height: auto; }
.comment { font-style: italic; opacity: 0.7; font-size: 0.9rem; }
.section-title.left-aligned { text-align: left; width: fit-content; border-bottom: 4px double var(--primary-color); margin-bottom: 2rem; }

/* --- Split Sections (Speaker/Charity) --- */
.split-section {
    display: flex;
    min-height: 600px;
}
.split-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}
.split-section.reverse { flex-direction: row-reverse; }
.image-content {
    background-position: center;
    background-size: cover;
}

/* --- Contact Section --- */
.contact-section {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}
.contact-info, .contact-form { flex: 1; min-width: 300px; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid #444;
    color: var(--text-color);
    border-radius: 4px;
}
.submit-btn {
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}
.submit-btn:hover { background-color: #c96406; }

/* --- Utility & Animation --- */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#scrollToTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    font-size: 24px;
    opacity: 0.7;
    transition: opacity 0.3s;
    z-index: 999;
}
#scrollToTopBtn:hover {
    opacity: 1;
}

/* --- Responsive Design (Mobile First Approach) --- */
@media (max-width: 900px) {
    .header {
        padding: 0 1rem;
    }
    .nav-menu {
        display: none; /* Hide nav by default on mobile */
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .nav-menu.active {
        display: flex; /* Show it when toggled by JS */
    }
    .nav-menu ul {
        flex-direction: column;
        text-align: center;
    }
    .nav-menu ul li {
        margin: 1.5rem 0;
    }
    .nav-menu .dropdown {
        display: none !important; /* Hide dropdowns on mobile for a simpler menu */
    }
    .menu-button {
        display: block; /* Show hamburger menu */
    }

    .hero {
        background-attachment: scroll; /* Parallax effect is often buggy on mobile */
    }

    .split-section, .split-section.reverse {
        flex-direction: column;
    }
    .image-content {
        min-height: 300px; /* Give image a fixed height when stacked */
    }
}
/* --- Page-Specific & Component Styles --- */

/* Generic Page Header */
.page-header {
    text-align: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.page-header h1 {
    font-size: 3.5em;
    margin-bottom: 1rem;
}


/* Committees Page */
.committee-list {
    max-width: 900px;
    margin: 0 auto;
}
.committee-item {
    padding: 2rem 0;
    border-bottom: 1px solid #444;
}
.committee-item:last-child {
    border-bottom: none;
}
.committee-item h2 {
    margin-bottom: 1rem;
}

/* Delegate Prep Page */
.info-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.info-button {
    flex: 1;
    min-width: 250px;
    padding: 1.5rem;
    font-size: 1.5em;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}
.info-button:hover {
    background-color: var(--primary-color);
    color: var(--background-color);
}

/* Schedule Page */
.schedule-day {
    text-align: center;
    margin-bottom: 2rem;
}


/* This is the new base style that centers ALL dividers */
.divider {
    border: none;
    height: 2px;
    background-color: var(--primary-color);
    margin: 0 auto; /* This line centers the element */
}

/* This rule just sets the specific width for the page header's divider */
.page-header .divider {
    width: 50%;
}

/* This rule just sets the specific width for the schedule day's divider */
.schedule-day .divider {
    width: 20%;
}

.schedule-list h3 {
    font-family: Arial, sans-serif; /* Use a more readable font for schedule items */
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-weight: normal;
}

/* Staff Page */
.staff-member {
    /* This reuses the .split-section component from the homepage */
    align-items: center; /* Vertically center content in the section */
}
.staff-member .image-content {
    border-radius: 0; /* Make portrait images square */
    width: 300px;
    height: 300px;
    flex-shrink: 0; /* Prevent image from shrinking */
    border: 5px solid var(--primary-color);
}
.staff-member .text-content {
    text-align: left;
}
.staff-member.reverse .text-content {
    text-align: right;
}

/* Responsive adjustments for new components */
@media (max-width: 900px) {
    .page-header h1 {
        font-size: 2.5em;
    }
    .staff-member, .staff-member.reverse {
        flex-direction: column;
    }
    .staff-member .image-content {
        margin-bottom: 2rem;
    }
    .staff-member .text-content, .staff-member.reverse .text-content {
        text-align: center;
    }
}