/* Overrides for Maesmi React Migration */

/* 1. Ensure appear-animation elements are visible immediately */
.appear-animation {
    opacity: 1 !important;
    visibility: visible !important;
}

/* 2. Ensure Navigation Links are visible (overriding .nav-link.active and general .nav-link) */
#header .header-nav-main nav>ul>li>a {
    color: #444 !important;
    /* Default dark text for nav links */
}

#header .header-nav-main nav>ul>li>a:hover,
#header .header-nav-main nav>ul>li>a.active {
    color: #0082a6 !important;
    /* Theme blue for active/hover */
}

/* 3. Ensure breadcrumbs are legible */
.breadcrumb li a {
    color: #444 !important;
}

.breadcrumb li.active {
    color: #0082a6 !important;
}

/* 4. Fix any lingering text-color-light that wasn't caught by the sed replacement */
.text-color-light,
.text-light {
    color: #444 !important;
}

/* 5. Prevent absolute decorations (SVGs, lines) from breaking mobile layouts */
html,
body {
    overflow-x: hidden !important;
    max-width: 100vw;
}

/* ============================================================
   MAESMI HEADER – Responsive & Sticky
   ============================================================ */

/* Offset page body so content doesn't hide behind the fixed header */
body {
    padding-top: 70px;
}

/* Desktop navigation links */
.maesmi-desktop-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

@media (max-width: 768px) {
    .maesmi-desktop-nav {
        display: none !important;
    }
}

.maesmi-nav-link {
    display: inline-block;
    padding: 0.5rem 0.9rem;
    font-family: "poppins", Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333 !important;
    text-decoration: none !important;
    border-radius: 6px;
    transition: color 0.2s ease, background-color 0.2s ease;
    position: relative;
}

.maesmi-nav-link:hover {
    color: #0082a6 !important;
    background-color: rgba(0, 130, 166, 0.07);
}

/* Dropdown item inside desktop nav */
.maesmi-dropdown-item {
    display: block;
    padding: 0.45rem 1rem;
    font-family: "poppins", Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #444 !important;
    text-decoration: none !important;
    transition: color 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
}

.maesmi-dropdown-item:hover {
    color: #0082a6 !important;
    background-color: rgba(0, 130, 166, 0.07);
}

/* Hamburger button – visible only on mobile */
.maesmi-hamburger {
    display: none;
    background: none;
    border: none;
    padding: 0.4rem;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .maesmi-hamburger {
        display: flex;
    }
}

/* Mobile dropdown menu */
.maesmi-mobile-nav {
    display: flex;
    flex-direction: column;
    background-color: rgba(255, 255, 255, 0.97);
    border-top: 1px solid #e0e0e0;
    padding: 0.5rem 0 1rem 0;
    max-height: 75vh;
    overflow-y: auto;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.maesmi-mobile-link {
    display: block;
    padding: 0.75rem 1.5rem;
    font-family: "poppins", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #333 !important;
    text-decoration: none !important;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.2s ease, background 0.2s ease;
}

.maesmi-mobile-link:hover {
    color: #0082a6 !important;
    background-color: rgba(0, 130, 166, 0.05);
}

/* Make sure the old vendor .header-body / .header-row styles don't interfere */
#header.maesmi-header .header-body,
#header.maesmi-header .header-row,
#header.maesmi-header .header-column,
#header.maesmi-header .header-nav {
    all: unset;
}