
.news-container {
    min-height: 100vh;
    max-width: 1440px;
    margin: 0 auto;
}

.news-page-title {
    margin-top: 24px;
    width: 100%;
    margin-bottom: 8px;
}

.news-sidebar .sidebar-ad {
    margin-top: -80px;
}

.main-news-area {
    max-width: 990px;
}

/* Featured News Section */
.featured-news {
    gap: 24px;
    max-width: 990px;
    margin-bottom: 32px;
    border-bottom: 1px solid #adb5bd;
    padding-bottom: 32px;
}

.left-column {
    gap: 20px;
    width: 306px;
    flex-shrink: 0;
}

.news-card {
    gap: 16px;
}

.image-container {
    width: 100%;
    height: 204px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.news-content h5 {
    margin-bottom: 8px;
}

.news-meta {
    margin-top: 16px;
    gap: 8px;
    font-size: 14px;
    color: var(--dark-gray);
}

.news-meta span:nth-child(odd) {
    color: #495057;
}

.comments-link {
    text-decoration: underline;
}

.featured-image {
    width: 100%;
    overflow: hidden;
    min-height: fit-content;
    max-width: 636px;
}

.featured-news .featured-image img {
    border-radius: 8px;
    width: 100%;
    min-height: 319px;
    object-fit: cover;
}

.photo-credit {
    font-size: 12px;
    color: #495057;
    margin-top: 4px;
}

.featured-title {
    margin-bottom: 8px;
}

.featured-description {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}

/* News Grid */
.news-grid {
    gap: 32px;
}

.news-row {
    gap: 24px;
}

.grid-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    max-width: 471px;
    align-self: stretch;
}

.card-image {
    min-height: 314px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 16px;
    gap: 8px;
    line-height: 150%;
}

.card-content p {
    font-size: 16px;
    color: #343a40;
    margin-bottom: 8px;
}

/* Pagination */
.pagination {
    margin-top: 64px;
    margin-bottom: 42px;
    gap: 0;
}

.pagination-btn {
    padding: 6px 12px;
    background-color: transparent;
    border: 1px solid var(--light-border);
    cursor: pointer;
    font-size: 18px;
    margin-left: -1px;
}

.pagination-btn:first-child {
    border-radius: 4px 0 0 4px;
}

.pagination-btn:last-child {
    border-radius: 0 4px 4px 0;
}

.pagination-btn.active {
    background-color: var(--text-color);
    color: var(--white);
    border-color: var(--text-color);
}

.pagination-btn:hover:not(.active) {
    background-color: var(--medium-gray);
}

.featured-title span {
    font-size: 20px;
}

/* Responsive Styles */
@media (max-width: 1200px) {

    .featured-news {
        display: flex;
        flex-direction: column-reverse;
    }

    .left-column {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr 1fr;
    }

    .news-card {
        flex-direction: row !important;
        width: 100%;
    }

    .image-container {
        max-width: 306px;
    }
}
@media (max-width: 1100px) {
    .news-row {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
@media (max-width: 768px) {
    .news-page-title {
        margin: 24px 0 8px 0;
    }
    .left-column {
        grid-template-columns: 1fr;
    }

    .pagination {
        flex-wrap: wrap;

    }

    .pagination-btn {
        margin-bottom: 5px;
    }
    
    .left-column .comments-link {
        display: none;
    }

    .left-column .comments-link.mobile {
        display: block;
        font-size: 14px;
    }
    .featured-news {
        margin-bottom: 24px;
        padding-bottom: 24px;
    }

    .news-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pagination {
        margin-top: 24px;
        margin-bottom: 24px;
    }

}

@media (max-width: 576px) {

    .image-container, .image-container img{
        width: 148px;
        height: 130px;
        flex-shrink: 0;
    }
    .top-section {
        flex-direction: column;
        padding: 10px;
    }

    .top-right {
        width: 100%;
        justify-content: space-between;
        margin-top: 10px;
    }

    .social-icons {
        margin-right: 0;
    }

    .search-language {
        flex-wrap: wrap;
    }

    .featured-image img {
        height: 200px;
    }

    .featured-title {
        font-size: 24px;
    }

    .card-image {
        min-height: 234px;
    }

    .grid-card {
        width: 100%;
    }

}
