<<<<<<< HEAD
/* --- Local Font Definitions --- */


/* Roboto Condensed Light (Weight 300) */
@font-face {
    font-family: 'Roboto Condensed';
    src: url('../static/RobotoCondensed-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto Condensed';
    src: url('../static/RobotoCondensed-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

/* Roboto Condensed Regular (Weight 400) */
@font-face {
    font-family: 'Roboto Condensed';
    src: url('../static/RobotoCondensed-Regular.ttf') format('truetype');
    font-weight: 400; /* or normal */
    font-style: normal;
}

@font-face {
    font-family: 'Roboto Condensed';
    src: url('../static/RobotoCondensed-Italic.ttf') format('truetype'); /* Assuming this is Regular Italic */
    font-weight: 400; /* or normal */
    font-style: italic;
}

/* Roboto Condensed Bold (Weight 700) */
@font-face {
    font-family: 'Roboto Condensed';
    src: url('../static/RobotoCondensed-Bold.ttf') format('truetype');
    font-weight: 700; /* or bold */
    font-style: normal;
}

@font-face {
    font-family: 'Roboto Condensed';
    src: url('../static/RobotoCondensed-BoldItalic.ttf') format('truetype');
    font-weight: 700; /* or bold */
    font-style: italic;
}

/* --- Local Font Definitions --- */

/* EB Garamond Regular */
@font-face {
    font-family: 'EB Garamond';
    src: url('../static/EBGaramond-Regular.ttf') format('truetype');
    font-weight: 400; /* or normal */
    font-style: normal;
}

/* EB Garamond Italic */
@font-face {
    font-family: 'EB Garamond';
    src: url('../static/EBGaramond-Italic.ttf') format('truetype');
    font-weight: 400; /* or normal */
    font-style: italic;
}

/* EB Garamond Medium */
@font-face {
    font-family: 'EB Garamond';
    src: url('../static/EBGaramond-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

/* EB Garamond Medium Italic */
@font-face {
    font-family: 'EB Garamond';
    src: url('../static/EBGaramond-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
}

/* EB Garamond SemiBold */
@font-face {
    font-family: 'EB Garamond';
    src: url('../static/EBGaramond-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

/* EB Garamond SemiBold Italic */
@font-face {
    font-family: 'EB Garamond';
    src: url('../static/EBGaramond-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
}

/* EB Garamond Bold */
@font-face {
    font-family: 'EB Garamond';
    src: url('../static/EBGaramond-Bold.ttf') format('truetype');
    font-weight: 700; /* or bold */
    font-style: normal;
}

/* EB Garamond Bold Italic */
@font-face {
    font-family: 'EB Garamond';
    src: url('../static/EBGaramond-BoldItalic.ttf') format('truetype');
    font-weight: 700; /* or bold */
    font-style: italic;
}

/* EB Garamond ExtraBold */
@font-face {
    font-family: 'EB Garamond';
    src: url('../static/EBGaramond-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

/* EB Garamond ExtraBold Italic */
@font-face {
    font-family: 'EB Garamond';
    src: url('../static/EBGaramond-ExtraBoldItalic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
}

/* --- End of Local Font Definitions --- */

/* Basic Reset & Defaults */
body, h1, h2, h3, h4, p, ul, li, figure, figcaption {
    margin: 0;
    padding: 0;
    font-family: 'Roboto Condensed', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* UPDATED FONT */
    box-sizing: border-box;
}

body {
    line-height: 1.7;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: #A40104; /* Firebrick Red */
    color: #fff;
    padding-top: 15px;
    border-bottom: 5px solid #6A994E;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .logo-area.centered-logo-layout {
    display: flex;
    justify-content: space-between; /* Distribute space between items */
    align-items: center;          /* Vertically align items */
    padding-top: 10px;            /* Adjust padding as needed */
    padding-bottom: 20px;         /* Adjust padding as needed */
    text-align: center;           /* Helps center text if items don't fill space */
}

#header-logo {
    height: 195px;
    margin-right: 15px;
    border-radius: 4px;
}

header h1 {
    font-size: 2.2em;
    margin-bottom: 0.1em;
    font-weight: 700;
    color: #fff; /* Ensure text color is explicitly white for good contrast with shadow */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 1.1); /* offset-x | offset-y | blur-radius | color */
}

header .logo-text p {
    font-size: 0.95em;
    margin: 0;
    font-style: italic;
    font-weight: 300;
    color: #f0f0f0; /* Ensure text color is light for good contrast with shadow */
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 1.1); /* Slightly more subtle shadow */
}

header .emergency-banner {
    background-color: #FFFFFF;
    color: #A40104;
    text-align: center;
    padding: 10px 0;
    font-weight: bold;
    font-size: 1.3em;
    border-top: 2px solid #A40104;
    border-bottom: 2px solid #A40104;
    /* Add these lines for rounded corners */
    border-radius: 8px; /* Adjust as desired */
    /* Optional: If you want the rounding to be only on the inside of the main header border */
    /* margin-left: 10px; /* Example margin */
    /* margin-right: 10px; /* Example margin */
    /* You might need to adjust padding if you add margins like this */
}
header .emergency-banner p {
    margin:0;
}

header nav {
    background-color: #333;
    padding: 12px 0;
    border-bottom-left-radius: 8px; /* Or your preferred value */
    border-bottom-right-radius: 8px; /* Orbackground-color: #333;
    padding: 12px 0;
    /* Add your preferred value */
    /* Optional: Add margins if you want it inset from the header edges */
    /* margin these lines */
    border-radius: 8px; /* Adjust as desired */
    margin-left: 1px;  /* Example: Inset from header edges */
    margin-right: 1px;: 0 10px 10px 10px; */
}

header nav ul {
    list-style-type: none;
    text-align: center;
}

header nav ul li {
    display: inline-block;
    margin: 0 10px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold; /* Or 700 for Roboto Condensed */
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
    background-color: #6A994E;
    color: #333;
}

/* Main Content Sections */
main {
    background-color: #fff;
    padding-top: 1px;
}

main section {
    padding: 40px 0;
    border-bottom: 1px solid #e0e0e0;
}
main section:last-child {
    border-bottom: none;
}

main h2 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 25px;
    color: #A40104;
}
main h3 {
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 25px;
    color: #A40104;
}


.page-title-container {
    background-color: #f9f9f9;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 3px solid #6A994E;
}
.page-title-container h2 {
    margin-bottom: 0;
    text-align: center;
}

.page-banner-image {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    margin-bottom: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Hero Section - Homepage */
#hero {
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative; /* For overlay */
}
#hero::before { /* Dark overlay for better text readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6); /* Current overlay */
    z-index: 1;
}
.hero-content { /* To ensure content is above overlay */
    position: relative;
    z-index: 2;
}
#hero h2 {
    font-size: 2.8em;
    margin-bottom: 25px;
    color: #fff; /* White text on hero */
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.btn {
    display: inline-block;
    background-color: #A40104;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: bold; /* Or 700 */
    border: none;
    cursor: pointer;
}
.btn:hover {
    background-color: #8C1C1C;
    transform: translateY(-2px);
}
.btn-secondary {
    background-color: #555;
}
.btn-secondary:hover {
    background-color: #333;
}

/* Chief's Message - Homepage */
#chief-message {
    background-color: #fdfdfd;
}
#chief-message h3 {
    text-align: center;
}
#chief-message img {
    border: 3px solid #ddd;
    padding: 3px;
    background-color: #fff;
    border-radius: 5px;
}
#chief-message p {
    font-size: 1.05em; /* Adjust if needed with new font */
    line-height: 1.7;
    font-weight: 400; /* Regular weight for paragraph text */
}
#chief-message p a {
    font-weight: bold; /* Or 700 */
    color: #A40104;
    text-decoration: none;
}
#chief-message p a:hover {
    text-decoration: underline;
}

/* Quick Links - Homepage */
#quick-links {
    background-color: #f0f0f0;
}
#quick-links h3 { text-align: center; }
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.quick-link-item {
    background-color: #fff;
    padding: 25px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #A40104;
    font-weight: bold; /* Or 700 */
    font-size: 1.1em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.quick-link-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background-color: #6A994E;
    color: #333;
}

/* Latest News - Homepage */
#latest-news article {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dotted #ccc;
}
#latest-news article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
#latest-news article h4 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.2em;
    font-weight: bold; /* Or 700 */
}

