/**
 * IH Announcements - Public Styles
 */

/* ─── Latest Announcements (Homepage) ─── */

.ih-ann-latest {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.ih-ann-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 6px;
    padding: 1.5rem 1.75rem;
    position: relative;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.ih-ann-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    transform: translateY(-1px);
}

.ih-ann-card--pinned {
    border-left: 3px solid #D4AF37;
}

.ih-ann-pin-badge {
    display: inline-block;
    background: #D4AF37;
    color: #0F2847;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 0.5rem;
}

.ih-ann-date {
    display: inline-block;
    background: rgba(212, 175, 55, 0.15);
    color: #D4AF37;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 0.6rem;
}

.ih-ann-card .ih-ann-title {
    margin: 0 0 0.5rem;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.4;
}

.ih-ann-card .ih-ann-title a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ih-ann-card .ih-ann-title a:hover {
    color: #D4AF37;
}

.ih-ann-card .ih-ann-excerpt {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    margin: 0 0 0.75rem;
}

.ih-ann-read-more {
    color: #D4AF37;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ih-ann-read-more:hover {
    color: #E8C44A;
}

.ih-ann-empty {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    padding: 2rem;
}

/* ─── Archive Page ─── */

.ih-ann-archive {
    max-width: 800px;
    margin: 0 auto;
}

.ih-ann-archive-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
    position: relative;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.ih-ann-archive-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #D4AF37;
}

.ih-ann-archive-card.ih-ann-card--pinned {
    border-left: 3px solid #D4AF37;
}

.ih-ann-archive-card .ih-ann-date {
    background: rgba(15, 40, 71, 0.08);
    color: #0F2847;
}

.ih-ann-archive-card .ih-ann-title {
    margin: 0 0 0.5rem;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
}

.ih-ann-archive-card .ih-ann-title a {
    color: #0F2847;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ih-ann-archive-card .ih-ann-title a:hover {
    color: #D4AF37;
}

.ih-ann-archive-card .ih-ann-excerpt {
    color: #4B5563;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    margin: 0 0 0.75rem;
}

.ih-ann-archive-card .ih-ann-read-more {
    color: #0F2847;
    font-weight: 600;
}

.ih-ann-archive-card .ih-ann-read-more:hover {
    color: #D4AF37;
}

/* ─── Pagination ─── */

.ih-ann-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 1rem 0;
}

.ih-ann-page-current,
.ih-ann-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.ih-ann-page-current {
    background: #0F2847;
    color: #FFFFFF;
}

.ih-ann-page-link {
    background: #F3F4F6;
    color: #0F2847;
}

.ih-ann-page-link:hover {
    background: #D4AF37;
    color: #FFFFFF;
}

/* ─── Detail Page ─── */

.ih-ann-detail-wrapper {
    max-width: 780px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

.ih-ann-detail-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ih-ann-detail-title {
    font-size: 32px;
    font-weight: 500;
    color: #0F2847;
    line-height: 1.3;
    margin: 0 0 2rem;
}

.ih-ann-detail-content {
    color: #374151;
    font-size: 16px;
    line-height: 1.8;
    font-weight: 300;
}

.ih-ann-detail-content p {
    margin-bottom: 1.25rem;
}

.ih-ann-detail-content h2,
.ih-ann-detail-content h3,
.ih-ann-detail-content h4 {
    color: #0F2847;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.ih-ann-detail-content blockquote {
    border-left: 3px solid #D4AF37;
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: rgba(212, 175, 55, 0.05);
    font-style: italic;
    color: #4B5563;
}

.ih-ann-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.ih-ann-detail-content ul,
.ih-ann-detail-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.ih-ann-detail-content li {
    margin-bottom: 0.4rem;
}

.ih-ann-detail-back {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E5E7EB;
}

.ih-ann-detail-back a {
    color: #0F2847;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ih-ann-detail-back a:hover {
    color: #D4AF37;
}

/* ─── Detail Page Date Badge (light bg context) ─── */

.ih-ann-detail .ih-ann-date {
    background: rgba(15, 40, 71, 0.08);
    color: #0F2847;
}

/* ─── Responsive ─── */

@media (max-width: 768px) {
    .ih-ann-card,
    .ih-ann-archive-card {
        padding: 1.25rem;
    }

    .ih-ann-detail-wrapper {
        padding: 2rem 1rem 3rem;
    }

    .ih-ann-detail-title {
        font-size: 24px;
    }

    .ih-ann-detail-content {
        font-size: 15px;
    }
}
