

/* Loader */
.news-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    padding: 60px 20px;
}

.news-loader p {
    margin-top: 24px;
    font-size: 16px;
    color: #6b7280;
    font-weight: 500;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #0066cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}




.life {
    width: 100%;
    padding: 40px 20px 70px;
    box-sizing: border-box;
}

.life .life-section {
    max-width: 1200px;
    margin: 0 auto 42px;
}

.life .life-section:last-child {
    margin-bottom: 0;
}

.life .life-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.life .life-section-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.life .life-carousel-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.life .life-carousel-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    background: #111;
    color: #fff;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.life .life-carousel-btn:hover {
    transform: scale(1.05);
}

.life .life-carousel-btn:disabled {
    opacity: 0.35;
    cursor: default;
    transform: none;
}

.life .life-carousel {
    position: relative;
    overflow: hidden;
}

.life .life-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding-bottom: 6px;
}

.life .life-track::-webkit-scrollbar {
    display: none;
}

.life .life-card {
    flex: 0 0 calc((100% - 60px) / 4);
    min-width: 0;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.life .life-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
}

.life .life-card-media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #efefef;
}

.life .life-card-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.life .life-card:hover .life-card-media img {
    transform: scale(1.04);
}

.life .life-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 18px 20px;
    flex: 1;
}

.life .life-card-meta {
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.7;
}

.life .life-card-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
}

.life .life-card-excerpt {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    opacity: 0.85;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.life .life-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,1));
}
.life .life-card-create .life-card-media-create {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f3f3;
}

.life .life-card-create .life-card-create-icon {
    font-size: 60px;
    line-height: 1;
    opacity: 0.35;
}

@media (max-width: 1200px) {
    .life .life-card {
        flex: 0 0 calc((100% - 40px) / 3);
    }
}

@media (max-width: 900px) {
    .life {
        padding: 32px 16px 50px;
    }

    .life .life-section-title {
        font-size: 19px;
    }

    .life .life-card {
        flex: 0 0 calc((100% - 20px) / 2);
    }
}

@media (max-width: 640px) {
    .life .life-section-head {
        align-items: flex-start;
    }

    .life .life-card {
        flex: 0 0 84%;
    }

    .life .life-carousel::after {
        width: 48px;
    }
}