/* Footer */
footer {
    background-color: #333;
    color: #ccc;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9em;
}
footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}
footer .footer-left, footer .footer-right {
    flex: 1;
    min-width: 280px;
    text-align: left;
}
footer .footer-right {
    text-align: right;
}
footer p {
    margin-bottom: 8px;
    font-weight: 300; /* Lighter for footer text */
}
footer a {
    color: #6A994E;
    text-decoration: none;
    font-weight: 400; /* Regular weight for links */
}
footer a:hover {
    text-decoration: underline;
    color: #fff;
}
footer strong { color: #fff; font-weight: bold;}


/* --- About Page Specific Styles --- */
#about-main article {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
#about-main article:last-child { border-bottom: none; margin-bottom: 0; }

#about-main h3 {
    margin-bottom: 15px;
    color: #555;
    border-bottom: 2px solid #A40104;
    padding-bottom: 8px;
    display: inline-block;
    font-weight: 700;
}

#mission-vision p {
    font-size: 1.15em;
    margin-bottom: 15px;
    font-style: italic;
    font-weight: 400;
}

.profile-img-float {
    float: right;
    margin: 0 0 15px 25px;
    width: 220px;
    border: 3px solid #ddd;
    padding: 4px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.leadership-member {
    text-align: center;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #f9f9f9;
}
.leadership-member img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #A40104;
}
.leadership-member h4 {
    margin-bottom: 5px;
    color: #A40104;
    font-size: 1.2em;
    font-weight: 700;
}
.leadership-member p {
    font-size: 1em;
    color: #555;
    font-weight: 400;
}

.station-info {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}
.station-info .station-img {
    width: 250px;
    height: auto;
    border: 1px solid #ccc;
    padding: 3px;
    border-radius: 4px;
    object-fit: cover;
}
.station-info div {
    flex: 1;
}
#stations-apparatus-summary hr { margin: 30px 0; }
#stations-apparatus-summary h4 {
    color: #A40104;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 700;
}

/* --- Join Us Page Specific Styles --- */
#join-us-main article {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
#join-us-main article:last-child { border-bottom: none; margin-bottom: 0; }

#join-us-main h3 {
    margin-bottom: 15px;
    color: #555;
    border-bottom: 2px solid #A40104;
    padding-bottom: 8px;
    display: inline-block;
    font-weight: 700;
}

#join-us-main ul {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 15px;
}
#join-us-main ul li {
    margin-bottom: 10px;
    line-height: 1.6;
    font-weight: 400;
}

#application-process strong {
    font-size: 1.1em;
    color: #333;
    font-weight: bold; /* Or 700 */
}
#application-process p em {
    display: block;
    margin-top: 15px;
    font-size: 0.9em;
    color: #777;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header .logo-area {
        flex-direction: column;
        text-align: center;
    }
    #header-logo {
        margin-right: 0;
        margin-bottom: 10px;
    }
    header h1 { font-size: 1.8em; }
    header .logo-text p { font-size: 0.85em; }

    header nav ul li {
        display: block;
        margin: 10px 0;
    }

    #hero h2 { font-size: 2em; }
    .btn { padding: 10px 20px; font-size: 0.9em;}

    footer .footer-content {
        flex-direction: column;
        text-align: center;
    }
    footer .footer-left, footer .footer-right {
        text-align: center;
        width: 100%;
    }

    .profile-img-float {
        float: none;
        display: block;
        margin: 0 auto 20px auto;
        width: 180px;
    }
    .station-info {
        flex-direction: column;
        align-items: center;
    }
    .station-info .station-img {
        margin-bottom: 15px;
    }
}

