/*
 * DR. BOBOEV MATERNITY CENTER — NAVBAR + INNER HERO V8
 * 1) Desktop navbar matni kattaroq
 * 2) Ichki sahifalarning yuqori hero bloklarida mavjud hero rasmlari
 */

:root {
    --nav-hero-overlay-1: rgba(35, 22, 29, .72);
    --nav-hero-overlay-2: rgba(89, 30, 57, .48);
}

/* =========================================================
   NAVBAR TYPOGRAPHY
   ========================================================= */

.liv-nav {
    gap: 2px !important;
}

.liv-nav a {
    padding: 13px 10px !important;
    font-size: 15.5px !important;
    font-weight: 820 !important;
    line-height: 1.15 !important;
    letter-spacing: -.012em;
    white-space: nowrap;
}

.liv-nav a:hover,
.liv-nav a.active {
    font-weight: 850 !important;
}

.liv-navbar {
    gap: 22px !important;
}

@media (max-width: 1500px) {
    .liv-nav a {
        padding-inline: 8px !important;
        font-size: 14.5px !important;
    }

    .liv-navbar {
        gap: 16px !important;
    }
}

/* =========================================================
   INNER PAGE HERO — generic fallback
   Homepage `.hero` intentionally excluded.
   ========================================================= */

main > section:first-child:not(.hero):not(.liv-search-section) {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        linear-gradient(
            90deg,
            rgba(35, 22, 29, .36) 0%,
            rgba(89, 30, 57, .18) 52%,
            rgba(73, 29, 52, .08) 100%
        ),
        url('/images/hero/hero-2.png') right center / contain no-repeat !important;
    background-color: #f7eef2 !important;
}

main > section:first-child:not(.hero):not(.liv-search-section)::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(
            circle at 82% 22%,
            rgba(255, 255, 255, .13),
            transparent 31%
        );
    pointer-events: none;
}

/* Text should remain readable over image */
main > section:first-child:not(.hero):not(.liv-search-section) h1,
main > section:first-child:not(.hero):not(.liv-search-section) h2 {
    color: #fff !important;
    text-shadow: 0 3px 20px rgba(0, 0, 0, .18);
}

main > section:first-child:not(.hero):not(.liv-search-section) p {
    color: rgba(255, 255, 255, .84) !important;
}

main > section:first-child:not(.hero):not(.liv-search-section) > .container > span,
main > section:first-child:not(.hero):not(.liv-search-section) .v6-eyebrow,
main > section:first-child:not(.hero):not(.liv-search-section) .school-eyebrow,
main > section:first-child:not(.hero):not(.liv-search-section) .liv-tools-eyebrow,
main > section:first-child:not(.hero):not(.liv-search-section) .health-v7-back {
    color: #fff !important;
}

main > section:first-child:not(.hero):not(.liv-search-section) .health-v7-back {
    opacity: .88;
}

/* Buttons in image hero */
main > section:first-child:not(.hero):not(.liv-search-section) .button {
    border-color: #fff !important;
    color: #2d2428 !important;
    background: #fff !important;
    box-shadow: none !important;
}

main > section:first-child:not(.hero):not(.liv-search-section) .button:hover {
    border-color: #bc3d6d !important;
    color: #fff !important;
    background: #bc3d6d !important;
}

/* =========================================================
   Different image per major internal section
   ========================================================= */

.health-v7-hero,
.health-v7-detail-hero {
    background:
        linear-gradient(
            90deg,
            rgba(28, 34, 36, .38),
            rgba(49, 71, 69, .16)
        ),
        url('/images/hero/hero-3.png') right center / contain no-repeat !important;
    background-color: #f7eef2 !important;
}

.school-hero,
.school-detail-hero {
    background:
        linear-gradient(
            90deg,
            rgba(42, 24, 34, .73),
            rgba(106, 42, 73, .38)
        ),
        url('/images/hero/hero-5.png') center / cover no-repeat !important;
}

.liv-tools-hero {
    background:
        linear-gradient(
            90deg,
            rgba(38, 26, 32, .74),
            rgba(116, 50, 80, .38)
        ),
        url('/images/hero/hero-1.png') center / cover no-repeat !important;
}

.v6-hero,
.v6-detail-hero {
    background:
        linear-gradient(
            90deg,
            rgba(34, 25, 30, .73),
            rgba(87, 36, 60, .42)
        ),
        url('/images/hero/hero-4.png') center / cover no-repeat !important;
}

/* Old/current inner page hero classes */
.page-hero,
.page-header,
.inner-hero,
.subpage-hero,
.about-hero {
    background:
        linear-gradient(
            90deg,
            rgba(35, 22, 29, .74),
            rgba(94, 37, 65, .40)
        ),
        url('/images/hero/hero-2.png') center / cover no-repeat !important;
}

/* Remove the old little gradient line if it clashes with image */
.page-hero .center-heading::before,
.page-header .center-heading::before,
.inner-hero .center-heading::before,
.subpage-hero .center-heading::before,
.about-hero .center-heading::before {
    background: rgba(255,255,255,.84) !important;
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 900px) {
    main > section:first-child:not(.hero):not(.liv-search-section) {
        background-position: 58% center !important;
    }
}

@media (max-width: 650px) {
    main > section:first-child:not(.hero):not(.liv-search-section) {
        min-height: 290px;
        display: flex;
        align-items: center;
        background-position: 62% center !important;
    }

    main > section:first-child:not(.hero):not(.liv-search-section) h1 {
        font-size: clamp(36px, 10vw, 48px) !important;
    }
}
