/* ============================================================
   VMS NOTICE BOARD PAGE STYLES
   Isolated stylesheet with card-based responsive table adaptations
============================================================ */

/* Hero Section */
.notice-hero {
    background-image: linear-gradient(rgba(33, 48, 100, 0.8), rgba(15, 23, 42, 0.85)), url('https://images.unsplash.com/photo-1434030216411-0b793f4b4173?auto=format&fit=crop&w=1920&q=80');
    height: 320px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 0 20px;
}
.notice-hero-content {
    z-index: 2;
}
.notice-hero-title {
    color: #ffffff;
    font-size: 3.5rem;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-weight: 800;
    letter-spacing: 2px;
    margin: 0 0 12px 0;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    line-height: 1.2;
}
.notice-hero-breadcrumbs-wrap {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 24px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
}
.notice-hero-breadcrumbs {
    color: #cbd5e1;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    margin: 0;
    text-transform: uppercase;
}
.notice-hero-breadcrumbs a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}
.notice-hero-breadcrumbs a:hover {
    color: var(--accent-color, #C5A551);
}
.notice-hero-breadcrumbs span {
    color: #ffffff;
}

/* Notice Section Container */
.notice-section-wrap {
    background-color: #f8fafc;
    padding: 0 5% 40px;
    min-height: 500px;
}

/* Board card */
.notice-board-card {
    max-width: 1050px;
    margin: -50px auto 80px;
    background-color: var(--bg-white, #ffffff);
    border-radius: var(--radius-lg, 16px);
    border: 1.5px solid var(--border-color, #e2e8f0);
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(33, 48, 100, 0.05), 0 10px 10px -5px rgba(33, 48, 100, 0.02);
    position: relative;
    z-index: 10;
}

.notice-header-bar {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4a0e0e 100%);
    padding: 24px 35px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3.5px solid var(--accent-color, #C5A551);
}
.notice-header-bar h3 {
    color: #ffffff !important;
    margin: 0;
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
}
.notice-count-badge {
    background-color: var(--accent-color, #C5A551);
    color: var(--primary-color, #213064);
    font-weight: 800;
    font-size: 0.82rem;
    padding: 6px 16px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,0.05));
    text-transform: uppercase;
}

/* Table layout details */
.notice-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.notice-table th {
    background-color: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 700;
    color: #475569;
    padding: 18px 24px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: var(--font-heading, 'Outfit', sans-serif);
}
.notice-table td {
    padding: 20px 24px;
    vertical-align: middle;
    font-size: 0.95rem;
    border-bottom: 1.5px solid #f1f5f9;
}
.notice-row {
    transition: all 0.25s ease;
}
.notice-row:hover {
    background-color: #f8fafc;
    transform: scale(1.002);
}

/* Index badges */
.sl-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f1f5f9;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.88rem;
    border: 1px solid #e2e8f0;
    margin: 0 auto;
}
.notice-row:hover .sl-badge {
    background-color: var(--primary-color, #213064);
    color: white;
    border-color: var(--primary-color, #213064);
}

.notice-title-link {
    color: var(--primary-color, #213064);
    font-weight: 600;
    font-size: 0.96rem;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: color 0.2s ease;
}
.notice-title-link:hover {
    color: var(--accent-color, #C5A551);
}

.notice-date-badge {
    color: #475569;
    font-weight: 700;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f8fafc;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}
.notice-row:hover .notice-date-badge {
    background-color: rgba(26, 86, 219, 0.05);
    color: var(--primary-color, #213064);
    border-color: rgba(26, 86, 219, 0.15);
}

.btn-view-notice {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--primary-color, #213064);
    color: white !important;
    padding: 8px 22px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: var(--radius-sm, 4px);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(33, 48, 100, 0.1);
}
.btn-view-notice:hover {
    background-color: var(--accent-color, #C5A551);
    color: var(--primary-color, #213064) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(33, 48, 100, 0.2);
}

/* ============================================================
   RESPONSIVE MEDIA QUERIES
============================================================ */
@media (max-width: 992px) {
    .notice-hero {
        height: 260px;
    }
    .notice-hero-title {
        font-size: 2.8rem;
    }
    .notice-header-bar {
        padding: 20px 25px;
    }
    .notice-header-bar h3 {
        font-size: 1.15rem;
    }
}

@media (max-width: 768px) {
    .notice-hero {
        height: 220px;
    }
    .notice-hero-title {
        font-size: 2.1rem;
    }
    .notice-hero-breadcrumbs-wrap {
        padding: 6px 18px;
    }
    
    /* Convert table to card format on mobile */
    .notice-table, 
    .notice-table thead, 
    .notice-table tbody, 
    .notice-table tr, 
    .notice-table th, 
    .notice-table td {
        display: block;
        width: 100% !important;
        box-sizing: border-box;
    }
    
    .notice-table thead {
        display: none; /* Hide headings on mobile */
    }
    
    .notice-table tbody {
        padding: 15px !important;
        background-color: #f8fafc;
    }
    
    .notice-row {
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        padding: 18px 16px !important;
        background: #ffffff !important;
        margin-bottom: 15px !important;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
        transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    }
    .notice-row:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
        background: #ffffff !important;
    }
    
    .notice-table td {
        border-bottom: none !important;
        border-right: none !important;
        padding: 6px 0 !important;
        text-align: left !important;
    }
    
    /* Index/SL badge hidden on small screens (except the empty state message) */
    .notice-table td:first-child:not(.notice-empty-state) {
        display: none !important;
    }
    
    .notice-table td:nth-child(2) {
        margin-bottom: 8px !important;
    }
    .notice-title-link {
        font-size: 0.98rem !important;
        font-weight: 700 !important;
        color: #1e293b !important;
        line-height: 1.45 !important;
        align-items: flex-start !important;
    }
    .notice-title-link:hover {
        color: var(--primary-color, #0ea5e9) !important;
    }
    .notice-title-link i {
        margin-top: 3px !important;
    }
    
    .notice-table td:nth-child(3) {
        margin-bottom: 12px !important;
        display: inline-flex !important;
    }
    .notice-date-badge {
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        color: #475569 !important;
        background-color: #f1f5f9 !important;
        border: 1px solid #e2e8f0 !important;
        padding: 5px 12px !important;
        border-radius: 6px !important;
    }
    
    .notice-table td:last-child {
        padding-top: 12px !important;
        border-top: 1px solid #f1f5f9 !important;
        display: flex !important;
        justify-content: flex-start !important;
    }
    .btn-view-notice {
        width: 100% !important;
        justify-content: center !important;
        padding: 11px 22px !important;
        font-size: 0.85rem !important;
        border-radius: 6px !important;
    }
}

@media (max-width: 576px) {
    .notice-hero {
        height: 180px;
    }
    .notice-hero-title {
        font-size: 1.7rem;
        letter-spacing: 1px;
    }
    .notice-header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 20px 15px;
    }
    .notice-header-bar h3 {
        font-size: 1.05rem;
    }
    .notice-board-card {
        margin: -30px 12px 50px !important;
        border-radius: 12px !important;
    }
}
