/* ==========================================================================
   GLOBAL DESIGN VARIABLES (FDC BRAND STYLE GUIDE)
   ========================================================================== */
:root {
    --primary-dark: #0a3a70; /* Deep Blue for topbar, nav accents, copyright */
    --accent-color: #3b65e0; /* Vibrant Blue for buttons and active states */
    --topbar-grey: #8c8c8c; /* Neutral Grey for small helper links */
    --text-main: #333333; /* Core dark grey for high-readability text */
    --text-light: #666666; /* Muted grey for descriptions, subtext, and hours */
    --bg-light: #f4f5f7; /* Off-white background block fills */
    --white: #ffffff; /* Pure white for headers, content cards, and footer */
    --border-color: #e5e7eb; /* Soft layout separator lines */
}

/* ==========================================================================
   CORE RESET & UTILITIES (Keeps layout uniform across edge/safari/chrome)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease, background-color 0.2s ease;
}

ul {
    list-style: none;
}

/* Enforces alignment matching your screenshots (max-width grouping) */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ==========================================================================
   GLOBAL HEADER, SEARCH, & NAV STYLES (_header.html components)
   ========================================================================== */

/* --- Top Bar --- */
.top-bar-wrapper {
    background-color: var(--primary-dark);
}

.top-bar {
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.top-links {
    display: flex;
    gap: 10px;
}

    .top-links a {
        background-color: var(--topbar-grey);
        color: var(--white);
        padding: 4px 12px;
        border-radius: 2px;
        font-weight: 600;
    }

        .top-links a:hover {
            background-color: #737373;
        }

/* --- Top Bar Social Links Override --- */
.top-bar .social-links {
    margin-top: 0;
}

    .top-bar .social-links a {
        color: var(--white);
    }

        .top-bar .social-links a:hover {
            color: var(--accent-color);
        }

.top-bar .social-icon {
    width: 20px;
    height: 20px;
}

/* --- Main Header & Logo --- */
.header-wrapper {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.header-main {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

    .logo-section img {
        max-height: 130px;
    }

.subtext {
    color: var(--text-light);
    border-left: 1px solid #ccc;
    padding-left: 20px;
    font-size: 0.95rem;
}

.search-container input {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
}

/* --- Navigation & Dropdowns --- */
.nav-wrapper {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
    z-index: 100;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-item {
    padding: 20px 0;
    font-weight: 600;
    color: var(--primary-dark);
    text-transform: uppercase;
    font-size: 0.85rem;
    position: relative;
    cursor: pointer;
}

    .nav-item:hover {
        color: var(--accent-color);
    }

/* Pure CSS Dropdown Mechanics */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    text-transform: none;
    color: var(--text-light);
    border-bottom: 1px solid var(--bg-light);
}

    .dropdown-content a:hover {
        background-color: var(--bg-light);
        color: var(--primary-dark);
    }

.nav-buttons {
    margin-left: auto;
    display: flex;
    gap: 15px;
}

/* Hide the mobile toggle on desktop */
.mobile-menu-toggle {
    display: none;
}


/* ==========================================================================
   BUTTONS & UI ELEMENTS
   ========================================================================== */

.btn-accent {
    background-color: var(--accent-color);
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 2px;
    font-weight: 700;
}

    .btn-accent:hover {
        background-color: #2b4bb0;
    }

/* Standalone Centered Banner Button */
.standalone-btn {
    display: inline-block;
    font-size: 1.2rem;
    padding: 15px 35px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: transform 0.2s ease, background-color 0.2s ease;
    background-color: var(--accent-color);
    color: var(--white);
}

    .standalone-btn:hover {
        transform: translateY(-2px);
        background-color: #2b4bb0;
    }


/* ==========================================================================
   MAIN CORE PAGE ELEMENTS (Banners, Cards, Grids, iFrames)
   ========================================================================== */

.section-container {
    padding: 50px 0;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
    color: var(--primary-dark);
}

/* --- Native Fade Slider Engine --- */
.hero-slider {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    background-color: var(--primary-dark);
    border-radius: 8px;
    margin-top: 30px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

    .slide.active {
        opacity: 1;
        z-index: 2;
    }

/* Overlay Box Styling (Desktop Sizes) */
.slide-overlay {
    background-color: transparent;
    padding: 60px 80px;
    border-radius: 4px;
    text-align: center;
    color: var(--white);
    max-width: 900px;
}

.slide-heading {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.9);
}

/* Bold White Overlay Subtext */
.slide-subtext {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 35px;
    color: #ffffff;
    -webkit-text-stroke: 1.5px #000000;
    text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.9);
}

.slide-btn {
    display: inline-block;
    font-size: 1.3rem;
    padding: 16px 40px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: transform 0.2s ease, background-color 0.2s ease;
    background-color: var(--accent-color);
    color: var(--white);
}

    .slide-btn:hover {
        transform: translateY(-2px);
        background-color: #2b4bb0;
    }

/* --- Content Cards & Grids --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-img {
    height: 200px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
}

.card-date {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 10px;
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.card-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: #999;
}

/* --- Outage Container --- */
.outage-container {
    background: var(--white);
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.outage-iframe {
    width: 100%;
    height: 500px;
    border: none;
}


/* ==========================================================================
   ARTICLE & RICH TEXT STYLING (For Markdown Content)
   ========================================================================== */

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-main);
}

    .article-content p {
        margin-bottom: 1.5rem;
    }

    .article-content h1 {
        font-size: 2.0rem;
        color: var(--primary-dark);
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }

    .article-content h2 {
        font-size: 1.8rem;
        color: var(--primary-dark);
        margin-top: 1.5rem;
        margin-bottom: 1rem;
    }

    .article-content h3 {
        font-size: 1.5rem;
        color: var(--primary-dark);
        margin-top: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .article-content h4 {
        font-size: 1.3rem;
        color: var(--text-main);
        font-weight: bold;
        margin-bottom: 0.5rem;
    }

    .article-content a {
        color: var(--accent-color);
        text-decoration: underline;
        font-weight: 600;
    }

        .article-content a:hover {
            color: #2b4bb0;
            text-decoration: none;
        }

    .article-content ul,
    .article-content ol {
        margin-left: 1.5rem;
        margin-bottom: 1.5rem;
        list-style-position: outside;
    }

        .article-content ul li {
            list-style-type: disc;
            margin-bottom: 0.8rem;
        }

        .article-content ol li {
            list-style-type: decimal;
            margin-bottom: 0.8rem;
        }


/* ==========================================================================
   CAREERS ACCORDION STYLES
   ========================================================================== */
.job-accordion {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--white);
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

    .job-accordion summary {
        padding: 15px 20px;
        background-color: var(--primary-dark);
        color: var(--white);
        font-weight: bold;
        font-size: 1.1rem;
        cursor: pointer;
        list-style: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

        .job-accordion summary::-webkit-details-marker {
            display: none;
        }

        .job-accordion summary::after {
            content: '+';
            font-size: 1.5rem;
            color: var(--accent-color);
        }

    .job-accordion[open] summary::after {
        content: '-';
    }

.job-accordion-content {
    padding: 20px;
    background-color: var(--white);
}

.pdf-embed {
    width: 100%;
    height: 600px;
    border: 1px solid var(--border-color);
    background: #f9f9f9;
}


/* ==========================================================================
   GLOBAL FOOTER & WIDGET DESIGN (_footer.html components)
   ========================================================================== */
.footer-wrapper {
    background-color: var(--white);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.footer-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    color: var(--text-light);
}

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--text-main);
    font-weight: bold;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.contact-col a,
.contact-col .icon {
    color: var(--accent-color);
    font-weight: 600;
}

.about-col a {
    color: var(--text-light);
}

    .about-col a:hover {
        color: var(--accent-color);
        text-decoration: underline;
    }

/* --- Social Links Styling (Footer) --- */
.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 15px;
}

    .social-links a {
        display: inline-block;
        color: var(--text-main);
        transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
    }

.social-icon {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.social-links a:hover {
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* --- Footer Bottom Bar --- */
.footer-bottom-wrapper {
    background-color: var(--primary-dark);
}

.footer-bottom {
    color: #ccc;
    padding: 20px;
    font-size: 0.85rem;
    text-align: center;
}

/* Floating Support Chat Interface */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    z-index: 1000;
}


/* ==========================================================================
   OFF-CANVAS MOBILE MENU STYLES
   ========================================================================== */
.mobile-sidebar {
    height: 100%;
    width: 320px;
    max-width: 100vw;
    position: fixed;
    z-index: 9999;
    top: 0;
    right: -320px;
    background-color: var(--white);
    box-shadow: -4px 0 15px rgba(0,0,0,0.1);
    overflow-y: auto;
    transition: right 0.3s ease-in-out;
}

    .mobile-sidebar.open {
        right: 0;
    }

.close-btn {
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    padding: 10px 20px;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    padding: 0 20px 30px 20px;
}

.sidebar-logo {
    max-width: 180px;
    margin: 0 auto 30px auto;
    display: block;
}

.sidebar-links a, .dropdown-toggle {
    padding: 12px 0;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-dark);
    display: block;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    cursor: pointer;
}

.sidebar-divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 15px 0;
}

