/* MyLondonExam — public Notices page */

.notices-hero {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 45%, #991b1b 100%);
}

.notices-hero-compact {
    padding-bottom: 2rem;
}

.notices-intro {
    max-width: 640px;
}

.notices-section {
    position: relative;
}

.notices-toolbar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

@media (min-width: 992px) {
    .notices-toolbar {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }

    .notices-search-form {
        min-width: 280px;
        max-width: 360px;
    }
}

.notices-filter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.notices-filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    background: #f1f5f9;
    color: #1e293b;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.notices-filter-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

.notices-filter-pill.is-active {
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.2);
}

.notices-filter-pill.notice-filter-all.is-active {
    background: #1e3a8a;
    color: #fff;
    border-color: #1e3a8a;
}

.notice-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

.notice-tag-exams {
    background: #1e3a8a;
    color: #fff;
}

.notice-tag-classes {
    background: #0d9488;
    color: #fff;
}

.notice-tag-holidays {
    background: #7c3aed;
    color: #fff;
}

.notice-tag-papers {
    background: #b45309;
    color: #fff;
}

.notice-tag-fees {
    background: #b91c1c;
    color: #fff;
}

.notices-filter-pill.notice-tag-exams.is-active {
    background: #1e3a8a;
    color: #fff;
}

.notices-filter-pill.notice-tag-classes.is-active {
    background: #0d9488;
    color: #fff;
}

.notices-filter-pill.notice-tag-holidays.is-active {
    background: #7c3aed;
    color: #fff;
}

.notices-filter-pill.notice-tag-papers.is-active {
    background: #b45309;
    color: #fff;
}

.notices-filter-pill.notice-tag-fees.is-active {
    background: #b91c1c;
    color: #fff;
}

.notices-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.notice-card {
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 16px;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.notice-card:hover {
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.09);
    transform: translateY(-2px);
}

.notice-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.notice-date {
    font-size: 0.875rem;
    color: #64748b;
}

.notice-card-title {
    font-size: clamp(1.15rem, 2.5vw, 1.35rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.notice-card-title a {
    color: #0f172a;
    text-decoration: none;
}

.notice-card-title a:hover {
    color: #1e3a8a;
}

.notice-event-date {
    font-size: 0.9rem;
    color: #b91c1c;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.notice-card-content {
    color: #334155;
    line-height: 1.65;
}

.notice-card-content p:last-child {
    margin-bottom: 0;
}

.notice-card-footer {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.notice-detail-card {
    background: var(--surface, #fff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 16px;
    padding: clamp(1.5rem, 4vw, 2.25rem);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}

.notices-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
}

.notices-empty i {
    font-size: 2.5rem;
    color: #94a3b8;
    margin-bottom: 1rem;
    display: block;
}

.notices-alert {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.notices-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.notices-alert-error i {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.notices-key-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.65rem;
}

@media (min-width: 768px) {
    .notices-key-list {
        grid-template-columns: 1fr 1fr;
    }
}

.notices-key-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #475569;
}

.notices-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(248, 250, 252, 0.75);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 4rem;
    z-index: 5;
    border-radius: 12px;
}

.notices-loading-overlay[hidden] {
    display: none !important;
}

.notices-loading-spinner {
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid #e2e8f0;
    border-top-color: #1e3a8a;
    border-radius: 50%;
    animation: notices-spin 0.7s linear infinite;
}

@keyframes notices-spin {
    to {
        transform: rotate(360deg);
    }
}

.notice-meta {
    font-size: 0.95rem;
    opacity: 0.95;
}

.notice-meta-divider {
    margin: 0 0.35rem;
}
