/*
 * Public site header and footer, styled after the Government of Nepal
 * site layout (opmcm.gov.np, molmac.lumbini.gov.np).
 * Class names are prefixed with site- so they don't collide with Bootstrap.
 */
:root {
    --site-theme: #2460b9;
    --site-theme-dark: #264f8b;
    --site-footer-bg: #2460b9;
    --site-dropdown-bg: #eef5ff;
    --site-text-muted: #515151;
    --site-font: "Mukta", "Kalimati", sans-serif;
}

.site-header,
.site-nav,
.site-footer {
    font-family: var(--site-font);
}

.site-header h2,
.site-header h3,
.site-footer h2,
.site-footer p,
.site-nav ul,
.site-footer ul {
    margin: 0;
    padding: 0;
}

.site-nav ul,
.site-footer ul {
    list-style: none;
}

/* ---------- Top band ---------- */
.site-header__top {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--site-theme);
    color: #fff;
}

.site-header__deco {
    position: absolute;
    inset: 0;
    opacity: 0.5;
    pointer-events: none;
}

.site-header__deco img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Skyline over the right half of the band */
.site-header__skyline {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 50%;
    opacity: 0.5;
    pointer-events: none;
}

.site-header__skyline img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-header__brand {
    position: relative;
    /* As wide as the office name needs, so long names don't wrap into many lines */
    flex: 0 1 auto;
    max-width: 50%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 35px;
    background: var(--site-theme-dark);
}

.site-header__brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.site-header__brand-link:hover {
    color: #fff;
}

.site-header__logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    flex-shrink: 0;
}

.site-header__titles {
    display: flex;
    flex-direction: column;
}

.site-header__titles h3 {
    margin-bottom: 4px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    color: #fff;
}

.site-header__titles h2 {
    margin-bottom: 5px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

/* Important notices: one title at a time, between the office name and the flag */
.site-header__notices {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0 10px 30px;
}

.site-header__notices-title {
    flex-shrink: 0;
    padding-right: 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.6);
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.2;
    color: #fff;
}

.site-header__notices-list {
    position: relative;
    flex: 1;
    min-width: 0;
    height: 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-header__notice {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 400ms ease, transform 400ms ease, visibility 400ms;
}

.site-header__notice.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.site-header__notice a {
    display: block;
    overflow: hidden;
    font-size: 16px;
    line-height: 26px;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #fff;
}

.site-header__notice a:hover,
.site-header__notice a:focus {
    color: #fff;
    text-decoration: underline;
}

.site-header__flag-area {
    position: relative;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 35px;
}

.site-header__flag {
    width: 45px;
    height: 60px;
    object-fit: contain;
}

.site-header__date {
    position: relative;
    top: 4px;
    font-size: 16px;
    white-space: nowrap;
}

.site-header__mobile-actions {
    display: none;
    align-items: center;
    gap: 12px;
}

.site-header__lang {
    color: #fff;
    font-weight: 500;
}

.site-header__lang:hover {
    color: #fff;
    opacity: 0.85;
}

.site-header__icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

/* ---------- Navigation bar ---------- */
.site-nav__sentinel {
    height: 1px;
    margin-bottom: -1px;
}

.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0 35px;
    background: #fff;
    transition: box-shadow 300ms ease-in-out;
}

.site-nav.is-stuck {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-nav__inner {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.site-nav__mini-logo {
    display: none;
    flex-shrink: 0;
}

.site-nav__mini-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.site-nav.is-stuck .site-nav__mini-logo {
    display: block;
}

.site-nav__menu {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 30px;
}

.site-nav__item {
    position: relative;
}

.site-nav__link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    color: #000;
    transition: color 300ms ease-in-out;
}

.site-nav__link::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    opacity: 0;
    background: var(--site-theme);
    transition: 300ms ease-in-out;
}

.site-nav__item:hover > .site-nav__link,
.site-nav__item:focus-within > .site-nav__link {
    color: var(--site-theme);
}

.site-nav__item:hover > .site-nav__link::before,
.site-nav__item:focus-within > .site-nav__link::before {
    width: 100%;
    opacity: 1;
}

