/* ==========================================================================
   HOMEPAGE BODY & SIDEBAR CSS (GOVT DIRECTORY STYLE)
   ========================================================================== */

.m_sms_body_section {
    background-color: #f8fafc;
    font-family: 'Noto Sans Bengali', sans-serif;
}

/* --------------------------------------------------------------------------
   1. Notice Board Styles (Left Column)
   -------------------------------------------------------------------------- */
.m_sms_notice_card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.m_sms_notice_icon {
    font-size: 22px;
    color: #15803d;
}

.m_sms_notice_title {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.m_sms_divider {
    border-top: 1px solid #cbd5e1;
    opacity: 1;
    margin: 10px 0;
}

/* Notice List Item */
.m_sms_notice_item {
    border-bottom: 1px solid #f1f5f9;
    padding: 12px 0;
}

.m_sms_notice_item:last-child {
    border-bottom: none;
}

.m_sms_notice_link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
}

.m_sms_bullet_dot {
    width: 10px;
    height: 10px;
    background-color: #15803d;
    border-radius: 50%;
    display: inline-block;
    margin-top: 6px;
    flex-shrink: 0;
}

.m_sms_notice_item_title {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin: 0;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.m_sms_notice_link:hover .m_sms_notice_item_title {
    color: #15803d;
}

.m_sms_meta_date {
    font-size: 12px;
    color: #64748b;
}

.m_sms_badge {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 12px;
}

.m_sms_notice_arrow {
    color: #94a3b8;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.m_sms_notice_link:hover .m_sms_notice_arrow {
    transform: translateX(3px);
    color: #15803d;
}

/* Action Button & News Ticker */
.m_sms_all_notice_btn {
    background-color: #15803d;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 4px;
}

.m_sms_all_notice_btn:hover {
    background-color: #004d26;
    color: #ffffff;
}



.m_sms_ticker_btn {
    background-color: #15803d;
    color: #ffffff;
    font-size: 12px;
    white-space: nowrap;
}

.m_sms_ticker_btn:hover {
    background-color: #004d26;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   2. Sidebar Widgets Styles (Right Column)
   -------------------------------------------------------------------------- */
.m_sms_widget_card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.m_sms_widget_header {
    background-color: #004d26;
    padding: 8px 15px;
}

.m_sms_widget_header_title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
}

.m_sms_person_img_box img {
    max-height: 230px;
    width: 100%;
    object-fit: cover;
    height: auto;
}

.m_sms_person_name {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
}

.m_sms_person_designation {
    font-size: 13px;
}

/* বডি সেকশন স্পেসিং টিউনআপ */
.m_sms_body_section {
    background-color: #f8fafc;
    font-family: 'Noto Sans Bengali', sans-serif;
    padding-left: 10px;
    padding-right: 10px;
}

/* কন্টেইনার এবং রো মার্জিন ঠিক রাখা */
.m_sms_body_section .container-fluid {
    max-width: 100%;
}

.m_sms_notice_card, 
.m_sms_widget_card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}


/* ==========================================================================
   =========================================================================
   COMPLETE SIDEBAR WIDGETS SECTION CSS (HOME PAGE)
   =========================================================================
   ========================================================================= */

/* General Sidebar Structure */
.m_sms_sidebar_wrapper {
    width: 100%;
}

.m_sms_sb_card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0 !important;
    font-family: 'Noto Sans Bengali', sans-serif;
    transition: all 0.25s ease-in-out;
}

.m_sms_sb_header {
    background-color: #00a651;
    border-bottom: 2px solid #008641;
}

/* Custom Font Utilities */
.fs-7 {
    font-size: 13px !important;
}

.fs-8 {
    font-size: 11px !important;
}

