/* =====================================================================
   Nepal Government Standard Theme - Public Site
   Colours follow the national flag (crimson #DC143C, blue #003893).
   This file only restyles existing markup; it is loaded last so it
   overrides template styles without changing any core code.
   ===================================================================== */

:root {
    --gov-blue: #003893;
    --gov-blue-dark: #002563;
    --gov-blue-light: #e8eef9;
    --gov-red: #dc143c;
    --gov-red-dark: #b10f30;
    --gov-gold: #f4b400;
    --gov-text: #1f2937;
    --gov-muted: #5b6474;
    --gov-border: #dbe1ea;
    --gov-bg: #f4f6fa;
    --gov-white: #ffffff;
    --gov-radius: 4px;
    --gov-shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .04);
    --gov-font: "Mukta", "Noto Sans Devanagari", "Segoe UI", Arial, sans-serif;
}

/* ---------- Base ---------- */
html { font-size: 100%; }
body {
    font-family: var(--gov-font) !important;
    color: var(--gov-text);
    background: var(--gov-bg);
    line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 {
    font-family: var(--gov-font) !important;
    color: var(--gov-blue-dark);
    font-weight: 700;
}
p { font-family: var(--gov-font); color: var(--gov-text); }
a { color: var(--gov-blue); }
a:hover { color: var(--gov-red); }
:focus-visible { outline: 3px solid var(--gov-gold); outline-offset: 2px; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 10000;
    background: var(--gov-gold); color: #000; padding: 8px 16px; font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Top utility bar ---------- */
.gov-topbar {
    background: var(--gov-blue-dark);
    color: #dfe7f5;
    font-size: 14px;
}
.gov-topbar .container {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 6px 16px; min-height: 38px;
}
.gov-topbar a { color: #fff; text-decoration: none; }
.gov-topbar a:hover { color: var(--gov-gold); }
.gov-topbar .gov-date i { color: var(--gov-gold); margin-right: 6px; }
.gov-topbar-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.gov-fontsize { display: inline-flex; gap: 2px; }
.gov-fontsize button {
    background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff;
    font-size: 12px; line-height: 1; padding: 4px 7px; border-radius: 3px; cursor: pointer;
}
.gov-fontsize button:hover { background: rgba(255,255,255,.15); }
.gov-lang a { padding: 2px 6px; font-weight: 600; }
.gov-lang a + a { border-left: 1px solid rgba(255,255,255,.35); }
.gov-login-link {
    background: var(--gov-red); padding: 4px 12px; border-radius: 3px; font-weight: 600;
}
.gov-login-link:hover { background: var(--gov-red-dark); color: #fff !important; }

/* hide old language bar if still present anywhere */
.lang-sel { display: none !important; }

/* ---------- Header / Masthead ---------- */
#header-part.gov-header { background: var(--gov-white); position: relative; z-index: 50; }
.gov-masthead {
    background: #fff url('/Content/Images/mountain-banner-bg.jpg') center bottom / cover no-repeat;
    position: relative;
    border-bottom: 1px solid var(--gov-border);
}
.gov-masthead::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.92) 60%, rgba(255,255,255,.75) 100%);
}
.gov-masthead .container {
    position: relative; display: flex; align-items: center; gap: 18px;
    padding-top: 14px; padding-bottom: 14px;
}
.gov-emblem img { height: 92px; width: auto; display: block; }
.gov-office { flex: 1 1 auto; min-width: 0; }
.gov-office .gov-line-province {
    display: block; color: var(--gov-red); font-size: 17px; font-weight: 700; line-height: 1.3; margin: 0;
}
.gov-office .gov-line-ministry {
    display: block; color: var(--gov-red); font-size: 19px; font-weight: 600; line-height: 1.3; margin: 0;
}
.gov-office .gov-line-office {
    display: block; color: var(--gov-blue); font-size: 30px; font-weight: 800; line-height: 1.25; margin: 2px 0;
}
.gov-office .gov-line-address {
    display: block; color: var(--gov-blue-dark); font-size: 16px; font-weight: 500; line-height: 1.3; margin: 0;
}
.gov-flag img { height: 80px; width: auto; display: block; }

/* ---------- Main navigation (Header.cshtml) ---------- */
#header-part nav.navbar,
nav.gov-nav {
    background: var(--gov-blue) !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 4px solid var(--gov-red) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    height: auto;
    position: relative;
}
.gov-nav .gov-nav-inner {
    display: flex; align-items: stretch; justify-content: space-between;
    flex-wrap: wrap; height: auto !important; padding: 0;
}
.gov-nav .navbar-collapse-custom { display: flex; }
.gov-nav .navbar-nav {
    display: flex; flex-direction: row; align-items: stretch; flex-wrap: wrap;
    margin: 0; padding: 0; list-style: none; gap: 0;
}
.gov-nav .navbar-nav .nav-item { margin: 0; position: relative; }
.gov-nav .navbar-nav .nav-link {
    display: flex; align-items: center; height: 100%;
    color: #fff !important; text-transform: none; font-size: 16px; font-weight: 600;
    padding: 16px 20px !important; text-decoration: none; cursor: pointer;
    transition: background-color .15s ease;
}
.gov-nav .navbar-nav .nav-link:hover,
.gov-nav .navbar-nav .nav-item:focus-within > .nav-link,
.gov-nav .navbar-nav .nav-item.active > .nav-link {
    background: var(--gov-red); color: #fff !important; transform: none;
}
.gov-nav .navbar-nav .nav-item:first-child .nav-link { padding-left: 18px !important; }
.gov-nav .dropdown > .nav-link::after {
    content: "\25BE"; margin-left: 6px; font-size: 12px;
}
.gov-nav .dropdown-menu {
    display: none; position: absolute; top: 100%; left: 0; min-width: 260px;
    background: #fff; border: 0; border-top: 3px solid var(--gov-red); border-radius: 0 0 4px 4px;
    box-shadow: 0 8px 18px rgba(0,0,0,.15); padding: 6px 0; margin: 0; list-style: none; z-index: 999;
}
.gov-nav .nav-item:hover > .dropdown-menu,
.gov-nav .nav-item:focus-within > .dropdown-menu { display: block; }
.gov-nav .dropdown-menu li { padding: 0; }
.gov-nav .dropdown-menu a {
    display: block; padding: 11px 20px; color: var(--gov-text); font-weight: 500; text-decoration: none;
    border-left: 3px solid transparent;
}
.gov-nav .dropdown-menu a:hover {
    background: var(--gov-blue-light); color: var(--gov-blue); border-left-color: var(--gov-red); font-weight: 600;
}
.gov-nav .menu-toggle { display: none; }
.gov-nav .navbar-toggler-custom {
    display: none; color: #fff; font-size: 26px; padding: 6px 14px; margin: 0; cursor: pointer; line-height: 1;
}

/* ---------- Page banner / breadcrumbs (inner pages) ---------- */
#page-banner, section[id="page-banner"] {
    background: var(--gov-blue-light) !important;
    background-image: none !important;
    padding: 18px 0 !important;
    border-bottom: 1px solid var(--gov-border);
}
#page-banner::before { display: none !important; }
.page-banner-cont { padding: 0 !important; }
.page-banner-cont h2 {
    color: var(--gov-blue-dark) !important; font-size: 26px !important; font-weight: 700; margin: 0 0 4px;
    padding-left: 12px; border-left: 5px solid var(--gov-red);
}
.page-banner-cont .breadcrumb { background: transparent; padding: 0; margin: 0; }
.page-banner-cont .breadcrumb .breadcrumb-item,
.page-banner-cont .breadcrumb .breadcrumb-item a,
.page-banner-cont .breadcrumb-item + .breadcrumb-item::before { color: var(--gov-muted) !important; font-size: 14px; }
.page-banner-cont .breadcrumb .breadcrumb-item a:hover { color: var(--gov-red) !important; }

