﻿/* =========================
   BASE
========================= */
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    background: #f8f9fa;
}

/* REMOVE UNDERLINES */
a {
    text-decoration: none !important;
    color: inherit;
}

/* =========================
   HEADER TOP
========================= */
.top-header {
    background: #f4f4f4;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
}

.top-header .row {
    align-items: center;
} 

/* LOGOS */
.logo-img {
    height: 90px;
    max-width: 100%;
}

.trust-logo {
    height: 90px;
    max-width: 100%;
}

/* =========================
   TOP LINKS
========================= */
.top-links {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
    margin-top: 5px;
}

.top-links a {
    color: #1e73be;
    font-weight: 500;
}

/* Fix dropdown visibility */
.user-dropdown {
    position: relative;
}

/* Ensure dropdown appears above everything */
.dropdown-menu {
    z-index: 99999 !important;
}

/* Fix clipping issues */
.top-header {
    overflow: visible !important;
}

/* Improve dropdown look */
.dropdown-menu {
    border-radius: 8px;
    padding: 5px 0;
}

.dropdown-item:hover {
    background: #f2f2f2;
}

/* =========================
   ADA MEGA MENU
========================= */
.adaBar-global {
    position: relative;
}

.adaBar-menu-toggle {
    background: #1e73be;
    color: #fff;
    padding: 8px 14px;
    border-radius: 4px;
    font-weight: 500;
    display: inline-block;
    cursor: pointer;
}

/* DROPDOWN */
.adaBar-menu {
    display: none;
    position: absolute;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 900px;
    background: #ededed;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    border-radius: 6px;
}

/* SHOW */
.adaBar-websites.active .adaBar-menu {
    display: block;
}

/* LAYOUT */
.adaBar-menu-row {
    display: flex;
    gap: 40px;
    flex-wrap: nowrap; /* ❗ keeps left & right sections side-by-side */
}

.adaBar-menu-group {
    flex: 1;
    min-width: 250px;
}

.adaBar-menu-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.adaBar-menu-row {
    display: grid;
    grid-template-columns: 1fr 1fr; /* left + right */
    gap: 50px;
}

.adaBar-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

    .adaBar-columns ul {
        min-width: unset;
    }

.adaBar-columns li {
    margin-bottom: 12px;
}

.adaBar-columns a {
    font-weight: 600;
    color: #1e73be;
}

.adaBar-columns p {
    font-size: 12px;
    color: #555;
    margin: 0;
}

/* =========================
   ZONES
========================= */
.zones {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 5px;
}

.zone-item {
    position: relative;
}

    .zone-item > a {
        color: #000;
        font-weight: 500;
    }

/* DROPDOWN */
.zone-dropdown {
    display: none;
    position: absolute;
    top: 30px;
    right: 0;
    background: #fff;
    padding: 10px;
    z-index: 9999;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

/* SHOW */
.zone-item:hover .zone-dropdown {
    display: block;
}

.zone-dropdown img {
    width: 260px;
    height: auto;
    display: block;
}

/* =========================
   NAVBAR
========================= */
.main-navbar {
    background: #1e73be;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.menu {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

    .menu > li {
        position: relative;
    }

        .menu > li > a {
            padding: 12px 16px;
            color: #fff;
            display: block;
            font-weight: 500;
            font-size: 14px;
            white-space: nowrap;
        }

        .menu > li:hover {
            background: rgba(255,255,255,0.2);
        }

/* =========================
   MOBILE TOGGLE
========================= */
.mobile-toggle {
    display: none;
    background: #1e73be;
    color: #fff;
    padding: 12px 15px;
    font-size: 16px;
    cursor: pointer;
}

/* =========================
   SUBMENU
========================= */
.submenu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    background: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    z-index: 9999;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    border-radius: 4px;
}

/* SHOW */
.menu > li:hover > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.submenu li a {
    padding: 10px 15px;
    color: #333;
    display: block;
}

    .submenu li a:hover {
        background: #f2f2f2;
    }

/* MOBILE CLICK */
.has-dropdown.active .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =========================
   NEWS TICKER
========================= */
.news-ticker {
    width: 100%;
    overflow: hidden;
    background: #fff;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.news-track {
    display: inline-flex;
    white-space: nowrap;
    gap: 50px;
    padding: 8px 0;
    animation: ticker-scroll 20s linear infinite;
}

.news-item {
    color: #000;
    font-size: 14px;
    font-weight: 500;
}

    .news-item:hover {
        color: #1e73be;
    }

/* ANIMATION */
@keyframes ticker-scroll {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}

.news-ticker:hover .news-track {
    animation-play-state: paused;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

    /* HEADER STACK */
    .top-header .row {
        flex-direction: column;
        text-align: center;
    }

    .top-header .col-md-3,
    .top-header .col-md-2,
    .top-header .col-md-4 {
        width: 100%;
        max-width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .logo-img,
    .trust-logo {
        height: 50px;
    }

    .top-links {
        justify-content: center;
    }

    .zones {
        justify-content: center;
    }

    .zone-dropdown {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    /* MOBILE MENU */
    .mobile-toggle {
        display: block;
    }

    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .menu.active {
        display: flex;
    }

    .menu > li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.2);
    }

    .menu > li > a {
        padding: 12px 15px;
        text-align: left;
    }

    /* SUBMENU */
    .submenu {
        display: none;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #f9f9f9;
    }

    .menu > li.active > .submenu {
        display: block;
    }

    /* ADA MENU */
    .adaBar-menu {
        width: 95%;
    }

    .adaBar-menu-row {
        flex-wrap: wrap; /* allow stacking on mobile */
    }

    .adaBar-columns {
        flex-wrap: wrap; /* stack columns nicely */
    }

    .adaBar-columns ul {
        min-width: 45%;
    }

    /* TICKER */
    .news-track {
        gap: 30px;
        font-size: 13px;
    }
}

.top-links .dropdown-menu {
    min-width: 220px;
}

.top-links img {
    object-fit: cover;
}

/* =========================
   FOOTER
========================= */
.main-footer {
    background: #2c2f33;
    color: #ddd;
    font-size: 14px;
}

.footer-title {
    color: #fff;
    font-weight: 600;
    margin-bottom: 15px;
}

/* LINKS */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #ccc;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #1e73be;
}

/* SOCIAL */
.social-icons a {
    display: inline-block;
    margin-right: 10px;
    color: #ccc;
    font-size: 16px;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #1e73be;
}

/* BOTTOM FOOTER */
.bottom-footer {
    background: #1f2226;
    font-size: 13px;
}

.bottom-footer a {
    color: #ccc;
    margin-left: 10px;
}

.bottom-footer a:hover {
    color: #1e73be;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {

    .bottom-footer .row {
        text-align: center;
    }

    .bottom-footer a {
        display: inline-block;
        margin: 5px;
    }
}