﻿
.latest-articles {
    background-color: white;
    padding: 4rem 0 4.5rem;
}


.heading-flourish {
    flex: 1 1 120px;
    max-width: 160px;
    height: 10px;
    position: relative;
    border-top: 1px solid #c9a227;
    border-radius: 50%;
}

.heading-flourish-start {
    transform: scaleX(-1);
}

.heading-flourish::after {
    content: "";
    position: absolute;
    top: -4px;
    width: 8px;
    height: 8px;
    background: #c9a227;
    transform: rotate(45deg);
}

.heading-flourish-start::after {
    left: -4px;
}

.heading-flourish-end::after {
    right: -4px;
}

.empty-state {
    text-align: center;
    color: rgba(255,255,255,0.6);
}

.articles-carousel-wrap {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 3.5rem;
}

.articles-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 15px 3px 15px 10px;
}

    .articles-track::-webkit-scrollbar {
        display: none;
    }

.article-card {
    flex: 0 0 calc((100% - 3rem) / 3);
    scroll-snap-align: start;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    border: 1px solid rgba(0,0,0,0.5);
    box-shadow: 0 0 8px gray;
    transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}

    .article-card:hover {
        transform: translateY(-4px);
    }

.article-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
}

    .article-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.article-badge {
    position: absolute;
    bottom: -1.25rem;
    right: 0.75rem;
    background: #c9a227;
    color: #0d1b3a;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1.8rem;
    border-radius: 999px;
}

.article-card-body {
    padding: 1.1rem 1.25rem 1.4rem;
}

.article-title {
    color: #0d1b3a;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.85rem;
    margin: 0;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-summery {
    color: gray;
    font-size: 0.8rem;
    text-align: right;
    margin: 10px;
    line-height: 25px;
}

.carousel-arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid #c9a227;
    background: #0d1b3a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.25s ease-out;
    z-index: 2;
}

    .carousel-arrow svg {
        width: 20px;
        height: 20px;
    }

    .carousel-arrow:hover {
        background-color: #142352;
    }

.carousel-arrow-prev {
    right: 0;
}

.carousel-arrow-next {
    left: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.75rem;
}

    .carousel-dots .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255,255,255,0.35);
        border: none;
        cursor: pointer;
        transition: background-color 0.25s ease-out;
    }

        .carousel-dots .dot.active {
            background: #c9a227;
        }

.section-cta {
    text-align: center;
    margin-top: 2.75rem;
}

.btn-view-all {
    display: inline-block;
    background: #c9a227;
    color: #0d1b3a;
    font-weight: 700;
    padding: 0.85rem 2.5rem;
    border-radius: 999px;
    text-decoration: none;
    transition: filter 0.2s ease-out;
}

    .btn-view-all:hover {
        filter: brightness(1.08);
        color: #0d1b3a;
    }

@media (max-width: 991.98px) {
    .article-card {
        flex: 0 0 calc((100% - 1.5rem) / 2);
    }
}

@media (max-width: 575.98px) {
    .article-card {
        flex: 0 0 85%;
    }

    .articles-carousel-wrap {
        padding: 0 2.75rem;
    }
}