.gray-bg { background: var(--gov-bg) !important; }

/* ---------- Section titles ---------- */
.section-title h5, .about-section h5 {
    color: var(--gov-red) !important; border-bottom: 0 !important; font-size: 15px !important;
    letter-spacing: .5px; text-transform: uppercase; padding: 0 !important;
}
.section-title h5::before { background-color: var(--gov-red) !important; }
.section-title h2, .about-section h2 {
    color: var(--gov-blue-dark) !important; font-weight: 800;
    padding-bottom: 10px; position: relative;
}
.about-section h2::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 70px; height: 4px; background: var(--gov-red);
}

/* ---------- Buttons ---------- */
.main-btn, .about-btn, .btn-primary, .view-details-btn {
    background: var(--gov-blue) !important; border: 1px solid var(--gov-blue) !important;
    color: #fff !important; border-radius: var(--gov-radius) !important;
    font-weight: 600; font-size: 15px !important; line-height: 1.4 !important;
    padding: 8px 18px !important; height: auto !important; text-decoration: none !important;
    transition: background-color .15s ease;
}
.main-btn:hover, .about-btn:hover, .btn-primary:hover, .view-details-btn:hover {
    background: var(--gov-red) !important; border-color: var(--gov-red) !important; color: #fff !important; opacity: 1;
}
.about-btn { display: inline-block; margin-top: 18px; }

