/* ==========================================================================
   ALL NOTICE PAGE - FULL WIDTH & RESPONSIVE DESIGN
   ========================================================================== */

.m_sms_all_notice_section {
    background-color: #ffffff;
    font-family: 'Noto Sans Bengali', sans-serif;
    color: #212529;
}

/* Page Title & Buttons */
.m_sms_notice_page_title {
    font-weight: 700;
    font-size: 24px;
    color: #0f172a;
}

.m_sms_feedback_btn {
    background-color: #00a651;
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    border-radius: 20px;
    padding: 6px 16px;
    transition: all 0.2s ease;
}

.m_sms_feedback_btn:hover {
    background-color: #008641;
    color: #ffffff;
}

/* Search Controls */
.m_sms_search_input {
    width: 180px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    height: 36px;
    font-size: 13px;
}

.m_sms_search_input:focus {
    border-color: #00a651;
    box-shadow: 0 0 0 0.2rem rgba(0, 166, 81, 0.15);
}

.m_sms_search_btn {
    background-color: #00a651;
    color: #ffffff;
    border-radius: 4px;
    height: 36px;
    padding: 0 14px;
    display: flex;
    align-items: center;
}

.m_sms_search_btn:hover {
    background-color: #008641;
    color: #ffffff;
}

.m_sms_per_page_select {
    width: 70px;
    height: 36px;
    font-size: 13px;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #cbd5e1;
}

/* Table Styling (Desktop & Tablet) */
.m_sms_gov_notice_table {
    border: 1px solid #e2e8f0;
    font-size: 13px;
    width: 100%;
}

.m_sms_gov_notice_table thead th {
    background-color: #f8fafc;
    color: #1e293b;
    font-weight: 700;
    border-bottom: 2px solid #cbd5e1 !important;
    padding: 12px 10px;
}

.m_sms_gov_notice_table tbody td {
    padding: 10px;
    color: #334155;
}

.m_sms_notice_title_td {
    font-weight: 500;
    line-height: 1.6;
}

/* Light PDF Icon Button */
.m_sms_light_pdf_btn {
    background-color: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecaca;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.m_sms_light_pdf_btn:hover {
    background-color: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

/* Green View Badge */
.m_sms_view_badge {
    background-color: #e6f4ea;
    color: #00a651;
    border: 1px solid #a8e6cf;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
}

.m_sms_view_badge:hover {
    background-color: #00a651;
    color: #ffffff;
    border-color: #00a651;
}

/* Custom Pagination */
.m_sms_gov_pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    background-color: #f1f5f9;
    color: #334155;
    text-decoration: none;
    font-size: 13px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.m_sms_gov_pagination li a.active {
    background-color: #00a651;
    color: #ffffff;
    font-weight: 700;
}

.m_sms_gov_pagination li a:hover:not(.active) {
    background-color: #e2e8f0;
}

.m_sms_gov_pagination li.dots {
    display: flex;
    align-items: flex-end;
    padding: 0 4px;
    font-weight: bold;
    color: #64748b;
}

.m_sms_page_jump_input {
    border-radius: 4px;
    border: 1px solid #cbd5e1;
    height: 32px;
}

/* Archive Button & Stats */
.m_sms_archive_btn {
    background-color: #00a651;
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    border-radius: 4px;
    padding: 6px 16px;
}

.m_sms_archive_btn:hover {
    background-color: #008641;
    color: #ffffff;
}

.m_sms_stat_text {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
}

/* ==========================================================================
   PURE MOBILE RESPONSIVE FIX (Mobile & Small Devices: Max 767px)
   ========================================================================== */
@media (max-width: 767.98px) {
    
    /* Search Bar Layout Fix */
    .m_sms_search_input {
        width: 130px;
    }

    /* Table to Card Conversion */
    .m_sms_gov_notice_table, 
    .m_sms_gov_notice_table thead, 
    .m_sms_gov_notice_table tbody, 
    .m_sms_gov_notice_table th, 
    .m_sms_gov_notice_table td, 
    .m_sms_gov_notice_table tr {
        display: block;
    }

    /* Hide Desktop Header */
    .m_sms_gov_notice_table thead {
        display: none;
    }

    /* Card Wrapper */
    .m_sms_gov_notice_table tbody tr {
        background: #ffffff;
        border: 1px solid #e2e8f0 !important;
        border-radius: 8px;
        margin-bottom: 12px;
        padding: 12px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
        position: relative;
        overflow: hidden;
    }

    .m_sms_gov_notice_table tbody td {
        border: none !important;
        padding: 0 !important;
    }

    /* 1. Serial Number (Top Left Badge Style) */
    .m_sms_gov_notice_table tbody td:nth-child(1) {
        font-size: 13px;
        color: #475569;
        font-weight: 700;
        margin-bottom: 6px;
        display: inline-block;
    }

    /* 2. Title Text */
    .m_sms_notice_title_td {
        font-size: 14px;
        font-weight: 600;
        color: #1e293b;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    /* Hide default 3rd column td (Date), handled below */
    .m_sms_gov_notice_table tbody td:nth-child(3) {
        display: none !important; 
    }

    /* 3. Bottom Row Wrapper: Left Date & Right Action Buttons */
    .m_sms_gov_notice_table tbody td:nth-child(4) {
        border-top: 1px solid #f1f5f9 !important;
        padding-top: 10px !important;
        margin-top: 4px;
        display: flex !important;
        align-items: center;
        justify-content: space-between !important;
        width: 100%;
    }

    /* Inject Date on the Left Side via CSS ::before */
    .m_sms_gov_notice_table tbody td:nth-child(4)::before {
        content: "৩০-০৮-২০২৬"; /* PHP দিয়ে ডায়নামিক করার সময় এই ক্লাসে data-date Attribute ব্যবহার করা যাবে */
        font-size: 12px;
        color: #64748b;
        font-weight: 500;
    }

    /* Right Action Buttons Alignment */
    .m_sms_gov_notice_table tbody td:nth-child(4) .d-flex {
        gap: 6px !important;
    }

    /* Button Sizing for Mobile */
    .m_sms_light_pdf_btn, 
    .m_sms_view_badge {
        padding: 5px 10px !important;
        font-size: 11px !important;
    }

    /* Mobile Pagination Adjustments */
    .m_sms_gov_pagination li a {
        min-width: 28px;
        height: 28px;
        font-size: 12px;
        padding: 0 6px;
    }
}



