/* ===========================
   News Page
   =========================== */

/* ── Hero ────────────────────────────────────────────────── */

.news-hero {
    position: relative;
    background-color: var(--color-black);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 0;
    text-align: center;
}

.news-hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.news-hero-inner {
    position: relative;
    z-index: 1;
}

.news-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 500;
    color: var(--color-white);
    line-height: 1.15;
    margin: 0 0 20px;
}

.news-hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(15px, 2vw, 17px);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.75;
    max-width: 640px;
    margin: 0 auto;
}

/* ── Posts Grid ──────────────────────────────────────────── */

.news-grid-section {
    background-color: var(--color-white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.news-grid-section::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(87, 7, 102, 0.06) 0%, rgba(87, 7, 102, 0.02) 45%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.news-grid-section::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        transparent 22%, rgba(87, 7, 102, 0.12) 22%, rgba(87, 7, 102, 0.12) 27%, transparent 27%,
        transparent 38%, rgba(87, 7, 102, 0.08) 38%, rgba(87, 7, 102, 0.08) 43%, transparent 43%,
        transparent 54%, rgba(87, 7, 102, 0.04) 54%, rgba(87, 7, 102, 0.04) 59%, transparent 59%
    );
    pointer-events: none;
    z-index: 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

/* ── Card ────────────────────────────────────────────────── */

.news-card {
    display: flex;
    flex-direction: column;
}

.news-card-img-wrap {
    display: block;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    aspect-ratio: 16 / 10;
}

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

.news-card-img-wrap:hover .news-card-img {
    transform: scale(1.04);
}

.news-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    background-color: var(--color-bg-light);
    padding: 20px;
    border-radius: 0 0 10px 10px;
}

.news-card-title-link {
    text-decoration: none;
}

.news-card-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    color: var(--color-black);
    line-height: 1.4;
    margin: 0 0 8px;
    transition: color 0.2s ease;
}

.news-card-title-link:hover .news-card-title {
    color: var(--color-primary);
}

.news-card-date {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-primary);
    margin: 0 0 12px;
}

.news-card-excerpt {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.7;
    margin: 0 0 16px;
    flex: 1;
}

.news-card-readmore {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    align-self: flex-start;
}

.news-card-readmore:hover {
    text-decoration: underline;
}

/* ── Pagination ──────────────────────────────────────────── */

.news-pagination {
    margin-top: 56px;
    text-align: center;
}

.news-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.news-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.news-pagination .page-numbers.current,
.news-pagination .page-numbers:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
}

.news-pagination .page-numbers.dots {
    border: none;
    background: none;
}

/* ── Empty state ─────────────────────────────────────────── */

.news-empty {
    text-align: center;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--color-text);
    padding: 40px 0;
}

/* ── Responsive ───────────────────────────────────────────── */

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

@media (max-width: 768px) {
    .news-hero {
        padding: 80px 0;
    }

    .news-grid-section {
        padding: 60px 0;
    }

    .news-grid {
        gap: 24px;
    }
}

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

    .news-hero {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .news-grid-section::before,
    .news-grid-section::after {
        display: none;
    }
}