/* --- Contact Page Specific Styles --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 40px;
}

.contact-info h3, .contact-form-container h3 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #A40104;
    padding-bottom: 8px;
    display: inline-block;
    font-weight: 700;
}

.contact-info p, .contact-info ul li {
    margin-bottom: 12px;
    line-height: 1.6;
}
.contact-info hr {
    margin: 15px 0;
    border: 0;
    border-top: 1px solid #eee;
}
.contact-info strong { font-weight: bold; } /* Or 700 */
.contact-info ul {
    list-style-type: none; /* Or 'disc' if preferred */
    padding-left: 0;
    margin-top:5px;
}
.social-link img { /* For Facebook icon */
    height: 20px;
    width: 20px;
    vertical-align: middle;
    margin-left: 5px;
}


.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold; /* Or 700 */
    color: #444;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Roboto Condensed', sans-serif; /* Ensure form elements use the font */
    font-size: 1em;
}
.form-group textarea {
    resize: vertical; /* Allow vertical resize */
    min-height: 100px;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: #A40104;
    outline: none;
    box-shadow: 0 0 5px rgba(164, 1, 4, 0.3); /* NEW RED in rgba */
}

/* Responsive adjustments for contact page */
@media (max-width: 860px) { /* Adjust breakpoint as needed */
    .contact-grid {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
    }
}

/* --- Community Page Specific Styles --- */
#community-main .intro-paragraph {
    font-size: 1.1em;
    margin-bottom: 30px;
    line-height: 1.8;
}

#community-main article {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
#community-main article:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

#community-main h3 { /* Section titles like CPR/AED, Safety Tips */
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #A40104;
    padding-bottom: 10px;
    font-size: 1.7em;
}

#community-main h4 { /* Sub-section titles */
    margin-top: 20px;
    margin-bottom: 10px;
    color: #A40104;
    font-size: 1.3em;
}

#community-main ul {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 15px;
}
#community-main ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}
#community-main ul li a {
    text-decoration: none;
    color: #A40104;
    font-weight: 500; /* Medium weight for links */
}
#community-main ul li a:hover {
    text-decoration: underline;
    color: #8C1C1C;
}

#community-main .article-image { /* For optional images within articles */
    width: 100%;
    max-width: 500px; /* Control max size */
    height: auto;
    display: block;
    margin: 20px auto; /* Center the image */
    border-radius: 5px;
    border: 1px solid #ddd;
}

#external-training-resources p em { /* Disclaimer for external links */
    font-size: 0.9em;
    color: #777;
    display: block;
    margin-top: 10px;
}

/* --- Members Page Specific Styles --- */
#members-main .intro-paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.8;
}

.members-notice {
    background-color: #fff3cd; /* Light yellow for notices */
    border: 1px solid #ffeeba;
    border-left: 5px solid #ffc107; /* Amber accent */
    color: #856404;
    padding: 15px;
    margin-bottom: 30px;
    border-radius: 4px;
}
.members-notice p { margin-bottom: 0; }

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive columns */
    gap: 30px;
}

.resource-category {
    background-color: #f9f9f9;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

.resource-category h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #A40104; /* Department Red */
    border-bottom: 2px solid #6A994E;
    padding-bottom: 8px;
    font-size: 1.5em;
}

.resource-category ul {
    list-style-type: none; /* Or 'disc' if you prefer bullets */
    padding-left: 0;
    margin-bottom: 0;
}

.resource-category ul li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.resource-category ul li a {
    text-decoration: none;
    color: #0056b3; /* A standard link blue, or use department red */
    font-weight: 500;
    display: block; /* Make entire list item clickable area larger */
    padding: 5px 0;
}
.resource-category ul li a:hover {
    text-decoration: underline;
    color: #003d80; /* Darker blue on hover */
}

.resource-category .article-image, /* If you have this specific rule */
#community-main .article-image, /* To apply to community page images with this class too */
.page-banner-image /* And to your general page banner images */ {
    /* Existing styles like width, height, object-fit might be here */
    /* ... */

    /* Enhancements for rounded corners and depth: */
    border-radius: 8px; /* Increase for more pronounced rounding, adjust as you like */
    border: 1px solid #ccc; /* A slightly more visible border, optional */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), 0 6px 20px rgba(0, 0, 0, 0.10); /* Deeper shadow */
    display: block; /* Ensure it behaves like a block for margins if not already */
    margin-left: auto; /* To center if width is less than container */
    margin-right: auto; /* To center if width is less than container */

    /* Retain or adjust these from previous styles as needed: */
    width: 100%; /* Or a specific max-width */
    /* max-width: 600px; /* Example if you want to limit its width */
    height: auto;
    margin-bottom: 20px; /* Consistent margin */
}

/* --- Mission & Vision Statements Styling (About Page) --- */
#mission-vision {
    /* background-color: #f0f2f5; /* REMOVED old background color */
    background-image: url('../images/History2.jpg');
    background-size: cover;
    background-position: center center; /* Adjust if a specific part of the image needs focus */
    background-repeat: no-repeat;
    padding: 50px 40px; /* Increased padding for more image visibility */
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15); /* Slightly stronger shadow for depth */
    font-family: 'EB Garamond', serif;
    position: relative; /* For the overlay */
    color: #fff; /* Default text color for this section will be white */
}

#mission-vision::before { /* Overlay for text readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.70); /* Dark overlay - adjust opacity (0.0 to 1.0) as needed */
    border-radius: 8px; /* Match parent's border-radius */
    z-index: 1;
}

/* Ensure content (h3, p) is above the overlay */
#mission-vision h3,
#mission-vision p {
    position: relative;
    z-index: 2;
}

#mission-vision h3 {
    font-size: 2.2em;
    color: #999999; /* Light gray for contrast */
    border-bottom: none;
    padding-bottom: 0;
    display: block;
    margin-bottom: 20px;
    font-weight: 700; /* EB Garamond SemiBold or Bold */
    text-align: center;
    letter-spacing: 0.5px;
    /* Crisper text shadow for outline effect */
    text-shadow:
        -1px -1px 0 rgba(0,0,0,0.7),
         1px -1px 0 rgba(0,0,0,0.7),
        -1px  1px 0 rgba(0,0,0,0.7),
         1px  1px 0 rgba(0,0,0,0.7),
         0 0 5px rgba(0,0,0,0.5); /* Optional soft blur on top */
}

