/*
 * DoIT Layout - doit.gov.np Design Replication
 * Based on the official design of the Department of Information Technology, Nepal
 */

:root {
    --theme-color: #0447AF;
    --updated-theme: #2460B9;
    --secondary-color: #CC1424;
    --theme-light-color: #F4F8FF;
    --white-color: #fff;
    --theme-color-100: #e8f0fd;
    --theme-200: #f0f5ff;
    --border-color: #e5e5e5;
    --dark-theme: #2460B9;
    --title-mb: 30px;
}

/* ===== GLOBAL FONTS ===== */
body {
    font-family: 'Noto Sans Devanagari', 'Noto Sans', sans-serif;
}

/* ===== HEADER-7 STYLES ===== */

.header-7 {
    width: 100%;
}

.header-7.stickyHeader {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 555;
    width: 100%;
    background: #fff;
    animation: header7Animation 600ms ease-in-out;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.header-7.stickyHeader .header-7-top {
    display: none;
}

.header-7.stickyHeader .header-7-slider {
    display: none;
}

.header-7.stickyHeader .sticky__miniLogo {
    display: flex !important;
}

/* Header Top Section */
.header-7-top {
    display: flex;
    align-items: center;
    background: var(--updated-theme);
    position: relative;
    overflow: hidden;
}

@media (max-width: 1199px) {
    .header-7-top {
        flex-direction: column-reverse;
    }
}

.header-7-top .decorative__img {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    opacity: 0.5;
    pointer-events: none;
}

.header-7-top .decorative__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Logo + office name block */
.header-7-top .top__group {
    position: relative;
    background: transparent;
    padding: 15px 35px;
    flex-shrink: 0;
}

@media (max-width: 1199px) {
    .header-7-top .top__group {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 10px 20px;
    }
}

.header-7-top .top-logo {
    position: relative;
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-7-top .top-logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-7-top .top-logo-box img {
    width: 90px;
    height: 90px;
    object-fit: contain;
}

@media (max-width: 575px) {
    .header-7-top .top-logo-box img {
        width: 60px;
        height: 60px;
    }
}

.header-7-top .top-logo-box .logo-info {
    display: flex;
    flex-direction: column;
}

.header-7-top .top-logo-box .logo-info h3 {
    color: white;
    margin-bottom: 3px;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.3;
}

@media (max-width: 575px) {
    .header-7-top .top-logo-box .logo-info h3 {
        font-size: 13px;
        white-space: normal;
    }
}

.header-7-top .top-logo-box .logo-info h2 {
    font-size: 20px;
    font-weight: bold;
    color: white;
    margin-bottom: 3px;
    line-height: 1.2;
}

@media (max-width: 575px) {
    .header-7-top .top-logo-box .logo-info h2 {
        font-size: 16px;
    }
}

/* Hidden CTA (visible only on mobile) */
.header-7-top .top__group .hidden__cta {
    display: none;
    align-items: center;
    gap: 15px;
}

@media (max-width: 1199px) {
    .header-7-top .top__group .hidden__cta {
        display: flex;
    }
}

.header-7-top .top__group .hidden__cta .cta__btn {
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
}

.header-7-top .top__group .hidden__cta .cta__btn i {
    color: white;
    font-size: 20px;
}

.header-7-top .top__group .hidden__cta .language__select select {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
}

.header-7-top .top__group .hidden__cta .language__select select option {
    color: #000;
    background: #fff;
}

.header-7-top .top__group .hidden__cta .hamburger__toggler {
    background: rgba(255,255,255,0.15);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.header-7-top .top__group .hidden__cta .hamburger__toggler i {
    color: white;
    font-size: 16px;
}

/* Search dropdown (mobile) */
.search__cta {
    position: relative;
}

.search__dropdown {
    position: absolute;
    right: -20px;
    top: 130%;
    z-index: 555;
    opacity: 0;
    visibility: hidden;
    transition: all 300ms ease-in-out;
    border-radius: 100px;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
    min-width: 280px;
}

.search__cta.active .search__dropdown {
    opacity: 1;
    visibility: visible;
}

.search__dropdown .search__input {
    display: flex;
    align-items: center;
    gap: 5px;
    background: white;
    border-radius: 100px;
    padding: 5px 15px;
}

.search__dropdown .search__input input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    width: 100%;
    height: 38px;
}

.search__dropdown .search__input .search__btn {
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
}

.search__dropdown .search__input .search__btn i {
    color: var(--updated-theme);
    font-size: 16px;
}

/* Right side of header-top: marquee + flag */
.header-7-top-right {
    display: grid;
    align-items: center;
    grid-template-columns: auto 1fr auto;
    flex: 1;
    position: relative;
    min-height: 120px;
}

@media (max-width: 1199px) {
    .header-7-top-right {
        width: 100%;
        grid-template-columns: 1fr;
        padding: 10px 20px;
        min-height: auto;
    }
}

@media (max-width: 768px) {
    .header-7-top-right {
        padding: 8px 15px;
    }
}

.header-7-top-right .decorative__img.hidden__img {
    display: none;
}

/* Marquee slider in top right */
.header-7-top-right .marquee-slider {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 35px;
    grid-column: 2;
    overflow: hidden;
}

@media (max-width: 1199px) {
    .header-7-top-right .marquee-slider {
        padding: 5px 0;
        grid-column: 1;
    }
}

/* Animated flag section */
.header-7-top .animated__flag {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 35px 10px 0;
    grid-column: 3;
}

@media (max-width: 1199px) {
    .header-7-top .animated__flag {
        display: none;
    }
}

.header-7-top .animated__flag .flag__img {
    width: 45px;
    height: 60px;
    flex-shrink: 0;
}

.header-7-top .animated__flag .flag__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header-7-top .animated__flag .flag__info .date {
    display: flex;
    flex-direction: column;
}

.header-7-top .animated__flag .flag__info .date p {
    margin-bottom: 0;
    font-size: 14px;
    color: #fff;
    white-space: nowrap;
    line-height: 1.5;
}

/* ===== MARQUEE SLIDER COMMON ===== */
.marquee-slider {
    display: flex;
    align-items: center;
    gap: 15px;
}

.marquee-slider .header__title {
    font-size: 15px;
    font-weight: bold;
    color: white;
    position: relative;
    padding-right: 15px;
    white-space: nowrap;
    margin-bottom: 0;
    flex-shrink: 0;
}

.marquee-slider .header__title::before {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 0;
    width: 2px;
    height: 20px;
    background: rgba(255,255,255,0.4);
}

.marquee-slider .swiper {
    flex: 1;
    overflow: hidden;
}

.marquee-slider .infinite-slider.swiper-wrapper {
    display: flex;
    align-items: center;
}

.marquee-slider .infinite-slider .slider__item {
    display: flex;
    align-items: center;
}

.marquee-slider .infinite-slider .slider__item .item__details .item__title {
    margin-bottom: 0;
    font-size: 15px;
    color: #fff;
    transition: all 300ms ease-in-out;
}

.marquee-slider .infinite-slider .slider__item .item__details .item__title a {
    color: inherit;
    text-decoration: none;
}

.marquee-slider .infinite-slider .slider__item .item__details .item__title a:hover {
    opacity: 0.8;
}

/* ===== HEADER BOTTOM (NAV BAR) ===== */
.header-7-bottom {
    padding: 0 35px;
    background: #fff;
    border-top: 1px solid #e8edf5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

@media (max-width: 1199px) {
    .header-7-bottom {
        display: none;
    }
}

.header-7-bottom .bottom-wrapper {
    padding: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-7-bottom .bottom-left {
    display: flex;
    align-items: center;
    gap: 30px;
    flex: 1;
}

.header-7-bottom .sticky__miniLogo {
    width: 50px;
    height: 50px;
    display: none;
    flex-shrink: 0;
}

.header-7-bottom .sticky__miniLogo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Header menu (nav items) */
.header-7-bottom .header__menu {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    row-gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.header-7-bottom .header__menu .nav__list {
    position: relative;
    list-style: none;
}

.header-7-bottom .header__menu .nav__list .nav__link {
    font-size: 15px;
    color: #222;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    transition: color 200ms ease;
    position: relative;
    white-space: nowrap;
    text-decoration: none;
    padding: 14px 0;
}

.header-7-bottom .header__menu .nav__list .nav__link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--updated-theme);
    transition: width 250ms ease;
}

.header-7-bottom .header__menu .nav__list:hover .nav__link {
    color: var(--updated-theme);
}

.header-7-bottom .header__menu .nav__list:hover .nav__link::after {
    width: 100%;
}

.header-7-bottom .header__menu .nav__list .nav__link i {
    font-size: 11px;
    color: #aaa;
    transition: all 300ms ease-in-out;
}

.header-7-bottom .header__menu .nav__list:hover .nav__link i {
    color: var(--updated-theme);
    transform: rotate(-180deg);
}

/* Dropdown menu */
.header-7-bottom .header__menu .dropdown {
    position: relative;
}

.header-7-bottom .header__menu .dropdown > .dropdown__menu {
    min-width: 200px;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    opacity: 0;
    visibility: hidden;
    z-index: 555;
    transition: all 300ms ease-in-out;
}

.header-7-bottom .header__menu .dropdown:hover > .dropdown__menu {
    opacity: 1;
    visibility: visible;
    top: 100%;
}

.header-7-bottom .header__menu .dropdown > .dropdown__menu > ul {
    background: #fff;
    border: 1px solid #dde6f5;
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    padding: 5px 0;
    list-style: none;
    margin: 0;
    max-height: 380px;
    overflow-y: auto;
}

.header-7-bottom .header__menu .dropdown > .dropdown__menu > ul .dropdown__list {
    list-style: none;
}

.header-7-bottom .header__menu .dropdown > .dropdown__menu > ul .dropdown__list .dropdown__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 15px;
    font-size: 15px;
    color: #444;
    font-weight: 400;
    transition: all 300ms ease-in-out;
    text-decoration: none;
}

.header-7-bottom .header__menu .dropdown > .dropdown__menu > ul .dropdown__list .dropdown__link:hover {
    background: var(--updated-theme);
    color: white;
}

/* Bottom right: search, lang, social */
.header-7-bottom .bottom-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}


.header-7-bottom .language__translator .language__select select {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    color: #333;
    background: #fff;
}

.header-7-bottom .social__media {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-7-bottom .social__media .social__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 300ms ease-in-out;
}

.header-7-bottom .social__media .social__icon i {
    font-size: 22px;
    color: #bbb;
    transition: all 300ms ease-in-out;
}

.header-7-bottom .social__media .social__icon:hover i {
    color: var(--updated-theme);
}

/* ===== HEADER SLIDER (Bottom notice ticker) ===== */
.header-7-slider {
    padding: 12px 35px;
    background: var(--theme-200);
}

@media (max-width: 768px) {
    .header-7-slider {
        padding: 10px 20px;
    }
}

.header-7-slider .marquee-slider {
    background: transparent;
}

.header-7-slider .marquee-slider .header__title {
    color: var(--updated-theme);
    font-size: 15px;
}

.header-7-slider .marquee-slider .header__title::before {
    background: var(--updated-theme);
}

.header-7-slider .marquee-slider .infinite-slider .slider__item .item__details .item__title {
    color: #444;
}

.header-7-slider .marquee-slider .infinite-slider .slider__item .item__details .item__title a {
    color: #444;
}

.header-7-slider .marquee-slider .infinite-slider .slider__item .item__details .item__title a:hover {
    color: var(--updated-theme);
}

/* ===== MOBILE SIDEBAR NAV ===== */
.sidebar__nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    min-width: 320px;
    max-width: 100%;
    height: 100vh;
    background: white;
    z-index: 1000;
    padding: 30px 20px;
    box-shadow: -2px 0 10px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 300ms ease-in-out;
    overflow-y: auto;
}

