/* --- Base Block Styles --- */
.latest-articles {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
        padding-top: 150px;
    color: #ffffff;
    /* max-width контейнера задается глобально */
}

.latest-articles__header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
        margin-bottom: 40px;
}

.latest-articles__title-col {
    display: flex;
    align-items: center;
}

.latest-articles__title {
    font-size: 48px;
    line-height: 100%;
    font-weight: 500;
}



.latest-articles__link-text {
    font-size: 16px;
    font-weight: 500;
}

.latest-articles__link-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Grid / Slider Layout --- */
.latest-articles__slider {
    width: 100%;
    overflow: hidden; /* Важно для Embla */
        margin-bottom: 40px;
}
.latest-articles-readmore__container a.btn.btn--outline {
    gap: 6px;
}
/* Desktop Grid State (когда слайдер выключен) */
.latest-articles__container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
}

.latest-articles__slide {
    min-width: 0; /* Fix flex issue */
}

/* --- Article Card --- */
.article-card {
    display: flex;
    flex-direction: column;
    gap: 25px;
    text-decoration: none;
    color: #ffffff;
    height: 100%;
    transition: transform 0.3s;
}
.article-card:hover {
    transform: translateY(-5px);
}

.article-card__image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    height: 300px;
    width: 100%;
    background: #2d2d2d; /* Fallback color */
}

.article-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card__placeholder {
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.05);
}

/* Category Badge (Top Left) */
.article-card__category-obj {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
}

.article-card__category {
    background: #028dff; /* Default, overrides inline */
    border-radius: 100px;
    padding: 6px 10px;
    font-size: 12px;
    line-height: 130%;
    color: #ffffff;
    text-decoration: none;
    display: inline-block;
}

/* Content */
.article-card__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.article-card__meta {
    display: flex;
    flex-direction: row;
    gap: 16px; /* Space-between in mockup, but simple gap looks better here */
    justify-content: flex-start;
    align-items: center;
}

.article-card__date, 
.article-card__time {
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: center;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
}

.article-card__title {
    font-size: 24px;
    line-height: 120%;
    font-weight: 500;
    margin: 8px 0 0 0;
    color: #ffffff;
}

.article-card__excerpt {
    font-size: 16px;
    line-height: 130%;
    color: rgba(255, 255, 255, 0.7);
    display: none; /* В фигме сниппет не показан, но если нужно - раскомментировать */
}
.latest-articles-readmore__container {
    text-align: center;
   
}
a.article-card h3.article-card__title {
 transition: 0.5s ease;
    
}
a.article-card:hover h3.article-card__title {
    color: var(--lime);
    
}
/* --- Mobile Adaptation (Embla Active) --- */
@media (max-width: 1100px) {
    .latest-articles__slider {
        /* Slider active styles */
        cursor: grab;
    }

    .latest-articles__container {
        display: flex; 
        grid-template-columns: none;
        gap: 0; 
    }

    .latest-articles__slide {
        flex: 0 0 85%; 
        margin-right: 16px;
        min-width: 0;
    }
    
    .latest-articles__header {

        flex-direction: row;
        align-items: center;
        margin-bottom: 72px;
    }
}

@media (max-width: 980px) {
    .latest-articles__title {
        font-size: 32px;
    }
    
    .latest-articles__link-text {
        display: none; /* Скрываем текст "Читать все", оставляем иконку (по желанию, или уменьшаем) */
    }

    .latest-articles__link-text + .latest-articles__link-icon {
        /* Если текст скрыт, иконку центруем */
    }
    
    /* Карточка меньше */
    .article-card__image-wrapper {
       height: auto;
        aspect-ratio: 1 / 1;
    }
    .article-card__title {
        font-size: 20px;
    }
    
    /* Слайд на мобильном */
    .latest-articles__slide {
        flex: 0 0 85%; /* 85% ширины экрана */
    }
}
