/* ===== News Tab Styles ===== */
.news-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: clamp(20px, 3vw, 40px);
    /* border-bottom: 2px solid #e5e5e5; */
}

.news-tab {
    padding: 10px 60px;
    font-size: clamp(14px, 1.2vw, 18px);
    font-weight: 500;
    color: #000;
    background: #EFEFEF;
    border: none;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    letter-spacing: 1px;
    margin-right: 1px;
}

.news-tab:last-child {
    margin-right: 0;
}

.news-tab:hover {
    color: var(--primary-red);
    background: #e8e8e8;
}

.news-tab.active {
    color: #fff;
    background: var(--primary-red);
    z-index: 1;
}

/* ===== Tab Content ===== */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===== News Card Grid Layout (PC: 2x2) ===== */
.news-carousel .row {
    display: flex;
    flex-wrap: wrap;
}


/* ===== News Card Base Styles ===== */
.news-card {
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    height: clamp(180px, 20vw, 260px);
    transition: all 0.3s;
    padding: 10px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.news-card .news-image {
    width: clamp(180px, 20vw, 260px);
    min-width: clamp(180px, 20vw, 260px);
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}

.news-card .news-body {
    padding: clamp(14px, 1.5vw, 24px);
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.news-card .news-body h4 {
    font-size: clamp(14px, 1.1vw, 18px);
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card .news-body p {
    font-size: clamp(12px, 0.85vw, 14px);
    color: var(--text-gray);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
}

.news-card .news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.news-card .news-date {
    font-size: clamp(12px, 0.9vw, 14px);
    color: #F59805;
    font-weight: 500;
}

.news-card .news-icon {
    width: clamp(30px, 2.5vw, 40px);
    height: clamp(30px, 2.5vw, 40px);
    background: var(--primary-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: clamp(12px, 1vw, 16px);
    transition: all 0.3s;
}

.news-icon img {
    width: clamp(14px, 1.2vw, 20px);
    height: clamp(14px, 1.2vw, 20px);
}

.news-card:hover .news-icon {
    transform: scale(1.1);
}

/* ===== News Arrow ===== */
.news-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: clamp(32px, 3vw, 48px);
    height: clamp(32px, 3vw, 48px);
    border: 2px solid #000;
    border-radius: 50%;
    color: #000;
    font-size: clamp(14px, 1.3vw, 20px);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    background: #fff;
}

.news-arrow:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: #fff;
}

.news-arrow.prev {
    left: clamp(-70px, -5vw, -25px);
}

.news-arrow.next {
    right: clamp(-70px, -5vw, -25px);
}

/* ===== News More ===== */
.news-more {
    text-align: center;
    margin-top: clamp(30px, 4vw, 50px);
}

.news-more a {
    display: inline-block;
    color: #000;
    text-decoration: none;
    transition: all 0.3s;
    padding: 10px 30px;
    border: 2px solid #000;
    border-radius: 30px;
    font-weight: 500;
}

.news-more a:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: #fff;
}

/* ===== News Pagination ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 8px;
    margin: clamp(30px, 4vw, 50px) 0 0;
    padding: 0;
}

.pagination ul.pagination {
    margin: 0;
    padding: 0;
}

.pagination li {
    list-style: none;
}

.pagination li a,
.pagination li span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: clamp(34px, 3vw, 44px);
    height: clamp(34px, 3vw, 44px);
    padding: 0 clamp(8px, 0.8vw, 12px);
    font-size: clamp(13px, 1vw, 16px);
    color: #000;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}

.pagination li a:hover {
    color: #fff;
    background: var(--primary-red);
    border-color: var(--primary-red);
}

.pagination li.active span {
    color: #fff;
    background: var(--primary-red);
    border-color: var(--primary-red);
    cursor: default;
}

.pagination li.disabled span {
    color: #ccc;
    background: #f5f5f5;
    border-color: #e5e5e5;
    cursor: not-allowed;
}

.pagination li:first-child a,
.pagination li:first-child span,
.pagination li:last-child a,
.pagination li:last-child span {
    min-width: clamp(34px, 3vw, 44px);
    width: clamp(34px, 3vw, 44px);
    height: clamp(34px, 3vw, 44px);
    padding: 0;
    border-radius: 50%;
}

/* ===== Responsive - Mobile (≤991.98px) ===== */
@media (max-width: 991.98px) {
    .news-tab {
        padding: 10px 24px;
        font-size: 15px;
    }

    /* Mobile: one card per row */
    .news-carousel .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .news-card {
        flex-direction: column;
        height: auto;
        margin-bottom: 12px;
    }

    .news-card .news-image {
        width: 100%;
        min-width: 100%;
        height: 200px;
    }

    .news-card .news-body {
        padding: 16px;
    }

    .news-card .news-body h4 {
        font-size: 16px;
    }

    .news-card .news-body p {
        font-size: 13px;
    }

    .news-arrow {
        display: none;
    }

    .news-more {
        margin-top: 30px;
    }

    .pagination {
        gap: 6px;
        margin-top: 30px;
    }

    .pagination li a,
    .pagination li span {
        min-width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .pagination li:first-child a,
    .pagination li:first-child span,
    .pagination li:last-child a,
    .pagination li:last-child span {
        min-width: 34px;
        width: 34px;
        height: 34px;
    }
}

/* ===== Responsive - Small Mobile (≤767.98px) ===== */
@media (max-width: 767.98px) {
    .news-section .container {
        padding-right: 12px !important;
        padding-left: 12px !important;
    }

    .news-tabs {
        gap: 0;
        margin-bottom: 25px;
    }

    .news-tab {
        padding: 12px 20px;
        font-size: 15px;
        flex: 1;
        text-align: center;
    }

    .news-carousel {
        margin: 0;
    }

    .news-carousel .row {
        --bs-gutter-y: 0;
    }

    .news-card {
        margin-bottom: 0;
    }
}
