/* ================= VARIABLES & RESET ================= */
:root {
    --primary-blue: #0088cc;
    --header-blue: #007bc4;
    --dark-blue: #005493;
    --accent-yellow: #ffcc00;
    --light-gray: #f4f4f4;
    --text-dark: #333;
    --text-light: #fff;
    --section-padding: 3rem 0;
}

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

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Utility Classes */
.container {
    width: 92%;
    max-width: 1300px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.blue-text {
    color: var(--primary-blue);
}

.section-padding {
    padding: var(--section-padding);
}

.section-title {
    font-size: 2.2rem !important;
    text-align: center !important;
    padding-bottom: 50px !important;
    font-weight: 700 !important;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Force override for Bootstrap 5 link colors if they persist */
a:not(.btn):not(.nav-link):not(.dropdown-item) {
    text-decoration: none;
}

ul {
    list-style: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 0;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-yellow {
    background-color: var(--accent-yellow);
    color: #333;
}

.btn-yellow:hover {
    background-color: #e6b800;
}

.btn-yellow-outline {
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
    background: rgba(0, 0, 0, 0.3);
}

.btn-yellow-outline:hover {
    background-color: var(--accent-yellow);
    color: #333;
}


/* ================= HEADER (Mobile First) ================= */
.main-header {
    background-color: var(--header-blue) !important;
    padding: 0 !important;
    color: var(--text-light) !important;
    position: relative !important;
    z-index: 100 !important;
    height: auto !important;
    border: none !important;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

.header-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    height: 70px !important;
}

.mobile-nav-toggle {
    display: block !important;
    background: none !important;
    border: none !important;
    color: white !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
}

/* --- Mobile Navigation Container --- */
.main-nav {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    background-color: var(--dark-blue) !important;
    max-height: 0;
    overflow: hidden !important;
    transition: max-height 0.3s ease-in-out !important;
}

.main-nav.active {
    max-height: 100vh !important;
    overflow-y: auto !important;
}

/* Main List Styling */
.main-nav>ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    /* Enable Flexbox to support reordering */
    display: flex !important;
    flex-direction: column !important;
}

/* Move search icon to the top on mobile */
.search-icon-item {
    order: -1 !important;
}

/* UPDATE: The LI becomes the Flex Container to hold Link + Arrow + Menu */
.main-nav>ul>li {
    display: flex !important;
    flex-wrap: wrap !important;
    /* Allows the sub-menu to break to a new line on mobile */
    align-items: center !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    position: relative !important;
    list-style-type: none !important;
    background: transparent !important;
}

/* UPDATE: The Link Styles */
.main-nav>ul>li>a {
    /* Takes up available space, but leaves room for arrow */
    flex: 1 !important;
    padding: 15px 0 15px 20px !important;
    font-size: 0.95rem !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    border: none !important;
    background: transparent !important;
    text-transform: none !important;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    /* Removed border from here, added to LI above */
}

/* --- Menu Icons --- */
.nav-menu-icon {
    margin-left: 8px !important;
    font-size: 0.9em !important;
    opacity: 0.9 !important;
}

/* Force correct Font Awesome styles for icons nested in headers/footers to override inherited styles */
.main-header .fa-solid,
.main-header .fas,
.main-footer .fa-solid,
.main-footer .fas {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    font-style: normal !important;
}

.main-header .fa-regular,
.main-header .far,
.main-footer .fa-regular,
.main-footer .far {
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

.main-header .fa-brands,
.main-header .fab,
.main-footer .fa-brands,
.main-footer .fab {
    font-family: 'Font Awesome 6 Brands' !important;
    font-weight: 400 !important;
    font-style: normal !important;
}

/* --- CIRCLE ARROW TOGGLE --- */
.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;

    /* Formatting to sit nicely next to link */
    margin-right: 20px;
    margin-left: 10px;
}

.dropdown-toggle:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.dropdown-toggle i {
    font-size: 0.8rem;
    pointer-events: none;
}

/* State: Open */
.has-dropdown.mobile-open .dropdown-toggle {
    transform: rotate(180deg);
    background-color: var(--accent-yellow);
    color: #333;
}

/* --- Mobile Sub-Menus --- */
.dropdown-menu {
    /* Force the menu to take full width on new line */
    width: 100%;
    list-style: none;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0;
    display: none;
}

/* Only show when parent LI has 'mobile-open' class */
.has-dropdown.mobile-open .dropdown-menu {
    display: block;
    animation: slideDown 0.3s ease;
}

.dropdown-menu li a {
    padding: 15px 20px 15px 40px !important;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: block;
    color: #ddd;
    line-height: 1.4;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ================= HERO SECTION ================= */
.hero {
    color: var(--text-light);
    /* padding: 4rem 0 0 0; */
    position: relative;
}

.hero-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    font-weight: 800;
}

.script-text {
    font-family: serif;
    font-style: italic;
    font-weight: 400;
}

.hero-sub {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-buttons .btn {
    margin: 5px;
    min-width: 150px;
}

.hero-image {
    margin-top: 2rem;
    position: relative;
}

.hero-image img {
    max-height: 300px;
}

.pastor-tag {
    position: absolute;
    bottom: 20px;
    right: 0;
    background-color: #e31b23;
    padding: 5px 15px;
    font-weight: bold;
    font-size: 0.8rem;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 2rem;
    padding: 10px;
    cursor: pointer;
    display: none;
}

.arrow-left {
    left: 20px;
}

.arrow-right {
    right: 20px;
}


/* ================= UTILITY BAR ================= */
.utility-bar {
    background-color: white;
    border-bottom: 1px solid #ddd;
    padding-top: 10px;
    padding-bottom: 10px;
}

.utility-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.utility-buttons {
    display: flex;
    width: 100%;
}

.btn-blue-block {
    background-color: #0088cc;
    color: white !important;
    padding: 20px;
    flex: 1;
    text-align: center;
    display: flex !important;
    justify-content: center;
    font-size: 1.2em;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    border: none;
    /* Ensure no border from default btn */
}

.btn-light-blue-block {
    background-color: #72d0f4;
    color: white !important;
    padding: 20px;
    flex: 1;
    text-align: center;
    display: flex !important;
    justify-content: center;
    font-size: 1.2em;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    border: none;
}

.social-icons {
    padding: 15px;
    display: flex;
    gap: 8px;
}

.social-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--accent-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
}


/* ================= AMERICA PROMO BANNER ================= */
.america-promo {
    background-color: #f2f2f2;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 3rem 0;
}

.america-promo .container {
    display: flex;
    justify-content: center;
}

.america-promo-link {
    display: block;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.america-promo-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.america-promo-image {
    display: block;
    width: 100%;
    height: auto;
}


/* ================= FEATURED PROGRAMS ================= */
.programs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.program-card {
    text-align: center;
}

.program-card h3 {
    margin-top: -5px;
    font-size: 1.2rem;
    color: #959595;
    font-weight: 600;
}


.thumb-wrapper img {
    border-radius: 10px;
    width: 100%;
    /* box-shadow: 0 4px 10px rgba(0,0,0,0.1); */
}

.featured-program-link {
    display: block;
    max-width: 100%;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.08));
}

.featured-program-link:hover {
    transform: translateY(-4px);
    filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.16));
}




