/* Pagination styles - Modernized */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0 0 0;
    padding: 0;
    width: 100%;
    flex-wrap: wrap;
}
.pagination button {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.pagination button.active,
.pagination button:hover {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(225, 29, 72, 0.25);
}
.pagination button:focus {
    outline: 2px solid #fda4af;
    outline-offset: 2px;
}

/* STYLES SPÉCIFIQUES À LA PAGE D'AVIS */
.page-hero { 
    padding: 100px 0 120px 0; 
    text-align: center; 
    color: white; 
    position: relative; 
    overflow: hidden; 
    background-image: url('../../img/student.jpg'); 
    background-size: cover; 
    background-position: center; 
}
.page-hero::before { 
    content: ''; 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: linear-gradient(135deg, rgba(8, 23, 38, 0.85) 0%, rgba(12, 35, 64, 0.75) 100%);
    z-index: 1; 
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { 
    font-size: 3.5rem; 
    font-weight: 800;
    margin: 0; 
    color: #ffffff; 
    text-shadow: 0 4px 20px rgba(0,0,0,0.4); 
    letter-spacing: -0.02em;
}
.page-hero p { 
    color: #f1f5f9; 
    margin-top: 15px; 
    font-size: 1.25rem; 
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3); 
}

.announcements-section { 
    padding: 0 0 80px 0; 
    background-color: #f8fafc;
}

.filters-container { 
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 24px 32px; 
    border-radius: 24px; 
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05); 
    margin: -50px auto 40px auto; 
    max-width: 900px; 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 24px; 
    position: relative;
    z-index: 10;
}
.filter-group { flex: 1; min-width: 220px; max-width: 45%; }
.filter-group label { 
    font-weight: 700; 
    color: #334155; 
    font-size: 0.95rem; 
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block; 
    margin-bottom: 8px; 
}
.filter-select { 
    width: 100%; 
    padding: 12px 18px; 
    border: 2px solid #e2e8f0; 
    border-radius: 12px; 
    background-color: #ffffff; 
    font-size: 1.05rem; 
    font-weight: 600;
    color: #0f172a; 
    appearance: none; 
    -webkit-appearance: none; 
    -moz-appearance: none; 
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%2364748b%22%20d%3D%22M287%2C114.7L159.2%2C242.5c-4.4%2C4.4-10.8%2C4.4-15.2%2C0L5.4%2C114.7c-4.4-4.4-4.4-10.8%2C0-15.2h13.2c4.4-4.4%2C10.8-4.4%2C15.2%2C0l115%2C115L258.6%2C99.5c4.4-4.4%2C10.8-4.4%2C15.2%2C0h13.2C291.4%2C103.9%2C291.4%2C110.3%2C287%2C114.7z%22%2F%3E%3C%2Fsvg%3E'); 
    background-repeat: no-repeat; 
    background-position: right 15px top 50%; 
    background-size: 12px auto; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.01);
}
.filter-select:focus { 
    border-color: #e11d48; 
    box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1); 
    outline: none; 
}

#loading-indicator, #no-results-message { 
    text-align: center; 
    font-size: 1.1rem; 
    font-weight: 600; 
    color: #64748b; 
    padding: 60px 20px; 
    background: #ffffff;
    border-radius: 20px;
    border: 1px dashed #cbd5e1;
}

#announcements-list { display: grid; gap: 24px; }

.announcement-item { 
    display: flex; 
    gap: 24px; 
    padding: 24px; 
    background-color: #ffffff; 
    border: 1px solid rgba(0, 0, 0, 0.04); 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.03); 
    border-radius: 20px; 
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); 
    align-items: center; 
    position: relative;
}
.announcement-item:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); 
    border-color: rgba(225, 29, 72, 0.2); 
}

.announcement-date-bubble { 
    flex-shrink: 0; 
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: white; 
    border-radius: 16px; 
    padding: 15px 20px; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.3);
}
.announcement-date-bubble.error { background: linear-gradient(135deg, #64748b 0%, #475569 100%); box-shadow: 0 8px 20px rgba(100, 116, 139, 0.3); }

.date-day { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.date-month { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }

.announcement-details { flex-grow: 1; min-width: 0; }
.announcement-details h3 { 
    font-size: 1.4rem; 
    font-weight: 800; 
    color: #0f172a; 
    margin: 0 0 12px 0; 
    padding-bottom: 10px; 
    border-bottom: 3px solid #e11d48; 
    display: inline-block; 
    max-width: 100%; 
    line-height: 1.4;
}
.announcement-content p { 
    color: #475569; 
    margin: 0; 
    line-height: 1.7; 
    font-size: 1.05rem;
}
.announcement-tags { 
    margin-top: 16px; 
    display: flex; 
    flex-wrap: wrap; 
    gap: 10px; 
}
.tag { 
    font-size: 0.75rem; 
    font-weight: 700; 
    padding: 6px 14px; 
    border-radius: 50px; 
    text-transform: uppercase; 
    letter-spacing: 0.05em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.tag-filiere { background-color: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; }
.tag-semestre { background-color: #ffe4e6; color: #e11d48; border: 1px solid #fecdd3; }

.announcement-details.text-rtl { text-align: right; }
.announcement-details.text-rtl .announcement-tags { justify-content: flex-end; }

/* Responsive Design pour Mobile Ultra-Moderne */
@media (max-width: 768px) {
    .page-hero { 
        padding: 60px 15px 100px 15px; 
    }
    .page-hero h1 { 
        font-size: 2.2rem; 
    }
    .page-hero p { 
        font-size: 1.1rem; 
    }
    
    .filters-container {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        margin: -40px 15px 30px 15px; 
        border-radius: 20px;
        width: auto;
    }
    .filter-group { 
        max-width: 100%; 
        width: 100%; 
    }
    .filter-select {
        padding: 14px 18px;
    }
    
    .announcements-section {
        padding: 0 15px 40px 15px;
    }
    
    .announcement-item { 
        flex-direction: column; 
        align-items: stretch;
        gap: 16px;
        padding: 20px;
        border-radius: 20px;
    }
    
    .announcement-date-bubble {
        flex-direction: row;
        align-items: baseline;
        justify-content: center;
        gap: 10px;
        padding: 12px;
        border-radius: 12px;
    }
    .date-day {
        font-size: 1.6rem;
    }
    .date-month {
        font-size: 1.1rem;
        margin-top: 0;
    }
    
    .announcement-details h3 {
        font-size: 1.25rem;
        border-bottom-width: 2px;
    }
    
    .announcement-content p {
        font-size: 1rem;
    }
}
