body {
    font-family: Arial, sans-serif;
    color: #333; /* Darker text for professionalism */
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
    font-size: 16px;
}
/* Standardizing the primary red for consistency and impact */
:root {
    --fire-red: #cc0000; /* A classic, strong red */
    --dark-grey: #222020;
    --light-grey: #f4f4f4;
    --white: #ffffff;
    --black: #181818;
}

/* --- Header & Navigation --- */
header {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    color: var(--black);
    padding: 15px 0; /* Increased padding */
    text-align: center;
    border-bottom: 5px solid var(--fire-red); /* Professional separator */
}

.logo-container {
    flex: 0 0 auto;
    margin-right: 30px; /* Adjust margin as needed */
}

.logo {
    height: 150px; /* Slightly reduced size for a cleaner look */
    width: auto;   
}

.header-text {
    flex: 1 1 auto;
}

header h1 {
    margin: 0;
    font-size: 40px; /* Slightly reduced font size */
    color: var(--fire-red); /* Highlight the company name */
}

header p {
    margin: 0;
    font-size: 20px; 
    color: #555; /* Muted color for the tagline */
}

nav {
    display: flex;
    justify-content: center;
    background-color: var(--fire-red); /* Using the standard red */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
}

nav a {
    color: var(--white);
    padding: 14px 20px;
    text-decoration: none;
    display: block;
    font-weight: bold; /* Make links stand out */
    text-transform: uppercase; /* Professional look */
    letter-spacing: 1px;
    transition: background-color 0.3s, color 0.3s; /* Smooth transitions */
}

nav a:hover {
    background-color: var(--white);
    color: var(--fire-red);
}

/* Dropdown Menu - Standardizing colors */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 180px; /* Slightly wider */
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 10; /* Increased z-index */
    border-top: 2px solid var(--fire-red);
}

.dropdown-content a {
    color: var(--dark-grey);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-transform: none; /* No uppercase for sub-links */
    font-weight: normal;
}

.dropdown-content a:hover {
    background-color: var(--light-grey);
    color: var(--fire-red);
}

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

.dropdown:hover .dropbtn {
    background-color: var(--white);
    color: var(--fire-red);
}
.hero-image {
    background-image: url('images/26-2\ Open\ House\ Oct.\ 12\ 24.jpg'); /* Replace with the path to your image */
    background-size: cover;
    background-position: center;
    height: 400px; /* Slightly reduced height for better focus on content */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
}
.about-me {
    padding: 40px 20px;
    background-color: var(--white); /* Changed to white for better contrast with body background */
    text-align: center;
    border-radius: 5px; /* Subtle change */
    margin: 20px auto;
    max-width: 900px; /* Wider content area */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); /* Lighter shadow */
}

.about-me h2 {
    font-size: 32px; /* Increased size for section titles */
    margin-bottom: 25px;
    color: var(--fire-red);
    border-bottom: 2px solid var(--light-grey);
    padding-bottom: 10px;
}