.site-nav__chevron {
    position: relative;
    top: -1px;
    width: 11px;
    height: 11px;
    color: #aeaeae;
    transition: 300ms ease-in-out;
}

.site-nav__item:hover > .site-nav__link .site-nav__chevron {
    color: var(--site-theme);
    transform: rotate(-180deg);
}

/* Dropdowns */
.site-nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 555;
    min-width: 220px;
    padding-top: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: 200ms ease-in-out;
}

.site-nav__dropdown ul {
    padding: 4px;
    border-radius: 4px;
    background: var(--site-dropdown-bg);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.site-nav__dropdown-item {
    position: relative;
}

.site-nav__dropdown-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 15px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    color: var(--site-text-muted);
    transition: 300ms ease-in-out;
}

.site-nav__dropdown-link:hover,
.site-nav__dropdown-link:focus {
    background: var(--site-theme);
    color: #fff;
}

.site-nav__chevron--right {
    top: 0;
    width: 9px;
    height: 9px;
    color: inherit;
}

/* Nested flyout opens to the right */
.site-nav__dropdown .site-nav__dropdown {
    top: 0;
    left: 100%;
    padding-top: 0;
    padding-left: 6px;
}

@media (min-width: 992px) {

    .site-nav__item:hover > .site-nav__dropdown,
    .site-nav__item:focus-within > .site-nav__dropdown,
    .site-nav__dropdown-item:hover > .site-nav__dropdown,
    .site-nav__dropdown-item:focus-within > .site-nav__dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Search + language */
.site-nav__actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

.site-nav__search {
    position: relative;
}

.site-nav__search-toggle {
    color: var(--site-text-muted);
}

.site-nav__search-toggle:hover,
.site-nav__search.is-open .site-nav__search-toggle {
    color: var(--site-theme);
}

.site-nav__search-form {
    position: absolute;
    top: calc(100% + 14px);
    right: -20px;
    z-index: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 10px;
    border-radius: 100px;
    background: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transition: 200ms ease-in-out;
}

.site-nav__search.is-open .site-nav__search-form {
    opacity: 1;
    visibility: visible;
}

.site-nav__search-form input {
    width: 300px;
    max-width: 70vw;
    height: 45px;
    padding: 0 10px;
    border: 0;
    outline: none;
    background: transparent;
    font-size: 15px;
    font-weight: 500;
    color: #000;
}

.site-nav__search-form button {
    display: flex;
    border: 0;
    background: transparent;
    color: var(--site-theme);
    cursor: pointer;
}

.site-nav__lang {
    font-weight: 500;
    color: #000;
}

.site-nav__lang:hover {
    color: var(--site-theme);
}

/* ---------- Mobile ---------- */
@media (max-width: 991.98px) {
    .site-header__brand {
        flex-basis: 100%;
        max-width: none;
        padding: 15px 20px;
    }

    .site-header__logo {
        width: 64px;
        height: 64px;
    }

    .site-header__titles h2 {
        font-size: 18px;
    }

    .site-header__titles h3 {
        font-size: 14px;
    }

    .site-header__flag-area {
        display: none;
    }

    .site-header__top {
        flex-wrap: wrap;
    }

    .site-header__skyline {
        left: 0;
        width: 100%;
    }

    .site-header__notices {
        order: -1;
        flex-basis: 100%;
        gap: 10px;
        padding: 8px 20px;
        background: var(--site-theme);
    }

    .site-header__notices-title {
        padding-right: 10px;
        font-size: 15px !important;
    }

    .site-header__notice a {
        font-size: 15px;
    }

    .site-header__mobile-actions {
        display: flex;
    }

    .site-nav {
        padding: 0 20px;
    }

    .site-nav__inner {
        flex-wrap: wrap;
        gap: 0;
        padding: 0;
        border-bottom: 0;
    }

    .site-nav__mini-logo,
    .site-nav.is-stuck .site-nav__mini-logo,
    .site-nav__lang {
        display: none;
    }

    .site-nav__menu {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
    }

    .site-nav.is-open .site-nav__menu {
        display: flex;
    }

    .site-nav__link {
        justify-content: space-between;
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .site-nav__link::before {
        display: none;
    }

    .site-nav__dropdown,
    .site-nav__dropdown .site-nav__dropdown {
        position: static;
        display: none;
        min-width: 0;
        padding: 6px 0 6px 12px;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .site-nav__dropdown ul {
        box-shadow: none;
    }

    .is-expanded > .site-nav__dropdown {
        display: block;
    }

    .is-expanded > a .site-nav__chevron {
        transform: rotate(-180deg);
    }

    .site-nav__actions {
        display: none;
        flex-basis: 100%;
        padding: 8px 0 12px;
    }

    .site-nav.is-open .site-nav__actions {
        display: flex;
    }

    .site-nav__search-toggle {
        display: none;
    }

    .site-nav__search {
        flex: 1;
    }

    .site-nav__search-form {
        position: static;
        opacity: 1;
        visibility: visible;
        border: 1px solid #e5e5e5;
        box-shadow: none;
    }

    .site-nav__search-form input {
        width: 100%;
        max-width: none;
        height: 40px;
    }
}

/* ---------- Footer ---------- */
.site-footer {
    position: relative;
    margin-top: 40px;
    padding: 40px 0 0;
    overflow: hidden;
    background: var(--site-footer-bg);
    color: #fff;
}

.site-footer a {
    color: #fff;
    transition: opacity 200ms ease-in-out;
}

.site-footer a:hover,
.site-footer a:focus {
    color: #fff;
    opacity: 0.8;
}

.site-footer__container {
    position: relative;
    z-index: 1;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}

.site-footer__brand img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.site-footer__brand-name {
    display: block;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.site-footer__brand-address {
    display: block;
    font-size: 15px;
    opacity: 0.9;
}

.site-footer__middle {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 60px;
}

.site-footer__title {
    margin-bottom: 16px !important;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.site-footer__subtitle {
    margin: 0 0 6px;
    font-size: 17px;
    font-weight: 600;
    color: #fff;
}

.site-footer__hours hr {
    margin: 14px 0;
    border-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.site-footer__hours-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 16px;
    font-size: 16px;
}

.site-footer__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 30px;
}

.site-footer__list a {
    position: relative;
    display: inline-block;
    padding-left: 12px;
    font-size: 16px;
    line-height: 1.4;
}

.site-footer__list a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.25em;
    width: 2px;
    height: 1em;
    background: rgba(255, 255, 255, 0.85);
}

.site-footer__more {
    display: inline-block;
    margin-top: 18px;
    padding: 5px 12px 3px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
}

.site-footer__more:hover {
    opacity: 1 !important;
    background: #fff;
    color: var(--site-footer-bg) !important;
}

.site-footer__contact-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 30px;
    margin-top: 36px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.site-footer__social {
    display: flex;
    gap: 10px;
}

.site-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
}

.site-footer__social a:hover {
    opacity: 1;
    background: #fff;
    color: var(--site-footer-bg);
}

.site-footer__social svg {
    width: 16px;
    height: 16px;
}

.site-footer__contact {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin-left: auto !important;
}

.site-footer__contact li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
}

.site-footer__contact svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.site-footer__phones {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 10px;
}

.site-footer__copyright {
    padding: 14px 0 70px;
    font-size: 15px;
    text-align: center;
    opacity: 0.9;
}

.site-footer__skyline {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 177px;
    opacity: 0.4;
    pointer-events: none;
}

.site-footer__skyline img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 991.98px) {
    .site-footer__middle {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 575.98px) {
    .site-footer {
        padding-top: 30px;
    }

    .site-footer__brand img {
        width: 56px;
        height: 56px;
    }

    .site-footer__brand-name {
        font-size: 18px;
    }

    .site-footer__list {
        grid-template-columns: 1fr;
    }

    .site-footer__contact-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer__contact {
        flex-direction: column;
        margin-left: 0 !important;
    }
}