.sidebar__nav.active {
    display: block;
    transform: translateX(0);
}

.sidebar__nav-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: 100%;
}

.sidebar__nav-nav .close__drawer {
    background: var(--theme-color-100);
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: all 300ms ease-in-out;
    flex-shrink: 0;
    align-self: flex-end;
}

.sidebar__nav-nav .close__drawer:hover {
    background: var(--theme-color);
}

.sidebar__nav-nav .close__drawer:hover i {
    color: white;
}

.sidebar__nav-nav .close__drawer i {
    font-size: 20px;
    color: var(--theme-color);
    transition: all 300ms ease-in-out;
}

.sidebar__nav-nav .sidebar__nav-menu {
    flex: 1;
    overflow-y: auto;
}

.sidebar__nav-nav .sidebar__nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar__nav-nav .sidebar__nav-menu ul li .nav__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    color: #444;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid #f0f0f0;
    transition: all 300ms ease-in-out;
}

.sidebar__nav-nav .sidebar__nav-menu ul li .nav__link:hover {
    color: var(--updated-theme);
}

.sidebar__nav-nav .sidebar__nav-menu ul li .nav__link i {
    font-size: 12px;
    color: #aaa;
}

.sidebar__nav-nav .sidebar__nav-menu ul li .sidebar__dropdownMenu {
    display: none;
    padding-left: 15px;
    border-left: 2px solid var(--secondary-color);
    margin-top: 5px;
}