#mission-vision p {
    font-size: 1.4em;
    line-height: 1.8;
    color: #f0f0f0; /* Slightly off-white */
    margin-bottom: 25px;
    font-weight: 400; /* EB Garamond Regular */
    font-style: normal;
    text-align: center;
    /* Crisper text shadow for outline effect - more subtle for paragraph */
    text-shadow:
        -0.5px -0.5px 0 rgba(0,0,0,0.6),
         0.5px -0.5px 0 rgba(0,0,0,0.6),
        -0.5px  0.5px 0 rgba(0,0,0,0.6),
         0.5px  0.5px 0 rgba(0,0,0,0.6),
         0 0 3px rgba(0,0,0,0.4); /* Optional soft blur on top */
}

#mission-vision p:last-of-type {
    margin-bottom: 0;
}

/* Styles for Centered Logo Layout */
.header-text-left,
.header-text-right {
    flex: 1; /* Allow text areas to take up available space */
    padding: 0 15px; /* Add some padding around the text */
}

.header-text-left {
    text-align: right; /* Align "Winchester Fire Dept" to the right */
}

.header-text-right {
    text-align: left; /* Align "Serving..." to the left */
}

#header-logo-centered {
    height: 150px; /* Or your desired larger size */
    /* width: auto; /* Let it scale proportionally */
    /* margin: 0 20px; /* Add some horizontal margin around the logo */
    /* border-radius: 4px; /* Keep or adjust */
    /* The above individual properties are good, or use shorthand: */
    flex-shrink: 0; /* Prevent logo from shrinking if space is tight */
    margin: 0 20px; /* Horizontal margin around the logo */
}

.centered-logo-layout h1 { /* "Winchester Fire Department" */
    font-size: 1.9em; /* SLIGHTLY REDUCED - adjust as needed */
    margin-bottom: 0;
    color: #fff;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    line-height: 1.2; /* Adjust line height if it wraps */
}

.centered-logo-layout .header-text-right p { /* "Serving Winchester..." */
    font-size: 1.1em; /* SLIGHTLY INCREASED - adjust as needed */
    line-height: 1.5;  /* INCREASED - to give it a bit more vertical presence if it's shorter */
    margin-bottom: 0;
    font-style: italic;
    font-weight: 400; /* SLIGHTLY INCREASED weight */
    color: #f0f0f0;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.6);
}

/* You might also need to ensure the parent containers can accommodate changes */
.header-text-left,
.header-text-right {
    flex: 1;
    padding: 0 10px; /* Slightly reduced padding if space is tight */
    /* display: flex; /* Optional: if you need finer control over vertical alignment within these boxes */
    /* flex-direction: column; /* Optional */
    /* justify-content: center; /* Optional */
}

.leadership-member p a {
    color: #555; /* Or your preferred link color, like department red */
    text-decoration: none;
    font-size: 0.9em; /* Make email slightly smaller */
}
.leadership-member p a:hover {
    text-decoration: underline;
}

/* --- About Page - History Image specific styling --- */
.history-image {
    display: block; /* Make it a block element by default for mobile */
    max-width: 280px; /* Adjust max-width for mobile view, slightly less than full width */
    width: 90%;       /* Take up most of the width on small screens */
    margin: 20px auto 25px auto; /* Center it (auto margins left/right) and add vertical space */
    border-radius: 8px; /* Consistent rounding */
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Subtle shadow */
}

/* Apply float only on larger screens (e.g., tablets and up) */
@media (min-width: 768px) { /* Adjust breakpoint as needed */
    .history-image {
        float: right;
        width: auto; /* Reset width to allow max-width to take effect with float */
        max-width: 300px; /* Max width for desktop view */
        margin: 5px 0 15px 25px; /* Top, Right (0 for float), Bottom, Left */
    }

    /* If the clear:both div is still in HTML, it will work fine.
       If not, and if other content follows history that shouldn't wrap,
       you might need to add a clear to the next element or ensure the article itself contains the float.
       Often, the article's natural bottom padding/margin is enough once float is contained. */
    #history article:after { /* A common way to clear floats within a container if needed */
        /* content: ""; */
        /* display: table; */
        /* clear: both; */
    }
}
/* --- Services Page Specific Styles --- */
#services-page-main .intro-paragraph {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 40px;
    line-height: 1.7;
    color: #555;
}

.service-category {
    margin-bottom: 50px;
}

.category-title {
    font-size: 2em; /* Larger than article h3 */
    color: #A40104; /* Department Red */
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 3px solid #6A994E; /* Your accent green */
    display: block;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 25px;
}