/* --- Principal & Vice Principal Combo Corner --- */
.m_sms_sb_teacher_img_wrap img {
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.m_sms_sb_teacher_msg {
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.m_sms_sb_readmore_link {
    text-decoration: none;
    transition: color 0.2s ease;
}

.m_sms_sb_readmore_link:hover {
    color: #008641 !important;
    text-decoration: underline;
}

/* --- Events & Spotlight --- */
.m_sms_sb_event_box {
    transition: background-color 0.2s ease;
}

.m_sms_sb_event_box:hover {
    background-color: #f1f5f9 !important;
}

a.upcoming_events {
    text-decoration: none;
}

/* --- Emergency Helpline --- */
.m_sms_sb_contact_list li {
    padding: 6px 8px;
    background-color: #f8fafc;
    border-radius: 6px;
    border: 1px solid #f1f5f9;
}

.m_sms_sb_contact_list li i {
    font-size: 16px;
    width: 24px;
    text-align: center;
}

/* --- Quick Links --- */
.m_sms_sb_links_list li a {
    color: #334155;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

.m_sms_sb_links_list li a:hover {
    background-color: #e6f4ea;
    color: #008641;
    padding-left: 12px !important;
}

.m_sms_sb_links_list li a:hover i.fa-arrow-up-right-from-square {
    color: #008641 !important;
}

/* 
   SOCIAL MEDIA BUTTONS WIDGET STYLES */

.m_sms_sb_social_btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.25s ease-in-out;
    border: 1px solid transparent;
}

.m_sms_sb_social_btn i {
    font-size: 15px;
}

/* Brand Specific Colors */
.m_sms_fb {
    background-color: #e7f1fe;
    color: #1877f2;
    border-color: #cce0ff;
}
.m_sms_fb:hover {
    background-color: #1877f2;
    color: #ffffff;
}

.m_sms_yt {
    background-color: #ffe6e6;
    color: #ff0000;
    border-color: #ffcccc;
}
.m_sms_yt:hover {
    background-color: #ff0000;
    color: #ffffff;
}

.m_sms_wa {
    background-color: #e6f7ee;
    color: #25d366;
    border-color: #c3ebd3;
}
.m_sms_wa:hover {
    background-color: #25d366;
    color: #ffffff;
}

.m_sms_ig {
    background-color: #fce8f3;
    color: #e4405f;
    border-color: #f8cce5;
}
.m_sms_ig:hover {
    background-color: #e4405f;
    color: #ffffff;
}

/* Mobile Responsive Adjustments */
@media (max-width: 575.98px) {
    .m_sms_sb_social_btn {
        padding: 9px 8px;
        font-size: 11.5px;
    }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Desktop, Tablet & Mobile)
   ========================================================================== */

/* Laptop & Desktop Screens (992px and above) */
@media (min-width: 992px) {
    .m_sms_sb_card {
        margin-bottom: 1rem !important;
    }
}

/* Tablet Screens (768px to 991.98px) */
@media (max-width: 991.98px) {
    .m_sms_sb_teacher_img_wrap img {
        width: 170px;
        height: 170px;
    }

    .m_sms_sb_links_list li a {
        font-size: 12px;
    }
}

/* Mobile Devices (Max 575.98px) */
@media (max-width: 575.98px) {
    .m_sms_sb_header h4 {
        font-size: 14px !important;
    }

    .m_sms_sb_contact_list li {
        padding: 8px 10px;
    }

    .m_sms_sb_links_list li a {
        font-size: 13px; /* সহজ টাচের জন্য মোবাইলে ফন্ট কিছুটা বাড়ানো হয়েছে */
        padding: 8px !important;
    }
}







/* ==========================================================================
   ==========================================================================
   EMERGENCY HOTLINE COMPACT WIDGET CSS - SIDEBAR & SMALL AREA FIT
   ==========================================================================
   ========================================================================== */

.m_sms_hotline_widget {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0 !important;
    font-family: 'Noto Sans Bengali', sans-serif;
}

.m_sms_hotline_widget_header {
    background-color: #00a651;
    border-bottom: 2px solid #008641;
}

/* Compact Chip Styling */
.m_sms_hotline_chip {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 8px 4px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    height: 100%;
    text-align: center;
}

.m_sms_chip_title {
    font-size: 12px;
    color: #334155;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.m_sms_chip_num {
    font-size: 14px;
    font-weight: 700;
    color: #00a651;
    margin-top: 2px;
}

/* Hover Effect */
.m_sms_hotline_chip:hover {
    background-color: #e6f4ea;
    border-color: #00a651;
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 166, 81, 0.12);
}

.m_sms_hotline_chip:hover .m_sms_chip_title {
    color: #008641;
}

/* Responsive Handling */
@media (max-width: 575.98px) {
    .m_sms_chip_title {
        font-size: 11px;
    }
    .m_sms_chip_num {
        font-size: 13px;
    }
}


/* ==========================================================================
   ==========================================================================
   ACADEMIC E-SERVICES & DOWNLOADS SECTION CSS (HOME PAGE)
   ==========================================================================
   ========================================================================== */

/* Outer Card Fit & Alignment Fix */
.m_sms_services_card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0 !important;
    width: 100% !important;
    margin-bottom: 1rem;
    font-family: 'Noto Sans Bengali', sans-serif;
}

.m_sms_services_header {
    background-color: #00a651;
    border-bottom: 2px solid #008641;
}

/* Category Block */
.m_sms_service_block {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
}

.m_sms_block_title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

/* Interactive Link Button */
.m_sms_service_link {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 9px 10px;
    border-radius: 6px;
    text-decoration: none;
    color: #334155;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    height: 100%;
}