/* ---------- Generic cards / panels ---------- */
.gov-card, .notice-wrapper, .saidbar .categories, .saidbar .saidbar-post, .card {
    background: #fff; border: 1px solid var(--gov-border); border-radius: var(--gov-radius);
    box-shadow: var(--gov-shadow);
}
.saidbar .categories h4, .saidbar .saidbar-post h4 {
    background: var(--gov-blue); color: #fff !important; margin: -1px -1px 12px; padding: 10px 14px;
    font-size: 17px; border-radius: var(--gov-radius) var(--gov-radius) 0 0; border-bottom: 3px solid var(--gov-red);
}
.notice-wrapper { padding: 14px 18px; border-left: 4px solid var(--gov-red); margin-bottom: 12px; }
.notice-wrapper .date { color: var(--gov-muted); font-size: 14px; }
.notice-wrapper .date::before { content: "\f073"; font-family: "Font Awesome 6 Free"; font-weight: 400; margin-right: 6px; color: var(--gov-red); }
.notice-wrapper + hr { display: none; }

table { width: 100%; }
table thead th, .table thead th {
    background: var(--gov-blue) !important; color: #fff !important; font-weight: 600; border-color: var(--gov-blue-dark) !important;
}
.table-striped tbody tr:nth-of-type(odd) { background: #f7f9fc; }

/* ---------- Home page ---------- */
.home-container {
    max-width: 1320px; margin: 20px auto 0 !important; padding: 0 15px !important;
    gap: 20px !important; align-items: stretch !important;
}
.custom-slider-container {
    border-radius: var(--gov-radius) !important; box-shadow: var(--gov-shadow);
    height: 520px !important; border: 1px solid var(--gov-border);
}
.slider-image {
    height: 520px !important; border-radius: 0 !important;
    object-fit: cover !important;
    object-position: center top !important; /* keep the upper part of photos visible; crop from bottom instead */
}
.prev-btn, .next-btn {
    background: rgba(0, 56, 147, .75) !important; border-radius: 3px !important;
    font-size: 1.4rem !important; padding: .55rem .9rem !important;
}
.prev-btn:hover, .next-btn:hover { background: var(--gov-red) !important; }

.important-person {
    background: #fff !important; border: 1px solid var(--gov-border); border-radius: var(--gov-radius);
    box-shadow: var(--gov-shadow); max-height: 520px; overflow-y: auto !important; padding: 0 0 8px;
}
.important-person::before {
    content: attr(data-title); display: block; position: sticky; top: 0; z-index: 2;
    background: var(--gov-blue); color: #fff; font-weight: 700; font-size: 17px;
    padding: 10px 14px; border-bottom: 3px solid var(--gov-red);
}
.important-person .members-container { padding: 12px; background: transparent !important; }
.important-person .member-item {
    background: #fff; border: 1px solid var(--gov-border); border-radius: var(--gov-radius);
    padding: 12px; flex-direction: column; text-align: center; margin-bottom: 12px !important;
}
.important-person .member-icon img {
    width: 110px !important; height: 130px !important; object-fit: cover;
    border-radius: 3px !important; border: 3px solid var(--gov-blue-light);
}
.important-person .member-name { color: var(--gov-blue-dark) !important; font-weight: 700; font-size: 17px; margin: 8px 0 2px; }
.important-person .member-designation { color: var(--gov-red) !important; font-size: 14px; margin-bottom: 8px; }
.important-person .view-details-btn { font-size: 13px !important; padding: 4px 12px !important; }

#teachers-part { background: var(--gov-bg) !important; padding: 36px 15px 60px !important; }
#teachers-part .container { max-width: 1320px; }
.about-section {
    max-width: 100% !important; background: #fff; border: 1px solid var(--gov-border);
    border-top: 4px solid var(--gov-blue); border-radius: var(--gov-radius); padding: 24px 28px;
    box-shadow: var(--gov-shadow);
}
.about-section h2 { font-size: 28px !important; }
.about-section p { font-size: 17px; text-align: justify; }

/* ---------- Footer ---------- */
#footer-part { background: var(--gov-blue-dark); color: #d6deec; }
#footer-part .footer-top { background: transparent !important; padding: 40px 0 24px !important; }
#footer-part h6, #footer-part .footer-title h6 {
    color: #fff !important; font-size: 18px; font-weight: 700; position: relative; padding-bottom: 8px; margin-bottom: 14px;
}
#footer-part .footer-title h6::after, .gov-footer-title::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 46px; height: 3px; background: var(--gov-red);
}
#footer-part .footer-title { padding-bottom: 0 !important; }
#footer-part p, #footer-part li, #footer-part span { color: #d6deec; font-size: 15px; }
#footer-part ul { list-style: none; padding: 0; margin: 0; }
#footer-part ul li { margin-bottom: 6px; }
#footer-part ul li a { color: #d6deec !important; text-decoration: none; }
#footer-part ul li a::before {
    content: "\f105"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-right: 8px; color: var(--gov-gold);
}
#footer-part ul li a:hover { color: #fff !important; padding-left: 3px; }
#footer-part .footer-link { margin-top: 0 !important; }
.gov-footer-office { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.gov-footer-office img { height: 64px; width: auto; }
.gov-footer-office strong { display: block; color: #fff; font-size: 17px; line-height: 1.3; }
.gov-contact li i { width: 20px; color: var(--gov-gold); margin-right: 6px; }
.gov-contact li::before, .gov-contact li a::before { content: none !important; }
.gov-social { display: flex; gap: 8px; margin-top: 12px; }
.gov-social a {
    width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255,255,255,.12); color: #fff !important; text-decoration: none; font-size: 16px;
}
.gov-social a:hover { background: var(--gov-red); }
#footer-part .footer-copyright {
    background: var(--gov-red-dark) !important; padding: 10px 0 !important; border-top: 0;
}
#footer-part .footer-copyright p, #footer-part .footer-copyright a, #footer-part .footer-copyright span {
    color: #fff !important; margin: 0; font-size: 14px;
}
#footer-part .footer-copyright .copyright { padding-top: 0 !important; }

