/* News specific styles */
.news-section {
    padding: 60px 0;
}

/* News Page Header */
.news-page-header {
    background: linear-gradient(to right, rgba(15, 76, 129, 0.9), rgba(95, 75, 139, 0.8)), url('/static/images/news-header.jpg') center/cover;
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.news-page-header::after {
    content: "";
    position: absolute;
    bottom: -5vw;
    left: 0;
    width: 100%;
    height: 10vw;
    background-color: var(--light-bg);
    transform: rotate(-2deg);
}

.news-page-header-content {
    position: relative;
    z-index: 10;
}

/* News Card */
.news-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    background-color: white;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.news-card-img {
    height: 220px;
    overflow: hidden;
}

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

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

.news-card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card-date {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 10px;
    display: block;
}

.news-card-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.news-card-text {
    margin-bottom: 20px;
    color: #6c757d;
    flex-grow: 1;
}

.news-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-card-category {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    background-color: rgba(15, 76, 129, 0.1);
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.news-card-category:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Featured News Card */
.featured-news-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    position: relative;
    height: 400px;
}

.featured-news-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

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

.featured-news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
}

.featured-news-date {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 10px;
    display: block;
}

.featured-news-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.featured-news-text {
    opacity: 0.9;
    margin-bottom: 20px;
}

.featured-news-category {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    background-color: var(--primary-color);
    color: white;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.featured-news-category:hover {
    background-color: white;
    color: var(--primary-color);
}

/* News Article Detail */
.article-header {
    position: relative;
    margin-bottom: 30px;
}

.article-image {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 20px;
}

.article-image img {
    width: 100%;
    height: auto;
}

.article-category {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    background-color: rgba(15, 76, 129, 0.1);
    color: var(--accent-color);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.article-category:hover {
    background-color: var(--accent-color);
    color: white;
}

.article-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.article-author {
    display: flex;
    align-items: center;
    margin-right: 30px;
    margin-bottom: 10px;
}

.article-author-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}

.article-author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-author-name {
    font-weight: 600;
}

.article-date {
    color: #6c757d;
    margin-right: 30px;
    margin-bottom: 10px;
}

.article-views {
    color: #6c757d;
    margin-bottom: 10px;
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 40px;
}

.article-content p,
.article-content ul,
.article-content ol {
    margin-bottom: 20px;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 20px 0;
}

.article-content blockquote {
    padding: 20px;
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    margin: 20px 0;
    font-style: italic;
}

/* Article Tags */
.article-tags {
    margin-bottom: 30px;
}

.article-tag {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    background-color: #f8f9fa;
    color: #6c757d;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.article-tag:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Article Share */
.article-share {
    margin-bottom: 40px;
}

.share-title {
    font-weight: 700;
    margin-bottom: 15px;
    display: block;
}

.share-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f8f9fa;
    color: #6c757d;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.share-buttons a:hover {
    transform: translateY(-5px);
}

.share-buttons a.facebook:hover {
    background-color: #3b5998;
    color: white;
}

.share-buttons a.twitter:hover {
    background-color: #1da1f2;
    color: white;
}

.share-buttons a.linkedin:hover {
    background-color: #0077b5;
    color: white;
}

.share-buttons a.telegram:hover {
    background-color: #0088cc;
    color: white;
}

.share-buttons a.whatsapp:hover {
    background-color: #25d366;
    color: white;
}

/* Related Articles */
.related-articles {
    margin-bottom: 50px;
}

.related-article {
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
}

.related-article-img {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

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

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

.related-article-content {
    flex-grow: 1;
}

.related-article-date {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.related-article-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Comments Section */
.comments-section {
    margin-bottom: 50px;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.comments-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.comment {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
}

.comment:last-child {
    border-bottom: none;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.comment-author {
    font-weight: 700;
}

.comment-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.comment-content {
    margin-bottom: 15px;
    line-height: 1.6;
}

.comment-reply {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-reply:hover {
    color: var(--primary-color);
}

.comment-reply-form {
    margin-top: 20px;
    display: none;
}

.comment-reply-form.active {
    display: block;
}

/* Comment replies */
.comment-replies {
    margin-left: 50px;
    margin-top: 30px;
}

/* Comment Form */
.comment-form {
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 50px;
}

.comment-form-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

/* News Sidebar */
.news-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background-color: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.sidebar-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Categories Widget */
.sidebar-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-categories li {
    margin-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
}

.sidebar-categories li:last-child {
    border-bottom: none;
}

.sidebar-categories a {
    display: flex;
    justify-content: space-between;
    color: #333;
    transition: all 0.3s ease;
}

.sidebar-categories a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.category-count {
    background-color: #f0f0f0;
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

.sidebar-categories a:hover .category-count {
    background-color: var(--primary-color);
    color: white;
}

/* Popular Posts Widget */
.popular-post {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.popular-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.popular-post-img {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 15px;
    flex-shrink: 0;
}

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

.popular-post:hover .popular-post-img img {
    transform: scale(1.1);
}

.popular-post-content {
    flex-grow: 1;
}

.popular-post-date {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.popular-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Tags Widget */
.tags-widget {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    background-color: #f8f9fa;
    color: #6c757d;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: var(--accent-color);
    color: white;
}

/* Search Widget */
.search-form {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 15px 20px;
    padding-right: 50px;
    border: 1px solid #f0f0f0;
    border-radius: 30px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
    outline: none;
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    border: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background-color: var(--primary-color);
}

/* Pagination */
.news-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item {
    margin: 0 5px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.page-link:hover {
    background-color: var(--accent-color);
    color: white;
}

.page-item.active .page-link {
    background-color: var(--accent-color);
    color: white;
}

.page-item.disabled .page-link {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 50px 0;
}

.empty-state-icon {
    font-size: 4rem;
    color: #f0f0f0;
    margin-bottom: 20px;
}

.empty-state-text {
    font-size: 1.3rem;
    color: #6c757d;
    margin-bottom: 30px;
}

/* Media queries */
@media (max-width: 767px) {
    .article-title {
        font-size: 1.8rem;
    }
    
    .featured-news-card {
        height: 300px;
    }
    
    .featured-news-title {
        font-size: 1.3rem;
    }
    
    .featured-news-overlay {
        padding: 20px;
    }
    
    .news-card-img {
        height: 180px;
    }
    
    .comment-replies {
        margin-left: 20px;
    }
}