﻿body {
}
    /* ==========================================================================
   MODERN SITE.MASTER HEADER & NAVIGATION BAR
   ========================================================================== */
    .modern-site-header

{
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #ffffff;
    border-bottom: 3px solid #f59e0b;
    padding: 12px 0 14px 0;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.modern-site-header .navbar {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 8px;
    min-height: auto;
}

.header-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    margin-bottom: 10px;
}

.header-logo-wrap img,
.header-logo-wrap input[type="image"] {
    max-width: 258px;
    max-height: 40px;
    width: auto;
    height: auto;
    background-color: rgba(255, 255, 255, 0.96);
    padding: 4px 10px;
    border-radius: 6px;
}

.header-tagline {
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.2px;
    margin: 0;
}

    .header-tagline strong {
        color: #fbbf24;
        font-weight: 700;
    }

/* Navigation Pill Links */
.modern-nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-pill-item {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    padding: 5px 11px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #f1f5f9 !important;
    background-color: rgba(255, 255, 255, 0.09) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: all 0.15s ease;
    line-height: 1.4 !important;
}

    .nav-pill-item:hover,
    .nav-pill-item:focus {
        background-color: rgba(255, 255, 255, 0.22) !important;
        color: #ffffff !important;
        border-color: rgba(255, 255, 255, 0.35) !important;
    }

/* Highlighted Search Pill */
.nav-pill-search {
    background-color: #f59e0b !important;
    color: #0f172a !important;
    border-color: #f59e0b !important;
    font-weight: 700 !important;
}

    .nav-pill-search:hover {
        background-color: #fbbf24 !important;
        color: #0f172a !important;
    }

/* Locked / Member-Exclusive Pill Indicator */
.nav-pill-locked {
    color: #cbd5e1 !important;
    background-color: rgba(15, 23, 42, 0.35) !important;
    border-style: dashed !important;
}

.nav-pill-member {
    border-color: rgba(251, 191, 36, 0.55) !important;
}

    .nav-pill-member::before {
        content: "";
        display: inline-block;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background-color: #fbbf24;
    }

/* Login / Logout Status Pill */
.nav-pill-auth {
    background-color: #10b981 !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
    font-weight: 700 !important;
    margin-left: auto;
}

    .nav-pill-auth:hover {
        background-color: #059669 !important;
    }

/* Mobile Toggle Button */
.modern-site-header .navbar-toggle {
    border-color: rgba(255, 255, 255, 0.35);
    margin-top: 4px;
}

    .modern-site-header .navbar-toggle .icon-bar {
        background-color: #ffffff;
    }

/* Scroll-to-Top Button (#myBtn) Upgrade */
#myBtn {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    border: none;
    outline: none;
    background-color: #1e3a8a;
    color: #ffffff;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
    transition: background-color 0.15s ease, transform 0.15s ease;
}

    #myBtn:hover {
        background-color: #f59e0b;
        color: #0f172a;
        transform: translateY(-2px);
    }
/* ==========================================================================
   MODERN SITE.MASTER MEGA-FOOTER
   ========================================================================== */
.modern-footer {
    background-color: #0f172a;
    color: #cbd5e1;
    border-top: 3px solid #f59e0b;
    padding: 28px 0 20px 0;
    margin-top: 24px;
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.footer-access-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 8px 14px;
    margin-bottom: 18px;
    font-size: 12px;
}

.access-tag-member {
    color: #fbbf24;
    font-weight: 700;
}

.access-tag-open {
    color: #34d399;
    font-weight: 700;
}

.footer-col-group {
    margin-bottom: 18px;
}

.footer-heading {
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #f8fafc;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    padding-bottom: 6px;
    margin: 0 0 8px 0;
}

    .footer-heading.member-accent {
        border-left: 3px solid #f59e0b;
        padding-left: 8px;
    }

    .footer-heading.open-accent {
        border-left: 3px solid #10b981;
        padding-left: 8px;
    }

.footer-link-list {
    list-style: none;
    padding: 0;
    margin: 0 0 14px 0;
}

    .footer-link-list li {
        margin-bottom: 4px;
        line-height: 1.4;
    }

    .footer-link-list a {
        color: #94a3b8 !important;
        font-size: 12px;
        text-decoration: none !important;
        transition: color 0.15s ease, padding-left 0.15s ease;
        display: inline-block;
    }

        .footer-link-list a:hover {
            color: #ffffff !important;
            padding-left: 3px;
        }

/* Bottom Meta, Visitor Badge & Brand Bar */
.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 18px;
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-legal-box {
    font-size: 12.5px;
    color: #94a3b8;
    line-height: 1.6;
}

    .footer-legal-box a {
        color: #fbbf24 !important;
        font-weight: 600;
        text-decoration: none !important;
    }

        .footer-legal-box a:hover {
            text-decoration: underline !important;
        }

.footer-brand-box {
    text-align: right;
}

