.news-overview {
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-overview .hero-slide {
    transition: opacity 1s ease, visibility 1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-overview .container {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    padding: 0 40px;
    max-width: 1300px;
    min-height: 450px;
}

.news-overview .section-header {
    min-height: 450px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.news-overview .section-header .heading {
    font-size: 52px;
    color: #fff;
    max-width: 600px;
    margin: 0 auto;
    margin-bottom: 40px;
}


.news-overview .section-header .sub-heading {
    font-size: 32px;
    color: #fff;
    margin-bottom: 2rem;
    text-decoration: none;
    max-width: 100%;
}

.news-overview .section-header .sub-heading::after {
    background: none;
}

@media(max-width: 560px) {
    .news-overview {
        min-height: 500px;
    }
}

@media(max-width: 460px) {
    .news-overview {
        min-height: 600px;
    }
}

@media(max-width: 420px) {
    .news-overview {
        min-height: 650px;
    }

    .news-overview .section-header .heading {
        font-size: 40px;
    }

    .news-overview .section-header .sub-heading {
        font-size: 30px;
    }
}

@media(max-width: 350px) {
    .news-overview {
        min-height: 750px;
    }
}

.news-section {
    position: relative;
    top: var(--relative-top);
    padding: 75px 0;
}

.news-section .container {
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.news-section .news-content {
    position: relative;
    z-index: 1;
}

.news-section .controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1rem;
}

.news-section .tab-navigation {
    display: flex;
    background: white;
    border-radius: 0.5rem;
    padding: 0.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.news-section .tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--primary-color-2);
    background: transparent;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #2c2c2c;
}

.news-section .tab-btn.active {
    background: var(--primary-color-2);
    color: white;
    box-shadow: 0 2px 4px var(--primary-color-2-hover);
}

.news-section .tab-btn:hover:not(.active) {
    color: var(--primary-color-2);
    background: #f3f4f6;
}

.news-section .tab-btn .icon {
    width: 1.25rem;
    height: 1.25rem;
}

.news-section .search-container {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.news-section .search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 1.25rem;
    color: #9ca3af;
}

.news-section .search-input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 1px solid #343536;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.news-section .search-input:focus {
    outline: none;
    border-color: var(--primary-color-2);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.news-section .results-count {
    margin-bottom: 1.5rem;
}

.news-section .results-count p {
    color: #2c2c2c;
    font-size: 0.875rem;
}

.news-section .content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;

    min-height: 600px;
    align-content: start;
}

.news-section .card {
    background: white;
    border: 1px solid var(--primary-color-2);
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 250px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-section .card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.news-section .card-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

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

.news-section .card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color-2);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.news-section .card-content {
    padding: 1.5rem;
}

.news-section .card-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.news-section .card-meta .icon {
    width: 1rem;
    height: 1rem;
}

.news-section .card-meta .separator {
    color: #d1d5db;
}

.news-section .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.news-section .card:hover .card-title {
    color: var(--primary-color-2);
}

.news-section .card-date {
    padding: 10px 0;
}

.news-section .card-description {
    color: #6b7280;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-section .card-action {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color-2);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.news-section .card-action:hover {
    color: var(--primary-color-2-hover);
}

.news-section .card-action .icon {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease;
}

.news-section .card:hover .card-action .icon {
    transform: translateX(0.25rem);
}

.news-section .no-results {
    text-align: center;
    padding: 3rem 0;
}

.news-section .no-results-icon {
    width: 4rem;
    height: 4rem;
    color: #d1d5db;
    margin: 0 auto 1rem;
}

.news-section .no-results h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.news-section .no-results p {
    color: #9ca3af;
    margin-bottom: 1rem;
}

.news-section .clear-search-btn {
    background: var(--primary-color-2);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.news-section .clear-search-btn:hover {
    background: var(--primary-color-2-hover);
}

@media (max-width: 768px) {

    .news-section .controls {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .news-section .tab-navigation {
        justify-content: center;
    }

    .news-section .search-container {
        max-width: none;
    }

    .news-section .content-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {

    .news-section .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .news-section .content-grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .news-section .card-content {
        padding: 1rem;
    }

}