.service-item {
    background-color: #f9f9f9; /* Light grey box */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: left; /* Text align left within the box */
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column; /* Stack items vertically */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.service-item-image {
    width: 100%;
    height: 180px; /* Fixed height for images, adjust as needed */
    object-fit: cover; /* Cover the area, might crop */
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
}

.service-item h4 {
    font-size: 1.4em;
    color: #333;
    margin-top: 0; /* Remove default h4 margin if any */
    margin-bottom: 10px;
}

.service-item p {
    font-size: 0.95em;
    line-height: 1.6;
    color: #555;
    flex-grow: 1; /* Allows paragraph to take available space, pushing link to bottom */
    margin-bottom: 15px; /* Space before link if present */
}
.service-item p:last-of-type { /* For paragraphs that are the last child, like in Fire Investigations */
    margin-bottom: 0;
}


.service-link {
    display: inline-block;
    margin-top: auto; /* Pushes link to bottom if paragraph above has flex-grow */
    padding: 8px 15px;
    background-color: #A40104; /* Department Red */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.service-link:hover {
    background-color: #8C1C1C; /* Darker Red */
    color: #fff;
}

/* Ensure footer script ID is correct if it's unique per page */
=======
/* --- Local Font Definitions --- */


/* Roboto Condensed Light (Weight 300) */
@font-face {
    font-family: 'Roboto Condensed';
    src: url('../static/RobotoCondensed-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto Condensed';
    src: url('../static/RobotoCondensed-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

/* Roboto Condensed Regular (Weight 400) */
@font-face {
    font-family: 'Roboto Condensed';
    src: url('../static/RobotoCondensed-Regular.ttf') format('truetype');
    font-weight: 400; /* or normal */
    font-style: normal;
}

@font-face {
    font-family: 'Roboto Condensed';
    src: url('../static/RobotoCondensed-Italic.ttf') format('truetype'); /* Assuming this is Regular Italic */
    font-weight: 400; /* or normal */
    font-style: italic;
}

/* Roboto Condensed Bold (Weight 700) */
@font-face {
    font-family: 'Roboto Condensed';
    src: url('../static/RobotoCondensed-Bold.ttf') format('truetype');
    font-weight: 700; /* or bold */
    font-style: normal;
}

@font-face {
    font-family: 'Roboto Condensed';
    src: url('../static/RobotoCondensed-BoldItalic.ttf') format('truetype');
    font-weight: 700; /* or bold */
    font-style: italic;
}

/* --- Local Font Definitions --- */

/* EB Garamond Regular */
@font-face {
    font-family: 'EB Garamond';
    src: url('../static/EBGaramond-Regular.ttf') format('truetype');
    font-weight: 400; /* or normal */
    font-style: normal;
}

/* EB Garamond Italic */
@font-face {
    font-family: 'EB Garamond';
    src: url('../static/EBGaramond-Italic.ttf') format('truetype');
    font-weight: 400; /* or normal */
    font-style: italic;
}

/* EB Garamond Medium */
@font-face {
    font-family: 'EB Garamond';
    src: url('../static/EBGaramond-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

/* EB Garamond Medium Italic */
@font-face {
    font-family: 'EB Garamond';
    src: url('../static/EBGaramond-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
}

/* EB Garamond SemiBold */
@font-face {
    font-family: 'EB Garamond';
    src: url('../static/EBGaramond-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

/* EB Garamond SemiBold Italic */
@font-face {
    font-family: 'EB Garamond';
    src: url('../static/EBGaramond-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
}

/* EB Garamond Bold */
@font-face {
    font-family: 'EB Garamond';
    src: url('../static/EBGaramond-Bold.ttf') format('truetype');
    font-weight: 700; /* or bold */
    font-style: normal;
}

/* EB Garamond Bold Italic */
@font-face {
    font-family: 'EB Garamond';
    src: url('../static/EBGaramond-BoldItalic.ttf') format('truetype');
    font-weight: 700; /* or bold */
    font-style: italic;
}

/* EB Garamond ExtraBold */
@font-face {
    font-family: 'EB Garamond';
    src: url('../static/EBGaramond-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

/* EB Garamond ExtraBold Italic */
@font-face {
    font-family: 'EB Garamond';
    src: url('../static/EBGaramond-ExtraBoldItalic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
}

/* --- End of Local Font Definitions --- */

/* Basic Reset & Defaults */
body, h1, h2, h3, h4, p, ul, li, figure, figcaption {
    margin: 0;
    padding: 0;
    font-family: 'Roboto Condensed', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* UPDATED FONT */
    box-sizing: border-box;
}

body {
    line-height: 1.7;
    color: #333;
    background-color: #f4f4f4;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
header {
    background-color: #A40104; /* Firebrick Red */
    color: #fff;
    padding-top: 15px;
    border-bottom: 5px solid #6A994E;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header .logo-area.centered-logo-layout {
    display: flex;
    justify-content: space-between; /* Distribute space between items */
    align-items: center;          /* Vertically align items */
    padding-top: 10px;            /* Adjust padding as needed */
    padding-bottom: 20px;         /* Adjust padding as needed */
    text-align: center;           /* Helps center text if items don't fill space */
}

#header-logo {
    height: 195px;
    margin-right: 15px;
    border-radius: 4px;
}

header h1 {
    font-size: 2.2em;
    margin-bottom: 0.1em;
    font-weight: 700;
    color: #fff; /* Ensure text color is explicitly white for good contrast with shadow */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 1.1); /* offset-x | offset-y | blur-radius | color */
}

header .logo-text p {
    font-size: 0.95em;
    margin: 0;
    font-style: italic;
    font-weight: 300;
    color: #f0f0f0; /* Ensure text color is light for good contrast with shadow */
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 1.1); /* Slightly more subtle shadow */
}

header .emergency-banner {
    background-color: #FFFFFF;
    color: #A40104;
    text-align: center;
    padding: 10px 0;
    font-weight: bold;
    font-size: 1.3em;
    border-top: 2px solid #A40104;
    border-bottom: 2px solid #A40104;
    /* Add these lines for rounded corners */
    border-radius: 8px; /* Adjust as desired */
    /* Optional: If you want the rounding to be only on the inside of the main header border */
    /* margin-left: 10px; /* Example margin */
    /* margin-right: 10px; /* Example margin */
    /* You might need to adjust padding if you add margins like this */
}
header .emergency-banner p {
    margin:0;
}

header nav {
    background-color: #333;
    padding: 12px 0;
    border-bottom-left-radius: 8px; /* Or your preferred value */
    border-bottom-right-radius: 8px; /* Orbackground-color: #333;
    padding: 12px 0;
    /* Add your preferred value */
    /* Optional: Add margins if you want it inset from the header edges */
    /* margin these lines */
    border-radius: 8px; /* Adjust as desired */
    margin-left: 1px;  /* Example: Inset from header edges */
    margin-right: 1px;: 0 10px 10px 10px; */
}

header nav ul {
    list-style-type: none;
    text-align: center;
}

header nav ul li {
    display: inline-block;
    margin: 0 10px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold; /* Or 700 for Roboto Condensed */
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
    background-color: #6A994E;
    color: #333;
}

/* Main Content Sections */
main {
    background-color: #fff;
    padding-top: 1px;
}

main section {
    padding: 40px 0;
    border-bottom: 1px solid #e0e0e0;
}
main section:last-child {
    border-bottom: none;
}

main h2 {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 25px;
    color: #A40104;
}
main h3 {
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 25px;
    color: #A40104;
}


.page-title-container {
    background-color: #f9f9f9;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 3px solid #6A994E;
}
.page-title-container h2 {
    margin-bottom: 0;
    text-align: center;
}

.page-banner-image {
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    margin-bottom: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Hero Section - Homepage */
#hero {
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative; /* For overlay */
}
#hero::before { /* Dark overlay for better text readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6); /* Current overlay */
    z-index: 1;
}
.hero-content { /* To ensure content is above overlay */
    position: relative;
    z-index: 2;
}
#hero h2 {
    font-size: 2.8em;
    margin-bottom: 25px;
    color: #fff; /* White text on hero */
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.btn {
    display: inline-block;
    background-color: #A40104;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: bold; /* Or 700 */
    border: none;
    cursor: pointer;
}
.btn:hover {
    background-color: #8C1C1C;
    transform: translateY(-2px);
}
.btn-secondary {
    background-color: #555;
}
.btn-secondary:hover {
    background-color: #333;
}

/* Chief's Message - Homepage */
#chief-message {
    background-color: #fdfdfd;
}
#chief-message h3 {
    text-align: center;
}
#chief-message img {
    border: 3px solid #ddd;
    padding: 3px;
    background-color: #fff;
    border-radius: 5px;
}
#chief-message p {
    font-size: 1.05em; /* Adjust if needed with new font */
    line-height: 1.7;
    font-weight: 400; /* Regular weight for paragraph text */
}
#chief-message p a {
    font-weight: bold; /* Or 700 */
    color: #A40104;
    text-decoration: none;
}
#chief-message p a:hover {
    text-decoration: underline;
}

/* Quick Links - Homepage */
#quick-links {
    background-color: #f0f0f0;
}
#quick-links h3 { text-align: center; }
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.quick-link-item {
    background-color: #fff;
    padding: 25px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    color: #A40104;
    font-weight: bold; /* Or 700 */
    font-size: 1.1em;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.quick-link-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background-color: #6A994E;
    color: #333;
}

/* Latest News - Homepage */
#latest-news article {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dotted #ccc;
}
#latest-news article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
#latest-news article h4 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.2em;
    font-weight: bold; /* Or 700 */
}

/* Footer */
footer {
    background-color: #333;
    color: #ccc;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9em;
}
footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}
footer .footer-left, footer .footer-right {
    flex: 1;
    min-width: 280px;
    text-align: left;
}
footer .footer-right {
    text-align: right;
}
footer p {
    margin-bottom: 8px;
    font-weight: 300; /* Lighter for footer text */
}
footer a {
    color: #6A994E;
    text-decoration: none;
    font-weight: 400; /* Regular weight for links */
}
footer a:hover {
    text-decoration: underline;
    color: #fff;
}
footer strong { color: #fff; font-weight: bold;}


/* --- About Page Specific Styles --- */
#about-main article {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
#about-main article:last-child { border-bottom: none; margin-bottom: 0; }

#about-main h3 {
    margin-bottom: 15px;
    color: #555;
    border-bottom: 2px solid #A40104;
    padding-bottom: 8px;
    display: inline-block;
    font-weight: 700;
}

#mission-vision p {
    font-size: 1.15em;
    margin-bottom: 15px;
    font-style: italic;
    font-weight: 400;
}

