/* ==========================================================================
   unified-Style Government Theme
   Modeled after https://unified.gov.np/
   ========================================================================== */

/* ---------- CSS Variables for multi-office theming ---------- */
:root {
    --unified-primary: #1a4b8c;
    --unified-primary-dark: #133a6e;
    --unified-accent: #c0392b;
    --unified-accent-hover: #e74c3c;
    --unified-nav-bg: #ffffff;
    --unified-nav-hover: #1a4b8c;
    --unified-header-bg: #1a4b8c;
    --unified-footer-bg: #1a4b8c;
    --unified-footer-contact-bg: #133a6e;
    --unified-text-light: #f8f9fa;
    --unified-text-muted: #b0b8c4;
    --unified-border: #dee2e6;
    --unified-section-bg: #f4f6f9;
}

/* ---------- Skip Links (Accessibility) ---------- */
.unified-skip-links {
    position: absolute;
    top: -100%;
    left: 0;
    z-index: 9999;
}

.unified-skip-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--unified-primary);
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
}

.unified-skip-links a:focus {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10000;
}

/* ---------- Important Notices Top Strip ---------- */
/* (Notices are now embedded in the header-top-right area) */

/* ---------- Header ---------- */
.unified-header {
    background: var(--unified-header-bg);
    position: relative;
    color: #fff;
    overflow: hidden;
}

.unified-header-top {
    display: flex;
    align-items: stretch;
    min-height: 120px;
    position: relative;
}

/* Decorative background images */
.header-decorative-bg {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 45%;
    overflow: hidden;
    opacity: 0.15;
    pointer-events: none;
}

.header-decorative-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-decorative-bg--right {
    left: auto;
    right: 0;
    width: 35%;
}

/* Top Group: Logo + Info */
.header-top-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    position: relative;
    z-index: 2;
    flex: 0 0 55%;
    max-width: 55%;
}

.header-top-logo {
    display: flex;
    align-items: center;
}

