/* === NEWS PAGE STYLING === */

:root {
    --news-primary: #084c8b;
    --news-secondary: #063a6b;
    --news-white: #ffffff;
    --news-text-dark: #2c3e50;
    --news-text-muted: #6c757d;
    --news-shadow: 0 4px 12px rgba(0,0,0,0.08);
    --news-shadow-hover: 0 8px 20px rgba(0,0,0,0.14);
    --news-gradient: linear-gradient(135deg, var(--news-primary) 0%, var(--news-secondary) 100%);
    --news-radius: 12px;
    --news-transition: all 0.25s ease;
}

.news-header {
    background: var(--news-gradient);
    color: var(--news-white);
    padding: 26px 20px 22px;
    margin-bottom: 24px;
    text-align: center;
    border-radius: 0 0 var(--news-radius) var(--news-radius);
}
.news-header-content { max-width: 820px; margin: 0 auto; }
.news-header .header-icon { font-size: 1.9rem; margin-bottom: 4px; opacity: 0.95; }
.news-title { font-size: 1.95rem; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.5px; }
.news-subtitle { font-size: 1.02rem; opacity: 0.9; line-height: 1.5; margin: 0 auto; max-width: 640px; }

.news-content { max-width: 900px; margin: 0 auto 40px; padding: 0 20px; }

.news-sec-title {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.4rem; font-weight: 700; color: var(--news-text-dark);
    border-left: 4px solid var(--news-primary); padding-left: 12px; margin: 30px 0 16px;
}

.news-list { display: flex; flex-direction: column; gap: 16px; }

.news-card {
    display: flex;
    gap: 18px;
    background: var(--news-white);
    border-radius: var(--news-radius);
    padding: 20px 22px;
    box-shadow: var(--news-shadow);
    border-left: 4px solid var(--news-primary);
    transition: var(--news-transition);
}
.news-card:hover { transform: translateX(4px); box-shadow: var(--news-shadow-hover); }

.news-card-image {
    flex: 0 0 160px;
    width: 160px;
    height: 110px;
    border-radius: 8px;
    overflow: hidden;
}
.news-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.news-card-body { flex: 1 1 auto; min-width: 0; }

.news-date {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.8rem; font-weight: 600; color: var(--news-primary);
    background: rgba(8,76,139,0.08); padding: 3px 12px; border-radius: 20px; margin-bottom: 8px;
}
.news-badge-event { background: rgba(8,76,139,0.08); color: var(--news-primary); }

.news-card h3 { font-size: 1.12rem; font-weight: 700; color: var(--news-text-dark); margin: 0 0 6px; }
.news-card p { font-size: 0.95rem; color: var(--news-text-muted); line-height: 1.55; margin: 0; }

.news-link {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 10px;
    padding: 6px 14px; background: var(--news-primary); color: var(--news-white);
    text-decoration: none; border-radius: 20px; font-size: 0.85rem; font-weight: 500;
    transition: var(--news-transition);
}
.news-link:hover { background: var(--news-secondary); color: var(--news-white); }

/* Openings */
.opening-card {
    background: var(--news-white);
    border: 1px solid rgba(8,76,139,0.2);
    border-left: 4px solid #2e7d32;
    border-radius: var(--news-radius);
    padding: 20px 22px;
    box-shadow: var(--news-shadow);
}
.opening-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--news-text-dark); margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.opening-card h3 i { color: #2e7d32; }
.opening-card p { font-size: 0.95rem; color: var(--news-text-muted); line-height: 1.55; margin: 0; }

.news-empty { text-align: center; color: var(--news-text-muted); padding: 50px 20px; }

/* Older News toggle */
.news-collapse-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 8px;
    color: var(--news-text-dark);
    font-weight: 700;
    font-size: 1rem;
    text-align: left;
    cursor: pointer;
    transition: var(--news-transition);
}
.news-collapse-btn:hover { background: #eef1f4; border-color: rgba(0,0,0,0.15); }
.news-collapse-btn[aria-expanded="true"] {
    background: rgba(8,76,139,0.06);
    border-color: var(--news-primary);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.news-collapse-label { display: inline-flex; align-items: center; gap: 10px; }
.news-collapse-count {
    background: rgba(8,76,139,0.1); color: var(--news-primary);
    font-size: 0.78rem; font-weight: 700;
    padding: 2px 9px; border-radius: 20px;
}
.news-collapse-caret { transition: transform 0.25s ease; color: var(--news-primary); }
.news-collapse-btn[aria-expanded="true"] .news-collapse-caret { transform: rotate(180deg); }

#olderNews {
    border: 1px solid var(--news-primary);
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    padding: 16px;
}
#olderNews .news-list:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
    .news-header { padding: 20px 15px 18px; }
    .news-title { font-size: 1.6rem; }
    .news-subtitle { font-size: 0.95rem; }
    .news-sec-title { font-size: 1.2rem; }
    .news-card { flex-direction: column; }
    .news-card-image { width: 100%; height: 160px; flex-basis: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .news-card { transition: none; }
    .news-card:hover { transform: none; }
}
