/* ==================================================
   Centaurus Child — Responsive Header
================================================== */

.rsh-header,
.rsh-header *,
.rsh-header *::before,
.rsh-header *::after {
    box-sizing: border-box;
}

.rsh-header {
    position: relative;
    z-index: 9990;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    color: #202522;
    background: #ffffff;
    border-bottom: 1px solid #e2eae3;
    box-shadow: 0 4px 18px rgba(20, 56, 29, 0.06);
    font-family:
        "Hind Siliguri",
        "Noto Sans Bengali",
        sans-serif;
}

/* Reset parent theme styles */

.rsh-header ul,
.rsh-header ol {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.rsh-header li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.rsh-header li::before,
.rsh-header li::after {
    display: none !important;
}

.rsh-header a {
    text-decoration: none !important;
}

.rsh-header button,
.rsh-header input {
    margin: 0;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
}

/* Skip link */

.rsh-skip-link {
    position: fixed !important;
    top: -100px !important;
    left: 15px !important;
    z-index: 99999 !important;
    padding: 10px 15px !important;
    color: #ffffff !important;
    background: #06371b !important;
    border-radius: 6px;
    opacity: 0;
    visibility: hidden;
}

.rsh-skip-link:focus {
    top: 15px !important;
    opacity: 1;
    visibility: visible;
}

/* Header container */

.rsh-container {
    width: 100%;
    max-width: 1440px;
    min-height: 84px;
    margin: 0 auto !important;
    padding: 9px 30px !important;
    display: flex;
    align-items: center;
    gap: 27px;
}

/* Logo */

.rsh-logo {
    width: 235px;
    max-width: 235px;
    min-width: 0;
    flex: 0 0 235px;
    margin: 0 !important;
    padding: 0 !important;
}

.rsh-logo .custom-logo-link {
    width: 100% !important;
    max-width: 235px !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
}

.rsh-logo img,
.rsh-logo .custom-logo {
    width: 100% !important;
    max-width: 235px !important;
    height: auto !important;
    max-height: 65px !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    object-fit: contain !important;
    object-position: left center;
}

.rsh-text-logo {
    color: #0f5c26 !important;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
}

/* Navigation */

.rsh-navigation {
    min-width: 0;
    margin-left: auto !important;
}

.rsh-menu {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
}

.rsh-menu > li {
    position: relative;
}

.rsh-menu > li > a {
    position: relative;
    min-height: 45px;
    padding: 11px 0 !important;
    display: inline-flex !important;
    align-items: center;
    color: #333b35 !important;
    background: transparent !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    white-space: nowrap;
    transition: color 0.22s ease;
}

.rsh-menu > li > a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 3px;
    left: 0;
    height: 2px;
    display: block !important;
    background: #45a832;
    border-radius: 5px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.22s ease;
}

.rsh-menu > li:hover > a,
.rsh-menu > li:focus-within > a,
.rsh-menu > li.current-menu-item > a,
.rsh-menu > li.current-menu-parent > a,
.rsh-menu > li.current-menu-ancestor > a {
    color: #0f5c26 !important;
}

.rsh-menu > li:hover > a::after,
.rsh-menu > li:focus-within > a::after,
.rsh-menu > li.current-menu-item > a::after,
.rsh-menu > li.current-menu-parent > a::after,
.rsh-menu > li.current-menu-ancestor > a::after {
    transform: scaleX(1);
}

/* Dropdown */

.rsh-menu .sub-menu {
    position: absolute;
    top: calc(100% + 7px);
    left: -16px;
    z-index: 9995;
    min-width: 235px;
    padding: 8px !important;
    display: block !important;
    opacity: 0;
    visibility: hidden;
    background: #ffffff;
    border: 1px solid #e1e9e2;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(20, 56, 29, 0.14);
    transform: translateY(8px);
    transition:
        opacity 0.22s ease,
        visibility 0.22s ease,
        transform 0.22s ease;
}

.rsh-menu li:hover > .sub-menu,
.rsh-menu li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rsh-menu .sub-menu li {
    position: relative;
    width: 100%;
}

.rsh-menu .sub-menu a {
    width: 100%;
    min-height: 40px;
    padding: 9px 12px !important;
    display: flex !important;
    align-items: center;
    color: #4c574f !important;
    background: transparent !important;
    border-radius: 7px;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
    white-space: normal;
}

.rsh-menu .sub-menu a:hover,
.rsh-menu .sub-menu .current-menu-item > a {
    color: #0f5c26 !important;
    background: #edf7ee !important;
}

.rsh-menu .sub-menu .sub-menu {
    top: 0;
    left: calc(100% + 8px);
}

/* Search button */

.rsh-search-toggle {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    flex: 0 0 44px;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #0f5c26 !important;
    background: #edf7ee !important;
    border: 1px solid #dce8de !important;
    border-radius: 50% !important;
    cursor: pointer;
    box-shadow: none !important;
}

.rsh-no-menu .rsh-search-toggle {
    margin-left: auto;
}

.rsh-search-toggle:hover,
.rsh-header.is-search-open .rsh-search-toggle {
    color: #ffffff !important;
    background: #0f5c26 !important;
    border-color: #0f5c26 !important;
}