.about-me p {
    font-size: 18px;
    line-height: 1.6;
    text-align: left; /* Left align for readability */
    margin-bottom: 15px;
}
.page-title {
    font-size: 36px; 
    color: var(--white); 
    text-align: center; 
    margin: 30px auto 20px auto; /* More space around */
    padding: 15px; 
    background-color: var(--fire-red); 
    border-radius: 5px; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 
    max-width: 900px; /* Constrain width */
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Social Media & Calls Sections --- */
.social-media-embeds {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    gap: 20px; 
    margin: 20px auto 40px auto;
    max-width: 1000px;
}

.social-media-embed {
    flex: 1 1 300px; 
    max-width: 300px;
    height: 500px; 
    overflow: hidden;
    border: 1px solid var(--light-grey);
    border-radius: 5px;
}

.social-media-embed iframe, .social-media-embed .twitter-timeline {
    width: 100%;
    height: 100%;
    border: none;
}
.calls-section {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background-color: var(--white);
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.calls-section h1 {
    font-size: 30px;
    margin-bottom: 25px;
    color: var(--fire-red);
}

.calls-section ul {
    list-style-type: none;
    padding: 0;
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
}

.calls-section ul li {
    font-size: 18px;
    margin: 8px 0;
    padding: 5px 10px;
    background-color: var(--light-grey);
    border-radius: 3px;
    display: flex;
    justify-content: space-between;
}

.total-calls {
    font-weight: bold;
    font-size: 22px;
    margin-top: 25px;
    color: var(--dark-grey);
    border-top: 1px solid #ccc;
    padding-top: 15px;
}

.note {
    margin-top: 15px;
    font-size: 14px;
    color: #777;
}

/* --- Contact & Forms Sections --- */
.contact-form-section, .membership-form-section {
    max-width: 700px;
    margin: 40px auto;
    padding: 30px;
    background-color: var(--white);
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.contact-form-section h2, .membership-form-section h2 {
    font-size: 30px;
    margin-bottom: 25px;
    color: var(--fire-red);
}

.contact-form-section .form-group, .membership-form-section form {
    margin-bottom: 15px;
    text-align: left;
}

.contact-form-section label, .membership-form-section label {
    font-size: 16px;
    margin-bottom: 8px;
    display: block;
    font-weight: bold;
}

.contact-form-section input, 
.contact-form-section textarea,
.membership-form-section input, 
.membership-form-section textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box; /* Include padding/border in element's total width */
}

.contact-form-section button {
    background-color: var(--fire-red); /* Using the primary red */
    color: var(--white);
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.contact-form-section button:hover {
    background-color: #a11c25;
}
.membership-form-section button {
    background-color: var(--fire-red);
    color: var(--white);
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.membership-form-section button:hover {
    background-color: #a11c25;
}


/* --- History & List Sections --- */
.history-section, .ex-chiefs-section, .past-presidents-section, .members-section, .officers-section, .fire-district-section, .join-us-section, .in-memoriam-section, .contact-officer-section {
    background-color: var(--white); /* Standard white background */
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    max-width: 900px;
    margin: 20px auto;
    text-align: center;
}

.history-section h2, .ex-chiefs-section h2, .past-presidents-section h2, .members-section h2, .officers-section h2, .fire-district-section h2, .join-us-section h2, .in-memoriam-section h2, .contact-officer-section h2 {
    color: var(--fire-red);
    font-size: 32px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--light-grey);
    padding-bottom: 10px;
}

.history-section p {
    line-height: 1.6;
    margin: 10px 0;
    text-align: left;
}

.history-section ol {
    margin: 20px 0;
    padding-left: 20px; /* Indent the list for clarity */
    list-style-position: outside; 
    text-align: left; /* Align list content to the left */
    display: inline-block; /* Helps center the block */
}

.history-section ol li {
    margin: 8px 0;
}

/* Standardizing List Styles */
.ex-chiefs-list, .past-presidents-list, .members-category ul, .line-officers ul, .executive-board ul, .commissioners-list ul, .opportunity-list ul, .benefits-list ul, .memoriam-list, .officer-list {
    list-style-type: none;
    padding: 0;
    text-align: left;
    max-width: 600px; /* Constrain list width for readability */
    margin: 0 auto;
}

.ex-chiefs-list li, .past-presidents-list li, .members-category li, .line-officers li, .executive-board li, .commissioners-list li, .opportunity-list li, .benefits-list li, .memoriam-list li, .officer-list li {
    background-color: var(--light-grey);
    margin: 8px 0;
    padding: 12px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 18px;
    transition: background-color 0.3s;
}

.ex-chiefs-list li:nth-child(odd), .past-presidents-list li:nth-child(odd), .members-category li:nth-child(odd), .line-officers li:nth-child(odd), .executive-board li:nth-child(odd) {
    background-color: var(--white); /* Alternating light background */
}

.ex-chiefs-list li:hover, .past-presidents-list li:hover, .members-category li:hover, .line-officers li:hover, .executive-board li:hover, .officer-list li:hover {
    background-color: #e0e0e0;
}

/* Officer & Commissioner Specifics */
.officers-section h3, .fire-district-section h3, .members-category h3 {
    color: #444; /* Darker heading */
    font-size: 26px;
    text-decoration: none;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

.line-officers li strong, .executive-board li strong, .commissioners-list li strong {
    color: var(--fire-red);
    font-weight: bold;
    display: inline-block;
    min-width: 150px; /* Aligning the names */
    text-align: right;
    padding-right: 15px;
}

/* Join Us CTA */
.join-us-section p, .fire-district-section p, .in-memoriam-section p {
    text-align: center;
    font-size: 18px;
    line-height: 1.6;
}

.cta-button {
    background-color: var(--fire-red);
    color: var(--white);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 20px;
    display: inline-block;
    margin-top: 20px;
    text-transform: uppercase;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #a11c25;
}

/* In Memoriam */
.memoriam-list {
    column-count: 3; /* Multi-column for long lists */
    column-gap: 20px;
    max-width: 90%;
    margin: 20px auto;
}

.memoriam-list li {
    font-size: 16px;
    line-height: 1.8;
    background-color: transparent;
    box-shadow: none;
    padding: 5px 0;
    break-inside: avoid-column; /* Keeps names together */
}

/* Contact Officers */
.officer-list a {
    color: var(--fire-red); /* Red links for consistency */
    font-weight: bold;
}

.map-container iframe {
    max-width: 800px;
    height: 400px;
    margin: 20px auto;
    display: block;
    border: 2px solid var(--fire-red); /* Frame the map */
}


/* --- Footer --- */
footer {
    background-color: var(--dark-grey); /* Dark footer for high contrast */
    color: var(--white);
    padding: 20px 0;
    text-align: center;
    border-top: 5px solid var(--fire-red);
}
footer p {
    margin: 5px 0;
    font-size: 16px; 
}
footer a {
    color: var(--fire-red);
    text-decoration: none;
    transition: color 0.3s;
}
footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

footer form {
    margin-top: 15px;
}

footer button {
    background-color: var(--fire-red);
    color: var(--white);
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}
footer button:hover {
    background-color: #a11c25;
}

/* Responsive Overrides */
@media (max-width: 950px) {
    .logo {
        height: 100px; 
    }
    header h1 {
        font-size: 32px;
    }
    header p {
        font-size: 18px;
    }
    .social-media-embeds {
        flex-direction: column;
        align-items: center;
    }
    .social-media-embed {
        max-width: 90%;
    }
    .in-memoriam-section {
        column-count: 2;
    }
}
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding-bottom: 10px;
    }
    .logo-container {
        margin-right: 0;
        margin-bottom: 10px;
    }
    nav {
        flex-direction: column;
    }
    nav a {
        display: block;
        width: 100%;
        text-align: center;
    }
    .hero-image {
        height: 300px;
    }
    .in-memoriam-section {
        column-count: 1;
    }
    .line-officers li strong, .executive-board li strong, .commissioners-list li strong {
        display: block;
        text-align: center;
        padding-right: 0;
        margin-bottom: 5px;
    }
}
@media (max-width: 480px) {
    header h1 {
        font-size: 28px;
    }
    header p {
        font-size: 16px;
    }
    .page-title, .history-section h2 {
        font-size: 28px;
    }
}

/* Original mobile styles consolidated and kept for robustness */
.container {
    display: flex;
    flex-wrap: wrap;
}

.column {
    flex: 1;
    padding: 10px;
}

/* For smaller screens, adjust the layout */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
}
img {
    max-width: 100%;
    height: auto;
}
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
}
input[type="text"], input[type="email"], textarea, input[type="tel"], input[type="date"] {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    font-size: 16px;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
}