/* PIBD header refresh */
.v9-header {
    position: relative;
    z-index: 1000;
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid #e5eceb;
    box-shadow: 0 8px 24px rgba(7, 61, 58, .08);
}
.v9-header::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, #a3181e 0 24%, #087d76 24% 100%);
}
.v9-header-inner {
    width: min(100% - 40px, 1440px);
    min-height: 84px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    transition: min-height .22s ease;
}
.v9-logo img {
    display: block;
    width: auto;
    max-width: 190px;
    max-height: 62px;
    object-fit: contain;
}
.v9-nav { margin-left: auto; }
.v9-nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.v9-nav-list > li { position: relative; }
.v9-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 13px;
    border-radius: 9px;
    color: #183b39;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}
.v9-nav-link:hover,
.v9-nav-link:focus-visible {
    color: #087d76;
    background: #edf6f4;
    transform: translateY(-1px);
}
.v9-nav-link.active {
    color: #a3181e;
    background: #fbf1f1;
}
.v9-dropdown-chevron {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform .18s ease;
}
.v9-has-dropdown:hover .v9-dropdown-chevron,
.v9-has-dropdown:focus-within .v9-dropdown-chevron {
    transform: rotate(225deg) translate(-1px, -1px);
}
.v9-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 20;
    width: max-content;
    min-width: 230px;
    padding: 8px;
    border: 1px solid #e6eeec;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(13, 53, 50, .16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(7px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.v9-has-dropdown:hover > .v9-dropdown,
.v9-has-dropdown:focus-within > .v9-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.v9-dropdown ul { margin: 0; padding: 0; list-style: none; }
.v9-dropdown li + li { border-top: 1px solid #f0f3f2; }
.v9-dropdown a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border-radius: 8px;
    color: #244744;
    font-size: 13.5px;
    font-weight: 550;
    text-decoration: none;
    transition: color .16s ease, background .16s ease, padding .16s ease;
}
.v9-dropdown a:hover,
.v9-dropdown a:focus-visible,
.v9-dropdown a.active {
    padding-left: 16px;
    color: #087d76;
    background: #edf6f4;
}
.v9-dropdown-icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    border-radius: 8px;
    color: #a3181e;
    background: #fbf1f1;
}
.v9-menu-toggle { display: none; }

@media (min-width: 861px) {
    .v9-header.compact .v9-header-inner { min-height: 70px; }
    .v9-header.compact .v9-logo img { max-height: 52px; }
}
@media (min-width: 861px) and (max-width: 1120px) {
    .v9-header-inner { width: calc(100% - 28px); gap: 12px; }
    .v9-logo img { max-width: 155px; }
    .v9-nav-link { padding: 0 8px; font-size: 13px; }
}
@media (max-width: 860px) {
    .v9-header-inner {
        width: calc(100% - 32px);
        min-height: 72px;
        gap: 12px;
    }
    .v9-logo img { max-width: 160px; max-height: 54px; }
    .v9-nav-list { display: none; }
    .v9-menu-toggle {
        display: flex;
        width: 46px;
        height: 46px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 1px solid #dce9e7;
        border-radius: 12px;
        background: #f3f8f7;
        cursor: pointer;
    }
    .v9-menu-toggle span {
        display: block;
        width: 20px;
        height: 2px;
        border-radius: 2px;
        background: #07534e;
    }
    .v9-mobile-menu {
        position: fixed;
        inset: 0 0 0 auto;
        z-index: 1100;
        width: min(88vw, 390px);
        height: 100dvh;
        overflow-y: auto;
        padding: 76px 22px 28px;
        background: #fff;
        box-shadow: -18px 0 50px rgba(7, 61, 58, .2);
        transform: translateX(105%);
        visibility: hidden;
        transition: transform .24s ease, visibility .24s ease;
    }
    .v9-mobile-menu.active {
        transform: translateX(0);
        visibility: visible;
    }
    .pibd-menu-open::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 1090;
        background: rgba(7, 35, 34, .42);
    }
    .pibd-menu-close {
        position: absolute;
        top: 16px;
        right: 18px;
        width: 42px;
        height: 42px;
        border: 0;
        border-radius: 50%;
        color: #07534e;
        background: #edf6f4;
        font-size: 28px;
        cursor: pointer;
    }
    .v9-mobile-list { margin: 0; padding: 0; list-style: none; }
    .v9-mobile-list > li {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        border-bottom: 1px solid #e9efee;
    }
    .v9-mobile-list > li > a {
        flex: 1;
        padding: 15px 8px;
        color: #183b39;
        font-weight: 650;
        text-decoration: none;
    }
    .v9-mobile-list > li > a.active { color: #a3181e; }
    .v9-dropdown-toggle {
        width: 38px;
        height: 38px;
        border: 0;
        border-radius: 9px;
        color: #07534e;
        background: #edf6f4;
        cursor: pointer;
    }
    .v9-dropdown-toggle::before { content: "+"; font-size: 20px; }
    .v9-dropdown-toggle.active::before { content: "−"; }
    .v9-dropdown-mobile {
        display: none;
        width: 100%;
        padding: 0 0 10px 12px;
    }
    .v9-dropdown-mobile.active { display: block; }
    .v9-dropdown-mobile a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 10px 8px;
        border-radius: 8px;
        color: #345552;
        font-size: 14px;
        text-decoration: none;
    }
    .v9-dropdown-mobile a:hover,
    .v9-dropdown-mobile a.active { color: #087d76; background: #edf6f4; }
}
@media (prefers-reduced-motion: reduce) {
    .v9-header *, .v9-header *::before, .v9-header *::after,
    .v9-mobile-menu, .v9-mobile-menu * {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* Header-এর নিচের decoration ও banner-এর আগের extra gap সরানো */
.v9-header {
    box-shadow: none !important;
    border-bottom: 0 !important;
    background: #fff !important;
}

.v9-header::before {
    display: none !important;
}

.content {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.content > :first-child {
    margin-top: 0 !important;
}

/* Logo-র হালকা shadow */
.v9-logo img {
    filter: drop-shadow(0 2px 4px rgba(7, 61, 58, 0.18));
}

/* Centers page: header-এর নিচে সামান্য gap */
.clp-centers-page {
    margin-top: 24px !important;
}

@media (max-width: 860px) {
    .clp-centers-page {
        margin-top: 16px !important;
    }
}
