.header {
    top: 0;
    z-index: 9;
    background: var(--wb-header-bg, #fff);
    position: relative;
}

.header.is-sticky {
    position: fixed;
    width: 100%;
    top: 0px;
    transition: all 0.2s ease;
    z-index: 666;
    animation: fadeInDown 1s both 0.2s;
    box-shadow: 0px 4px 8px rgba(57, 62, 70, 0.08);
}

/* .topbar__logo img {
  max-width: 110px !important;
} */
.topbar__logo img {
    height: auto;
    width: 148px;
}

.header .topbar {
    transition: all 0.3s ease;
}

.header.sticky .topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--wb-header-bg, #fff);
    box-shadow: 0px 0px 5px #00000045;
    z-index: 33333;
}

.topbar {
    padding: 14px 0;
}

.topbar__inner {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    margin: auto;
    padding: 0 24px;
    max-width: 1500px;
}

.header__top-menu {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.header__main-menu {
    display: flex;
    justify-content: flex-end;
}

/* .header__top-menu {
  width: 80%;
} */
.header__nav-menu.navigation {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 28px;
}

.header__nav-menu.navigation li {
    display: inline-flex;
    align-items: center;
}

.header__nav-menu.navigation li:last-child {
    margin: 0;
    padding: 0;
}

.header__nav-menu.navigation li a {
    padding: 5px 0;
    display: block;
    color: var(--wb-header-link, #232931);
    position: relative;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 18px;
    text-decoration: none;
    font-family: 'Hind Siliguri', sans-serif;
    white-space: nowrap;
}

.header__nav-menu.navigation li a::before {
    content: "";
    position: absolute;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--wb-header-active, #40bfb4) !important;
    !i;
    !;
    bottom: 15px;
    left: 50%;
    margin-left: -25%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.header__nav-item {}

.header__button {
    padding-left: 10px;
}

.header__nav-menu.navigation li .active {
    color: var(--wb-header-active, #40bfb4);
    font-weight: 700;
    background: transparent;
}

.header__nav-menu.navigation li .active::before {
    opacity: 1;
    visibility: visible;
    width: 50%;
}

.dropdown-item.active::before {
    display: none;
}

.container.header-container {
    max-width: 1500px !important;
}

.header__nav-menu.navigation {
    padding: 0;
    margin: 0;
}

/* .header-dropdown .dropdown-toggle (আগে ভুল #dropdown-basic ID সিলেক্টর ব্যবহার
   হতো, কিন্তু header.php তে সেই id কখনো রেন্ডার হতো না — ফলে এই স্টাইল কখনো
   প্রয়োগই হতো না, আর সাথে থাকা Bootstrap-এর btn-success ক্লাস ডিফল্ট সবুজ বাটন
   স্টাইল বসিয়ে দিত। এখন প্রকৃত রেন্ডার-হওয়া ক্লাস .wb-nav-dropdown-btn টার্গেট
   করা হচ্ছে। ) */
.header-dropdown .dropdown {
    position: relative;
}

.header-dropdown .wb-nav-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: var(--wb-header-link, #232931);
    padding: 5px 0;
    font-weight: 500;
    font-size: 18px;
    font-family: 'Hind Siliguri', sans-serif;
}

.header-dropdown .wb-nav-dropdown-btn:hover,
.header-dropdown .wb-nav-dropdown-btn.active {
    color: var(--wb-header-link-hover, #40bfb4);
}

.header-dropdown .dropdown-toggle::after {
    display: none !important;
}

.header-dropdown .wb-nav-dropdown-btn i {
    font-size: 13px;
    position: relative;
    top: 1px;
    transition: transform 0.25s ease;
}

.header-dropdown .dropdown.show .wb-nav-dropdown-btn i {
    transform: rotate(180deg);
}

.header-dropdown .wb-nav-dropdown-btn:focus {
    box-shadow: none;
}

/* বাগ-ফিক্স: single-page.css-এ থাকা বুটস্ট্র্যাপের ডিফল্ট
   `.dropdown-menu[data-bs-popper] { top:-10px; left:0; background:#eee; }`
   রুলটা header-v-01.css এর পরে লোড হয় এবং স্পেসিফিসিটিতে সমান হওয়ায়
   ক্যাসকেড-অর্ডারে জিতে যাচ্ছিল — এর ফলেই সাবমেনু ট্রিগারের নিচে না এসে
   পেজের একদম উপরে/ভুল জায়গায় দেখাচ্ছিল এবং কাস্টম সাদা/ব্র্যান্ড
   ব্যাকগ্রাউন্ডের বদলে ফিকে ধূসর (#eee) ব্যাকগ্রাউন্ড বসে টেক্সট প্রায়
   অদৃশ্য হয়ে যাচ্ছিল। এখানে [data-bs-popper] সহ/ছাড়া দুই অবস্থাতেই
   !important দিয়ে পজিশন-কালার লক করে দেওয়া হলো, যাতে Popper অ্যাটাচ
   হোক বা না হোক ডিজাইন অপরিবর্তিত থাকে। */
.header-dropdown .dropdown-menu,
.header-dropdown .dropdown-menu[data-bs-popper] {
    position: absolute !important;
    inset: auto !important;
    min-width: 220px;
    border: none;
    border-radius: 10px;
    right: 0 !important;
    left: auto !important;
    top: calc(100% + 18px) !important;
    margin: 0 !important;
    background-color: var(--wb-header-dropdown-bg, #fff) !important;
    box-shadow: 0px 16px 48px rgba(35, 41, 49, 0.12);
    font-size: 15px;
    /* বক্সের ভেতরের দিকে ৮px গ্যাপ, যাতে নিচের আইটেমগুলো বক্সের বাম/ডান
       কিনারা ছুঁয়ে না থাকে (আগে খুবই কাছে চেপে থাকায় দেখতে খারাপ লাগছিল) */
    padding: 8px;
    /* display রাখা হচ্ছে (none-এর বদলে) যাতে opacity/transform smooth
       ট্রানজিশন করতে পারে — position:absolute থাকায় এটা flow থেকে বাইরেই
       থাকে, তাই লুকানো অবস্থায়ও পেজ-লেআউটে জায়গা নেয় না। */
    display: flex !important;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.header-dropdown .dropdown-menu.show,
.header-dropdown .dropdown-menu.show[data-bs-popper] {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.header-dropdown .dropdown-menu::before {
    position: absolute;
    content: "";
    width: 12px;
    height: 12px;
    background: var(--wb-header-dropdown-bg, #fff);
    transform: rotate(45deg);
    right: 16px;
    top: -5px;
}

.header-dropdown .dropdown-item {
    color: var(--wb-header-dropdown-link, #212529) !important;
    padding: 10px 18px;
    margin: 0;
    border-radius: 8px;
    line-height: 1.4;
    white-space: nowrap;
    background-color: transparent !important;
    transition: background-color 0.15s ease, color 0.15s ease;
}

/* হোভার/ফোকাসে টেক্সট-কালার বদলানোর পাশাপাশি একটা হালকা ব্যাকগ্রাউন্ড
   হাইলাইটও যোগ করা হলো (কালো/সাদা ৮% ওভারলে — অ্যাডমিন প্যানেল থেকে
   ড্রপডাউন ব্যাকগ্রাউন্ড/হোভার-কালার যা-ই সেট করা থাকুক না কেন, হোভার করলে
   পরিবর্তনটা সবসময় চোখে পড়বে)। */
.header-dropdown .dropdown-item:focus,
.header-dropdown .dropdown-item:hover {
    color: var(--wb-header-dropdown-hover, #40bfb4) !important;
    background-color: rgba(0, 0, 0, 0.08) !important;
}

@media (min-width: 768px) and (max-width: 991px) {
    .header__top-menu {
        width: 80%;
    }

    .header__button {
        display: none;
    }

    .header__nav-menu.navigation li {
        display: inline-block;
        margin-right: 15px;
        padding: 0;
        transition: all 0.3s ease !important;
    }

    .header__nav-menu.navigation li a {
        font-size: 14px;
    }

    .header__nav-menu.navigation {
        padding-right: 20px !important;
        display: none;
    }

    .header-dropdown .dropdown-menu.show {
        display: contents;
    }

    .header-dropdown .wb-nav-dropdown-btn {
        display: block !important;
        width: 100%;
        text-align: left;
        margin-bottom: 8px;
    }

    .topbar {
        background: #fff;
        padding: 15px 0px;
    }

    .offcanvas-toggler {
        right: 3%;
    }
}

@media only screen and (max-width: 767px) {
    .container.header-container {
        max-width: 1500px !important;
        padding: 0px !important;
    }

    .topbar {
        background: #fff;
        padding: 15px 20px;
    }

    .header-dropdown .dropdown-menu.show {
        display: contents;
    }

    .header-dropdown .wb-nav-dropdown-btn {
        display: block !important;
        width: 100%;
        text-align: left;
        margin-bottom: 8px;
    }

    .header__main-menu .navbar {
        display: none;
    }
}



/*================================================================================================
    Mobile Menu
===================================================================================================*/
.mobile-menu-modal {
    z-index: 9999999;
}

.mobile-menu-modal .offcanvas-logo img {
    width: 148px;
    height: 40px;
    object-fit: contain;
}

.mobile-menu-offcanvas-toggler {
    text-align: center;
    display: inline-block;
    padding: 0px !important;
    z-index: 3;
    border-radius: 50%;
    border: none;
    display: none;
    width: 28px;
    height: 14px;
    line-height: 50px;
    background: transparent;
    z-index: 888;
    float: right;
}

.mobile-menu-offcanvas-toggler .line {
    position: relative;
    display: block;
    width: 24px;
    height: 2px;
    background: #40bfb4;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s;
}

.header-area.is-sticky .mobile-menu-offcanvas-toggler .line,
.header-style-2 .mobile-menu-offcanvas-toggler .line,
.header-style-3 .mobile-menu-offcanvas-toggler .line {
    background: #40bfb4;
}

.mobile-menu-offcanvas-toggler .line+.line {
    margin-top: 4px;
}

.mobile-menu-modal-main-body {
    padding: 24px 20px;
    overflow-y: scroll;
}

.mobile-menu-modal.offcanvas-modal.modal.fade .modal-dialog {
    transform: translateX(-100%);
}

.mobile-menu-modal.offcanvas-modal.modal.show .modal-dialog {
    transform: translateX(0%);
}

.mobile-menu-modal .offcanvas-dialog {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

.mobile-menu-modal .offcanvas-dialog .modal-content {
    height: 100%;
    border-radius: 0;
    border: 0;
    position: relative;
}

.mobile-menu-modal .offcanvas-header {
    border: none;
    padding: 18px 20px !important;
    position: relative;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--wb-mobile-header-bg, #e8f7f6);
}

.mobile-menu-modal .offcanvas-header .btn-close {
    color: var(--wb-mobile-link-hover, #40bfb4);
    opacity: 1;
    width: 35px;
    height: 35px;
    line-height: 39px;
    border-radius: 100%;
    padding: 0;
    border: 1px solid var(--wb-mobile-link-hover, #40bfb4) !important;
    font-size: 13px;
    background: transparent;
    transition: all 0.4s ease;
    margin: 0;
    float: right;
}

.mobile-menu-modal .offcanvas-header .btn-close:hover {
    background: var(--wb-mobile-link-hover, #40bfb4);
    border: 1px solid transparent;
    color: #fff;
}

.mobile-menu-modal .offcanvas-menu::before {
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    content: "";
    background-color: var(--wb-mobile-bg, #fff);
}

.offcanvas-men-list {
    padding-bottom: 78px !important;
}

.mobile-menu-modal .offcanvas-menu li {
    margin-bottom: 12px;
    border-bottom: 1px solid #e4eeec;
    padding-bottom: 12px;
}

.mobile-menu-modal .offcanvas-menu li:last-child {
    margin: 0;
    padding: 0;
    border: none;
}

.mobile-menu-modal .offcanvas-menu li.active .menu-arrow {
    color: var(--wb-mobile-link-hover, #40bfb4);
}

.mobile-menu-modal .offcanvas-menu li.active .menu-arrow::before {
    background: var(--wb-mobile-link-hover, #40bfb4) !important;
    color: #fff !important;
    content: "\f110" !important;
}

.mobile-menu-modal .offcanvas-menu li a {
    font-weight: 600;
    display: block;
    text-transform: capitalize;
    color: var(--wb-mobile-link, #232931);
    font-size: 16px;
}

.mobile-menu-modal .offcanvas-menu li a:hover {
    color: var(--wb-mobile-link-hover, #40bfb4);
}

.mobile-menu-modal .offcanvas-menu li a i {
    margin-left: 10px;
}

.mobile-menu-modal .offcanvas-modal .modal-content {
    padding: 0px 15px;
}

.modal-backdrop.fade.show {
    background: #40bfb4;
    opacity: 0.8;
    /* z-index: 999999; */
}

.mobile-menu-modal .offcanvas-btn {
    margin-top: 30px;
}

.mobile-menu-modal .offcanvas-btn .isp-starter-v1-btn {
    width: 100%;
    display: block;
    text-align: center;
}

.mobile-menu-modal-bottom-button {
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    padding: 20px;
    background: var(--wb-mobile-bg, #fff);
    border-top: 1px solid var(--border-color);
}

.mobile-menu-modal-bottom-button .theme-btn {
    width: 100%;
}

.mobile-menu-modal-bottom-button .theme-btn {
    display: block;
    text-align: center;
    padding: 12px 12px;
    font-size: 14px;
}

.mobile-menu-modal-bottom-button .theme-btn:hover {
    background: #232931;
    color: #fff;
}

#offcanvas-menu .sub-menu {
    margin-top: 12px !important;
    margin-left: 12px !important;
    display: none;
}

#offcanvas-menu .sub-menu li:last-child {
    margin: 0;
    padding: 0;
}

#offcanvas-menu .sub-menu li a {
    font-size: 15px;
}

#offcanvas-menu .sub-menu li a {
    color: var(--wb-mobile-submenu-link, #232931);
}

#offcanvas-menu .sub-menu li a:hover,
#offcanvas-menu .sub-menu li.active a {
    color: var(--wb-mobile-submenu-hover, #40bfb4) !important;
}

#offcanvas-menu .menu-arrow {
    position: relative;
}

#offcanvas-menu .menu-arrow.active a {
    color: var(--wb-mobile-link-hover, #40bfb4);
}

#offcanvas-menu .sub-menu li {
    margin-bottom: 10px;
    padding-bottom: 10px;
}

#offcanvas-menu .menu-arrow.active .sub-menu li a {
    color: var(--wb-mobile-submenu-link, #232931);
}

#offcanvas-menu .menu-arrow.active .sub-menu li.active a {
    color: var(--wb-mobile-submenu-hover, #40bfb4);
}

#offcanvas-menu .menu-arrow:hover::before {
    background: var(--wb-mobile-link-hover, #40bfb4);
    color: #fff;
}

#offcanvas-menu .menu-arrow::before {
    position: absolute;
    font-family: uicons-regular-rounded !important;
    content: "\f112";
    font-size: 16px;
    right: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: color-mix(in srgb, var(--wb-mobile-link-hover, #40bfb4) 12%, transparent);
    border-radius: 100%;
    color: var(--wb-mobile-link-hover, #40bfb4);
    text-align: center;
    line-height: 24px;
    transition: all 0.4s ease;
}

#offcanvas-menu .menu-arrow.active::before {
    background: var(--wb-mobile-link-hover, #40bfb4);
    color: #fff;
    content: "\f110";
}

.mobile-menu-modal-bottom .theme-btn {
    text-align: center;
    width: 100%;
    padding: 12px;
    font-size: 15px;
    height: 44px;
    line-height: 130%;
}

.mobile-menu-modal-bottom .theme-btn i {
    font-size: 18px;
    top: 4px;
    position: relative;
}

.mobile-menu-modal .topbar-school-info ul li {
    margin-right: 6px;
    padding-right: 0;
    font-size: 14px;
    line-height: 20px;
}

.mobile-menu-modal .topbar-update-notice-title {
    padding: 2px 12px;
    font-size: 14px;
}

.mobile-menu-modal .topbar-school-info ul li::before {
    display: none;
}

.mobile-menu-modal .topbar-school-info {
    text-align: center;
}

.mobile-menu-modal .topbar-school-info-list {
    margin-top: 8px;
}

.mobile-menu-modal-main-bottom {
    padding: 20px;
    border-top: 1px solid #e4eeec;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--wb-mobile-bg, #fff);
    z-index: 22;
}

@media only screen and (min-width: 992px) and (max-width: 1200px) {
    .mobile-menu-offcanvas-toggler {
        display: block;
    }

    .mobile-menu-modal .offcanvas-dialog {
        width: 400px;
    }

    .mobile-menu-offcanvas-toggler {
        top: 6%;
    }

    .header-area.is-sticky .mobile-menu-offcanvas-toggler {
        top: 26px;
    }

    .topbar__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .mobile-menu-offcanvas-toggler {
        display: block;
    }

    .mobile-menu-modal .offcanvas-dialog {
        width: 400px;
    }

    .mobile-menu-offcanvas-toggler {
        top: 6%;
    }

    .header-area.is-sticky .mobile-menu-offcanvas-toggler {
        top: 26px;
    }

    .topbar__inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}

@media only screen and (max-width: 767px) {
    .mobile-menu-offcanvas-toggler {
        display: block;
    }

    .topbar__inner {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
    }
}

button.X.mobile-menu-offcanvas-toggler {
    background-color: transparent !important;
}

/*================================================================================================
    End Mobile Menu
===================================================================================================*/



/* Basic styles for the menu */
ul.gurutoopurno-link li{
	    list-style: none;
}
/* Parent menu item styles */
.header__nav-menu .menu-item {
    position: relative;
    padding: 10px 15px;
}

/* Submenu styles */
.header__nav-menu .sub-menu {
    display: none; /* Initially hidden */
    position: absolute;
    left: 0;
    top: 100%;
    background: #fff;
    list-style: none;
    margin: 0;
    padding: 10px 0 !important;!i;!;!i;!;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: max-content; /* Adjust width to fit the longest li */
    max-width: 300px; /* Restrict maximum width */
    overflow-wrap: break-word; /* Break words if content exceeds max-width */
    word-wrap: break-word;
    word-break: break-word;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Adjust columns dynamically */
    gap: 10px; /* Space between columns */
    border-radius: 5px;
}

/* Submenu item styles */
.header__nav-menu .sub-menu .menu-item {
    padding: 0 10px !important;!i;!;!i;!;
    white-space: nowrap; /* Prevent text from wrapping */
    !i;!;
}

/* Show submenu on hover */
.header__nav-menu .menu-item-has-children:hover > .sub-menu {
    display: grid; /* Ensure grid display is applied */
    /* flex-direction: column; */
}

/* Dropdown icon */
.menu-item-has-children > a::after {
    content: "\f107"; /* FontAwesome angle-down icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 10px;
    font-size: 0.8rem;
    color: #333;
}

/* Rotate icon on open */
.menu-item-has-children.open > a::after {
    transform: rotate(180deg);
}
