.announcements-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.announcements-hero {
    padding: 120px 20px 40px;
    background: linear-gradient(135deg, #0f2a5f 0%, #123a8d 45%, #0b1b3a 100%);
    color: #f4f7ff;
}

.announcements-hero-inner {
    max-width: 960px;
    margin: 0 auto;
    text-align: left;
}

.announcements-hero h1 {
    font-size: clamp(2rem, 2.6vw, 3rem);
    margin-bottom: 10px;
}

.announcements-hero p {
    opacity: 0.9;
    max-width: 680px;
}

.announcements-content {
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
    padding: 12px 20px 80px;
    overflow: visible;
}

.announcements-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 0;
    position: -webkit-sticky;
    position: sticky;
    top: var(--nav-height, 70px);
    z-index: 1500;
    background: #f0f4f8;
    padding: 10px 0 8px;
    border-bottom: 1px solid #e4e9f3;
}

.announcements-tab {
    border: 1px solid #cdd6e6;
    background: #ffffff;
    color: #1b2b4a;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

.announcements-tab.is-active {
    background: #1b2b4a;
    color: #ffffff;
    border-color: #1b2b4a;
}

.announcements-panels {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e4e9f3;
    box-shadow: 0 12px 30px rgba(12, 20, 38, 0.08);
}

.announcements-panel {
    display: none;
}

.announcements-panel.is-active {
    display: block;
}

.announcements-panel h2 {
    margin-top: 0;
}

.announcements-list {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.announcement-card {
    border: 1px solid #e3e9f5;
    border-radius: 12px;
    padding: 12px 14px;
    background: #f7f9fd;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.announcement-card:hover {
    box-shadow: 0 18px 36px rgba(12, 20, 38, 0.12);
    transform: translateY(-3px);
}

.announcement-card.is-expanded {
    box-shadow: 0 18px 36px rgba(12, 20, 38, 0.12);
    transform: translateY(-2px);
}

.announcement-image img {
    width: 100%;
    border-radius: 10px;
    display: block;
    margin-bottom: 10px;
    height: 160px;
    object-fit: cover;
}

.announcement-body p {
    margin: 0 0 8px;
}

.announcement-body {
    max-height: none;
    transition: max-height 0.35s ease;
}

.announcement-body.is-collapsed {
    max-height: 120px;
    overflow: hidden;
}

.announcement-toggle {
    margin-top: 8px;
    background: #1b2b4a;
    color: #ffffff;
    border: 0;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.announcement-toggle:hover {
    background: #243a64;
}

.announcement-card h3 {
    margin: 0 0 4px;
    font-size: 1rem;
}

.birthday-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.birthday-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    justify-content: center;
    text-align: center;
    flex-wrap: wrap;
}

.birthday-icon {
    width: 18px;
    height: 18px;
    color: #f2a93b;
}

.birthday-greeting {
    display: inline-block;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.2;
}

.birthday-name {
    display: inline-block;
    font-weight: 700;
    margin-bottom: 4px;
    color: #1b2b4a;
    text-align: center;
    white-space: normal;
    overflow: visible;
    max-width: 100%;
}

.announcement-card p {
    margin: 0;
    color: #4a5b78;
    font-size: 0.95rem;
}

.announcement-card .meta {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #6a7a97;
}

@media (max-width: 480px) {
    .announcements-hero {
        padding-top: 96px;
    }
    .announcements-tabs {
        flex-direction: column;
    }
}

@media (max-width: 1024px) {
    .announcements-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .announcements-list {
        grid-template-columns: 1fr;
    }
}
