/*
 * News Page Modern Editorial Layer
 * Loaded after the shared public refresh to finish news.php cleanly.
 */

.news-page {
    background:
        radial-gradient(circle at 12% 8%, rgba(0, 212, 255, 0.13), transparent 26rem),
        radial-gradient(circle at 86% 6%, rgba(255, 107, 53, 0.08), transparent 24rem),
        var(--background-dark);
}

.news-header {
    min-height: 54vh;
    padding: 8.25rem 0 4.25rem;
    border-bottom: 0;
}

.news-header-container {
    text-align: left;
}

.news-header-container .news-page-title,
.news-header-container .news-page-subtitle {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.news-page-title {
    max-width: 780px;
    font-size: clamp(3rem, 7vw, 6.4rem);
    line-height: 0.92;
}

.news-page-subtitle {
    max-width: 680px;
    color: rgba(255, 255, 255, 0.72);
}

.news-featured {
    padding: clamp(3rem, 5vw, 5rem) 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.98), rgba(26, 26, 46, 0.76));
}

.news-featured-container {
    width: min(1160px, calc(100% - 2rem));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
    gap: 1rem;
}

.news-featured-card,
.news-recent-panel {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 26px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.032));
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.news-featured-card {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
}

.news-featured-media {
    position: relative;
    display: block;
    min-height: 100%;
    overflow: hidden;
}

.news-featured-media img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

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

.news-featured-category {
    position: absolute;
    left: 1rem;
    top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    background: rgba(10, 10, 10, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(14px);
}

.news-featured-content {
    padding: clamp(1.5rem, 4vw, 3rem);
}

.news-featured-content .section-tag {
    margin-bottom: 1rem;
}

.news-featured-content h2 {
    margin-bottom: 1rem;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
}

.news-featured-content p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
}

.news-featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.4rem 0;
}

.news-featured-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.82rem;
}

.news-recent-panel {
    padding: 1rem;
}

.news-recent-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    color: #ffffff;
    font-weight: 800;
}

.news-recent-header a {
    color: #8beeff;
    font-size: 0.78rem;
    text-decoration: none;
}

.news-recent-item {
    display: grid;
    gap: 0.45rem;
    padding: 0.9rem;
    border-radius: 16px;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.045);
}

.news-recent-item + .news-recent-item {
    margin-top: 0.7rem;
}

.news-recent-item:hover {
    border-color: rgba(0, 212, 255, 0.28);
    background: rgba(0, 212, 255, 0.08);
}

.news-recent-date {
    color: #8beeff;
    font-size: 0.76rem;
    font-weight: 700;
}

.news-recent-item strong {
    font-size: 0.9rem;
    line-height: 1.25;
}

.news-controls {
    padding: 2rem 0;
}

.news-controls-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    border-radius: 26px;
}

.news-category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.news-category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.58rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.82rem;
    font-weight: 700;
}

.news-category-chip small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    border-radius: 999px;
    background: rgba(0, 212, 255, 0.16);
    color: #8beeff;
    font-size: 0.7rem;
}

.news-search {
    max-width: none;
}

.news-search,
.news-filter-select,
.news-view-toggle {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.11);
}

.news-filter-select {
    color: #ffffff;
    color-scheme: dark;
}

.news-filter-select option {
    background: #0f172a;
    color: #ffffff;
}

.news-filters {
    justify-content: space-between;
}

.news-filter-select {
    min-width: 180px;
}

.news-articles {
    padding-top: 4rem;
}

.news-articles-header {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.news-articles-title {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    font-family: 'Space Grotesk', sans-serif;
}

.news-articles-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.news-article-card {
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.032));
}

.news-article-image {
    height: 180px;
}

.news-article-content {
    padding: 1.1rem;
}

.news-article-title {
    font-size: 1.08rem;
}

.news-article-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.news-article-meta > div:last-child {
    margin-left: 0;
}

.newsletter-content {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
    align-items: center;
    gap: 1.5rem;
}

.newsletter-form .form-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
}

.newsletter-form .btn {
    width: auto;
}

@media (max-width: 980px) {
    .news-featured-container,
    .news-featured-card,
    .newsletter-content {
        grid-template-columns: 1fr;
    }

    .news-featured-media img {
        min-height: 300px;
    }

    .news-articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .news-header {
        padding: 7rem 0 3rem;
    }

    .news-header-container .news-page-title,
    .news-header-container .news-page-subtitle {
        text-align: left;
    }

    .news-header-top {
        align-items: flex-start;
    }

    .news-header-meta {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .news-featured {
        padding: 2rem 0;
    }

    .news-featured-container {
        width: min(100% - 1rem, 680px);
    }

    .news-featured-content {
        padding: 1.25rem;
    }

    .news-featured-content h2 {
        font-size: 1.8rem;
    }

    .news-featured-media img {
        min-height: 220px;
    }

    .news-recent-panel {
        display: none;
    }

    .news-controls-container,
    .news-articles-container {
        width: min(100% - 1rem, 680px);
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .news-category-chips {
        flex-wrap: nowrap;
        overflow: hidden;
    }

    .news-category-chip {
        flex: 0 0 auto;
        font-size: 0.76rem;
    }

    .news-filters {
        display: grid;
        grid-template-columns: 1fr;
    }

    .news-filter-select,
    .news-view-toggle {
        width: 100%;
    }

    .news-view-toggle {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .news-articles-grid {
        grid-template-columns: 1fr;
    }

    .news-article-image {
        height: 190px;
    }

    .newsletter-form .form-group {
        grid-template-columns: 1fr;
    }

    .newsletter-form .btn {
        width: 100%;
    }
}
