/* ============================================
   Latest News Block
   ============================================ */
.acv-latest-news {
    padding: 80px 20px;
    background-color: #F1F2F2;
}

.acv-latest-news-container {
    max-width: 1600px;
    padding: 0px 20px;
    margin: 0 auto;
}

/* Header */
.acv-latest-news-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 80px;
    gap: 30px;
}

.acv-latest-news-header-left {
    flex: 1;
}

.acv-latest-news-header-right {
    margin-top: 25px;
}

.acv-latest-news-eyebrow {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--acvalve-primary-color, #3498db);
    text-transform: none;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.acv-latest-news-title {
    font-size: 2.25rem;
    font-weight: 400;
    color: #0f2b3b;
    margin: 0;
    line-height: 1.2;
}

/* Button styles moved to /css/buttons.css */
.acv-latest-news-btn {
    white-space: nowrap;
}

/* Carousel */
.acv-latest-news-carousel {
    overflow: hidden;
    margin-bottom: 30px;
}

.acv-latest-news-track {
    display: flex;
    gap: 24px;
    transition: transform 0.4s ease;
}

/* Cards */
.acv-latest-news-card {
    flex: 0 0 calc((100% - 48px) / 3);
    min-width: 0;
}

.acv-latest-news-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.acv-latest-news-card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    margin-bottom: 20px;
}

.acv-latest-news-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.acv-latest-news-card-link:hover .acv-latest-news-card-image img {
    transform: scale(1.05);
}

.acv-latest-news-card-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e5e7eb;
}

.acv-latest-news-card-content {
    padding: 0 5px;
}

.acv-latest-news-card-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #0d7a8a;
    margin: 0 0 12px;
    line-height: 1.3;
    transition: color 0.2s ease;
    padding-bottom: 20px;
    border-style: solid;
    border-color: #dedede;
    border-width: 1px;
    border-left: none;
    border-top: none;
    border-right: none;
}

.acv-latest-news-card-link:hover .acv-latest-news-card-title {
    color: #0d4f5c;
}

.acv-latest-news-card-excerpt {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #4b5563;
    margin: 0 0 16px;
}

.acv-latest-news-card-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 400;
    color: #ed8936;
    transition: gap 0.2s ease;
}

.acv-latest-news-card-link:hover .acv-latest-news-card-more {
    gap: 12px;
}

.acv-latest-news-card-more i {
    font-size: 0.75rem;
}

/* Controls */
.acv-latest-news-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.acv-latest-news-arrows {
    display: flex;
    gap: 10px;
}

.acv-latest-news-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #0d4f5c;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.acv-latest-news-arrow:hover {
    background-color: var(--acv-btn-primary-bg, #ee7f2d);
    transform: scale(1.05);
}

.acv-latest-news-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.acv-latest-news-arrow:disabled:hover {
    background: #0d4f5c;
    transform: none;
}

/* Dots - centered on the right side */
.acv-latest-news-dots {
    display: flex;
    gap: 10px;
    flex: 1;
    justify-content: center;
}

.acv-latest-news-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #c4c9cc;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.acv-latest-news-dot.is-active {
    background-color: #0d4f5c;
}

.acv-latest-news-dot:hover {
    background-color: #9ca3af;
    transform: scale(1.1);
}

.acv-latest-news-dot.is-active:hover {
    background-color: #0d4f5c;
    transform: scale(1.1);
}

/* Empty State */
.acv-latest-news-empty {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 40px;
}

/* Responsive - 2 visible */
@media (max-width: 1024px) {
    .acv-latest-news {
        padding: 60px 20px;
    }

    .acv-latest-news-card {
        flex: 0 0 calc((100% - 24px) / 2);
    }

    .acv-latest-news-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Responsive - 1 visible */
@media (max-width: 640px) {
    .acv-latest-news {
        padding: 50px 20px;
    }

    .acv-latest-news-container {
        max-width: 1600px;
        padding: 0px 0px;
        margin: 0 auto;
    }

    .acv-latest-news-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 30px;
        gap: 0px;
    }

    .acv-latest-news-title {
        font-size: 1.75rem;
    }

    .acv-latest-news-card {
        flex: 0 0 100%;
    }

    .acv-latest-news-card-title {
        font-size: 1.5rem;
    }
}