.mobile-dropdown .dropdown-menu {
    display: none;
    padding-left: 20px;
    background-color: var(--bg-light);
    border-left: 2px solid var(--border-color);
    margin-top: 5px;
}

    .mobile-dropdown .dropdown-menu a {
        font-size: 0.9rem;
        font-weight: normal;
        color: var(--text-light);
    }

.sidebar-socials {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
    font-weight: bold;
    color: var(--text-main);
    text-transform: uppercase;
}

    .sidebar-socials a {
        display: inline-block;
        color: var(--text-main);
        transition: color 0.2s ease-in-out, transform 0.2s ease-in-out;
    }

        .sidebar-socials a:hover {
            color: var(--primary-dark);
            transform: translateY(-2px);
        }

.sidebar-search input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}


/* ==========================================================================
   MOBILE RESPONSIVE OVERRIDES 
   ========================================================================== */
@media (max-width: 768px) {

    .top-bar-wrapper, .desktop-only {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: block;
        font-size: 1.5rem;
        background: none;
        border: none;
        color: var(--primary-dark);
        cursor: pointer;
    }

    .hero-slider {
        height: auto !important;
        min-height: 250px !important;
    }

    .slide {
        background-size: cover !important;
        background-repeat: no-repeat !important;
        background-position: center center !important;
    }

    .slide-overlay {
        padding: 20px;
        max-width: 90%;
    }

    .slide-heading {
        font-size: 1.8rem;
    }

    .slide-subtext {
        font-size: 1.2rem;
        font-weight: 900;
        margin-bottom: 15px;
    }

    .slide-btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .header-main {
        flex-direction: column;
        padding: 15px 10px;
    }

    .mobile-hide {
        display: none !important;
    }

    .main-nav {
        justify-content: space-between;
        width: 100%;
        padding: 10px 0;
    }

    .news-grid {
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 15px;
        padding: 0 10px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        padding: 30px 20px;
    }

    .about-col {
        grid-column: span 2;
        margin-top: 15px;
        border-top: 1px solid var(--border-color);
        padding-top: 20px;
    }
}
