/* Unified Latest Section */
.unified-latest-section {
    padding: 80px 0 100px;
    background: linear-gradient(90deg, #0B5546 0%, #0F9A7D 100%);
    /* Dark Green Gradient */
    overflow: hidden;
    position: relative;
    text-align: center;
}

.unified-latest-section .badge-latest {
    display: inline-block;
    padding: 5px 15px;
    background-color: #fff;
    /* White solid */
    color: #0B5546;
    /* Dark Green text */
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

.unified-latest-section .latest-heading {
    font-size: 53.1px;
    color: #fff;
    /* White */
    font-family: 'Rethink Sans', sans-serif;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 58px;
    letter-spacing: 0%;
}

.unified-latest-section .latest-subheading {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 15.6px;
    line-height: 26px;
    letter-spacing: 0%;
    color: rgba(255, 255, 255, 0.9);
    /* Off-white */
    max-width: 600px;
    margin: 0 auto 30px;
}

.unified-latest-section .latest-cta-wrapper {
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.unified-latest-section .btn-latest-white {
    display: inline-block;
    padding: 12px 30px;
    background-color: #fff;
    color: #0B5546;
    font-weight: 700;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid #fff;
}

.unified-latest-section .btn-latest-white:hover {
    background-color: transparent;
    color: #fff;
}

.unified-latest-section .btn-latest-outline {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #fff;
    /* White border */
    color: #fff;
    /* White text */
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s;
}

.unified-latest-section .btn-latest-outline:hover {
    background-color: #fff;
    color: #0B5546;
    /* Green text on hover */
}

/* Carousel Styles */
.latest-carousel-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.latest-row {
    display: flex;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.latest-track {
    display: flex;
    gap: 24px;
    width: max-content;
}

/* Removed duplicate rule */

/* Row 2 should scroll right to left, wait, user said: Top scroll left->right?
   Let's check prompt: "Top row scrolls left → right. Bottom row scrolls right → left"
*/
.latest-row-top .latest-track {
    animation: scroll-right 150s linear infinite;
    /* Correcting direction based on name */
}

.latest-row-bottom .latest-track {
    animation: scroll-left 800s linear infinite;
}

/* Animations */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Image Card Design */
.latest-card {
    width: auto;
    height: 200px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
    position: relative;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.latest-card img {
    width: auto;
    height: 100%;
    object-fit: cover;
    /* cover allows cropping if needed, but here we want shape */
    /* actually if we want variable shape based on image, we should probably not force cover if container is auto. 
       But let's stick to standard behavior: image sets width. */
    object-position: top center;
}

.latest-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card-img-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.latest-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Show top part of dashboards usually */
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0.8;
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.latest-card h3 {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.card-badge {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
}

.badge-new {
    background-color: #1CB592;
}

/* Teal */
.badge-updated {
    background-color: #3b82f6;
}

/* Blue */
.badge-beta {
    background-color: #f59e0b;
}

/* Orange/Amber */

/* Pause on Hover */
.latest-carousel-wrapper:hover .latest-track {
    animation-play-state: paused;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {

    /* Keep some mobile adjustments for spacing, but enable animation */
    .unified-latest-section {
        padding: 50px 0;
    }

    .unified-latest-section .latest-heading {
        font-size: 26px;
        padding: 0 15px;
    }

    .unified-latest-section .latest-subheading {
        padding: 0 15px;
    }

    .latest-carousel-wrapper {
        gap: 20px;
        /* Keep column layout */
        flex-direction: column;
    }

    /* Removed manual scroll and animation:none overrides to restore marquee */
}