/* News Page Specific Styles - Isolated from header */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.news-gallery {
    padding: 80px 0;
    background: #f8f9fa;
    min-height: 100vh;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
    background: none !important;
    padding: 40px 0 20px !important;
    color: inherit !important;
}

.page-header h1 {
    font-size: 42px;
    color: var(--primary) !important;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-header p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.section-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    gap: 20px;
}

.tab-btn {
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 15px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,102,51,0.3);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.news-card-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(45deg, #e3f2fd, #f3e5f5);
    position: relative;
    overflow: hidden;
}

.news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .news-card-image img {
    transform: scale(1.05);
}

.news-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    height: 80px;
    display: flex;
    align-items: end;
    padding: 20px;
}

.news-card-content {
    padding: 25px;
}

.news-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.read-more-btn {
    background: var(--primary);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: #004d26;
    transform: translateX(5px);
}

.news-type-icon {
    color: var(--primary);
    font-size: 18px;
}

.event-type-icon {
    color: var(--accent);
}

.no-items {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.no-items-icon {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

/* Article Detail Styles */
.article-detail {
    padding: 80px 0;
    background: #f8f9fa;
}

.breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.full-article {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.article-header {
    padding: 40px;
    border-bottom: 1px solid #eee;
}

.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.article-type {
    background: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.article-header h1 {
    font-size: 32px;
    color: var(--primary);
    line-height: 1.3;
    margin: 0;
}

.article-content {
    padding: 40px;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--primary);
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

.article-actions {
    padding: 40px;
    border-top: 1px solid #eee;
}

.back-btn {
    background: var(--primary);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .section-tabs {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .tab-btn {
        width: 200px;
        text-align: center;
    }

    .news-card-content {
        padding: 20px;
    }

    .article-header,
    .article-content,
    .article-actions {
        padding: 25px;
    }

    .article-header h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .news-gallery {
        padding: 40px 0;
    }

    .container {
        padding: 0 15px;
    }

    .news-card-image {
        height: 200px;
    }

    .page-header h1 {
        font-size: 28px;
    }
}