:root {
    --site-font-body: "Noto Sans", "Segoe UI", Arial, sans-serif;
    --site-font-heading: "Noto Sans", "Segoe UI", Arial, sans-serif;
    --site-text: #241914;
    --site-heading: #591a17;
    --site-accent: #d95a13;
    --site-muted: #74645d;
    --site-surface: #fffaf4;
    --site-surface-clean: #fffdf9;
    --site-surface-soft: #fff7ef;
    --site-surface-muted: #fcf6f1;
    --site-border: #ead7c4;
    --site-body-size: 16px;
    --site-compact-size: 15px;
}

html {
    font-size: 16px;
}

body,
button,
input,
select,
textarea {
    font-family: var(--site-font-body);
    font-synthesis: none;
}

body {
    color: var(--site-text);
    font-size: var(--site-body-size);
    background-color: var(--site-surface);
}

body:is(.home-page, .inner-page) #main-content :is(p, li, td, th, label, small, a, button, input, select, textarea) {
    font-family: var(--site-font-body) !important;
}

body:is(.home-page, .inner-page) #main-content :is(h1, h2) {
    font-family: var(--site-font-heading) !important;
    font-weight: 800;
    letter-spacing: -.025em;
}

body:is(.home-page, .inner-page) #main-content :is(h3, h4, h5, h6) {
    font-family: var(--site-font-body) !important;
    font-weight: 700;
    letter-spacing: -.01em;
}

main p {
    color: var(--site-text);
    font-size: 1rem;
    line-height: 1.65;
}

body:is(.home-page, .inner-page) main p {
    font-size: 1rem !important;
}

body:is(.home-page, .inner-page) main li {
    font-size: var(--site-compact-size) !important;
}

main li,
main td,
main th,
main label,
main input,
main select,
main button {
    font-size: var(--site-compact-size);
}

main :where(h1, h2, h3, h4, h5, h6) {
    color: var(--site-heading);
}

main h1 {
    line-height: 1.1;
}

main h2 {
    line-height: 1.2;
}

main h3,
main h4,
main h5,
main h6 {
    line-height: 1.3;
}

.navbar,
.navbar a,
.mega-menu,
.mega-menu a,
.topbar,
.topbar a {
    font-family: var(--site-font-body) !important;
}

.navbar .nav-link {
    font-size: 16px;
}

.mega-menu li,
.mega-menu li a {
    font-size: 15px;
    line-height: 1.2;
}

.page-breadcrumb,
.page-breadcrumb a,
.page-breadcrumb span {
    font-family: var(--site-font-body) !important;
    font-size: .9rem;
    font-weight: 400;
}

.page-breadcrumb a {
    color: var(--site-accent);
}

table {
    color: var(--site-text);
    font-family: var(--site-font-body);
    font-size: var(--site-compact-size);
}

/* Consistent section surfaces. Background images and intentional gradients remain intact. */
.inner-page .inner-breadcrumb-hero {
    background-color: #fff7ec !important;
}

.inner-page main > section:not(.inner-breadcrumb-hero):nth-of-type(even) {
    background-color: var(--site-surface-clean);
}

.inner-page main > section:not(.inner-breadcrumb-hero):nth-of-type(odd) {
    background-color: var(--site-surface-soft);
}

.home-page main > .about-leaders,
.home-page main > .darshan-sites-section {
    background-color: var(--site-surface-muted);
}

.home-page main > .compact-section,
.home-page main > .resources-section {
    background-color: var(--site-surface-clean);
}

.home-page main > .updates-highlights-section {
    background-color: var(--site-surface-soft);
}

.home-page main > .support-strip {
    background-color: var(--site-surface);
}

.home-page #main-content .utility-card h2 {
    color: #fff8ef !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}

.home-page #main-content .utility-card p,
.home-page #main-content .utility-card li,
.home-page #main-content .utility-card li span,
.home-page #main-content .utility-card li strong {
    color: #fff !important;
}

.inner-page main > section + section,
.home-page main > section + section {
    border-top-color: var(--site-border);
}

footer,
footer a,
footer p,
footer li {
    font-family: var(--site-font-body) !important;
}

footer :where(h2, h3, h4, h5, h6) {
    font-family: var(--site-font-body) !important;
    font-weight: 700;
}

body .site-footer {
    background-color: #17110e !important;
    background-image: linear-gradient(rgba(15, 8, 5, .68), rgba(15, 8, 5, .76)), url("../../img/footer.jpg") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: cover !important;
}