.sidebar__nav-nav .sidebar__nav-menu ul li.active .sidebar__dropdownMenu {
    display: block;
}

.sidebar__nav-nav .sidebar__nav-menu ul li .sidebar__dropdownMenu ul {
    gap: 0;
}

.sidebar__nav-nav .sidebar__nav-menu ul li .sidebar__dropdownMenu ul li .nav__link {
    font-size: 14px;
    font-weight: 400;
    padding: 8px 0;
}

/* Backdrop overlay */
.sidebar__overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.sidebar__overlay.active {
    display: block;
}

/* ===== FOOTER ===== */
.main-footer {
    background: #2460B9;
    color: #d0dff5;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

/* Decorative background image (same as header) */
.main-footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background-image: url('../images/img.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    opacity: 0.13;
    pointer-events: none;
    z-index: 0;
}

.main-footer .container {
    position: relative;
    z-index: 1;
}

/* Upper footer */
.footer-upper {
    padding: 60px 0 55px;
    border-bottom: 1px solid rgba(255,255,255,0.18);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-brand img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-brand__info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-brand__info p {
    margin: 0;
    font-size: 13px;
    color: rgba(255,255,255,0.80);
    line-height: 1.5;
}

.footer-brand__info h3 {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
}

.footer-section-title {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
    letter-spacing: 0.3px;
}

/* Office hours */
.footer-hours {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.hours-block {
    padding: 0;
}

.hours-season {
    color: #fff;
    font-size: 13.5px;
    margin: 0 0 8px;
    font-weight: 600;
}

.hours-season i {
    display: none;
}

.hours-detail {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    line-height: 1.5;
}

.hours-time {
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

/* Important links grid */
.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    margin-bottom: 16px;
}

.footer-link-item {
    color: #b0c4e8;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.5;
    transition: color 200ms;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.footer-link-item:hover {
    color: #fff;
}

.footer-link-bar {
    color: var(--secondary-color);
    margin-right: 4px;
}

.footer-view-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 4px 12px;
    border-radius: 4px;
    transition: background 200ms;
    margin-top: 4px;
}

.footer-view-all:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* Bottom bar */
.footer-bottom-bar {
    background: rgba(0,0,0,0.15);
    border-top: 1px solid rgba(255,255,255,0.18);
    padding: 18px 0;
    position: relative;
    z-index: 1;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-social-icons {
    display: flex;
    gap: 14px;
    flex-shrink: 0;
}

.footer-social-btn {
    color: rgba(255,255,255,0.85);
    font-size: 17px;
    text-decoration: none;
    transition: color 200ms;
    display: flex;
    align-items: center;
}

.footer-social-btn:hover {
    color: #fff;
}

.footer-contact-item {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.footer-contact-item i {
    color: #fff;
    font-size: 14px;
    flex-shrink: 0;
}

/* Footer responsive */
@media (max-width: 768px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
    }
    .footer-contact-bar {
        gap: 10px;
    }
    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ===== PAGE CONTENT AREA ===== */
.page-wrapper {
    background: #f5f5f5;
}

/* ===== MAIN BANNER SLIDER ===== */
.main-slider-7 {
    position: relative;
    width: 100%;
    background: #1b3a6b;
    overflow: hidden;
}

.main-slider-7 .mainBannerSwiper {
    width: 100%;
}

.main-slider-7 .banner__slide {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    background: #1b3a6b;
}

@media (max-width: 991px) {
    .main-slider-7 .banner__slide { height: 320px; }
}

@media (max-width: 575px) {
    .main-slider-7 .banner__slide { height: 220px; }
}

.main-slider-7 .banner__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.main-slider-7 .banner__slide--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--updated-theme), var(--secondary-color));
}

.main-slider-7 .banner__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
    padding: 40px 40px 25px;
}

.main-slider-7 .banner__caption .caption__inner h3 {
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.main-slider-7 .banner__caption .caption__inner p {
    color: rgba(255,255,255,0.85);
    margin: 5px 0 0;
    font-size: 15px;
}

@media (max-width: 575px) {
    .main-slider-7 .banner__caption { padding: 20px 20px 15px; }
    .main-slider-7 .banner__caption .caption__inner h3 { font-size: 15px; }
}

.main-slider-7 .swiper-button-prev,
.main-slider-7 .swiper-button-next {
    color: #fff;
    background: rgba(0,0,0,0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.main-slider-7 .swiper-button-prev:after,
.main-slider-7 .swiper-button-next:after {
    font-size: 16px;
}

.main-slider-7 .swiper-button-prev:hover,
.main-slider-7 .swiper-button-next:hover {
    background: var(--updated-theme);
}

.main-slider-7 .swiper-pagination-bullet {
    background: rgba(255,255,255,0.6);
    opacity: 1;
}

.main-slider-7 .swiper-pagination-bullet-active {
    background: #fff;
}

/* ===== HOME SECTION COMMON ===== */
.home-main-section {
    background: #f5f8ff;
    padding: 30px 0;
}

.home-services-vip-section {
    background: #f5f8ff;
    padding: 30px 0 20px;
}

.home-news-section {
    background: #f5f8ff;
    padding: 20px 0 30px;
}

.home-publications-section {
    background: #fff;
    padding: 30px 0;
}

.home-gallery-section {
    background: #f5f8ff;
    padding: 30px 0 40px;
}

/* Section title bar — doit.gov.np style: short red underline under heading only */
.home-section-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 20px;
}

.home-section-title h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--updated-theme);
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 3px solid var(--secondary-color);
    display: inline-block;
}

.home-section-title h2 i {
    margin-right: 8px;
    color: var(--secondary-color);
    font-size: 16px;
}

.section-more-btn {
    font-size: 13px;
    color: var(--updated-theme);
    text-decoration: none;
    white-space: nowrap;
    font-weight: 500;
    transition: color 200ms;
}

.section-more-btn:hover {
    color: var(--secondary-color);
}

/* ===== SERVICES SECTION ===== */
.hamro-sewaharuu {
    padding: 18px 35px;
    background: var(--updated-theme);
}

.hamro-sewaharuu h2 {
    display: none;
}

.sewa-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: center;
}