.footer-brand-name {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

    .footer-brand-name sup {
        font-size: 15px;
        color: #fbbf24;
        font-weight: 700;
    }

.footer-contact-email {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

@media (max-width: 767px) {
    .footer-brand-box {
        text-align: left;
    }
}

.modern-brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    padding: 2px 4px;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #0f172a;
    font-size: 24px;
    font-weight: 800;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.brand-text {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.6px;
    line-height: 1;
}

    .brand-text sup {
        font-size: 16px;
        color: #fbbf24;
        font-weight: 700;
        margin-left: 2px;
    }

.nav-pill-item {
    font-size: 14px !important;
    padding: 6px 13px !important;
}

.footer-heading {
    font-size: 14px !important;
}

.footer-link-list a {
    font-size: 13.5px !important;
}
/* ==========================================================================
   MOBILE NAVIGATION & HAMBURGER DRAWER FIX (<= 767px)
   ========================================================================== */
@media (max-width: 767px) {
    .header-brand-row {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 14px;
    }

    .modern-site-header .navbar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin: 0 !important;
    }

    .modern-site-header .navbar-toggle {
        display: block !important;
        float: right !important;
        margin: 0 !important;
        padding: 9px 10px;
        border: 1px solid #cbd5e1 !important;
        background-color: #f8fafc !important;
    }

    .header-logo-wrap {
        flex: 1;
        min-width: 0;
    }

        .header-logo-wrap img,
        .header-logo-wrap input[type="image"] {
            max-width: 220px !important;
            max-height: 42px !important;
        }

    .header-tagline {
        font-size: 12.5px !important;
        text-align: left;
    }

    /* Reset legacy Scripts/Menu.js off-canvas positioning */
    #slide-nav #slidemenu {
        position: static !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        width: 100% !important;
        height: auto !important;
        background: transparent !important;
        padding: 4px 0 0 0 !important;
        display: none; /* Toggled cleanly on tap */
    }

        #slide-nav #slidemenu.mobile-menu-open {
            display: block !important;
        }

    /* Clean 2-Column Mobile Grid for Nav Pills */
    .modern-nav-links {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100% !important;
        padding-top: 6px !important;
    }

    .nav-pill-item {
        width: 100% !important;
        justify-content: center;
        text-align: center;
        padding: 10px 8px !important;
        font-size: 13.5px !important;
        white-space: normal;
        line-height: 1.3 !important;
    }

    /* Full-width Search & Sign In/Out buttons on mobile */
    .nav-pill-search,
    .nav-pill-auth {
        grid-column: span 2;
        margin-left: 0 !important;
        padding: 11px 12px !important;
        font-size: 14.5px !important;
    }
}
/* Make the 3 Hamburger Lines Clearly Visible on Mobile */
.modern-site-header .navbar-toggle {
    display: inline-flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 40px;
    padding: 8px !important;
    background-color: #1e3a8a !important;
    border: 1px solid #1e3a8a !important;
    border-radius: 6px !important;
    cursor: pointer;
}

    .modern-site-header .navbar-toggle .icon-bar {
        display: block !important;
        width: 22px !important;
        height: 3px !important;
        background-color: #ffffff !important;
        border-radius: 2px !important;
        margin: 0 !important;
    }

    .modern-site-header .navbar-toggle:hover,
    .modern-site-header .navbar-toggle:focus {
        background-color: #f59e0b !important;
        border-color: #f59e0b !important;
    }

        .modern-site-header .navbar-toggle:hover .icon-bar,
        .modern-site-header .navbar-toggle:focus .icon-bar {
            background-color: #0f172a !important;
        }

@media (min-width: 768px) {
    .modern-site-header .navbar-toggle {
        display: none !important;
    }
}
/* ==========================================================================
   GLOBAL MOBILE OVERFLOW & HALF-PAGE CLIPPING FIX (<= 767px)
   ========================================================================== */
html, body, form {
    max-width: 100%;
    overflow-x: hidden !important;
}

@media (max-width: 767px) {
    /* Neutralize any legacy Menu.js slide-nav body/container offsets */
    body.slide-active,
    #page-content,
    #slide-nav,
    .container-fluid {
        position: static !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        transform: none !important;
    }

    .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .col-sm-4, .col-sm-8,
    .col-xs-12, .col-md-4, .col-lg-2 {
        padding-left: 0 !important;
        padding-right: 0 !important;
        width: 100% !important;
        float: none !important;
    }
}
@media (max-width: 767px) {
    .container-fluid {
        padding-left: 4px !important;
        padding-right: 4px !important;
    }
}
/* ==========================================================================
   MOBILE BRAND LOGO & HAMBURGER ALIGNMENT FIX (<= 767px)
   ========================================================================== */
@media (max-width: 767px) {
    .modern-site-header {
        padding-top: 8px !important;
    }

    .header-brand-row {
        padding: 8px 10px !important;
        margin: 0 0 8px 0 !important;
    }

    .modern-site-header .navbar-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        gap: 8px !important;
        overflow: visible !important;
    }

    .header-logo-wrap {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        overflow: visible !important;
        display: flex !important;
        align-items: center !important;
    }

    .modern-brand-logo {
        display: inline-flex !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 2px 0 !important;
        max-width: 100% !important;
    }

    .brand-icon {
        width: 34px !important;
        height: 34px !important;
        font-size: 18px !important;
        flex-shrink: 0 !important;
    }

    .brand-text {
        font-size: 24px !important;
        line-height: 1.15 !important;
        white-space: nowrap !important;
    }

        .brand-text sup {
            font-size: 12px !important;
            top: -0.5em !important;
        }

    .modern-site-header .navbar-toggle {
        flex-shrink: 0 !important;
        width: 40px !important;
        height: 38px !important;
    }
}
.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #ffffff !important;
    color: #1e3a8a !important;
    border: 2px solid #f59e0b;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

    .brand-icon svg {
        width: 24px;
        height: 24px;
        display: block;
        stroke: #1e3a8a;
    }

@media (max-width: 767px) {
    .brand-icon {
        width: 34px !important;
        height: 34px !important;
    }

        .brand-icon svg {
            width: 19px !important;
            height: 19px !important;
        }
}

