/*
Theme Name: Modern Health Library Child
Theme URI: https://modernhealthlibrary.com/
Description: Custom child theme for Modern Health Library
Author: Modern Health Library
Template: astra
Version: 1.0.0
*/
/* =====================================
   MODERN HEALTH LIBRARY HOMEPAGE
===================================== */

.mhl-site-header .mhl-top-inner .mhl-logo span {
    display: inline-block !important;
    color: #ffffff !important;
    font-size: 25px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

.mhl-site-header .mhl-top-inner .mhl-search {
    margin-left: auto !important;
}

@media (max-width: 767px) {
    .mhl-site-header .mhl-top-inner .mhl-logo img {
        width: 55px !important;
        height: 55px !important;
        max-width: 55px !important;
        max-height: 55px !important;
        flex-basis: 55px !important;
    }

    .mhl-site-header .mhl-top-inner .mhl-logo span {
        font-size: 18px !important;
    }
}
/* =====================================
   LATEST ARTICLE + TRENDING BLOGS
===================================== */

.mhl-featured-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 45px;
    align-items: start;
}

.mhl-trending-sidebar {
    padding-left: 20px;
}

.mhl-trending-sidebar .mhl-trending-heading {
    font-size: 27px;
    margin-bottom: 28px;
    color: #171717;
}

.mhl-trending-item {
    display: grid;
    grid-template-columns: 115px 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #EAE5DA;
}

.mhl-trending-item img {
    width: 115px;
    height: 95px;
    object-fit: cover;
    border-radius: 12px;
}

.mhl-trending-item h3 {
    font-size: 17px;
    line-height: 1.45;
    margin: 5px 0;
}

.mhl-trending-item h3 a {
    color: #171717;
    text-decoration: none;
}

.mhl-trending-item h3 a:hover {
    color: #C49A42;
}

/* TABLET AND MOBILE */

@media(max-width: 950px) {

    .mhl-featured-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .mhl-trending-sidebar {
        padding-left: 0;
    }

}

@media(max-width: 600px) {

    .mhl-trending-item {
        grid-template-columns: 95px 1fr;
        gap: 12px;
    }

    .mhl-trending-item img {
        width: 95px;
        height: 85px;
    }

    .mhl-trending-item h3 {
        font-size: 15px;
    }

}

/* ==========================================
   FINAL HEADER NAVIGATION COLOR SAFEGUARD
========================================== */
.mhl-site-header .mhl-navigation .mhl-menu > li > a {
    transition: color .25s ease;
}

.mhl-site-header .mhl-navigation .mhl-menu > li > a:hover,
.mhl-site-header .mhl-navigation .mhl-menu > li:hover > a,
.mhl-site-header .mhl-navigation .mhl-menu > li.current-menu-item > a,
.mhl-site-header .mhl-navigation .mhl-menu > li.current_page_item > a,
.mhl-site-header .mhl-navigation .mhl-menu > li.current-menu-ancestor > a {
    color: #C49A42 !important;
}
/* ==========================================
   MOBILE NAVIGATION DROPDOWN
========================================== */

@media (max-width: 767px) {

    .mhl-site-header .mhl-nav-inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100%;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    /* Menu button */
    .mhl-site-header .mhl-menu-toggle {
        display: block !important;
        margin: 0 0 10px 0;
        cursor: pointer;
    }

    /* Hide navigation initially */
    .mhl-site-header .mhl-navigation {
        display: none !important;
        width: 100%;
        background: #FFFFFF;
        padding: 10px 15px;
        box-sizing: border-box;
    }

    /* Show navigation when opened */
    .mhl-site-header .mhl-navigation.is-open {
        display: block !important;
    }

    /* Vertical navigation links */
    .mhl-site-header .mhl-navigation .mhl-menu {
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .mhl-site-header .mhl-navigation .mhl-menu li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid #EAE5DA;
    }

    .mhl-site-header .mhl-navigation .mhl-menu li a {
        display: block;
        padding: 13px 5px;
        color: #171717 !important;
        text-decoration: none;
    }

    .mhl-site-header .mhl-navigation .mhl-menu li a:hover {
        color: #C49A42 !important;
    }

    /* Hide Subscribe initially */
    .mhl-site-header .mhl-subscribe-button {
        display: none !important;
        margin: 10px 0 5px;
    }

    /* Show Subscribe when menu opens */
    .mhl-site-header .mhl-nav-inner.is-open .mhl-subscribe-button {
        display: inline-block !important;
    }

}
@media (max-width: 767px) {
    .mhl-site-header .mhl-navigation {
        display: none !important;
    }
}
