/* ==========================================
   News & Events Section Styling
   ========================================== */

/* Page Hero */
.news-hero-section {
    position: relative;
    padding: 70px 0;
    background: linear-gradient(135deg, rgba(45, 57, 139, 0.95), rgba(20, 26, 70, 0.9)), url('../images/home-banner.webp') center/cover no-repeat;
    color: #ffffff;
    text-align: center;
}

.news-hero-content h1 {
    font-family: var(--font-secondary, 'Play', sans-serif);
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-hero-line {
    width: 70px;
    height: 4px;
    background-color: var(--color-secondary, #fc0002);
    margin: 0 auto 15px auto;
    border-radius: 2px;
}

.news-hero-subtitle {
    font-size: 16px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* News Grid Layout */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* News Card */
.news-card {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    border: 1px solid #eef0f4;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.news-card-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #f4f6f9;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.06);
}

.news-date-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: var(--color-secondary, #fc0002);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.news-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card-title {
    font-family: var(--font-secondary, 'Play', sans-serif);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-primary, #2d398b);
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.news-card-title a {
    color: inherit;
}

.news-card-title a:hover {
    color: var(--color-secondary, #fc0002);
}

.news-card-text {
    font-size: 14px;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-card-footer {
    padding-top: 15px;
    border-top: 1px solid #f0f2f5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-primary, #2d398b);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.btn-read-more:hover {
    color: var(--color-secondary, #fc0002);
    transform: translateX(3px);
}

/* Pagination */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
}

.news-pagination a, .news-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid #dcdcdc;
    background: #ffffff;
    color: #333333;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.news-pagination a:hover {
    background: var(--color-primary, #2d398b);
    color: #ffffff;
    border-color: var(--color-primary, #2d398b);
}

.news-pagination .active {
    background: var(--color-secondary, #fc0002);
    color: #ffffff;
    border-color: var(--color-secondary, #fc0002);
}

/* Single News Detail Layout */
.news-detail-container {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 40px;
}

@media (max-width: 992px) {
    .news-detail-container {
        grid-template-columns: 1fr;
    }
}

.article-main {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    border: 1px solid #eef0f4;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.article-banner-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 24px;
}

.article-title {
    font-family: var(--font-secondary, 'Play', sans-serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--color-primary, #2d398b);
    margin-bottom: 12px;
    line-height: 1.35;
}

.article-meta {
    font-size: 13px;
    color: #777777;
    margin-bottom: 24px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 15px;
}

.article-body-content {
    font-size: 15px;
    line-height: 1.8;
    color: #3b3b3b;
}

.article-body-content p {
    margin-bottom: 18px;
}

/* News Sidebar Widget */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-widget {
    background: #ffffff;
    border-radius: 10px;
    padding: 24px;
    border: 1px solid #eef0f4;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.widget-title {
    font-family: var(--font-secondary, 'Play', sans-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary, #2d398b);
    border-bottom: 2px solid var(--color-secondary, #fc0002);
    padding-bottom: 8px;
    margin-bottom: 20px;
}

.recent-post-item {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f2f4f8;
}

.recent-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-post-thumb {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-info h5 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: #333333;
    margin-bottom: 4px;
}

.recent-post-info h5 a:hover {
    color: var(--color-secondary, #fc0002);
}

.recent-post-date {
    font-size: 11px;
    color: #888888;
}
