/* Filter News Section */
.filter-news {
    padding: var(--section-padding);
}

.filter-news .nice-select {
    width: 300px;
    border: 1px solid var(--primary-color);
}

.filter-news .form-select {
    background-image: url("../Assets/Icons/CaretDownPrimary.png");
    background-size: 20px;
    color: #000;
}

/* Latest News Section */
.latest-news-section {
    padding: 2rem 0;
    background-color: #fff;
}

.news-cards-group-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 1199.98px) {
    .news-cards-group-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 767.98px) {
    .news-cards-group-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.latest-news-section-title h1 {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.news-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.news-card img {
    transition: transform 0.5s ease;
    aspect-ratio: var(--square-asepct-ratio);
    object-fit: cover !important;
}

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

.news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 85%;
    background-color: rgb(27 144 174 / 95%);
    padding: 2rem 1.5rem 1.5rem;
    color: white;
    height: 40%;
    z-index: 2;
    transition: height .8s ease;
    border-top-right-radius: 50px;
}

.arabic-version .news-overlay {
    border-top-right-radius: 0;
    border-top-left-radius: 50px;
    right: 0;
    left: unset;
}

.news-card:hover .news-overlay {
    height: 100%;
}

.news-date {
    margin-bottom: 0.8rem;
    position: relative;
    color: rgb(255 255 255 / 60%);
}

.news-title {
    margin-bottom: 0.8rem;
    position: relative;
    color: #fff;
}

.news-text {
    opacity: 0;
    transition: opacity .3s ease 0.3s;
    display: flex;
    flex-direction: column;
    bottom: 1rem;
    height: 70%;
    justify-content: space-between;
}
@media (max-width: 425.98px) {
    .news-text {
        height: 60%;
    }
}
.news-card:hover .news-text {
    opacity: 1;
}

.news-text h5 {
    color: #fff;
}
@media (max-width: 575.98px) {
    .news-text h5 {
        text-align: start;
    }
}
