/* === BOOKS HEADER & FOOTER === */


body[data-sitename="booksgateway"] .journal-header,
body[data-sitename="booksgateway"] .widget-SitePageFooter .journal-footer.journal-bg {
    background: unset;
    background-color: #eb5e62;
}


body[data-sitename="booksgateway"] .journal-header .journal-header_content .journal-logo_wrap a.journal-logo-link {
    color: #000000;
    font-size: 2rem;
}


body[data-sitename="booksgateway"] .journal-header .journal-header_content .journal-logo_wrap a.journal-logo-link:hover {
    text-decoration: none;
}


body[data-sitename="booksgateway"] .journal-header .site-menu .nav-link {
    color: #000000;
}


@media (max-width: 899px) {
    body[data-sitename="booksgateway"] .journal-header .journal-header_content .navbar-menu_wrap .mobile-site-menu-toggle {
        color: #000000;
    }
}


body[data-sitename="booksgateway"] .widget-SitePageFooter .journal-footer .journal-footer_content .journal-footer-affiliations a img {
    max-height: 2rem;
}


/* === BOOKS GATEWAY HOMEPAGE === */


body[data-sitename="booksgateway"].pg_index
.theme-homepage-layout.gateway
.hero-row {
    background-color: #eb5e6233;
}


body[data-sitename="booksgateway"].pg_index
.theme-homepage-layout.gateway
.widget-SelfServeContent
.homepage-panel-header {
    background-color: #eb5e62;
}


/* Feature 1 - remove default width and margins */


body[data-sitename="booksgateway"].pg_index
.theme-homepage-layout
.widget-instance-books_home-self-serve-feature-1
.homepage-panel-wrap {
    width: unset;
    margin: unset;
}


body[data-sitename="booksgateway"].pg_index
.theme-homepage-layout
.widget-instance-books_home-self-serve-feature-1
.homepage-panel-wrap h3 {
    margin: unset;
}


/* =========================================================
   HERO SEARCH / CTA ROW
   ========================================================= */


/*
   Desired desktop order:

   [ Find a book ]          [ Search........ | Books | Search ] Advanced Search
*/


body[data-sitename="booksgateway"].pg_index
.hero-search-container {
    display: flex !important;
    align-items: center;
    width: 100%;
    margin-top: 18px;
    gap: 8px;
}


/* ---------------------------------------------------------
   FIND A BOOK BUTTON - LEFT
   --------------------------------------------------------- */


body[data-sitename="booksgateway"].pg_index
.hero-search-container .home-btn-wrap {
    order: 1;
    flex: 0 0 auto;
    margin: 0 auto 0 0 !important;
    padding: 0;
}


body[data-sitename="booksgateway"].pg_index
.hero-search-container .home-btn-wrap .button {
    display: inline-block;
    margin: 0;
    padding: 9px 18px;
    border: 0;
    border-radius: 25px;
    background-color: #14555d;
    color: #ffffff;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}


body[data-sitename="booksgateway"].pg_index
.hero-search-container .home-btn-wrap .button:hover,
body[data-sitename="booksgateway"].pg_index
.hero-search-container .home-btn-wrap .button:focus {
    background-color: #103f45;
    color: #ffffff;
    text-decoration: none;
}


/* ---------------------------------------------------------
   SEARCH BOX - RIGHT
   --------------------------------------------------------- */


body[data-sitename="booksgateway"].pg_index
.hero-search-container .navbar-search {
    order: 2;
    flex: 0 1 414px;
    width: 414px;
    max-width: 414px;
    margin: 0 !important;
    padding: 0;
}


body[data-sitename="booksgateway"].pg_index
.hero-search-container .microsite-search {
    display: flex;
    width: 100%;
}


body[data-sitename="booksgateway"].pg_index
.hero-search-container .navbar-search-input_wrap {
    flex: 1 1 auto;
    min-width: 0;
}


/* ---------------------------------------------------------
   ADVANCED SEARCH - AFTER SEARCH BOX
   --------------------------------------------------------- */


body[data-sitename="booksgateway"].pg_index
.hero-search-container .navbar-search-advanced {
    order: 3;
    flex: 0 0 auto;
    margin: 0 !important;
    padding: 0;
}


body[data-sitename="booksgateway"].pg_index
.hero-search-container .advanced-search {
    display: block;
    font-size: 11px;
    line-height: 1.1;
    text-align: left;
    white-space: normal;
}


/* =========================================================
   RESPONSIVE HERO
   ========================================================= */


@media (max-width: 900px) {

    body[data-sitename="booksgateway"].pg_index
    .hero-search-container {
        flex-wrap: wrap;
        align-items: center;
    }


    body[data-sitename="booksgateway"].pg_index
    .hero-search-container .home-btn-wrap {
        order: 1;
        width: 100%;
        margin-bottom: 14px !important;
    }


    body[data-sitename="booksgateway"].pg_index
    .hero-search-container .navbar-search {
        order: 2;
        flex: 1 1 400px;
        width: auto;
        max-width: none;
    }


    body[data-sitename="booksgateway"].pg_index
    .hero-search-container .navbar-search-advanced {
        order: 3;
    }

}


@media (max-width: 600px) {

    body[data-sitename="booksgateway"].pg_index
    .hero-search-container {
        display: block !important;
    }


    body[data-sitename="booksgateway"].pg_index
    .hero-search-container .home-btn-wrap {
        margin-bottom: 16px !important;
    }


    body[data-sitename="booksgateway"].pg_index
    .hero-search-container .navbar-search {
        width: 100%;
        max-width: none;
        margin-bottom: 8px !important;
    }


    body[data-sitename="booksgateway"].pg_index
    .hero-search-container .navbar-search-advanced {
        margin-bottom: 0 !important;
    }

}