.sewa-item {
    flex: 1 0 120px;
    max-width: 160px;
    background: transparent;
    border-radius: 0;
    padding: 14px 10px;
    text-align: center;
    height: auto;
    border-right: 1px solid rgba(255,255,255,0.15);
    transition: background 200ms;
}

.sewa-item:last-child {
    border-right: none;
}

.sewa-item:hover {
    background: rgba(255,255,255,0.1);
}

.sewa-item a {
    color: #fff !important;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    height: auto;
}

.sewa-icon {
    margin-bottom: 0;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sewa-icon img {
    width: 28px !important;
    height: 28px !important;
    border-radius: 0 !important;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

.sewa-item p {
    font-size: 13px !important;
    color: #fff !important;
    margin: 0 !important;
    line-height: 1.3;
    max-width: 100%;
}

@media (max-width: 767px) {
    .hamro-sewaharuu { padding: 10px 15px; }
    .sewa-item { flex: 1 0 80px; max-width: 110px; padding: 10px 6px; }
    .sewa-item p { font-size: 11px !important; }
}

/* ===== NEWS TABS WIDGET ===== */
.home-news-widget {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(36,96,185,0.07);
    border: 1px solid #dce8fb;
}

.news-widget__header {
    background: #fff;
    padding: 12px 16px 0;
    border-bottom: 2px solid #eef2f8;
}

.news-tabs {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 4px;
    border: none;
}

.news-tabs .nav-item .nav-link {
    color: #555;
    background: transparent;
    border: none;
    border-radius: 5px 5px 0 0;
    padding: 9px 18px;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 180ms;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    bottom: -2px;
}

.news-tabs .nav-item .nav-link:hover {
    color: var(--updated-theme);
    background: #f0f5ff;
}

.news-tabs .nav-item .nav-link.active {
    color: #fff;
    background: var(--updated-theme);
    border-radius: 5px 5px 0 0;
}

.news-widget__body {
    padding: 0;
}

/* Notice card grid (2-column) */
.notice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 14px;
}

.notice-card {
    display: flex;
    background: #f6f9ff;
    border: 1px solid #e0eaf8;
    border-radius: 7px;
    overflow: hidden;
    transition: border-color 200ms, box-shadow 200ms;
}

.notice-card:hover {
    border-color: var(--updated-theme);
    box-shadow: 0 2px 8px rgba(36,96,185,0.10);
}

.notice-card__thumb {
    flex-shrink: 0;
    width: 100px;
    background: #dce8fb;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.notice-card__thumb img {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.notice-card__body {
    flex: 1;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.notice-card__title {
    color: #2a2a2a;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 180ms;
}

.notice-card__title:hover {
    color: var(--updated-theme);
}

.notice-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    gap: 6px;
}

.notice-card__date {
    font-size: 11px;
    color: #aaa;
}

.notice-card__dl {
    flex-shrink: 0;
    background: var(--updated-theme);
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    text-decoration: none;
    transition: background 180ms;
}

.notice-card__dl:hover {
    background: var(--secondary-color);
    color: #fff;
}

.notice-empty {
    padding: 24px 16px;
    color: #888;
    font-size: 14px;
    grid-column: 1 / -1;
}

.notice-more {
    padding: 10px 16px;
    text-align: right;
    border-top: 1px solid #eef2f8;
    background: #fafbff;
}

@media (max-width: 767px) {
    .notice-grid { grid-template-columns: 1fr; }
    .notice-card__thumb { width: 80px; }
    .notice-card__thumb img { width: 55px; height: 55px; }
}

.notice-more__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    background: var(--updated-theme);
    font-size: 13px;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 200ms;
}

