/* ============================================
   News Hero Section
   ============================================ */
.news-hero {
    position: relative;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.news-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 1, 0.5) 0%, rgba(12, 39, 101, 0.5) 100%);
    z-index: 1;
}

.news-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.news-hero-title {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
}

.news-hero-subtitle {
    font-size: clamp(12px, 2vw, 18px);
    font-weight: 300;
    letter-spacing: 2px;
}

/* ============================================
   News Section
   ============================================ */
.news-section {
    padding: 60px 0;
    background-color: #fff;
}

/* Category Filter */
.news-filter {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    width: 18%;
    padding: 10px 20px;
    border: 1px solid #001a4d;
    background-color: #fff;
    color: #001a4d;
    border-radius: 0;
    letter-spacing: 2px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
}

.filter-btn:hover {
    background-color: #001a4d;
    color: #fff;
}

.filter-btn.active {
    background-color: #001a4d;
    color: #fff;
}

/* News List */
.news-list {
    max-width: 100%;
    margin: 0 auto 60px;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-item.hidden {
    display: none;
}

.news-date {
    font-size: 12px;
    letter-spacing: 2px;
    color: #000;
    font-weight: 500;
    min-width: 90px;
    flex-shrink: 0;
}

.news-badge {
    display: inline-block;
    padding: 6px 20px;
    border-radius: 0;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    min-width: 100px;
    text-align: center;
    flex-shrink: 0;
}

.badge-product {
    /*background-color: #001a4d;*/
    background-color: #001a4d;
}

.badge-news {
    /*background-color: #0099ff;*/
    background-color: #2196F3;
}

.badge-event {
    background-color: #0667aa;
    /* background-color: #001a4d; */
}

.badge-business {
    /*background-color: #1a3a7d;*/
    background-color: #001a4d;
}

.news-title {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.news-title a {
    color: #333;
    transition: color 0.3s ease;
}

.news-title a:hover {
    color: #40419B;
}

.news-divider {
    display: none;
}

/* ============================================
   News Pagination
   ============================================ */

.news-pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.news-pagination ul.page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.news-pagination .page-numbers {
    display: flex; /* Changed from inline-flex to flex for centering */
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    /* border: 1px solid #ddd; */
    border-radius: 0;
    font-size: 14px; /* Slightly larger for readability */
    font-weight: 600; /* Bold text */
    color: #333;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    line-height: 1; /* Reset line-height */
}

.news-pagination li .page-numbers{
	border: 1px solid #ddd;
}


.news-pagination .page-numbers.current {
    background-color: #001a4d;
    color: #fff;
    border-color: #001a4d;
}

.news-pagination a.page-numbers:hover {
    border-color: #001a4d;
    color: #001a4d;
    opacity: 0.8; /* Slight hover effect */
}

/* Dots */
.news-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
    width: auto; /* Allow dots to take less space if needed, or stick to square */
    padding: 0 5px;
}

/* Next / Prev Buttons */
.news-pagination .next.page-numbers,
.news-pagination .prev.page-numbers {
    width: auto;
    padding: 0 20px;
    background-color: #0099ff; /* Light blue from design reference */
    color: #fff;
    border-color: #0099ff;
    border-radius: 0; /* Keep square edges */
}

.news-pagination .next.page-numbers:hover,
.news-pagination .prev.page-numbers:hover {
    background-color: #0088dd;
    border-color: #0088dd;
    color: #fff;
    opacity: 1;
}

/* ============================================
   Responsive Design (Tablet)
   ============================================ */
@media (max-width: 1024px) {
    .news-hero {
        height: 200px;
    }

    .news-item {
        gap: 15px;
        flex-wrap: wrap;
    }


}

/* ============================================
   Responsive Design (Smartphone)
   ============================================ */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .news-hero {
        height: 180px;
    }

    .news-hero-title {
        font-size: 28px;
    }

    .news-hero-subtitle {
        font-size: 12px;
    }

    .news-section {
        padding: 40px 0;
    }

    .news-filter {
        gap: 10px;
        margin-bottom: 30px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 12px;
    }

    .news-list {
        margin-bottom: 40px;
    }

    .news-item {
        flex-wrap: wrap;
        gap: 10px;
        padding: 15px 0;
        flex-direction: row;
    }

    .news-date {
        width: 100%;
        order: 1;
    }

    .news-badge {
        order: 2;
    }

    .news-title {
        width: calc(100% - 85px);
        order: 3;
        flex: none;
        margin-left: 0;
        overflow: hidden;
    }

    .page {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }

    .page-next {
        padding: 8px 15px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .news-hero {
        height: 150px;
    }

    .news-hero-title {
        font-size: 22px;
    }

    .news-filter {
        flex-direction: column;
        gap: 8px;
    }

    .filter-btn {
        width: 100%;
        padding: 10px 15px;
    }

    .news-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 0;
    }

    .news-date {
        font-size: 12px;
    }

    .news-badge {
        min-width: 60px;
    }

    .news-title {
        width: 100%;
        font-size: 13px;
    }

    .news-pagination {
        gap: 8px;
    }

    .page {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }
}

/* ============================================
   News Navigation
   ============================================ */
.news-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 60px;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.nav-prev,
.nav-next,
.nav-archive {
    width: 33%;
}

.nav-prev {
    text-align: left;
}

.nav-next {
    text-align: right;
}

.nav-archive {
    text-align: center;
}

.nav-archive .back-link {
    display: inline-block;
    padding: 10px 30px;
    border: 1px solid #333;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    background: #fff;
    font-size: 14px;
}

.nav-archive .back-link:hover {
    background: #333;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .news-navigation {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }

    .nav-prev,
    .nav-archive,
    .nav-next {
        width: 100%;
    }

    .nav-prev {
        order: 1;
        text-align: left;
    }

    .nav-archive {
        order: 2;
        text-align: center;
        margin: 10px 0;
    }

    .nav-next {
        order: 3;
        text-align: right;
    }
}

article.news{
    padding-left: 30px;
    padding-right: 30px;
}