/* ========================================
   CONTENT NEWS SECTION
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.cns-section {
    width: 100%;
    padding: 120px ;
    background: #ffffff;
}

.cns-wrapper {
    width: min(1320px, 92%);
    /* margin: 0 auto; */
}
.cns-pagination {
    display: none;
}

/*========================================
  TAB HEADER
========================================*/

.cns-tab-header {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #E6E6E6;
    margin-bottom: 50px;
}

.cns-tab-btn {
    border: none;
    outline: none;
    background: transparent;
    color: #F28C28;
    font-size: 16px;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    padding: 18px 34px;
    cursor: pointer;
    transition: .35s ease;
    position: relative;
    white-space: nowrap;
}

.cns-tab-btn:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 25%;
    width: 1px;
    height: 50%;
    background: #E2E2E2;
}

.cns-tab-btn.active {
    background: #123C8C;
    color: #fff;
}

/*========================================
  TAB CONTENT
========================================*/

.cns-tab-content {
    display: none;
    animation: cnsFade .4s ease;
}

.cns-tab-content.active {
    display: block;
}

@keyframes cnsFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*========================================
  CARD GRID
========================================*/

.cns-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

/*========================================
  CARD
========================================*/

.cns-card {
    position: relative;
    overflow: hidden;
    width: 392px;
    height: 600px;
    background: #ddd;
    cursor: pointer;
}

.cns-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}

.cns-card:hover .cns-card-image {
    transform: scale(1.08);
}

/*========================================
  OVERLAY
========================================*/

.cns-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0) 5%,
        rgba(0,0,0,.15) 35%,
        rgba(12,34,84,.95) 100%
    );
}

/*========================================
  CONTENT
========================================*/

.cns-card-body {
    position: absolute;
    left: 32px;
    right: 32px;
    bottom: 32px;
    z-index: 2;
    color: #fff;
}

.cns-card-tag {
    display: inline-block;
    margin-bottom: 250px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    font-family: "Poppins", sans-serif;
}

.cns-card-title {
    font-size: 30px;
    line-height: 1.2;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    margin-bottom: 18px;
}

.cns-card-description {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255,255,255,.92);
    font-family: "DM Sans", sans-serif;
    margin-bottom: 28px;
}

.cns-card-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    transition: .3s;
}

.cns-card-link:hover {
    color: #F28C28;
}

.cns-card-link::after {
    content: "→";
    transition: .3s;
}

.cns-card-link:hover::after {
    transform: translateX(6px);
}

/*========================================
  LARGE DESKTOP
========================================*/

@media (max-width:1400px) {

    .cns-card {
        height: 540px;
    }

    .cns-card-title {
        font-size: 28px;
    }

}

/*========================================
  LAPTOP
========================================*/

@media (max-width:1200px) {

    .cns-card-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .cns-card {
        height: 520px;
    }

}

/*========================================
  TABLET
========================================*/

@media (max-width:991px) {

    .cns-section {
        padding: 60px 0;
    }

    .cns-tab-header {
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
    }

    .cns-tab-header::-webkit-scrollbar {
        display: none;
    }

    .cns-tab-btn {
        flex: 0 0 auto;
    }

    .cns-card {
        height: 500px;
    }

    .cns-card-body {
        left: 24px;
        right: 24px;
        bottom: 24px;
    }

    .cns-card-title {
        font-size: 24px;
    }

}

/*========================================
  MOBILE
========================================*/
@media (max-width: 767px) {

    .cns-section {
        padding: 40px 0 50px;
    }

    .cns-wrapper {
        width: 100%;
        padding: 0;
    }


    /* TABS */

    .cns-tab-header {
        display: flex;
        width: calc(100% - 40px);

        margin: 0 20px 26px;

        border: 1px solid #E6E6E6;

        overflow-x: auto;
        scrollbar-width: none;
    }

    .cns-tab-header::-webkit-scrollbar {
        display: none;
    }

    .cns-tab-btn {
        flex: 1 0 auto;

        padding: 14px 22px;
        font-size: 14px;
    }


    /* CAROUSEL */

    .cns-card-grid {
        display: flex;
        grid-template-columns: none;

        gap: 12px;
        padding: 0 20px;

        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .cns-card-grid::-webkit-scrollbar {
        display: none;
    }

    .cns-card {
        flex: 0 0 88%;

        width: auto;
        height: 420px;

        scroll-snap-align: start;
    }

    .cns-card-body {
        left: 22px;
        right: 22px;
        bottom: 24px;
    }

    .cns-card-tag {
        margin-bottom: 0;
        font-size: 11px;
        letter-spacing: 1.6px;
    }

    .cns-card-title {
        margin-bottom: 10px;
        font-size: 20px;
        line-height: 1.25;
    }

    .cns-card-description {
        margin-bottom: 0;
        font-size: 13px;
        line-height: 1.6;
    }

    .cns-card-link {
        display: none;
    }


    /* PROGRESS BARS */

    .cns-pagination {
        display: flex;
        justify-content: center;
        gap: 6px;

        margin-top: 20px;
    }

    .cns-page {
        width: 20px;
        height: 2px;

        background: #dddddd;
        cursor: pointer;
    }

    .cns-page.active {
        width: 28px;
        background: #F28C28;
    }

}


@media (max-width: 480px) {

    .cns-section {
        padding: 34px 0 40px;
    }

    .cns-tab-header {
        width: calc(100% - 36px);
        margin: 0 18px 22px;
    }

    .cns-tab-btn {
        padding: 13px 18px;
        font-size: 13px;
    }

    .cns-card-grid {
        padding: 0 18px;
    }

    .cns-card {
        flex: 0 0 86%;
        height: 390px;
    }

    .cns-card-title {
        font-size: 19px;
    }

    .cns-card-description {
        font-size: 16px;
    }

}