.notice-more__btn:hover {
    background: var(--secondary-color);
    color: #fff;
}

/* ===== VIP MEMBER CARDS (homepage sidebar) ===== */
.home-vip-widget {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 8px rgba(36,96,185,0.07);
    border: 1px solid #dce8fb;
    height: auto;
}

.vip-cards {
    padding: 10px 0 5px;
}

.vip-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.vip-card:last-child {
    border-bottom: none;
}

.vip-card__img {
    flex-shrink: 0;
}

.vip-card__img img {
    width: 65px;
    height: 75px;
    object-fit: cover;
    border: 2px solid #e8f0fd;
    border-radius: 4px;
}

.vip-card__name {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin: 0 0 4px;
}

.vip-card__post {
    font-size: 13px;
    color: var(--updated-theme);
    margin: 0 0 2px;
    font-weight: 500;
}

.vip-card__sub {
    font-size: 12px;
    color: #888;
    margin: 0;
}

/* ===== E-GOV QUICK LINKS (doit.gov.np हाम्रा सेवाहरू style) ===== */
.e-service-content {
    background: #fff;
    border-radius: 8px;
    padding: 16px 12px 16px;
    box-shadow: 0 1px 8px rgba(36,96,185,0.07);
    border: 1px solid #dce8fb;
    height: auto;
}

