﻿/* ===== NEWS PAGE STYLES ===== */

/* Page Header */
.news-header {
    padding: 150px 0 80px;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/images/news/news-header.jpg') center/cover;
    text-align: center;
    color: var(--text-light);
    position: relative;
}

.page-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    font-weight: 700;
    letter-spacing: 2px;
}

/* Category Filter */
.category-filter {
    padding: 2rem 0;
    background: var(--bg-light);
    border-bottom: 1px solid #e0e0e0;
}

.filter-wrapper {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-label {
    font-weight: 600;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.category-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.category-tab {
    padding: 0.5rem 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

    .category-tab:hover {
        background: rgba(197,165,114,0.1);
        border-color: var(--primary-color);
        color: var(--primary-color);
    }

    .category-tab.active {
        background: var(--primary-color);
        border-color: var(--primary-color);
        color: var(--secondary-color);
        font-weight: 600;
    }

/* Featured News */
.featured-news {
    padding: 3rem 0 0;
    background: var(--bg-light);
}

.featured-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.featured-main {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.featured-image {
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.featured-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-content {
    padding: 2rem;
}

    .featured-content h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

        .featured-content h2 a {
            color: var(--secondary-color);
            text-decoration: none;
            transition: var(--transition);
        }

            .featured-content h2 a:hover {
                color: var(--primary-color);
            }

.featured-side {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.featured-side-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    height: 195px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

    .featured-side-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(197,165,114,0.15);
    }

.featured-side-image {
    width: 120px;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.featured-side-content {
    flex: 1;
    padding: 1rem;
}

.featured-side-category {
    display: inline-block;
    background: rgba(197,165,114,0.1);
    color: var(--primary-color);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.featured-side-content h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

    .featured-side-content h3 a {
        color: var(--secondary-color);
        text-decoration: none;
        transition: var(--transition);
    }

        .featured-side-content h3 a:hover {
            color: var(--primary-color);
        }

.featured-side-date {
    font-size: 0.8rem;
    color: #888;
}

/* Latest News Grid */
.latest-news {
    padding: 4rem 0;
    background: var(--bg-light);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.news-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: var(--transition);
}

    .news-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 30px rgba(197,165,114,0.15);
    }

.news-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.3rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-card-content {
    padding: 1.5rem;
}

    .news-card-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
        line-height: 1.4;
    }

        .news-card-content h3 a {
            color: var(--secondary-color);
            text-decoration: none;
            transition: var(--transition);
        }

            .news-card-content h3 a:hover {
                color: var(--primary-color);
            }

.news-card-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1rem;
}

    .news-card-meta span {
        display: flex;
        align-items: center;
        gap: 0.3rem;
    }

.news-card-summary {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.news-card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

    .news-card-link:hover {
        gap: 0.8rem;
        color: var(--accent-color);
    }

/* No News */
.no-news {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 15px;
}

    .no-news i {
        font-size: 4rem;
        color: var(--primary-color);
        opacity: 0.3;
        margin-bottom: 1rem;
    }

    .no-news h3 {
        font-size: 1.5rem;
        color: var(--secondary-color);
        margin-bottom: 0.5rem;
    }

    .no-news p {
        color: #888;
    }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
    text-decoration: none;
    transition: var(--transition);
}

    .page-link:hover {
        background: rgba(197,165,114,0.1);
        border-color: var(--primary-color);
        color: var(--primary-color);
    }

    .page-link.active {
        background: var(--primary-color);
        border-color: var(--primary-color);
        color: var(--secondary-color);
        font-weight: 600;
    }

/* Newsletter CTA */
.news-cta {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    gap: 1rem;
}

.cta-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
}

    .cta-input:focus {
        box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
    }

/* Article Detail Page */
.article-header {
    padding: 120px 0 40px;
    background: var(--bg-light);
    text-align: center;
}

.article-category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 0.5rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.article-title {
    font-size: 3rem;
    color: var(--secondary-color);
    max-width: 900px;
    margin: 0 auto 1.5rem;
    line-height: 1.2;
}

.article-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: #888;
    font-size: 1rem;
}

    .article-meta span {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

.article-featured-image {
    background: var(--bg-light);
    padding-bottom: 2rem;
}

.featured-img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.image-caption {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-top: 1rem;
    font-style: italic;
}

.article-content {
    padding: 4rem 0;
    background: var(--bg-light);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.article-body {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

    .article-body p {
        font-size: 1.1rem;
        line-height: 1.8;
        color: #555;
        margin-bottom: 1.5rem;
    }

    .article-body h2 {
        font-size: 2rem;
        color: var(--secondary-color);
        margin: 2rem 0 1rem;
    }

    .article-body h3 {
        font-size: 1.5rem;
        color: var(--secondary-color);
        margin: 1.5rem 0 1rem;
    }

    .article-body blockquote {
        border-left: 4px solid var(--primary-color);
        padding: 1rem 2rem;
        margin: 2rem 0;
        background: #f9f9f9;
        font-style: italic;
        color: #666;
    }

    .article-body img {
        max-width: 100%;
        height: auto;
        border-radius: 10px;
        margin: 2rem 0;
    }

.share-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

    .share-section h4 {
        font-size: 1.1rem;
        color: var(--secondary-color);
        margin-bottom: 1rem;
    }

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

    .share-btn.facebook {
        background: #3b5998;
    }

    .share-btn.twitter {
        background: #000000;
    }

    .share-btn.linkedin {
        background: #0077b5;
    }

    .share-btn.email {
        background: #666;
    }

    .share-btn:hover {
        transform: translateY(-3px);
        filter: brightness(1.1);
    }

/* Sidebar */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

    .sidebar-widget h3 {
        font-size: 1.3rem;
        color: var(--secondary-color);
        margin-bottom: 1.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid var(--primary-color);
    }

.related-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

    .related-item:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }

.related-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.related-content h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

    .related-content h4 a {
        color: var(--secondary-color);
        text-decoration: none;
        transition: var(--transition);
    }

        .related-content h4 a:hover {
            color: var(--primary-color);
        }

.related-date {
    font-size: 0.8rem;
    color: #888;
}

.categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.categories li {
    margin-bottom: 0.8rem;
}

    .categories li a {
        color: #666;
        text-decoration: none;
        transition: var(--transition);
        display: block;
        padding: 0.3rem 0;
    }

        .categories li a:hover {
            color: var(--primary-color);
            transform: translateX(5px);
        }

/* Back to News */
.back-to-news {
    padding: 0 0 4rem;
    background: var(--bg-light);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 30px;
    border: 1px solid var(--primary-color);
}

    .btn-back:hover {
        background: var(--primary-color);
        color: var(--secondary-color);
        gap: 0.8rem;
    }

/* Responsive */
@media (max-width: 992px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }

    .filter-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .article-body {
        padding: 1.5rem;
    }

    .cta-form {
        flex-direction: column;
        padding: 0 1rem;
    }

    .featured-main .featured-image {
        height: 250px;
    }
}