.header-top-logo-box {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-top-logo-box > a img {
    height: 5.5rem;
    width: auto;
}

.header-logo-info {
    display: flex;
    flex-direction: column;
}

.header-logo-info h3 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.header-logo-info h3:first-child {
    color: #ffcc00;
    font-weight: 600;
}

.header-logo-info h2 {
    margin: 0.1rem 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.header-logo-info h2 a {
    color: #fff;
    text-decoration: none;
}

.header-logo-info h2 a:hover {
    text-decoration: underline;
}

.header-logo-info h3:last-child {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
}

/* Mobile CTA */
.header-hidden-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-lang-select-mobile a {
    text-decoration: none;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.header-lang-select-mobile a.inactive-lang {
    opacity: 0.6;
}

/* Top Right: Notices + Flag + Date */
.header-top-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    position: relative;
    z-index: 2;
    flex: 0 0 45%;
    max-width: 45%;
    background: rgba(0, 0, 0, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

/* Header Marquee (Important Notices) */
.header-marquee {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.header-marquee-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffcc00;
    margin: 0 0 0.25rem 0;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.2rem;
}

.header-marquee-slider {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.9);
    max-height: 3.5rem;
    overflow: hidden;
}

.header-marquee-slider a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    display: block;
    padding: 0.1rem 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-marquee-slider a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Animated Flag + Date */
.header-animated-flag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.header-flag-img img {
    height: 4.5rem;
    width: auto;
}

.header-flag-info {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.header-date-display {
    font-size: 0.82rem;
    white-space: nowrap;
}

/* ---------- Navigation ---------- */
.unified-nav-wrapper {
    position: relative;
    z-index: 1000;
}

.unified-nav {
    background-color: #fff !important;
    background-image: none !important;
    padding: 0 !important;
    border-bottom: 2px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.unified-nav .navbar-nav .nav-link {
    color: #333 !important;
    padding: 0.7rem 0.85rem !important;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}

.unified-nav .navbar-nav .nav-link:hover,
.unified-nav .navbar-nav .nav-link:focus-within {
    background-color: var(--unified-primary) !important;
    color: #fff !important;
}

.unified-nav .navbar-nav .nav-item.active > .nav-link,
.unified-nav .navbar-nav .nav-link.home.active {
    background-color: var(--unified-primary) !important;
    color: #fff !important;
}

.unified-nav .navbar-toggler {
    border-color: var(--unified-primary);
}

.unified-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231a4b8c' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.unified-nav .dropdown-menu {
    background-color: var(--unified-primary) !important;
    border: none;
    border-radius: 0;
    margin-top: 0 !important;
}

.unified-nav .dropdown-item {
    background-color: transparent !important;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.unified-nav .dropdown-item:hover,
.unified-nav .dropdown-item:focus-within {
    background-color: var(--unified-nav-hover) !important;
    color: #fff !important;
}

/* Nav Right Controls (Search, Language, Font) */
.nav-right-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    padding: 0.4rem 0;
}

.nav-search-box {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 3px;
    overflow: hidden;
}

.nav-search-input {
    border: none;
    outline: none;
    padding: 0.3rem 0.5rem;
    font-size: 0.85rem;
    width: 140px;
    background: #f8f8f8;
}

.nav-search-btn {
    border: none;
    background: var(--unified-primary);
    color: #fff;
    padding: 0.3rem 0.55rem;
    cursor: pointer;
    font-size: 0.85rem;
}

.nav-search-btn:hover {
    background: var(--unified-primary-dark);
}

.nav-lang-select {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-lang-select a {
    text-decoration: none;
    padding: 0.25rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    background: var(--unified-primary);
    border: 1px solid var(--unified-primary);
}

.nav-lang-select a.inactive-lang {
    background: transparent;
    color: #555;
    border-color: #ccc;
}

.nav-lang-select a:hover {
    background: var(--unified-primary-dark);
    color: #fff;
}

.nav-font-controls {
    display: flex;
    align-items: center;
    gap: 0;
}

.nav-font-controls a {
    text-decoration: none;
    padding: 0.2rem 0.45rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    border: 1px solid #ccc;
    background: #f8f8f8;
    transition: background 0.2s;
}

.nav-font-controls a:hover {
    background: var(--unified-primary);
    color: #fff;
    border-color: var(--unified-primary);
}

/* ---------- Responsive Header ---------- */
@media (max-width: 991.98px) {
    .unified-header-top {
        flex-direction: column;
        min-height: auto;
    }

    .header-top-group {
        flex: 1 1 auto;
        max-width: 100%;
        padding: 0.75rem 1rem;
    }

    .header-top-right {
        flex: 1 1 auto;
        max-width: 100%;
        flex-direction: column;
        padding: 0.5rem 1rem;
    }

    .header-marquee {
        display: none;
    }

    .header-top-logo-box > a img {
        height: 4rem;
    }

    .header-logo-info h2 {
        font-size: 1.1rem;
    }
}

@media (max-width: 575.98px) {
    .header-top-logo-box > a img {
        height: 3.2rem;
    }

    .header-logo-info h2 {
        font-size: 0.95rem;
    }

    .header-logo-info h3 {
        font-size: 0.78rem;
    }
}

/* ---------- Footer ---------- */
.unified-footer-section {
    background-color: var(--unified-section-bg);
    padding-top: 2rem;
    padding-bottom: 1rem;
}

.unified-footer-main {
    background: var(--unified-footer-bg);
    color: var(--unified-text-light);
    padding: 2rem 0 1rem;
    position: relative;
}

.unified-footer-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../Assets/static/topbg2.png') no-repeat center center;
    background-size: cover;
    opacity: 0.08;
    pointer-events: none;
}

.unified-footer-main .footer-content {
    position: relative;
    z-index: 1;
}

.unified-footer-main h5 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.15rem;
    border-bottom: 2px solid var(--unified-accent);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.unified-footer-main .footer-org-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.unified-footer-main .footer-org-info img {
    height: 4.5rem;
    width: auto;
    flex-shrink: 0;
}

.unified-footer-main .footer-org-info .org-titles span {
    display: block;
    line-height: 1.4;
}

.unified-footer-main .footer-org-info .org-titles span:first-child {
    font-weight: 600;
}

.unified-footer-main .footer-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.unified-footer-main .footer-contact-info li {
    padding: 0.3rem 0;
    font-size: 0.92rem;
}

.unified-footer-main .footer-contact-info li i {
    width: 1.2rem;
    margin-right: 0.4rem;
    color: var(--unified-accent);
}

.unified-footer-main .footer-contact-info a {
    color: var(--unified-text-muted);
    text-decoration: none;
}

.unified-footer-main .footer-contact-info a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Office Hours */
.unified-footer-main .office-hours {
    background: rgba(255, 255, 255, 0.08);
    padding: 1rem;
    border-radius: 0.25rem;
    margin-bottom: 1rem;
}

.unified-footer-main .office-hours table {
    width: 100%;
    font-size: 0.9rem;
}

.unified-footer-main .office-hours td {
    padding: 0.25rem 0;
}

.unified-footer-main .office-hours td:last-child {
    text-align: right;
    color: var(--unified-text-muted);
}

/* Government Partner Links */
.unified-footer-links {
    background: var(--unified-footer-contact-bg);
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.unified-footer-links .partner-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.unified-footer-links .partner-links a {
    color: var(--unified-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.unified-footer-links .partner-links a:hover {
    color: #fff;
}

/* Social Media */
.unified-footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.unified-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

.unified-footer-social a:hover {
    background: var(--unified-accent);
}

/* Footer Bottom Bar */
.unified-footer-bottom {
    background: #0a1e3d;
    color: var(--unified-text-muted);
    padding: 0.6rem 0;
    font-size: 0.85rem;
    text-align: center;
}

.unified-footer-bottom a {
    color: var(--unified-text-muted);
    text-decoration: none;
}

.unified-footer-bottom a:hover {
    color: #fff;
}

/* ---------- Department Contacts in Footer ---------- */
.unified-dept-contacts {
    padding: 1.5rem 0;
    background: var(--unified-section-bg);
}

.unified-dept-contacts .dept-card {
    background: #fff;
    border: 1px solid var(--unified-border);
    border-left: 3px solid var(--unified-accent);
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    border-radius: 0.2rem;
}

.unified-dept-contacts .dept-card .dept-name {
    font-weight: 600;
    color: var(--unified-accent);
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
}

.unified-dept-contacts .dept-card a {
    color: var(--unified-primary);
    text-decoration: none;
    font-size: 0.9rem;
}

.unified-dept-contacts .dept-card a:hover {
    color: var(--unified-accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
    .unified-header .header-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .unified-header .header-left {
        flex-direction: column;
        align-items: center;
    }

    .unified-header .header-titles {
        align-items: center;
    }

    .unified-header .header-right {
        align-items: center;
        width: 100%;
    }

    .unified-header .header-controls {
        justify-content: center;
    }

    .unified-header .header-flag {
        display: none;
    }

    .unified-footer-main .footer-org-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .unified-footer-social {
        justify-content: center;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .unified-header .header-emblem img {
        height: 4.5rem;
    }

    .unified-header .header-titles .title-line:nth-child(3) {
        font-size: 1.2rem;
    }

    .unified-header .header-flag img {
        height: 4rem;
    }
}

/* 
 * ========================================================
 * FRESH SKELETON RESET & TYPOGRAPHY (OPMCM Vibe)
 * ========================================================
 */
body.opmcm-skeleton {
    font-family: 'Mukta', sans-serif;
    color: #444;
    background-color: #f6f8fa;
    -webkit-font-smoothing: antialiased;
}

body.opmcm-skeleton h1, 
body.opmcm-skeleton h2, 
body.opmcm-skeleton h3, 
body.opmcm-skeleton h4, 
body.opmcm-skeleton h5, 
body.opmcm-skeleton h6 {
    color: #1a4b8c;
}

body.opmcm-skeleton .text-primary { color: #1a4b8c !important; }
body.opmcm-skeleton .bg-primary { background-color: #1a4b8c !important; }
body.opmcm-skeleton .text-danger { color: #d32f2f !important; }
body.opmcm-skeleton .bg-danger { background-color: #d32f2f !important; }
body.opmcm-skeleton .text-warning { color: #ffcc00 !important; }
body.opmcm-skeleton .bg-warning { background-color: #ffcc00 !important; }

/* Remove default link lines in header */
body.opmcm-skeleton a {
    transition: all 0.2s ease-in-out;
}

/* 
 * ========================================================
 * FOOTER STYLING
 * ========================================================
 */
.opmcm-footer-link:hover {
    color: #ffcc00 !important;
    padding-left: 5px;
}