.e-service-title {
    color: #222;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--secondary-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.e-sewa-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 8px;
    padding: 4px;
}

.e-sewa-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 8px;
    color: #444;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 500;
    text-align: center;
    line-height: 1.35;
    border-radius: 10px;
    transition: background 200ms, color 200ms;
}

.e-sewa-item a:hover {
    background: var(--theme-light-color);
    color: var(--updated-theme);
}

.e-sewa-icon {
    width: 80px;
    height: 80px;
    background: #e8f0fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 200ms;
    box-shadow: 0 2px 8px rgba(36,96,185,0.10);
}

.e-sewa-item a:hover .e-sewa-icon {
    background: var(--updated-theme);
}

.e-sewa-icon i {
    font-size: 30px;
    color: var(--updated-theme);
    transition: color 200ms;
}

.e-sewa-item a:hover .e-sewa-icon i {
    color: #fff;
}

@media (max-width: 991px) {
    .e-sewa-grid { gap: 14px 6px; }
    .e-sewa-icon { width: 68px; height: 68px; }
    .e-sewa-icon i { font-size: 26px; }
}

@media (max-width: 576px) {
    .e-sewa-grid { grid-template-columns: repeat(4, 1fr); gap: 10px 4px; }
    .e-sewa-icon { width: 54px; height: 54px; }
    .e-sewa-icon i { font-size: 20px; }
    .e-sewa-item a { font-size: 11px; padding: 10px 4px; gap: 6px; }
}

