.news-card-items .news-image {
    height: 100%;
    display: flex;
}

.news-card-items .news-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.news-section {
    background: url('../img/background/02.png') no-repeat center center;
    background-size: 36% auto;
}

/* Counter Section - Responsive Fix */
.counter-wrapper-3 {
    justify-content: center;
}

/* Large screens (lg) - 992px to 1199px */
@media (min-width: 992px) and (max-width: 1199px) {
    .counter-wrapper-3 {
        padding: 80px 50px;
        justify-content: center;
        flex-wrap: wrap;
        gap: 30px;
    }

    .counter-wrapper-3 .counter-items {
        padding: 0 30px;
        border-right: 1px dashed #A4ACB9;
        flex: 0 0 auto;
    }

    .counter-wrapper-3 .counter-items:nth-child(2) {
        border-right: 1px dashed #A4ACB9;
    }

    .counter-wrapper-3 .counter-items:nth-child(3) {
        border-right: none;
    }
}

/* Medium screens (md) - 768px to 991px */
@media (min-width: 768px) and (max-width: 991px) {
    .counter-wrapper-3 {
        padding: 60px 30px;
        justify-content: center;
        gap: 20px;
    }

    .counter-wrapper-3 .counter-items {
        padding: 0 20px;
        border-right: none;
        flex: 0 0 calc(50% - 20px);
        margin-bottom: 30px;
    }
}

/* Extra large screens (xl) - ensure centered */
@media (min-width: 1200px) and (max-width: 1399px) {
    .counter-wrapper-3 {
        justify-content: center;
        padding: 80px 100px;
    }

    .counter-wrapper-3 .counter-items {
        padding: 0 50px;
    }
}

/* XXL screens - ensure centered */
@media (min-width: 1400px) {
    .counter-wrapper-3 {
        justify-content: center;
    }
}

/* Small screens / Mobile - max 767px */
@media (max-width: 767px) {
    .counter-wrapper-3 {
        padding: 50px 20px;
        justify-content: center;
        flex-wrap: wrap;
        gap: 30px;
    }

    .counter-wrapper-3 .counter-items {
        padding: 0;
        border-right: none;
        flex: 0 0 100%;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .counter-wrapper-3 .counter-items:last-child {
        margin-bottom: 0;
    }

    .counter-wrapper-3 .counter-items .icon {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
    }

    .counter-wrapper-3 .counter-items .counter-content {
        margin-top: 30px;
        text-align: center;
        width: 100%;
    }
}

/* Extra small screens - max 575px */
@media (max-width: 575px) {
    .counter-wrapper-3 {
        padding: 40px 15px;
        gap: 25px;
    }

    .counter-wrapper-3 .counter-items {
        max-width: 100%;
        padding: 0 10px;
        margin-bottom: 25px;
    }

    .counter-wrapper-3 .counter-items:last-child {
        margin-bottom: 0;
    }

    .counter-wrapper-3 .counter-items .counter-content {
        margin-top: 25px;
    }

    .counter-wrapper-3 .counter-items .icon {
        width: 70px;
        height: 70px;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .counter-wrapper-3 .counter-items .icon img {
        width: 50px;
        height: 50px;
        object-fit: contain;
    }
}

.badge-category {
    position: absolute;
    border-top-left-radius: 0;
    border-top-right-radius: 1.3rem;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    overflow: visible;
    padding: 6px 15px;
}

.badge-category::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-top: 6px solid var(--bs-warning);
}

@media (max-width: 576px) {

    /* mobile size */
    .search-btn .text-label {
        display: none;
        /* sembunyikan tulisan */
    }

    .search-btn .search-icon {
        display: inline-block !important;
        /* tampilkan icon */
        font-size: 18px;
    }
}

