/*
   APEX Medical Laboratories - Modern Navigation & Footer Styles
   Created: September 4, 2025
*/

/* Strong CSS Reset for Navigation */
header {
    display: block !important;
    width: 100% !important;
    position: relative !important;
}

header .navbar {
    padding: 0 !important;
    background: transparent !important;
}

header .navbar li {
    display: block !important;
}

header .navbar li a {
    display: block !important;
    position: relative !important;
}

/* Modern Header & Navigation Styles */
.top-bar {
    color: var(--white);
    font-size: 0.9rem;
}

.top-contact {
    color: rgba(255, 255, 255, 0.9);
}

.top-contact-item {
    display: flex;
    align-items: center;
}

.top-contact-item i {
    font-size: 14px;
}

.top-social-icons {
    display: flex;
    align-items: center;
}

.social-icon-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    margin-right: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon-sm:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
}

.top-login {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.top-login:hover {
    color: white;
    text-decoration: none;
}

.modern-header {
    background-color: white;
    box-shadow: none;
    padding: 0;
    position: relative;
    z-index: 100;
}

.logo-img {
    max-height: 50px;
    width: auto;
    margin-right: 10px;
}

/* Match the design in screenshot */
.navbar {
    padding: 0;
}

.navbar-light .navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    padding: 25px 15px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.navbar-light .navbar-nav .active > .nav-link,
.navbar-light .navbar-nav .nav-link.active,
.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link:hover {
    color: #007bff;
    background-color: #f8f9fa;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    border-radius: 30px;
    padding: 10px 25px;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.appointment-trigger {
    border-radius: 30px;
    padding-left: 25px;
    padding-right: 25px;
}

.navbar-nav .nav-item {
    position: relative;
    margin-left: 5px;
    margin-right: 5px;
}

.navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-item:after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--primary);
    bottom: 0;
    left: 0;
    transition: all 0.3s ease;
}

.navbar-nav .nav-item:hover:after,
.navbar-nav .nav-item.active:after {
    width: 100%;
}

.navbar-nav .nav-item:hover .nav-link,
.navbar-nav .nav-item.active .nav-link {
    color: var(--primary);
}

.nav-cta .btn {
    border-radius: 30px;
    padding: 0.5rem 1.5rem;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.15);
}

/* Enhanced Modern Footer Styles */
.enhanced-footer {
    background-color: #222;
    color: rgba(255, 255, 255, 0.7);
}

.footer-subscribe-form .form-control {
    height: 50px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-color: #e5e5e5;
}

.footer-subscribe-form .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    padding-left: 20px;
    padding-right: 20px;
    font-weight: 600;
}

.footer-heading-enhanced {
    color: white;
    position: relative;
    font-weight: 600;
    margin-bottom: 25px;
    padding-bottom: 15px;
}

.footer-heading-enhanced:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links-enhanced li {
    margin-bottom: 12px;
}

.footer-links-enhanced a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.footer-links-enhanced a i {
    transition: all 0.3s ease;
}

.footer-links-enhanced a:hover {
    color: white;
    text-decoration: none;
}

.footer-links-enhanced a:hover i {
    margin-right: 10px;
}

.footer-social-links {
    display: flex;
    margin-top: 25px;
}

.social-link-footer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.social-link-footer:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    text-decoration: none;
}

.contact-info-enhanced li {
    margin-bottom: 20px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(var(--primary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-icon i {
    color: var(--primary);
    font-size: 18px;
}

.contact-info-enhanced h6 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.contact-info-enhanced p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

.bg-darker {
    background-color: #1a1a1a;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: white;
    text-decoration: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .modern-header {
        padding: 10px 0;
    }

    .logo-img {
        max-height: 45px;
    }

    .top-contact {
        display: none !important;
    }

    .top-right {
        justify-content: center !important;
    }

    .footer-heading-enhanced {
        margin-top: 20px;
    }
}