/* ================= WATCH ON DEMAND ================= */
.on-demand {
    background-color: #0088cc;
    color: white;
}

.on-demand-grid {
    display: flex;
    flex-direction: column-reverse;
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.od-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.od-sub {
    font-size: 2rem;
    opacity: 0.8;
    margin-bottom: 2rem;
    color: #6DCFF6;
    margin-top: -20px;
    font-weight: bold;
}

.platform-logos {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: right;
}

.platform-logos img {
    padding-bottom: 20px;
}

.logo-box {
    font-weight: 900;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 10px;
}

.logo-box small {
    font-size: 0.8rem;
    font-weight: normal;
    letter-spacing: 1px;
}


/* ================= EVANGELISM PROMO BANNER ================= */
.evangelism-promo {
    background-color: #ffffff;
    padding: 3rem 0;
}

.evangelism-promo .container {
    display: flex;
    justify-content: center;
}

.evangelism-promo-link {
    display: block;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.evangelism-promo-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.evangelism-promo-image {
    display: block;
    width: 100%;
    height: auto;
}


/* ================= NEWSLETTER ================= */
.newsletter {
    background-color: #f2f2f2;
}

.newsletter-card {
    background: white;
    background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url("/image/home/form-background.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.20);
    display: flex;
    flex-direction: column;
    position: relative;
}

.newsletter-text {
    padding: 2rem;
    flex: 1;
}

.newsletter-text h2 {
    margin-bottom: 5px;
}

.newsletter-text p {
    color: #888;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.form-row input,
.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: #fdfdfd;
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5px;
    margin: 20px 0;
    font-size: 0.85rem;
    color: #555;
}

.newsletter-img-col {
    /* background image moved to desktop media query */
    min-height: 200px;
}

.newsletter-img-col img {
    display: none;
}


/* ================= FOOTER ================= */
.main-footer {
    background-color: #007bc4 !important;
    color: #ffffff !important;
    font-size: 0.85rem !important;
    padding: 3rem 0 !important;
    border: none !important;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

.main-footer * {
    box-sizing: border-box !important;
}

.main-footer .footer-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    /* 2 cols on mobile */
    gap: 20px !important;
}

/* Brand col spans full width on mobile */
.main-footer .brand-col {
    grid-column: 1 / -1 !important;
    margin-bottom: 20px !important;
}

.main-footer .footer-col .footer-title,
.main-footer .footer-col h3 {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    text-transform: none !important; /* Prevent uppercase leaks */
    margin: 0 0 15px 0 !important; /* Explicitly reset margins */
    padding: 0 !important; /* Explicitly reset padding */
    line-height: 1.2 !important;
    letter-spacing: normal !important;
    border: none !important; /* Prevent bottom borders leaking from other h3 styles */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}

.main-footer .footer-col ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.main-footer .footer-col ul li {
    list-style-type: none !important;
    margin-bottom: 8px !important;
    line-height: 1.3 !important;
    padding: 0 !important;
}

.main-footer .footer-col ul li a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    transition: color 0.3s !important;
    font-weight: normal !important;
    font-size: 0.85rem !important;
    background: transparent !important;
}

.main-footer .footer-col ul li a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

.footer-spacer {
    height: 20px;
}

.app-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.footer-app-download {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-app-download .download-text {
    margin: 0 !important;
    font-size: 0.85rem !important;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    color: #ffffff !important;
}

.main-footer .copyright {
    margin-top: 80px !important;
    padding-top: 40px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}

.main-footer .copyright .copyright-text {
    font-size: 0.75rem !important;
    opacity: 0.8 !important;
    margin-bottom: 10px !important;
    color: #ffffff !important;
}

.main-footer .copyright .small-links {
    font-size: 0.75rem !important;
    opacity: 0.8 !important;
    color: #ffffff !important;
}

.main-footer .copyright .small-links a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none !important;
    background: transparent !important;
}

.main-footer .copyright .small-links a:hover {
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* Message box paragraph replacement */
.message-box .message-text {
    margin: 0 !important;
    font-size: 1em !important;
    font-family: Arial, sans-serif !important;
    line-height: inherit !important;
    color: white !important;
}

@media (max-width: 768px) {
    .message-box .message-text {
        font-size: 0.9em !important;
    }
}

/* ==================================================================
   Mobile MEDIA QUERIES (min-width: 992px)
================================================================== */
@media (max-width: 992px) {

    .newsletter-card .card-image {
        display: none;
    }

    .newsletter-img-col {
        display: none !important;
    }

}


/* ==================================================================
   DESKTOP MEDIA QUERIES (min-width: 992px)
================================================================== */
@media (min-width: 992px) {

    /* ---- Newsletter Desktop ---- */
    .newsletter-card {
        flex-direction: row;
        border-radius: 20px;
        overflow: hidden;
        position: relative;
        background-image: url("/image/home/form-background.jpg");
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
        /* Use cover to fill the area */
    }

    .newsletter-text {
        flex: 1;
        position: relative;
        z-index: 1;
        /* White background for the form content */
    }

    .newsletter-img-col {
        flex: 1;
        width: auto;
        min-height: auto;
        /* No background image here, it's on .newsletter-card */
    }

    .checkbox-group {
        grid-template-columns: 1fr 1fr;
    }

    .mobile-nav-toggle {
        display: none !important;
    }

    .main-nav {
        position: static !important;
        max-height: none !important;
        background: transparent !important;
        background-color: transparent !important;
        width: auto !important;
        overflow: visible !important;
    }

    .main-nav>ul {
        display: flex !important;
        align-items: center !important;
        flex-direction: row !important;
        /* Reset to row for desktop */
    }

    /* Reset order for desktop so search icon stays at the end */
    .search-icon-item {
        order: 0 !important;
    }

    .main-nav>ul>li {
        margin-left: 5px !important;
        position: relative !important;
        border-bottom: none !important;
        /* Remove mobile border */
        /* Desktop: No wrap needed for menu because it is absolute positioned */
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important; /* Prevent carets wrapping below text when squeezed */
        list-style-type: none !important;
    }

    .main-nav>ul>li>a {
        padding: 25px 5px 25px 12px !important;
        /* Reduced right padding */
        border: none !important;
        font-size: 0.95rem !important;
        font-weight: bold !important;
        color: white !important;
        flex: 0 0 auto !important;
        text-transform: none !important;
        font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
        /* Don't stretch on desktop */
    }

    /* Resize the arrow specifically for Desktop */
    .main-header .dropdown-toggle {
        width: 22px !important;
        height: 22px !important;
        font-size: 0.65rem !important;
        margin-left: 0 !important;
        margin-right: 12px !important;
        /* Space from right edge */
        background-color: rgba(255, 255, 255, 0.15) !important;
        /* Keep circle */
    }

    /* Active State for Desktop Arrow */
    .main-header .has-dropdown.desktop-open .dropdown-toggle {
        transform: rotate(180deg) !important;
        background-color: var(--accent-yellow) !important;
        color: #333 !important;
    }

    /* Reset the Mobile Toggle Button styles for Desktop */
    /*
    .dropdown-toggle {
        width: auto;
        height: auto;
        background-color: transparent;
        border-radius: 0;
    }
    .dropdown-toggle:hover { background-color: transparent; }
    /*
    
    /* Active State for Desktop Arrow: Yellow Background + Rotate */
    /*
    .has-dropdown.desktop-open .dropdown-toggle { 
        transform: rotate(180deg); 
        background-color: var(--accent-yellow);
        color: #333;
    }
    */

    /* ---- Dropdown Menus Desktop ---- */
    .dropdown-menu {
        display: none;
        /* Hidden by default */
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 240px;
        background-color: white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        padding: 10px 0;
        border-radius: 0 0 5px 5px;
        z-index: 1000;
        flex-direction: column;
    }

    /* ENABLED: The hover rule */
    .has-dropdown:hover .dropdown-menu {
        display: flex;
    }

    /* OPTIONAL: Keep click support if needed, but hover is primary */
    .has-dropdown.desktop-open .dropdown-menu {
        display: flex;
    }

    .dropdown-menu li a {
        color: #333 !important;
        padding: 12px 20px !important;
        border-bottom: 1px solid #eee;
        display: block;
        text-align: left;
    }

    .dropdown-menu li:last-child a {
        border-bottom: none;
    }

    .dropdown-menu li a:hover {
        background-color: var(--light-gray);
        color: var(--primary-blue) !important;
        padding-left: 25px !important;
    }

    /* Rotate arrow when open (using class instead of hover) */
    .has-dropdown.desktop-open .dropdown-toggle {
        transform: rotate(180deg);
    }


    /* ---- Hero Desktop ---- */
    .hero-grid {
        flex-direction: row;
        justify-content: space-between;
        height: 500px;
    }

    .hero-text {
        text-align: left;
        width: 50%;
        align-items: flex-start;
    }

    .hero h1 {
        font-size: 4.5rem;
    }

    .hero-image {
        position: absolute;
        right: 0;
        bottom: 0;
        width: 45%;
        margin: 0;
    }

    .hero-image img {
        max-height: 550px;
    }

    .slider-arrow {
        display: block;
    }

    /* ---- Utility Bar Desktop ---- */
    .utility-content {
        flex-direction: row;
        padding: 0;
    }

    .utility-buttons {
        width: auto;
        margin-left: 8%;
    }

    .btn-blue-block {
        padding: 15px 40px;
        width: 400px;
    }

    .btn-light-blue-block {
        padding: 15px 40px;
    }

    .social-icons {
        margin-left: auto;
        gap: 10px;
        margin-right: 5%;
    }

    /* ---- Programs Grid Desktop ---- */
    .programs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    /* ---- On Demand Desktop ---- */
    .on-demand-grid {
        flex-direction: row;
        text-align: left;
        align-items: center;
    }

    .od-image-collage {
        flex: 1;
    }

    .od-content {
        flex: 1;
        padding-left: 50px;
        align-items: flex-start;
    }

    .platform-logos {
        align-items: flex-start;
    }

    /* ---- Newsletter Desktop ---- */
    .newsletter-card {
        flex-direction: row;
    }

    .newsletter-img-col {
        flex: 1;
        width: auto;
        min-height: auto;
    }

    .newsletter-text {
        flex: 1;
    }

    .checkbox-group {
        grid-template-columns: 1fr 1fr;
    }

    /* ---- Footer Desktop ---- */
    .main-footer .footer-grid {
        grid-template-columns: 1.5fr repeat(6, 1fr) !important;
        gap: 15px !important;
    }

    .main-footer .brand-col {
        grid-column: auto !important;
        margin-bottom: 0 !important;
    }
}

/* Squeezed viewport adjustments (992px - 1150px) to prevent layout issues */
@media (min-width: 992px) and (max-width: 1150px) {
    .logo img {
        max-width: 170px !important;
        height: auto;
    }
    .main-nav>ul>li {
        margin-left: 2px;
    }
    .main-nav>ul>li>a {
        padding: 25px 2px 25px 8px;
        font-size: 0.88rem;
    }
    .dropdown-toggle {
        margin-right: 6px;
        width: 20px;
        height: 20px;
    }
}

/* ================= PROVIDER LOGOS ================= */
/* Mobile First (Base) - Stacked, centered, original size */
.provider-logos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    align-items: center;
    gap: 20px;
}

@media (min-width: 992px) {

    /* Desktop - Horizontal, Right to Left */
    .provider-logos {
        display: flex;
        flex-direction: row-reverse;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
}

/* ================= SCROLL TO TOP BUTTON ================= */
.scroll-to-top-btn {
    position: fixed;
    bottom: 60px;
    right: 0;
    width: 46px;
    height: 46px;
    background-color: #8a8a8a; /* Solid grey matching user image */
    color: #ffffff;
    border: none;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.2s ease, transform 0.2s ease;
}

.scroll-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top-btn:hover {
    background-color: #008ec9; /* Shifts to active brand blue on hover */
    color: #ffffff;
    transform: scaleX(1.1); /* Subtle premium swell effect */
}

/* ================= PROVIDER LOGO HOVER ANIMATION ================= */
.provider-link {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.provider-link:hover {
    transform: translateY(-4px);
}