.m_sms_service_link i {
    color: #00a651;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.m_sms_service_link span {
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Hover State */
.m_sms_service_link:hover {
    background-color: #e6f4ea;
    border-color: #00a651;
    color: #008641;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 166, 81, 0.12);
}

.m_sms_service_link:hover i {
    transform: scale(1.15);
}

/* Responsive Media Queries */
@media (max-width: 767.98px) {
    .m_sms_service_link {
        padding: 8px 8px;
        font-size: 12px;
    }
    
    .m_sms_service_link i {
        font-size: 13px;
    }

    .m_sms_block_title {
        font-size: 14px;
    }
}

/* ==========================================================================
   MOBILE RESPONSIVE ADJUSTMENTS
   ========================================================================== */

/* Mobile Devices Breakpoint */
@media (max-width: 575.98px) {
    .m_sms_service_link {
        padding: 10px 12px;
        font-size: 13px; /* বড় ও পরিষ্কার দেখানোর জন্য */
    }
    
    .m_sms_service_link i {
        font-size: 15px;
    }

    .m_sms_service_link span {
        white-space: normal; /* দরকার পড়লে লেখা ভেঙে পরের লাইনে সুন্দর করে ফিট হবে */
    }
}



/* ==========================================================================
   ==========================================================================
   INSTITUTIONAL INFO GRID BOXES SECTION CSS (HOME PAGE)
   ==========================================================================
   ========================================================================== */

/* Outer Box Fit & Spacing */
.m_sms_info_box {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.25s ease-in-out;
}

/* Hover Effect for Desktop */
.m_sms_info_box:hover {
    border-color: #00a651;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 166, 81, 0.08);
}

/* Title & Header Layout */
.m_sms_box_icon {
    width: 36px;
    height: 36px;
    background-color: #f0fdf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.m_sms_box_title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

/* List Formatting */
.m_sms_info_list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.m_sms_info_list li a {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #475569;
    font-size: 13.5px;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
    line-height: 1.4;
}

.m_sms_info_list li a i {
    font-size: 6px;
    color: #94a3b8;
    transition: color 0.2s ease, transform 0.2s ease;
}

/* List Link Hover State */
.m_sms_info_list li a:hover {
    color: #00a651;
    transform: translateX(3px);
}

.m_sms_info_list li a:hover i {
    color: #00a651;
    transform: scale(1.5);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Mobile, Tablet & Laptop)
   ========================================================================== */

/* Laptop Screens (992px to 1199px) */
@media (max-width: 1199.98px) {
    .m_sms_box_title {
        font-size: 15px;
    }
    .m_sms_info_list li a {
        font-size: 13px;
    }
}

/* Tablet Screens (768px to 991px) */
@media (max-width: 991.98px) {
    .m_sms_info_box {
        padding: 12px !important;
    }
}

/* Mobile Devices (Max 575.98px) */
@media (max-width: 575.98px) {
    .m_sms_info_box {
        box-shadow: none;
        border: 1px solid #cbd5e1;
    }
    
    .m_sms_box_title {
        font-size: 15px;
    }

    .m_sms_info_list {
        gap: 10px; /* সহজ টাচের জন্য মোবাইলে স্পেসিং বাড়ানো হয়েছে */
    }

    .m_sms_info_list li a {
        font-size: 13px;
    }
}



/* ==========================================================================
   ==========================================================================
   INSTITUTION MAP SECTION CSS (HOME PAGE)
   ==========================================================================
   ========================================================================== */

/* Outer Card Fit & Alignment Fix */
.m_sms_map_card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0 !important;
    font-family: 'Noto Sans Bengali', sans-serif;
    margin: 0px 27px 0px 27px;
}

.m_sms_map_header {
    background-color: #00a651;
    border-bottom: 2px solid #008641;
}

/* Directions Button Style */
.m_sms_map_btn {
    font-size: 12px;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

.m_sms_map_btn:hover {
    background-color: #e6f4ea;
    color: #008641;
    transform: translateY(-1px);
}

/* Aspect Ratio Responsive Map Container */
.m_sms_map_container {
    position: relative;
    width: 100%;
    height: 380px; /* Desktop height */
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
}

.m_sms_map_container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Mobile & Tablet)
   ========================================================================== */

/* Tablet Screens (768px to 991px) */
@media (max-width: 991.98px) {
    .m_sms_map_container {
        height: 320px;
    }
}

/* Mobile Devices (Max 575.98px) */
@media (max-width: 575.98px) {
    .m_sms_map_container {
        height: 260px;
    }

    .m_sms_map_header h3 {
        font-size: 13px !important;
    }

    .m_sms_map_btn {
        font-size: 11px;
        padding: 2px 6px !important;
    }
}





/* ==========================================================================
   HOME PAGE & SIDEBAR EVENT WIDGET STYLES (MINIMAL & LIGHTWEIGHT)
   ========================================================================== */
/* Event System Scope-Protected CSS */

.sms-events-wrapper {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.sms-events-wrapper .sms-event-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 18px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sms-events-wrapper .sms-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sms-events-wrapper .sms-event-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.sms-events-wrapper .sms-event-gallery-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    cursor: pointer;
    transition: opacity 0.2s;
}

.sms-events-wrapper .sms-event-gallery-item img:hover {
    opacity: 0.85;
}

/* Lightbox Modal CSS */
.sms-lightbox-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
}

.sms-lightbox-modal.active {
    display: flex;
}

.sms-lightbox-content {
    max-width: 90%;
    max-height: 85%;
    border-radius: 6px;
}

.sms-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 32px;
    cursor: pointer;
}