.profile-img-float {
    float: right;
    margin: 0 0 15px 25px;
    width: 220px;
    border: 3px solid #ddd;
    padding: 4px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}
.leadership-member {
    text-align: center;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #f9f9f9;
}
.leadership-member img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #A40104;
}
.leadership-member h4 {
    margin-bottom: 5px;
    color: #A40104;
    font-size: 1.2em;
    font-weight: 700;
}
.leadership-member p {
    font-size: 1em;
    color: #555;
    font-weight: 400;
}

.station-info {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 20px;
}
.station-info .station-img {
    width: 250px;
    height: auto;
    border: 1px solid #ccc;
    padding: 3px;
    border-radius: 4px;
    object-fit: cover;
}
.station-info div {
    flex: 1;
}
#stations-apparatus-summary hr { margin: 30px 0; }
#stations-apparatus-summary h4 {
    color: #A40104;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 700;
}

/* --- Join Us Page Specific Styles --- */
#join-us-main article {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
#join-us-main article:last-child { border-bottom: none; margin-bottom: 0; }

#join-us-main h3 {
    margin-bottom: 15px;
    color: #555;
    border-bottom: 2px solid #A40104;
    padding-bottom: 8px;
    display: inline-block;
    font-weight: 700;
}

#join-us-main ul {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 15px;
}
#join-us-main ul li {
    margin-bottom: 10px;
    line-height: 1.6;
    font-weight: 400;
}

#application-process strong {
    font-size: 1.1em;
    color: #333;
    font-weight: bold; /* Or 700 */
}
#application-process p em {
    display: block;
    margin-top: 15px;
    font-size: 0.9em;
    color: #777;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    header .logo-area {
        flex-direction: column;
        text-align: center;
    }
    #header-logo {
        margin-right: 0;
        margin-bottom: 10px;
    }
    header h1 { font-size: 1.8em; }
    header .logo-text p { font-size: 0.85em; }

    header nav ul li {
        display: block;
        margin: 10px 0;
    }

    #hero h2 { font-size: 2em; }
    .btn { padding: 10px 20px; font-size: 0.9em;}

    footer .footer-content {
        flex-direction: column;
        text-align: center;
    }
    footer .footer-left, footer .footer-right {
        text-align: center;
        width: 100%;
    }

    .profile-img-float {
        float: none;
        display: block;
        margin: 0 auto 20px auto;
        width: 180px;
    }
    .station-info {
        flex-direction: column;
        align-items: center;
    }
    .station-info .station-img {
        margin-bottom: 15px;
    }
}

