/* NEWS & DETAIL PAGE CSS - SOFFALUX */
.soffalux-news-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 40px;
    letter-spacing: 0px;
    text-align: center;
    color: var(--soffalux-text-dark, #333333);
}

.soffalux-news-section-tag {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 28px;
    text-align: center;
    color: var(--soffalux-primary, #B40000);
    margin-bottom: 8px;
    display: block;
}

.soffalux-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.soffalux-news-card {
    width: 100%;
    max-width: 385px;
    height: 580px;
    border: 1px solid #EAECF0;
    padding: 20px;
    background: #fff;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    box-sizing: border-box;
}

.soffalux-news-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.soffalux-news-card-img {
    width: 100%;
    height: 230px;
    border-top: 1px solid #EAECF0;
    border-right: 1px solid #EAECF0;
    border-left: 1px solid #EAECF0;
    border-bottom: none;
    border-radius: 4px;
    object-fit: cover;
    margin-bottom: 10px;
}

.soffalux-news-card-date {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    color: #A4A4A4;
    margin-bottom: 8px;
}

.soffalux-news-card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    color: var(--soffalux-text-dark, #333333);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.soffalux-news-card-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    text-align: justify;
    color: #606060;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.soffalux-news-card-btn {
    width: 100%;
    height: 68px;
    padding: 20px 12px;
    border-top: 1px solid #EAECF0;
    border-bottom: none;
    border-left: none;
    border-right: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    transition: background-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
}

.soffalux-news-card-btn:hover {
    background-color: #f9f9f9;
}

.soffalux-news-card-btn-text {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 28px;
    color: var(--soffalux-primary, #B40000);
}

.soffalux-news-card-btn:hover .soffalux-news-card-btn-text,
.soffalux-news-card-btn:active .soffalux-news-card-btn-text,
.soffalux-news-card-btn:focus .soffalux-news-card-btn-text {
    color: var(--soffalux-primary, #B40000) !important;
}

.soffalux-news-card-btn img {
    width: 24px;
    height: 24px;
}

/* Pagination */
.soffalux-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
}

.soffalux-pagination-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--soffalux-primary, #B40000);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.soffalux-pagination-nav-btn:hover:not(.disabled) {
    background-color: var(--soffalux-primary, #B40000);
}

.soffalux-pagination-nav-btn:hover:not(.disabled) img {
    filter: brightness(0) invert(1);
}

.soffalux-pagination-nav-btn.disabled {
    border-color: #ccc;
    opacity: 0.5;
    cursor: not-allowed;
}

.soffalux-pagination-nav-btn img {
    width: 20px;
    height: 20px;
    transition: filter 0.3s ease;
}

.soffalux-pagination-nav-btn:first-child img {
    transform: rotate(180deg);
}

.soffalux-pagination-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: #f0f0f0;
    color: #666;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.soffalux-pagination-btn:hover {
    background-color: rgba(180, 0, 0, 0.1);
    color: var(--soffalux-primary, #B40000);
}

.soffalux-pagination-btn.active {
    background: var(--soffalux-primary, #B40000);
    color: #fff;
}

.soffalux-pagination-btn.disabled {
    color: #ccc;
    pointer-events: none;
    background: #f9f9f9;
}

/* Detail Page */
.soffalux-news-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--soffalux-text-dark, #333333);
    text-decoration: none;
    margin-bottom: 24px;
    transition: opacity 0.3s ease;
}

.soffalux-news-detail-back:hover {
    opacity: 0.7;
    color: var(--soffalux-text-dark, #333333) !important;
}

.soffalux-news-detail-back img {
    width: 24px;
    height: 24px;
    transform: rotate(180deg);
}

.soffalux-news-detail-date {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: #8E8E8E;
    margin-top: 16px;
    margin-bottom: 24px;
}

.soffalux-news-detail-img {
    width: 100%;
    height: 660px;
    object-fit: cover;
    margin-bottom: 40px;
}

.soffalux-news-detail-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: var(--soffalux-text-dark, #333333);
    text-align: justify;
}

.soffalux-btn-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 1px solid var(--soffalux-primary, #B40000);
    border-radius: 24px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--soffalux-primary, #B40000);
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 40px;
}

.soffalux-btn-view-all:hover {
    background: rgba(180, 0, 0, 0.05);
    color: var(--soffalux-primary, #B40000) !important;
}

/* RESPONSIVE */
@media (max-width: 991px) {
    .soffalux-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .soffalux-news-detail-img {
        height: 400px;
    }
}

@media (max-width: 767px) {
    .soffalux-news-grid {
        grid-template-columns: 1fr;
    }
    .soffalux-news-detail-img {
        height: 250px;
    }
    .soffalux-news-title {
        font-size: 24px;
        line-height: 32px;
    }
}