@media (max-width: 767.98px) {
    body {
        font-size: 16px;
    }

    .navbar .nav-link {
        font-size: 15px;
    }
}

/* Unified page and section titles ----------------------------------------- */
:root {
    --title-maroon: #681e1b;
    --title-orange: #d95a13;
    --title-copy: #74645d;
    --title-line: #d95a13;
}

/* Main page titles: homepage hero and every inner-page hero. */
.home-page .home-video-copy h1,
.inner-page .inner-breadcrumb-copy h1 {
    font-family: var(--site-font-heading) !important;
    font-size: clamp(2.75rem, 5vw, 4.75rem) !important;
    font-weight: 800 !important;
    line-height: 1.04 !important;
    letter-spacing: -.035em !important;
}

.inner-page .inner-breadcrumb-copy h1 {
    font-size: 35px !important;
}

.home-page .home-video-copy > p,
.inner-page .inner-breadcrumb-copy > p {
    font-family: var(--site-font-body) !important;
    font-size: 1.05rem !important;
    font-weight: 500 !important;
    line-height: 1.65 !important;
}

.inner-page .inner-breadcrumb-divider {
    height: 2px;
    max-width: 180px;
    margin: 1.15rem auto 1.4rem;
    background: var(--title-line);
}

.inner-page .inner-breadcrumb-divider::after {
    border-color: #ffad73;
    background: var(--title-maroon);
}

/* Shared section-title containers used across the homepage and inner pages. */
:is(
    .about-hero-copy,
    .about-split > div:first-child,
    .feature-heading,
    .leaders-heading,
    .mela-attractions-heading,
    .social-feed-heading,
    .pilgrimage-section-heading,
    .updates-section-heading,
    .contact-section-heading,
    .medical-heading,
    .video-page-heading,
    .panda-section-heading,
    .panda-list-heading,
    .gov-stay-heading,
    .portal-heading
) > h2 {
    color: var(--title-maroon) !important;
    font-family: var(--site-font-heading) !important;
    font-size: clamp(2rem, 3.25vw, 3rem) !important;
    font-style: normal;
    font-weight: 800 !important;
    line-height: 1.12 !important;
    letter-spacing: -.025em !important;
    text-transform: none !important;
}

:is(
    .about-hero-copy,
    .about-split > div:first-child,
    .feature-heading,
    .leaders-heading,
    .mela-attractions-heading,
    .social-feed-heading,
    .pilgrimage-section-heading,
    .updates-section-heading,
    .contact-section-heading,
    .medical-heading,
    .video-page-heading,
    .panda-section-heading,
    .panda-list-heading,
    .gov-stay-heading,
    .portal-heading
) > h2 em,
:is(
    .about-hero-copy,
    .about-split > div:first-child,
    .feature-heading,
    .leaders-heading,
    .mela-attractions-heading,
    .social-feed-heading,
    .pilgrimage-section-heading,
    .updates-section-heading
) > h2 span {
    color: inherit !important;
    font: inherit !important;
}

/* One matching subtitle/eyebrow treatment. */
:is(
    .about-hero-copy,
    .about-split > div:first-child,
    .feature-heading,
    .leaders-heading,
    .mela-attractions-heading,
    .social-feed-heading,
    .updates-section-heading,
    .contact-section-heading,
    .medical-heading,
    .video-page-heading,
    .panda-section-heading,
    .panda-list-heading,
    .portal-heading
) > :is(.eyebrow, .section-subtitle, span:first-child),
.inner-page :is(.contact-eyebrow, .medical-eyebrow, .video-page-eyebrow, .panda-eyebrow, .portal-eyebrow, .heritage-eyebrow, .reach-kicker) {
    color: var(--title-orange) !important;
    font-family: var(--site-font-body) !important;
    font-size: .78rem !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
}

/* Supporting subtitle copy beneath section titles. */
:is(
    .mela-attractions-heading,
    .social-feed-heading,
    .pilgrimage-section-heading,
    .updates-section-heading,
    .contact-section-heading,
    .medical-heading,
    .video-page-heading,
    .panda-section-heading,
    .panda-list-heading,
    .portal-heading
) > p {
    color: var(--title-copy) !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
}

/* Matching decorative rule; existing heading pseudo-rules are replaced. */
:is(
    .feature-heading,
    .leaders-heading,
    .mela-attractions-heading,
    .social-feed-heading,
    .pilgrimage-section-heading,
    .updates-section-heading,
    .contact-section-heading,
    .medical-heading,
    .video-page-heading,
    .panda-section-heading,
    .gov-stay-heading,
    .portal-heading
)::after {
    content: "";
    display: block;
    width: 92px;
    height: 2px;
    margin: 1rem auto 0;
    background: var(--title-line);
}