/* --- Contact Page Specific Styles --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 40px;
}

.contact-info h3, .contact-form-container h3 {
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #A40104;
    padding-bottom: 8px;
    display: inline-block;
    font-weight: 700;
}

.contact-info p, .contact-info ul li {
    margin-bottom: 12px;
    line-height: 1.6;
}
.contact-info hr {
    margin: 15px 0;
    border: 0;
    border-top: 1px solid #eee;
}
.contact-info strong { font-weight: bold; } /* Or 700 */
.contact-info ul {
    list-style-type: none; /* Or 'disc' if preferred */
    padding-left: 0;
    margin-top:5px;
}
.social-link img { /* For Facebook icon */
    height: 20px;
    width: 20px;
    vertical-align: middle;
    margin-left: 5px;
}


.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold; /* Or 700 */
    color: #444;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: 'Roboto Condensed', sans-serif; /* Ensure form elements use the font */
    font-size: 1em;
}
.form-group textarea {
    resize: vertical; /* Allow vertical resize */
    min-height: 100px;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: #A40104;
    outline: none;
    box-shadow: 0 0 5px rgba(164, 1, 4, 0.3); /* NEW RED in rgba */
}

/* Responsive adjustments for contact page */
@media (max-width: 860px) { /* Adjust breakpoint as needed */
    .contact-grid {
        grid-template-columns: 1fr; /* Stack columns on smaller screens */
    }
}

/* --- Community Page Specific Styles --- */
#community-main .intro-paragraph {
    font-size: 1.1em;
    margin-bottom: 30px;
    line-height: 1.8;
}

#community-main article {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
#community-main article:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

#community-main h3 { /* Section titles like CPR/AED, Safety Tips */
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #A40104;
    padding-bottom: 10px;
    font-size: 1.7em;
}

#community-main h4 { /* Sub-section titles */
    margin-top: 20px;
    margin-bottom: 10px;
    color: #A40104;
    font-size: 1.3em;
}

#community-main ul {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 15px;
}
#community-main ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}
#community-main ul li a {
    text-decoration: none;
    color: #A40104;
    font-weight: 500; /* Medium weight for links */
}
#community-main ul li a:hover {
    text-decoration: underline;
    color: #8C1C1C;
}

#community-main .article-image { /* For optional images within articles */
    width: 100%;
    max-width: 500px; /* Control max size */
    height: auto;
    display: block;
    margin: 20px auto; /* Center the image */
    border-radius: 5px;
    border: 1px solid #ddd;
}

#external-training-resources p em { /* Disclaimer for external links */
    font-size: 0.9em;
    color: #777;
    display: block;
    margin-top: 10px;
}

/* --- Members Page Specific Styles --- */
#members-main .intro-paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.8;
}

.members-notice {
    background-color: #fff3cd; /* Light yellow for notices */
    border: 1px solid #ffeeba;
    border-left: 5px solid #ffc107; /* Amber accent */
    color: #856404;
    padding: 15px;
    margin-bottom: 30px;
    border-radius: 4px;
}
.members-notice p { margin-bottom: 0; }

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive columns */
    gap: 30px;
}

.resource-category {
    background-color: #f9f9f9;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

.resource-category h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #A40104; /* Department Red */
    border-bottom: 2px solid #6A994E;
    padding-bottom: 8px;
    font-size: 1.5em;
}

.resource-category ul {
    list-style-type: none; /* Or 'disc' if you prefer bullets */
    padding-left: 0;
    margin-bottom: 0;
}

.resource-category ul li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.resource-category ul li a {
    text-decoration: none;
    color: #0056b3; /* A standard link blue, or use department red */
    font-weight: 500;
    display: block; /* Make entire list item clickable area larger */
    padding: 5px 0;
}
.resource-category ul li a:hover {
    text-decoration: underline;
    color: #003d80; /* Darker blue on hover */
}

.resource-category .article-image, /* If you have this specific rule */
#community-main .article-image, /* To apply to community page images with this class too */
.page-banner-image /* And to your general page banner images */ {
    /* Existing styles like width, height, object-fit might be here */
    /* ... */

    /* Enhancements for rounded corners and depth: */
    border-radius: 8px; /* Increase for more pronounced rounding, adjust as you like */
    border: 1px solid #ccc; /* A slightly more visible border, optional */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), 0 6px 20px rgba(0, 0, 0, 0.10); /* Deeper shadow */
    display: block; /* Ensure it behaves like a block for margins if not already */
    margin-left: auto; /* To center if width is less than container */
    margin-right: auto; /* To center if width is less than container */

    /* Retain or adjust these from previous styles as needed: */
    width: 100%; /* Or a specific max-width */
    /* max-width: 600px; /* Example if you want to limit its width */
    height: auto;
    margin-bottom: 20px; /* Consistent margin */
}

/* --- Mission & Vision Statements Styling (About Page) --- */
#mission-vision {
    /* background-color: #f0f2f5; /* REMOVED old background color */
    background-image: url('../images/History2.jpg');
    background-size: cover;
    background-position: center center; /* Adjust if a specific part of the image needs focus */
    background-repeat: no-repeat;
    padding: 50px 40px; /* Increased padding for more image visibility */
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15); /* Slightly stronger shadow for depth */
    font-family: 'EB Garamond', serif;
    position: relative; /* For the overlay */
    color: #fff; /* Default text color for this section will be white */
}

#mission-vision::before { /* Overlay for text readability */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.70); /* Dark overlay - adjust opacity (0.0 to 1.0) as needed */
    border-radius: 8px; /* Match parent's border-radius */
    z-index: 1;
}

/* Ensure content (h3, p) is above the overlay */
#mission-vision h3,
#mission-vision p {
    position: relative;
    z-index: 2;
}

#mission-vision h3 {
    font-size: 2.2em;
    color: #999999; /* Light gray for contrast */
    border-bottom: none;
    padding-bottom: 0;
    display: block;
    margin-bottom: 20px;
    font-weight: 700; /* EB Garamond SemiBold or Bold */
    text-align: center;
    letter-spacing: 0.5px;
    /* Crisper text shadow for outline effect */
    text-shadow:
        -1px -1px 0 rgba(0,0,0,0.7),
         1px -1px 0 rgba(0,0,0,0.7),
        -1px  1px 0 rgba(0,0,0,0.7),
         1px  1px 0 rgba(0,0,0,0.7),
         0 0 5px rgba(0,0,0,0.5); /* Optional soft blur on top */
}

