/* News Section Styles */

/* Date styling for news content */
#news .content .time {
    display: block;
    font-weight: 400;
    font-style: normal;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0%;
    color: #666666;
    position: absolute;
    bottom: 20px;
    left: 20px;
}

.news-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.news-card:hover {
    border-radius: 12px;
    box-shadow: 0 0 16px 0 rgba(0,0,0,0.15);
}

.card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.news-card .thumb {
    background: #ddd;
    aspect-ratio: 16/9;
    border-radius: var(--radius) var(--radius) 0 0;
    margin: 0;
    padding: 0;
}

.news-card h3 {
    padding: 1rem;
}

.news-card h3 {
    font-size: .9rem;
    margin: .5rem 0 .75rem;
    line-height: 1.3;
}

.news__carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .news__carousel .carousel__track {
        display: flex;
        overflow: hidden;
        scroll-behavior: smooth;
    }

    .news__carousel .news-card {
        flex: 0 0 260px;
        margin-right: 1rem;
    }

/* News Section (Swiper integration) */
.news {
    background: #F7F7F7;
    width: 100%;
    margin: 0;
    padding: 0;
    padding-top: 1px;
    padding-bottom: 1px;
    border-radius: 0;
}

    .news .section__head, .news__carousel, .news__footer {
        width: 1220px;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .news .section__head {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        margin-top: 80px;
        margin-bottom: 60px;
    }

    .news .view-all {
        border: 1px solid var(--clr-border);
        width: 154px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 0 12px;
        border-radius: 8px;
        font-weight: 500;
        font-size: 16px;
        line-height: 100%;
        color: #27201F;
        text-decoration: none;
        box-shadow: 0 4px 14px -6px rgba(0,0,0,.08);
    }

        .news .view-all .icon-arrow-right {
            width: 16px;
            height: 16px;
            display: block;
        }

.news__carousel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 24px;
    padding: 0 0 40px;
}

    .news__carousel .swiper-container {
        width: 100%;
    }

    .news__carousel .swiper-slide {
        width: 360px;
    }

    .news__carousel .news-card {
        width: 390px;
        height: 342px;
        background: #fff;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

        .news__carousel .news-card .thumb {
            height: 180px;
            margin: 0;
            padding: 0;
            aspect-ratio: unset;
            overflow: hidden;
            width: 100%;
        }

            .news__carousel .news-card .thumb img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                display: block;
            }

        .news__carousel .news-card .content {
            flex: 1;
            display: flex;
            flex-direction: column;
            padding: 20px 1.25rem;
        }

        .news__carousel .news-card .category {
            display: block;
            font-weight: 500;
            font-size: 14px;
            line-height: 22px;
            color: #DA291C;
            margin-bottom: 10px;
        }

        .news__carousel .news-card h3 {
            font-size: 1rem;
            font-weight: 700;
            margin: 0 0 .5rem;
            line-height: 1.25;
            padding: 8px 0 0 0;
        }

        .news__carousel .news-card time {
            font-size: .75rem;
            color: #666666;
        }

    .news__carousel .carousel__arrow {
        background: #f5f5f5;
        border: none;
        width: 48px;
        height: 48px;
        display: grid;
        place-items: center;
        border-radius: 50%;
        cursor: pointer;
        color: #333;
        transition: all .2s;
        position: absolute;
        top: 40%;
        transform: translateY(-50%);
    }

        .news__carousel .carousel__arrow.prev {
            left: -69px;
        }

        .news__carousel .carousel__arrow.next {
            right: -69px;
        }

        .news__carousel .carousel__arrow:hover {
            background: #e0e0e0;
        }

    .news__carousel .swiper-pagination {
        position: static;
        width: 100%;
        display: flex;
        justify-content: center;
        gap: 8px;
        padding: 0;
        margin-top: 38px;
        height: 15px;
    }

    .news__carousel .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        background: #d0d0d0;
        opacity: 1;
        border-radius: 50%;
        transition: background .25s, transform .25s;
    }

    .news__carousel .swiper-pagination-bullet-active {
        background: #000;
        transform: scale(1.25);
    }
/* Footer area for View All button */
.news__footer {
    display: flex;
    justify-content: center;
    margin-top: 32px;
    margin-bottom: 80px;
}

    .news__footer .view-all {
        border: 1px solid #000;
    }

@media (max-width:1896px) {
    .news__carousel {
        width: 1100px;
    }

        .news__carousel .news-card {
            width: 350px;
        }

        .news__carousel .swiper-slide {
            width: 350px;
        }
}

@media (max-width:1279px) {
    /* News adjustments */
    .news {
        width: 100%;
    }

        .news .section__head, .news__carousel, .news__footer {
            width: calc(100% - 2rem);
        }

            .news__carousel .swiper-slide, .news__carousel .news-card {
                width: 100%;
            }

            .news__carousel .carousel__arrow.prev {
                left: -15px;
            }

            .news__carousel .carousel__arrow.next {
                right: -15px;
            }
}

@media (max-width:960px) {
    .news__carousel .carousel__arrow.prev {
        left: 0;
    }

    .news__carousel .carousel__arrow.next {
        right: 0;
    }

    .news__carousel {
        padding: 0 20px 32px;
    }

    .news .section__head, .news__carousel, .news__footer {
        width: 100%;
    }
}

@media (max-width:767px) {
    .news__carousel .swiper-slide {
        width: 100% !important;
    }

    .news__carousel .news-card {
        width: 100% !important;
    }

    .news .section__head, .news__carousel, .news__footer {
        width: 100%;
    }

    .news .section__head {
        margin-top: 60px;
        margin-bottom: 24px;
    }
}

@media (min-width: 360px) and (max-width: 767px) {
    .news [role="heading"][aria-level="2"] {
        font-weight: 700;
        font-style: Bold;
        font-size: 28px;
        line-height: 100%;
        letter-spacing: 0%;
        text-align: center;
    }
}

@media (max-width:1023px) {
    .news__carousel .carousel__arrow {
        display: none;
    }
}
