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

/* Page Header (shared with other pages) */
.page-header {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    padding: 140px 0 60px;
    color: #fff;
    overflow: hidden;
    background: linear-gradient(135deg, var(--secondary-color), var(--bg-dark));
}

.page-header .header-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 30%, rgba(0, 212, 255, 0.12), transparent 45%),
        radial-gradient(circle at 30% 70%, rgba(255, 91, 46, 0.1), transparent 40%);
}

.page-header-content {
    position: relative;
    text-align: center;
}

.page-header h1 {
    color: #fff;
    font-size: clamp(36px, 6vw, 56px);
    text-transform: uppercase;
}

.page-header h1 span {
    color: var(--primary-color);
}

.page-header p {
    color: #c0d0ec;
    font-size: clamp(16px, 2vw, 20px);
    max-width: 600px;
    margin: 0 auto;
}

/* News Section */
.news-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #eef3fb 0%, #f7f9fe 100%);
}

/* News Article Container */
.news-article-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

/* News Card */
.news-card {
    position: relative;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e7edf8;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 91, 46, 0.2);
}

/* News Image */
.news-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.news-image::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 40%;
    background: linear-gradient(to top, rgba(7, 19, 43, 0.25), transparent);
}

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

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

/* News Content */
.news-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.news-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #fff0ec, #e8f8ff);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-date i {
    font-size: 11px;
}

.news-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 10px;
    line-height: 1.25;
}

.news-excerpt {
    color: #63738f;
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
    flex: 1;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: var(--transition);
}

.news-read-more i {
    transition: transform 0.25s ease;
}

.news-read-more:hover {
    color: var(--primary-dark);
}

.news-read-more:hover i {
    transform: translateX(4px);
}

/* Empty State */
.news-empty {
    text-align: center;
    padding: 80px 20px;
    color: #8ea3c8;
}

.news-empty i {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.4;
}

.news-empty h3 {
    font-size: 28px;
    color: #6a7894;
    margin-bottom: 8px;
}

.news-empty p {
    font-size: 16px;
}

/* Single Article View */
.news-single {
    padding: 100px 0;
    background: #fff;
}

.news-single-content {
    max-width: 800px;
    margin: 0 auto;
}

.news-single-image {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
}

.news-single-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-single-title {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 12px;
}

.news-single-body {
    font-size: 17px;
    line-height: 1.8;
    color: #4a5a74;
}

.news-single-body p {
    margin-bottom: 18px;
    font-size: 17px;
    color: #4a5a74;
}

.news-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.news-back-link:hover {
    color: var(--primary-dark);
}

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

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

    .news-image {
        height: 200px;
    }

    .news-single-image {
        height: 250px;
    }
}
