/* Announcements Page Styles - Cognitive Science of Yoga */

.announcements-content {
    width: min(96vw, 1280px);
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 5vw, 2rem);
}

.announcements-content h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e67e22;
}

/* Announcement cards */
.announcement-card {
    width: 100%;
    background: white;
    padding: clamp(1.25rem, 3.5vw, 2rem);
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 4px solid #e67e22;
}

.announcement-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.announcement-card h3 {
    color: #2c3e50;
    margin-bottom: 0.4rem;
}

.announcement-card h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.announcement-card h3 a:hover {
    color: #e67e22;
}

.announcement-meta {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.announcement-type {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: #fef3e5;
    color: #e67e22;
    font-weight: 700;
    margin-right: 0.5rem;
}

.announcement-card p {
    color: #555;
    line-height: 1.6;
}

/* No announcements */
.no-announcements {
    text-align: center;
    padding: 3rem;
    color: #888;
    background: white;
    border-radius: 8px;
}

@media (max-width: 1024px) {
    .announcements-content h2 {
        margin-bottom: 1.2rem;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .announcements-content {
        padding: 2rem 1rem;
    }

    .announcement-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .announcement-meta {
        font-size: 0.82rem;
    }

    .announcement-card h3 {
        font-size: 1.05rem;
    }
}

/* Night Mode */
body.night-mode .announcements-content h2 {
    color: #e0e0e0;
    border-color: #c0601a;
}

body.night-mode .announcement-card {
    background: #252525;
    border-color: #c0601a;
}

body.night-mode .announcement-card h3,
body.night-mode .announcement-card h3 a {
    color: #e0e0e0;
}

body.night-mode .announcement-card h3 a:hover {
    color: #e67e22;
}

body.night-mode .announcement-card p {
    color: #b0b0b0;
}

body.night-mode .announcement-type {
    background: #2a1a0a;
    color: #e67e22;
}

body.night-mode .no-announcements {
    background: #252525;
}
