/* ========================================
   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; */
}

/*========================================
  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-card-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .cns-card {
        height: 450px;
    }

    .cns-tab-btn {
        padding: 15px 24px;
        font-size: 14px;
    }

    .cns-card-tag {
        font-size: 11px;
    }

    .cns-card-title {
        font-size: 22px;
    }

    .cns-card-description {
        font-size: 15px;
        line-height: 1.6;
    }

}

/*========================================
  SMALL MOBILE
========================================*/

@media (max-width:480px) {

    .cns-section {
        padding: 50px 0;
    }

    .cns-card {
        height: 400px;
    }

    .cns-card-body {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .cns-card-title {
        font-size: 20px;
    }

    .cns-card-description {
        font-size: 14px;
    }

}