/* === CONTAINER === */
.py-6 {
    max-width: 70%;
    margin-right: auto;
    margin-left: auto;
}

/* === PRESS CARD === */
.press-card {
    background: rgb(255, 253, 253);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
    overflow: hidden;
    min-height: 200px; /* Предотвращает CLS */
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
    animation-delay: calc(var(--animation-order, 1) * 0.1s);
}

.press-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.08);
}

.press-card-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.press-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.press-card:hover .press-card-image {
    transform: scale(1.03);
}

.press-card-image-placeholder {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
}

.press-card-image-placeholder svg {
    opacity: 0.6;
}

.press-card-body {
    padding: 1rem !important;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.press-card-category {
    display: inline-block;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.699); /* тёмно-серый с прозрачностью */
    color: lemonchiffon;
    font-size: 0.85rem;
    font-weight: 500;
    
    margin-bottom: 1rem;
    border-radius: 50px; /* скруглённые углы, как pill */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.press-card-title {
    text-align: center;
    color: #1a3a5e;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.press-card-date {
    display: flex;
    margin-right: auto;
    margin-left: auto;
    margin-bottom: 0.2rem !important;
    font-size: 0.8rem;
    font-weight: 500;
    color: #172204 !important;
}


/* === EMPTY STATE === */
.empty-state {
    padding: 2.5rem 1rem;
    text-align: center;
    color: #888;
}

.empty-state svg {
    margin-bottom: 0.75rem;
    opacity: 0.4;
    font-size: 2rem;
}

.empty-state h4 {
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 1.2rem;
}

#load-more-btn {
    display: block;
    margin: 2.5rem auto 1.5rem;
    padding: 0.6rem 0.6rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    background: linear-gradient(150deg, #565c50 0%, #3f8803 100%);
    border: none;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(37, 117, 252, 0.3);
    transition: all 0.1s ease;
    cursor: pointer;
    min-width: 50px;
}

#load-more-btn:hover {
    background: linear-gradient(135deg, #3f8803 0%,  #565c50 100%);
    box-shadow: 0 6px 20px rgba(37, 117, 252, 0.45);
    transform: translateY(-1px);
}

#load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 10px rgba(37, 117, 252, 0.2);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Задержки анимации для каждой карточки */
.press-card:nth-child(1) { --animation-order: 1; }
.press-card:nth-child(2) { --animation-order: 2; }
.press-card:nth-child(3) { --animation-order: 3; }
.press-card:nth-child(4) { --animation-order: 4; }
.press-card:nth-child(5) { --animation-order: 5; }
.press-card:nth-child(6) { --animation-order: 6; }
.press-card:nth-child(7) { --animation-order: 7; }
.press-card:nth-child(8) { --animation-order: 8; }
.press-card:nth-child(9) { --animation-order: 9; }

/* === RESPONSIVE: МОБИЛЬНЫЕ УСТРОЙСТВА === */
@media (max-width: 768px) {
    .py-6 {
    max-width: 100%;
    }
    .press-card-body {
        padding: 0.75rem;
    }
    .press-card-image-wrapper {
        height: 200px !important;
    }
    .press-card-category {
        font-size: 0.7rem;
        margin-bottom: 0.4rem;
    }
    .press-card-title {
        font-size: 1rem;
        -webkit-line-clamp: 2;
    }
    .press-card-date {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
    }
    .press-card-link {
        font-size: 0.85rem;
    }
    #load-more-btn {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .press-card-image-wrapper {
        height: 160px;
    }
    .press-card-body {
        padding: 0.6rem;
    }
    .press-card-title {
        font-size: 0.95rem;
        -webkit-line-clamp: 2;
    }
    .press-card-category {
        font-size: 0.65rem;
    }
    .press-card-date {
        font-size: 0.75rem;
    }
    .press-card-link {
        font-size: 0.8rem;
    }
}

/* === TYPOGRAPHY & UTILS === */
.max-width-700 {
    max-width: 700px;
}