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

/* CSS Variables for consistency */
:root {
    --brand-blue: #1f3c88;
    --brand-black: #101820;
    --brand-yellow: #f2a104;
}

/* News Page Layout */
.news__main {
    background: linear-gradient(135deg, rgba(31, 60, 136, 0.1) 0%, rgba(242, 161, 4, 0.1) 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

.news__header {
    text-align: center;
    margin-bottom: 3rem;
}

.news__title {
    color: var(--brand-blue);
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.news__description {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* Featured Articles Section */
.news__featured {
    margin-bottom: 3rem;
}

.news__featured-title {
    color: var(--brand-blue);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 2rem;
    text-align: center;
}

.featured-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.featured-article {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(31, 60, 136, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
}

.featured-article:hover {
    border-color: var(--brand-blue);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(31, 60, 136, 0.2);
}

.featured-article__link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.featured-article__image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.featured-article__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.featured-article:hover .featured-article__image img {
    transform: scale(1.05);
}

.featured-article__content {
    padding: 2rem;
}

.featured-article__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.featured-article__category {
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.featured-article__date {
    color: #666;
    font-size: 0.875rem;
}

.featured-article__title {
    margin: 0 0 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--brand-blue);
    transition: color 0.3s ease;
}

.featured-article:hover .featured-article__title {
    color: var(--brand-yellow);
}

.featured-article__summary {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Category Filters */
.news__categories {
    margin-bottom: 3rem;
}

.news__categories-title {
    color: var(--brand-blue);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    text-align: center;
}

.category-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.category-filter {
    padding: 0.5rem 1rem;
    border: 2px solid var(--brand-blue);
    border-radius: 2rem;
    text-decoration: none;
    color: var(--brand-blue);
    font-weight: 600;
    transition: all 0.3s ease;
    background: white;
}

.category-filter--all {
    background: var(--brand-blue);
    color: white;
}

.category-filter:hover {
    background: var(--brand-yellow);
    border-color: var(--brand-yellow);
    color: var(--brand-black);
    transform: translateY(-2px);
}

/* Articles Grid */
.news__articles {
    margin-bottom: 3rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.article-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(31, 60, 136, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
}

.article-card:hover {
    border-color: var(--brand-blue);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(31, 60, 136, 0.15);
}

.article-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.article-card__image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.article-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-card__image img {
    transform: scale(1.05);
}

.article-card__content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-card__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.article-card__category {
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.article-card__date {
    color: #666;
    font-size: 0.875rem;
}

.article-card__title {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--brand-blue);
    transition: color 0.3s ease;
}

.article-card:hover .article-card__title {
    color: var(--brand-yellow);
}

.article-card__summary {
    color: #555;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
    flex: 1;
}

/* Pagination */
.news__pagination {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination__link {
    padding: 0.5rem 1rem;
    border: 2px solid var(--brand-blue);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--brand-blue);
    font-weight: 600;
    transition: all 0.3s ease;
    background: white;
}

.pagination__link:hover {
    background: var(--brand-blue);
    color: white;
}

.pagination__current {
    padding: 0.5rem 1rem;
    background: var(--brand-blue);
    color: white;
    border-radius: 0.5rem;
    font-weight: 600;
}

/* Empty State */
.news__empty {
    text-align: center;
    padding: 3rem 0;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 1rem;
    margin: 2rem auto;
    max-width: 600px;
}

.news__empty h2 {
    color: var(--brand-blue);
    margin: 0 0 1rem;
}

.news__empty p {
    margin: 0.5rem 0;
    color: #666;
}

/* Back Button */
.news__actions {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

/* Override secondary button style for better visibility */
.news__actions .btn--secondary {
    background: var(--brand-blue);
    color: white;
    border: 2px solid var(--brand-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .news__title {
        font-size: 2rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .featured-article__content,
    .article-card__content {
        padding: 1.25rem;
    }

    .category-filters {
        gap: 0.5rem;
    }

    .category-filter {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .news__main {
        padding: 1rem 0;
    }

    .news__title {
        font-size: 1.75rem;
    }

    .featured-article__content,
    .article-card__content {
        padding: 1rem;
    }

    .news__header {
        margin-bottom: 2rem;
    }

    .news__featured,
    .news__categories,
    .news__articles {
        margin-bottom: 2rem;
    }
}

/* ========================================
   News Detail Page Styles
   ======================================== */

/* News Detail Main Layout */
.news-detail__main {
    background: linear-gradient(135deg, rgba(31, 60, 136, 0.1) 0%, rgba(242, 161, 4, 0.1) 100%);
    min-height: 100vh;
    padding: 2rem 0;
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb__list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb__item {
    display: flex;
    align-items: center;
}

.breadcrumb__item:not(:last-child)::after {
    content: '>';
    margin-left: 0.5rem;
    color: #dadada;
}

.breadcrumb__link {
    color: #dadada;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.breadcrumb__link:hover {
    color: #c4c4c4;
}

.breadcrumb__item--current {
    color: #dadada;
    font-size: 0.9rem;
}

/* News Detail Article */
.news-detail {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Article Header */
.news-detail__header {
    margin-bottom: 2rem;
    text-align: center;
}

.news-detail__meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.news-detail__category {
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.news-detail__date {
    color: #666;
    font-size: 0.9rem;
}

.news-detail__featured {
    background: var(--brand-yellow);
    color: var(--brand-black);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
}

.news-detail__title {
    color: var(--brand-blue);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 1rem;
}

.news-detail__summary {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    max-width: 800px;
    margin: 0 auto;
}

/* Featured Image */
.news-detail__image {
    margin-bottom: 2rem;
    text-align: center;
}

.news-detail__img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Article Content */
.news-detail__content {
    color: #333;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.news-detail__content p {
    margin-bottom: 1.5rem;
}

.news-detail__content h2,
.news-detail__content h3,
.news-detail__content h4 {
    color: var(--brand-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.news-detail__content h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid var(--brand-blue);
    padding-bottom: 0.5rem;
}

.news-detail__content h3 {
    font-size: 1.3rem;
}

.news-detail__content h4 {
    font-size: 1.1rem;
}

/* Article Footer */
.news-detail__footer {
    border-top: 1px solid rgba(31, 60, 136, 0.2);
    padding-top: 2rem;
}

.news-detail__updated {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.news-detail__tags {
    text-align: center;
}

.news-detail__tags-title {
    color: var(--brand-blue);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

.tag-list {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tag-item {
    background: rgba(31, 60, 136, 0.1);
    color: var(--brand-blue);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Related Articles */
.related-articles {
    margin-bottom: 3rem;
}

.related-articles__title {
    color: var(--brand-blue);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 2rem;
    text-align: center;
}

.related-articles__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-article {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.related-article:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(31, 60, 136, 0.15);
}

.related-article__image {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.related-article__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-article:hover .related-article__image img {
    transform: scale(1.05);
}

.related-article__content {
    padding: 1.5rem;
}

.related-article__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.8rem;
}

.related-article__category {
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.related-article__date {
    color: #666;
}

.related-article__title {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
}

.related-article__title a {
    color: var(--brand-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-article__title a:hover {
    color: var(--brand-yellow);
}

.related-article__summary {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Action Buttons */
.news-detail__actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsive Design for Detail Page */
@media (max-width: 768px) {
    .news-detail {
        padding: 2rem 1.5rem;
    }

    .news-detail__title {
        font-size: 1.8rem;
    }

    .news-detail__meta {
        gap: 0.75rem;
    }

    .related-articles__grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .news-detail__actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .news-detail {
        padding: 1.5rem 1rem;
    }

    .news-detail__title {
        font-size: 1.5rem;
    }

    .news-detail__summary {
        font-size: 1rem;
    }

    .news-detail__content {
        font-size: 1rem;
    }
}