/* ===== PUBLICATIONS WIDGET ===== */
.home-publications-widget {
    padding: 10px 0;
}

/* "View all" link aligned right in section title */
.home-section-more {
    font-size: 13px;
    font-weight: 500;
    color: var(--updated-theme);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding-bottom: 2px;
    transition: color 180ms;
}

.home-section-more:hover {
    color: var(--secondary-color);
}

/* 4-column publication grid */
.pub-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

@media (max-width: 991px) {
    .pub-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 767px) {
    .pub-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .pub-grid { grid-template-columns: 1fr; }
}

/* Publication card */
.pub-card {
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e0eaf8;
    box-shadow: 0 1px 6px rgba(36,96,185,0.07);
    transition: transform 200ms, box-shadow 200ms, border-color 200ms;
    background: #fff;
}

.pub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(36,96,185,0.15);
    border-color: var(--updated-theme);
}

.pub-card__cover {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #dce8fb;
}

.pub-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 300ms;
}

.pub-card:hover .pub-card__cover img {
    transform: scale(1.04);
}

.pub-card__cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dce8fb;
}

.pub-card__cover-placeholder i {
    font-size: 54px;
    color: var(--updated-theme);
    opacity: 0.35;
}

.pub-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(36, 96, 185, 0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 200ms;
}