#mission-vision p {
    font-size: 1.4em;
    line-height: 1.8;
    color: #f0f0f0; /* Slightly off-white */
    margin-bottom: 25px;
    font-weight: 400; /* EB Garamond Regular */
    font-style: normal;
    text-align: center;
    /* Crisper text shadow for outline effect - more subtle for paragraph */
    text-shadow:
        -0.5px -0.5px 0 rgba(0,0,0,0.6),
         0.5px -0.5px 0 rgba(0,0,0,0.6),
        -0.5px  0.5px 0 rgba(0,0,0,0.6),
         0.5px  0.5px 0 rgba(0,0,0,0.6),
         0 0 3px rgba(0,0,0,0.4); /* Optional soft blur on top */
}

#mission-vision p:last-of-type {
    margin-bottom: 0;
}

/* Styles for Centered Logo Layout */
.header-text-left,
.header-text-right {
    flex: 1; /* Allow text areas to take up available space */
    padding: 0 15px; /* Add some padding around the text */
}

.header-text-left {
    text-align: right; /* Align "Winchester Fire Dept" to the right */
}

.header-text-right {
    text-align: left; /* Align "Serving..." to the left */
}

#header-logo-centered {
    height: 150px; /* Or your desired larger size */
    /* width: auto; /* Let it scale proportionally */
    /* margin: 0 20px; /* Add some horizontal margin around the logo */
    /* border-radius: 4px; /* Keep or adjust */
    /* The above individual properties are good, or use shorthand: */
    flex-shrink: 0; /* Prevent logo from shrinking if space is tight */
    margin: 0 20px; /* Horizontal margin around the logo */
}

.centered-logo-layout h1 { /* "Winchester Fire Department" */
    font-size: 1.9em; /* SLIGHTLY REDUCED - adjust as needed */
    margin-bottom: 0;
    color: #fff;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    line-height: 1.2; /* Adjust line height if it wraps */
}

.centered-logo-layout .header-text-right p { /* "Serving Winchester..." */
    font-size: 1.1em; /* SLIGHTLY INCREASED - adjust as needed */
    line-height: 1.5;  /* INCREASED - to give it a bit more vertical presence if it's shorter */
    margin-bottom: 0;
    font-style: italic;
    font-weight: 400; /* SLIGHTLY INCREASED weight */
    color: #f0f0f0;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.6);
}

/* You might also need to ensure the parent containers can accommodate changes */
.header-text-left,
.header-text-right {
    flex: 1;
    padding: 0 10px; /* Slightly reduced padding if space is tight */
    /* display: flex; /* Optional: if you need finer control over vertical alignment within these boxes */
    /* flex-direction: column; /* Optional */
    /* justify-content: center; /* Optional */
}

.leadership-member p a {
    color: #555; /* Or your preferred link color, like department red */
    text-decoration: none;
    font-size: 0.9em; /* Make email slightly smaller */
}
.leadership-member p a:hover {
    text-decoration: underline;
}

/* --- About Page - History Image specific styling --- */
.history-image {
    display: block; /* Make it a block element by default for mobile */
    max-width: 280px; /* Adjust max-width for mobile view, slightly less than full width */
    width: 90%;       /* Take up most of the width on small screens */
    margin: 20px auto 25px auto; /* Center it (auto margins left/right) and add vertical space */
    border-radius: 8px; /* Consistent rounding */
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Subtle shadow */
}

/* Apply float only on larger screens (e.g., tablets and up) */
@media (min-width: 768px) { /* Adjust breakpoint as needed */
    .history-image {
        float: right;
        width: auto; /* Reset width to allow max-width to take effect with float */
        max-width: 300px; /* Max width for desktop view */
        margin: 5px 0 15px 25px; /* Top, Right (0 for float), Bottom, Left */
    }

    /* If the clear:both div is still in HTML, it will work fine.
       If not, and if other content follows history that shouldn't wrap,
       you might need to add a clear to the next element or ensure the article itself contains the float.
       Often, the article's natural bottom padding/margin is enough once float is contained. */
    #history article:after { /* A common way to clear floats within a container if needed */
        /* content: ""; */
        /* display: table; */
        /* clear: both; */
    }
}
/* --- Services Page Specific Styles --- */
#services-page-main .intro-paragraph {
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 40px;
    line-height: 1.7;
    color: #555;
}

.service-category {
    margin-bottom: 50px;
}

.category-title {
    font-size: 2em; /* Larger than article h3 */
    color: #A40104; /* Department Red */
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 3px solid #6A994E; /* Your accent green */
    display: block;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive grid */
    gap: 25px;
}

.service-item {
    background-color: #f9f9f9; /* Light grey box */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: left; /* Text align left within the box */
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column; /* Stack items vertically */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.service-item-image {
    width: 100%;
    height: 180px; /* Fixed height for images, adjust as needed */
    object-fit: cover; /* Cover the area, might crop */
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
}

.service-item h4 {
    font-size: 1.4em;
    color: #333;
    margin-top: 0; /* Remove default h4 margin if any */
    margin-bottom: 10px;
}

.service-item p {
    font-size: 0.95em;
    line-height: 1.6;
    color: #555;
    flex-grow: 1; /* Allows paragraph to take available space, pushing link to bottom */
    margin-bottom: 15px; /* Space before link if present */
}
.service-item p:last-of-type { /* For paragraphs that are the last child, like in Fire Investigations */
    margin-bottom: 0;
}


.service-link {
    display: inline-block;
    margin-top: auto; /* Pushes link to bottom if paragraph above has flex-grow */
    padding: 8px 15px;
    background-color: #A40104; /* Department Red */
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.service-link:hover {
    background-color: #8C1C1C; /* Darker Red */
    color: #fff;
}

/* Ensure footer script ID is correct if it's unique per page */
>>>>>>> origin/master
/* Example: document.getElementById('current-year-services').textContent = new Date().getFullYear(); */