:is(.feature-heading, .leaders-heading)::after {
    margin-left: 0;
}

/* White titles on the dark Live Darshan and leaders background. */
.home-page :is(.feature-heading, .leaders-heading) > h2,
.home-page :is(.feature-heading, .leaders-heading) > h2 span,
.home-page :is(.feature-heading, .leaders-heading) > h2 em {
    color: #fff !important;
}

body.home-page #main-content .feature-heading h2,
body.home-page #main-content .feature-heading h2 span,
body.home-page #main-content .feature-heading h2 em,
body.home-page #main-content .leaders-heading h2,
body.home-page #main-content .leaders-heading h2 span,
body.home-page #main-content .leaders-heading h2 em {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.home-page .about-heading-divider {
    width: 92px;
    height: 2px;
    margin: 1rem 0 1.25rem;
    background: var(--title-line);
}

.home-page .about-heading-divider::after {
    border-color: #ffad73;
    background: var(--title-maroon);
}

:is(.feature-heading, .pilgrimage-section-heading) > h2::before,
:is(.feature-heading, .pilgrimage-section-heading) > h2::after {
    display: none !important;
}

.home-page .pilgrimage-section-heading {
    width: 100%;
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.home-page .pilgrimage-section-heading > h2 {
    display: block !important;
    width: 100%;
    text-align: center !important;
}

.home-page .pilgrimage-section-heading > p {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    text-align: center !important;
}

/* Compact site header. */
.topbar.py-2 {
    padding-top: .3rem !important;
    padding-bottom: .3rem !important;
}

.navbar {
    min-height: 56px;
    padding-top: .15rem;
    padding-bottom: .15rem;
}

.navbar-brand {
    width: 250px;
    flex: 0 0 250px;
}

.navbar-brand img {
    width: 250px;
    height: auto;
    object-fit: contain;
    object-position: left center;
}

.navbar .nav-link {
    font-size: 14px !important;
    padding-top: .8rem !important;
    padding-bottom: .8rem !important;
}

@media (max-width: 991.98px) {
    .navbar-brand {
        width: 225px;
        flex-basis: 225px;
    }

    .navbar-brand img {
        width: 100%;
        height: 66px;
    }

    .navbar .nav-link {
        padding-top: .65rem !important;
        padding-bottom: .65rem !important;
    }

    .navbar .state-mark-link {
        width: 100%;
        justify-content: center;
        margin: .35rem 0 .9rem !important;
    }

    .navbar .state-mark {
        width: 150px;
        height: 76px;
        margin: 0;
    }
}

@media (max-width: 575.98px) {
    .navbar-brand {
        width: 205px;
        flex-basis: 205px;
    }

    .navbar-brand img {
        height: 60px;
    }
}

/* Soft attention animation for the logo after the main menu. */
.navbar .state-mark {
    transform-origin: center;
    animation: stateMarkAttention 2.2s ease-in-out infinite;
    will-change: transform, opacity, filter;
}

.navbar .state-mark:hover {
    animation-play-state: paused;
    opacity: 1;
    transform: scale(1.05);
}

@keyframes stateMarkAttention {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(217, 90, 19, 0));
    }
    50% {
        opacity: .62;
        transform: scale(.94);
        filter: drop-shadow(0 0 8px rgba(217, 90, 19, .5));
    }
}

@media (prefers-reduced-motion: reduce) {
    .navbar .state-mark {
        animation: none;
    }
}

@media (max-width: 767.98px) {
    .home-page .home-video-copy h1,
    .inner-page .inner-breadcrumb-copy h1 {
        font-size: clamp(2.2rem, 10vw, 3.2rem) !important;
    }

    .inner-page .inner-breadcrumb-copy h1 {
        font-size: 35px !important;
    }

    :is(
        .about-hero-copy,
        .about-split > div:first-child,
        .feature-heading,
        .leaders-heading,
        .mela-attractions-heading,
        .social-feed-heading,
        .pilgrimage-section-heading,
        .updates-section-heading,
        .contact-section-heading,
        .medical-heading,
        .video-page-heading,
        .panda-section-heading,
        .panda-list-heading,
        .gov-stay-heading,
        .portal-heading
    ) > h2 {
        font-size: clamp(1.75rem, 8vw, 2.35rem) !important;
    }
}