.pub-card:hover .pub-card__overlay {
    opacity: 1;
}

.pub-card__overlay i {
    font-size: 30px;
    color: #fff;
}

.pub-card__info {
    padding: 10px 12px 12px;
}

.pub-card__title {
    font-size: 13.5px;
    color: #222;
    margin: 0 0 5px;
    line-height: 1.45;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pub-card__date {
    font-size: 12px;
    color: var(--updated-theme);
    display: block;
}

/* ===== GALLERY WIDGET ===== */
.home-gallery-widget {
    padding: 5px 0;
}

.gallerySwiper .swiper-button-prev,
.gallerySwiper .swiper-button-next {
    color: var(--updated-theme);
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    box-shadow: 0 1px 5px rgba(0,0,0,0.15);
    top: 40%;
}

.gallerySwiper .swiper-button-prev:after,
.gallerySwiper .swiper-button-next:after {
    font-size: 13px;
    font-weight: 700;
}

.gallery-card {
    display: block;
    text-decoration: none;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    background: #fff;
    transition: transform 200ms, box-shadow 200ms;
}

.gallery-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.gallery-card__img {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.gallery-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 300ms;
}

.gallery-card:hover .gallery-card__img img {
    transform: scale(1.05);
}

.gallery-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 71, 175, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 200ms;
}

.gallery-card:hover .gallery-card__overlay {
    opacity: 1;
}

.gallery-card__overlay i {
    font-size: 24px;
    color: #fff;
}

.gallery-card__title {
    font-size: 13px;
    color: #444;
    padding: 8px 10px;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== BODY BACKGROUND ===== */
body.doit-home {
    background: #f7f9fc;
    margin: 0;
    padding: 0;
}

/* Homepage containers should be transparent so section backgrounds show */
body.doit-home .page-wrapper .container,
body.doit-home .page-wrapper .container-fluid {
    background: transparent;
}

/* ===== NAVIGATION COLORS (update) ===== */
.main-menu .navigation > li > a {
    color: #222 !important;
    font-weight: 500;
}

.main-menu .navigation > li > a:hover,
.main-menu .navigation > li.current > a {
    color: var(--updated-theme) !important;
}

/* ===== NAV SEARCH (visible pill) ===== */
.nav-search-pill {
    display: flex;
    align-items: center;
    background: #f0f5ff;
    border: 1px solid #d0dff5;
    border-radius: 100px;
    overflow: hidden;
    height: 34px;
    min-width: 190px;
    transition: border-color 200ms, box-shadow 200ms;
}

.nav-search-pill:focus-within {
    border-color: var(--updated-theme);
    box-shadow: 0 0 0 3px rgba(36,96,185,0.1);
}

.nav-search-pill input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 13px;
    color: #333;
    padding: 0 12px;
    height: 100%;
    font-family: inherit;
}

.nav-search-pill input::placeholder {
    color: #999;
}

.nav-search-pill button {
    background: var(--updated-theme);
    border: none;
    height: 100%;
    padding: 0 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 200ms;
}

.nav-search-pill button:hover {
    background: var(--secondary-color);
}

.nav-search-pill button i {
    color: #fff;
    font-size: 13px;
}

/* ===== HEADER DECORATIVE OVERLAY ===== */
.header-7-top::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.12), transparent);
    pointer-events: none;
    z-index: 0;
}

.header-7-top > * {
    position: relative;
    z-index: 1;
}

/* ===== UTILITY ===== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* ===== ANIMATIONS ===== */
@keyframes header7Animation {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(0); }
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .header-7-top .top__group {
        padding: 10px 15px;
    }
    .header-7-slider {
        padding: 8px 15px;
    }
}

@media (max-width: 480px) {
    .header-7-top .top-logo-box .logo-info h2 {
        font-size: 14px;
    }
    .header-7-top .top-logo-box .logo-info h3 {
        font-size: 12px;
    }
}