.rsh-search-toggle svg {
    width: 21px;
    height: 21px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Mobile menu button */

.rsh-menu-toggle {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    margin: 0 0 0 auto !important;
    padding: 10px !important;
    display: none !important;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: #edf7ee !important;
    border: 1px solid #dce8de !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    cursor: pointer;
}

.rsh-menu-toggle span {
    width: 22px;
    height: 2px;
    display: block;
    background: #0f5c26;
    border-radius: 5px;
    transition:
        transform 0.22s ease,
        opacity 0.22s ease;
}

.rsh-header.is-menu-open
.rsh-menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.rsh-header.is-menu-open
.rsh-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.rsh-header.is-menu-open
.rsh-menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Search panel */

.rsh-search-panel {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 9989;
    width: 100%;
    margin: 0;
    padding: 21px 30px;
    background: #ffffff;
    border-top: 1px solid #edf1ed;
    border-bottom: 1px solid #dfe8e0;
    box-shadow: 0 15px 30px rgba(20, 56, 29, 0.11);
}

.rsh-search-panel[hidden] {
    display: none !important;
}

.rsh-search-inner {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}

.rsh-search-form {
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d9e4db;
    border-radius: 9px;
    box-shadow: 0 6px 20px rgba(20, 56, 29, 0.06);
}

.rsh-search-field {
    width: 100% !important;
    min-width: 0;
    height: 54px !important;
    margin: 0 !important;
    padding: 0 18px !important;
    color: #202522 !important;
    background: #ffffff !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0;
    box-shadow: none !important;
    font-size: 15px !important;
}

.rsh-search-field::placeholder {
    color: #949e96;
}

.rsh-search-submit {
    min-width: 125px !important;
    height: 54px !important;
    margin: 0 !important;
    padding: 0 19px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff !important;
    background: #0f5c26 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: pointer;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.rsh-search-submit:hover {
    background: #06371b !important;
}

.rsh-search-submit svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

/* Focus */

.rsh-header button:focus-visible,
.rsh-header a:focus-visible,
.rsh-header input:focus-visible {
    outline: 2px solid #45a832 !important;
    outline-offset: 3px;
}

/* ==================================================
   Tablet
================================================== */

@media (max-width: 1150px) {

    .rsh-container {
        gap: 18px;
    }

    .rsh-logo {
        width: 205px;
        max-width: 205px;
        flex-basis: 205px;
    }

    .rsh-logo .custom-logo-link,
    .rsh-logo img,
    .rsh-logo .custom-logo {
        max-width: 205px !important;
    }

    .rsh-menu {
        gap: 16px;
    }

    .rsh-menu > li > a {
        font-size: 14px !important;
    }
}

/* ==================================================
   Mobile Navigation
================================================== */

@media (max-width: 1024px) {

    .rsh-container {
        min-height: 74px;
        padding: 8px 20px !important;
        gap: 10px;
    }

    .rsh-logo {
        width: 190px;
        max-width: 190px;
        flex: 0 1 190px;
    }

    .rsh-logo .custom-logo-link,
    .rsh-logo img,
    .rsh-logo .custom-logo {
        max-width: 190px !important;
        max-height: 57px !important;
    }

    .rsh-menu-toggle {
        display: flex !important;
    }

    .rsh-navigation {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 9991;
        width: 100%;
        max-height: calc(100vh - 74px);
        margin: 0 !important;
        padding: 12px 20px 20px !important;
        display: none;
        overflow-y: auto;
        background: #ffffff;
        border-top: 1px solid #edf1ed;
        border-bottom: 1px solid #dfe8e0;
        box-shadow: 0 15px 30px rgba(20, 56, 29, 0.11);
    }

    .rsh-header.is-menu-open .rsh-navigation {
        display: block;
    }

    .rsh-menu {
        width: 100%;
        display: block !important;
    }

    .rsh-menu > li {
        width: 100%;
        border-bottom: 1px solid #edf1ed;
    }

    .rsh-menu > li:last-child {
        border-bottom: 0;
    }

    .rsh-menu > li > a {
        width: 100%;
        min-height: 48px;
        padding: 12px 5px !important;
        display: flex !important;
        font-size: 15px !important;
        white-space: normal;
    }

    .rsh-menu > li > a::after {
        display: none !important;
    }

    .rsh-menu .sub-menu,
    .rsh-menu .sub-menu .sub-menu {
        position: static;
        width: auto;
        min-width: 0;
        margin: 0 0 10px 12px !important;
        padding: 5px !important;
        display: block !important;
        opacity: 1;
        visibility: visible;
        background: #f6faf6;
        border: 0;
        border-left: 2px solid #45a832;
        border-radius: 6px;
        box-shadow: none;
        transform: none;
    }

    .rsh-menu .sub-menu a {
        min-height: 39px;
    }
}

/* ==================================================
   Small Mobile
================================================== */

@media (max-width: 600px) {

    .rsh-container {
        min-height: 68px;
        padding: 7px 15px !important;
        gap: 8px;
    }

    .rsh-logo {
        width: 158px;
        max-width: 158px;
        flex: 0 1 158px;
    }

    .rsh-logo .custom-logo-link,
    .rsh-logo img,
    .rsh-logo .custom-logo {
        max-width: 158px !important;
        max-height: 50px !important;
    }

    .rsh-menu-toggle,
    .rsh-search-toggle {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        flex-basis: 40px;
    }

    .rsh-navigation {
        padding-right: 15px !important;
        padding-left: 15px !important;
    }

    .rsh-search-panel {
        padding: 15px;
    }

    .rsh-search-form {
        overflow: visible;
        flex-direction: column;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    .rsh-search-field {
        border: 1px solid #d9e4db !important;
        border-radius: 8px !important;
    }

    .rsh-search-submit {
        width: 100%;
        margin-top: 9px !important;
        border-radius: 8px !important;
    }
}

@media (max-width: 390px) {

    .rsh-logo {
        width: 138px;
        max-width: 138px;
        flex-basis: 138px;
    }

    .rsh-logo .custom-logo-link,
    .rsh-logo img,
    .rsh-logo .custom-logo {
        max-width: 138px !important;
    }

    .rsh-menu-toggle,
    .rsh-search-toggle {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        flex-basis: 38px;
    }
}