/* ==========================================================================
   HEADER SECTION CENTRAL CSS (CONTROL ALL SPACIINGS, SIZES & RESPONSIVENESS)
   ========================================================================== */

.m_sms_header_section {
    position: relative;
    background-color: #ffffff;
    width: 100%;
}

/* --------------------------------------------------------------------------
   1. Top Bar Styles & Controls
   -------------------------------------------------------------------------- */
.m_sms_topbar {
    background-color: #004d26;
    color: #ffffff;
    padding: 8px 15px;
    font-size: 13px;
}

.m_sms_topbar_contact {
    gap: 15px;
}

.m_sms_topbar_institute{
    background-color: #ffc107;
    color: #000000;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
}

.m_sms_eiin_badge {
    background-color: #ffc107;
    color: #000000;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
}

.m_sms_topbar_right {
    gap: 12px;
}

.m_sms_search_form {
    background-color: #ffffff;
    padding: 2px 8px;
    border-radius: 4px;
}

.m_sms_search_input {
    color: #000000;
    font-size: 12px;
    outline: none;
    border: none;
    padding: 2px 4px;
    width: 130px;
}

.m_sms_search_btn {
    color: #6c757d;
    border: none;
    background: transparent;
    cursor: pointer;
}

.m_sms_lang_btn {
    background-color: #14532d;
    color: #ffffff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 4px;
    border: none;
    transition: background-color 0.2s ease;
}

.m_sms_lang_btn:hover {
    background-color: #052e16;
}


/* --------------------------------------------------------------------------
   Top Bar Responsive Adjustments
   -------------------------------------------------------------------------- */
.m_sms_topbar {
    background-color: #004d26;
    color: #ffffff;
    padding: 8px 15px;
    font-size: 13px;
}

.m_sms_topbar_contact {
    gap: 12px;
}

.m_sms_topbar_right {
    gap: 10px;
}

.m_sms_topbar_institute {
    background-color: #ffc107;
    color: #000000;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
}

.m_sms_eiin_badge {
    background-color: #ffc107;
    color: #000000;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 11px;
    white-space: nowrap;
}

/* Mobile Devices Styling (Max-width 767px) */
@media (max-width: 767px) {
    .m_sms_topbar {
        padding: 10px 15px;
    }

    .m_sms_topbar_contact {
        width: 100%;
        gap: 8px;
    }

    .m_sms_topbar_contact span {
        display: inline-block;
        white-space: nowrap; /* টেক্সট যাতে ভেঙে নিচে না নেমে যায় */
    }

    .m_sms_topbar_right {
        width: 100%;
        margin-top: 4px;
    }
}



/* --------------------------------------------------------------------------
   2. Main Banner & Slider Styles
   -------------------------------------------------------------------------- */
.m_sms_banner_area {
    position: relative;
    width: 100%;
    height: 300px; 
    max-height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
}

.m_sms_slider_wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.m_sms_slider_overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 10;
}

.m_sms_slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center; 
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.m_sms_slide.active {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   DEVICE SPECIFIC RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */

/* 1. Tablet & Laptop Screens (Max-width: 991px) */
@media (max-width: 991px) {
    .m_sms_banner_area {
        height: 280px; 
        padding: 15px 20px;
    }
}

/* 2. Mobile Devices (Max-width: 767px) */
@media (max-width: 767px) {
    .m_sms_banner_area {
        height: 180px; 
        padding: 10px 15px;
    }

    .m_sms_branding_wrapper {
        gap: 12px;
    }
}

/* 3. Small Mobile Devices (Max-width: 480px) */
@media (max-width: 480px) {
    .m_sms_banner_area {
        height: 150px; 
    }
}

.m_sms_branding_wrapper {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 20px;
    color: #ffffff;
}

.m_sms_logo_box {
    width: 85px;
    height: 85px;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 5px;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.m_sms_logo_img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.m_sms_main_title {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.m_sms_main_title a {
    color: inherit; 
    text-decoration: none; 
}

.m_sms_sub_title {
    font-size: 13px;
    color: #e2e8f0;
    margin-top: 5px;
    margin-bottom: 0;
}

.m_sms_badge_box {
    position: relative;
    z-index: 20;
}

.m_sms_badge_img {
    width: 75px;
    height: 75px;
    object-fit: contain;
}
/* --------------------------------------------------------------------------
   3. Main Navigation Bar Styles
   -------------------------------------------------------------------------- */
.m_sms_navbar {
    background-color: #15803d;
    color: #ffffff;
    position: relative;
    z-index: 30;
}

.m_sms_nav_container {
    padding: 0 10px;
    position: relative;
}

.m_sms_nav_toggler {
    display: none;
    width: 100%;
    padding: 12px 15px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    align-items: center;
    justify-content: space-between;
}

.m_sms_nav_toggler #m_sms_arrow_icon {
    transition: transform 0.3s ease;
}

.m_sms_nav_menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
    font-weight: 500;
}

.m_sms_nav_link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    color: #ffffff;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.m_sms_nav_link:hover, 
.m_sms_nav_link.active {
    background-color: #004d26;
    color: #ffffff;
}

.m_sms_nav_link.active {
    /* border-bottom রিমুভ করা হয়েছে যাতে আন্ডারলাইন না আসে */
    text-decoration: none !important;
}

/* Desktop Dropdown Styles */
.m_sms_has_dropdown {
    position: relative;
}

.m_sms_dropdown {
    position: absolute;
    left: 0;
    top: 100%;
    background-color: #ffffff;
    min-width: 210px;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    z-index: 50;
}

.m_sms_has_dropdown:hover .m_sms_dropdown {
    display: block;
    animation: m_sms_fadeIn 0.2s ease-in-out;
}

.m_sms_dropdown_link {
    display: block;
    padding: 10px 16px;
    color: #212529;
    font-size: 13px;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.m_sms_dropdown_link:hover {
    background-color: #f8f9fa;
    color: #15803d;
}

@keyframes m_sms_fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   4. Mobile & Tablet Responsive Controls (Max-width 991px for Bootstrap LG)
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .m_sms_topbar_email {
        display: inline-block !important; 
        margin-top: -8px;
    }

    .m_sms_banner_area {
        padding: 15px;
        min-height: 220px;
    }

    .m_sms_slide {
        width: 100%;
        height: 100%;
        object-fit: cover; /* ছবির অনুপাত নষ্ট না করে বক্সে ফিট রাখে */
    }

    .m_sms_logo_box {
        width: 65px;
        height: 65px;
    }

    .m_sms_main_title {
        font-size: 18px;
    }

    .m_sms_sub_title {
        font-size: 11px;
    }

    .m_sms_nav_toggler {
        display: flex;
    }

    .m_sms_nav_menu {
        max-height: 0;
        overflow: hidden;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        background-color: #15803d;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        transition: max-height 0.4s ease-in-out;
    }

    .m_sms_nav_menu.m_sms_open {
        max-height: 600px; /* Smooth Slide-Down */
    }

    .m_sms_nav_item {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .m_sms_nav_link {
        width: 100%;
        justify-content: space-between;
        padding: 12px 15px;
    }

    /* Mobile Accordion Submenu */
    .m_sms_dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        background-color: #14532d;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        display: block;
    }

    .m_sms_dropdown.m_sms_sub_open {
        max-height: 300px;
    }

    .m_sms_dropdown_link {
        color: #ffffff;
        padding-left: 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .m_sms_dropdown_link:hover {
        background-color: #166534;
        color: #ffc107;
    }
}