/* ============================================ */
/* ANNOUNCEMENTS PAGE — Modern sleek design      */
/* ============================================ */

.announcements-page {
    padding: 140px 20px 80px;
    background: #fafafa;
    min-height: 100vh;
    max-width: 900px;
    margin: 0 auto;
}

.announcements-header {
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.announcements-subtitle {
    color: #6b7280;
    font-size: 1.05rem;
    margin-top: 1rem;
    line-height: 1.7;
}

/* ── Cards list ─────────────────────────────── */
.announcements-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ── Individual card ────────────────────────── */
.announcement-card {
    position: relative;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid #f0ede6;
    border-radius: 16px;
    padding: 1.75rem 2rem;
    overflow: hidden;
    transition:
        transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.3s ease;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.03),
        0 4px 12px rgba(0, 0, 0, 0.02);
}

/* Left accent stripe — subtle by default, glows on hover */
.announcement-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #c4a35a 0%, #b8942f 100%);
    transition: width 0.3s ease;
}

.announcement-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 4px 8px rgba(196, 163, 90, 0.08),
        0 12px 32px rgba(196, 163, 90, 0.15);
    border-color: #e8dfc9;
}

.announcement-card:hover::before {
    width: 6px;
}

/* ── Icon badge ─────────────────────────────── */
.announcement-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #fdf6e3 0%, #f7ead0 100%);
    color: #b8942f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.announcement-card:hover .announcement-icon {
    transform: rotate(-6deg) scale(1.05);
    box-shadow: 0 4px 12px rgba(196, 163, 90, 0.25);
}

/* ── Card body ──────────────────────────────── */
.announcement-body {
    flex: 1;
    min-width: 0;
}

.announcement-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.6rem;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.announcement-text {
    color: #4b5563;
    font-size: 0.98rem;
    line-height: 1.7;
    white-space: pre-wrap;
    margin-bottom: 1rem;
}

/* ── Meta line ──────────────────────────────── */
.announcement-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: #9ca3af;
    padding-top: 0.85rem;
    border-top: 1px dashed #f3f0e8;
}

.announcement-date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.announcement-date::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c4a35a;
    opacity: 0.6;
}

/* ── Fade-in stagger on load ────────────────── */
.announcement-card {
    animation: announcementFadeIn 0.5s ease-out backwards;
}

.announcement-card:nth-child(1) { animation-delay: 0.05s; }
.announcement-card:nth-child(2) { animation-delay: 0.10s; }
.announcement-card:nth-child(3) { animation-delay: 0.15s; }
.announcement-card:nth-child(4) { animation-delay: 0.20s; }
.announcement-card:nth-child(5) { animation-delay: 0.25s; }
.announcement-card:nth-child(n+6) { animation-delay: 0.30s; }

@keyframes announcementFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Empty state ─────────────────────────────── */
.announcements-empty {
    text-align: center;
    padding: 5rem 2rem;
    color: #9ca3af;
    font-size: 1.05rem;
    background: #fff;
    border-radius: 16px;
    border: 1px dashed #e5e7eb;
}

/* ── Mobile ─────────────────────────────────── */
@media (max-width: 768px) {
    .announcements-page {
        padding: 100px 15px 60px;
    }

    .announcement-card {
        flex-direction: column;
        gap: 1rem;
        padding: 1.35rem 1.5rem 1.5rem;
    }

    .announcement-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 1.1rem;
    }

    .announcement-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .announcement-text {
        font-size: 0.93rem;
        line-height: 1.65;
    }

    .announcement-meta {
        font-size: 0.75rem;
        padding-top: 0.7rem;
    }
}