/* back to top */
.back-to-top {
    background: var(--gov-red) !important; color: #fff !important; border-radius: 3px !important;
}
.back-to-top:hover { background: var(--gov-blue) !important; }

/* preloader */
.preloader { background: #fff !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .gov-nav .navbar-toggler-custom { display: block; }
    .gov-nav .navbar-collapse-custom {
        display: none; width: 100%; flex-direction: column; position: static;
        background: var(--gov-blue-dark); padding: 0; border-radius: 0;
    }
    .gov-nav .menu-toggle:checked + .navbar-toggler-custom + .navbar-collapse-custom { display: flex; }
    .gov-nav .navbar-nav { flex-direction: column; align-items: stretch; width: 100%; gap: 0; }
    .gov-nav .navbar-nav .nav-item { border-top: 1px solid rgba(255,255,255,.1); }
    .gov-nav .navbar-nav .nav-link { padding: 14px 20px !important; }
    .gov-nav .dropdown-menu {
        position: static; display: block; box-shadow: none; border: 0; background: rgba(0,0,0,.15); border-radius: 0; padding: 0;
    }
    .gov-nav .dropdown-menu a { color: #e5ebf6; padding-left: 34px; }
    .gov-nav .dropdown-menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
}
@media (max-width: 991.98px) {
    .home-container { flex-direction: column !important; }
    .custom-slider-container, .important-person { width: 100% !important; }
    .custom-slider-container, .slider-image { height: 360px !important; }
    .important-person { max-height: none; }
    .important-person .member-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
    .important-person .member-item { margin-bottom: 0 !important; }
}
@media (max-width: 767.98px) {
    .gov-masthead .container { gap: 10px; }
    .gov-emblem img { height: 64px; }
    .gov-flag { display: none; }
    .gov-office .gov-line-province { font-size: 14px; }
    .gov-office .gov-line-ministry { font-size: 15px; }
    .gov-office .gov-line-office { font-size: 21px; }
    .gov-office .gov-line-address { font-size: 14px; }
    .gov-topbar .container { justify-content: center; padding-top: 4px; padding-bottom: 4px; }
    .custom-slider-container, .slider-image { height: 240px !important; }
    .about-section { padding: 18px; }
    .about-section h2 { font-size: 22px !important; }
}

/* ---------- Overrides for page-level stylesheets (linked later in <body>) ---------- */
body .members-container {
    background-color: #fff;
    border: 1px solid var(--gov-border);
    border-radius: var(--gov-radius);
    box-shadow: var(--gov-shadow);
}
body .member-item {
    background-color: #fff;
    border: 1px solid var(--gov-border);
    border-left: 4px solid var(--gov-blue);
    border-radius: var(--gov-radius);
}
body .member-item:hover { border-left-color: var(--gov-red); }
body .member-name, body .important-people-title { color: var(--gov-blue-dark); }
body .member-designation { color: var(--gov-red); }

body .contact-form button {
    background: var(--gov-blue);
    border-radius: var(--gov-radius);
    font-weight: 600;
}
body .contact-form button:hover { background: var(--gov-red); }
body .contact-form input:focus,
body .contact-form select:focus,
body .contact-form textarea:focus { border-color: var(--gov-blue); box-shadow: 0 0 0 3px rgba(0, 56, 147, .15); }

/* keep in-page social icons (ContactUs) on brand */
body .fa-facebook, body .fa-twitter, body .fa-youtube { line-height: 35px; }
