﻿/* .swiper {
        width: 600px;
        height: 300px;
    } */

.res-top-swiper-container .swiper-wrapper .swiper-slide {
    background-color: var(--primary-temasek-orchid);
}

.res-top-swiper-container {
    display: flex;
    flex-direction: column;
}

@media(min-width:992px) {
    .res-top-swiper-container {
        flex-direction: row;
    }
}

.res-top-swiper-container .res-swiper-text {
    width: 100%;
    color: var(--primary-connection-white);
    position: relative;
    height: 312px;
    display: flex;
    flex-direction: column;
}

@media(min-width:576px) {
    .res-top-swiper-container .res-swiper-text {
        height: 430px;
    }
}

@media(min-width:992px) {
    .res-top-swiper-container .res-swiper-text {
        width: 50%;
        height: 648px;
        min-width: 50%;
        padding-top: 5rem;
        padding-bottom: 5rem;
        padding-left: 26px;
        padding-right: 26px;
    }
}

@media(min-width:1200px) {
    .res-top-swiper-container .res-swiper-text {
        /*width: 604px;*/
        /* height: 648px; */
        /*min-width: 604px;*/
        padding-top: 7rem;
        padding-bottom: 7rem;
        padding-left: 36px;
        padding-right: 36px;
    }
}

@media(min-width:1440px) {
    .res-top-swiper-container .res-swiper-text {
        padding-left: 80px;
    }
}

.res-top-swiper-container .res-swiper-text a {
    text-decoration: none;
    transition: 0.5s;
    opacity: 0;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.tags-scroll-container {
    /* overflow-x: scroll; */
    white-space: nowrap;
    overflow-x: hidden;
    display: flex;
    gap: 0.5rem;
    height: 48px;
    /* padding-top: 0.5rem;
            padding-bottom: 0.5rem; */
    padding: 0.5rem 2px;
    /* width: 300px */
}

    /* .tags-scroll-container::-webkit-scrollbar {
            height: 4px;
    
        } */

    .tags-scroll-container::-webkit-scrollbar-thumb {
        background: transparent;
    }

.res-swiper-text .tags-scroll-container .temasek-btn-xs {
    /* gap: 0.5rem;
            display: flex;
            flex-direction: row;
            padding: 3px;
            width: fit-content; */
    color: var(--primary-connection-white);
    outline: 1px solid var(--primary-connection-white);
    padding: 0.5rem 1rem;
    font-size: 0.75em;
}

.res-swiper-text .details .tags-scroll-container .icon {
    padding: 0.5rem;
    font-size: 1em;
}

.res-swiper-text .tags-scroll-container .temasek-btn-xs span,
.res-swiper-text .media span {
    color: var(--primary-connection-white);
}

.res-swiper-text .media .dot {
    background-color: var(--primary-connection-white);
}

.res-swiper-text .media img {
    filter: brightness(0) saturate(100%) invert(96%) sepia(18%) saturate(332%) hue-rotate(51deg) brightness(110%) contrast(101%);
}


/* .res-top-swiper-container .res-swiper-text .tags::-webkit-scrollbar-track {
            -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
        } */

/* .res-top-swiper-container .res-swiper-text .tags::-webkit-scrollbar-thumb {
            background-color: darkgrey;
            outline: 1px solid slategrey;
        } */

/* .fade-out {
            opacity: 0 !important;
        } */

.res-top-swiper-container .res-swiper-text p,
.res-top-swiper-container .res-swiper-text h5 {
    color: var(--primary-connection-white);
}

.res-top-swiper-container .res-swiper-text h5 {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media(min-width:992px) {
    .res-top-swiper-container .res-swiper-text h5 {
        -webkit-line-clamp: 4;
    }
}

.res-swiper-img {
    max-width: 100%;
    width: 100%;
    max-height: 252px;
    height: 252px;
}

@media(min-width:576px) {
    .res-swiper-img {
        max-height: 400px;
        height: 400px;
    }
}

@media(min-width:992px) {
    .res-swiper-img {
        max-height: 648px;
        height: 648px;
    }
}

.res-swiper-img img {
    max-height: 648px;
    object-fit: cover;
    width: 100%;
    min-height: 100%;
    /* min-height: -moz-available;
            min-height: -webkit-fill-available;
            min-height: fill-available; */
}

.res-swiper-img .swiper-pagination-bullet {
    background-color: transparent;
    border: 2px solid var(--primary-connection-white);
    width: 1rem;
    height: 1rem;
}

.res-swiper-img .swiper-pagination-bullet-active {
    background-color: var(--primary-connection-white);
    width: 1.2rem;
    height: 1.2rem;
}

.res-swiper-img .swiper-pagination-vertical.swiper-pagination-bullets,
.res-swiper-img > .swiper-pagination-bullets {
    left: 1rem;
}

/* .res-swiper-img .swiper-pagination {
            display: flex;
            flex-direction: column;
            align-items: center;
        } */
.res-swiper-text .swiper-button-next {
    right: initial;
    left: 60px;
}

.res-swiper-text .swiper-button-container {
    position: relative;
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.res-swiper-text .swiper-button-prev,
.res-swiper-text .swiper-button-next {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: 1px solid var(--primary-connection-white);
    border-radius: 50%;
    top: 80%;
    position: initial !important;
}

    .res-swiper-text .swiper-button-prev::after,
    .res-swiper-text .swiper-button-next::after {
        content: none;
    }

    .res-swiper-text .swiper-button-prev img {
        transform: rotate(-90deg);
    }

    .res-swiper-text .swiper-button-next img {
        transform: rotate(90deg);
    }

.resources .col-md-6 {
    height: 430px;
    margin-bottom: 1rem;
}

@media(min-width:440px) {
    .resources .col-md-6 {
        height: 520px;
    }
}

@media(min-width:576px) {
    .resources .col-md-6 {
        height: 430px;
    }
}

@media(min-width:992px) {
    .resources .col-md-6 {
        z-index: 3;
    }
}

@media(max-width:991px) {
    .resources .col-md-6 .snippet {
        display: none;
    }
}

.resources .col-md-6 .link {
    font-size: 0.8em;
}

.resources .col-md-6 .title {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-size: 1.4em;
    line-height: 1.2;
    font-family: var(--font-domaine-text-bold);
}

.resources .col-md-6 .link-no-deco {
    height: 100%;
    display: block;
    border: 1px solid var(--primary-temasek-orchid);
    border-top-left-radius: 40px;
}

@media(min-width:992px) {
    .resources .col-md-6 .link-no-deco {
        border-top-left-radius: 0;
    }
}

.resources .col-md-6 .link-no-deco .article-layout:hover span,
.resources .col-md-6 .link-no-deco .article-layout:hover p {
    color: var(--primary-trust-blue);
}

.resources .col-md-6 .link-no-deco .article-layout:hover .tag {
    outline: 1px solid var(--primary-temasek-orchid);
    color: var(--primary-temasek-orchid);
}

.resources .col-md-6 .link-no-deco .article-layout:hover .media span {
    color: var(--primary-temasek-orchid);
}


.resources .col-lg-8 .link-no-deco:hover,
.resources .col-lg-12 .link-no-deco:hover,
.resources .col-lg-8 .link-no-deco:hover .article-layout .img-container img,
.resources .col-lg-12 .link-no-deco:hover .article-layout .img-container img {
    border-top-left-radius: 40px;
}

@media(min-width:992px) {

    .resources .col-lg-8 .article-layout,
    .resources .col-lg-12 .article-layout {
        flex-direction: row;
        height: 100%;
        padding-top: 0;
    }
}

@media(min-width:992px) {
    .resources .col-md-6 .img-container {
        max-height: 240px;
    }
}

@media(min-width:992px) {
    .resources .col-md-6 .img-container img:hover {
        border-top-left-radius: 0px;
    }
}

@media(min-width:992px) {

    .resources .col-lg-8 .article-layout .img-container,
    .resources .col-lg-12 .article-layout .img-container {
        max-height: 100%;
        height: 100%;
    }
}

@media(min-width:992px) {
    .resources .col-lg-12 .article-layout .img-container {
        width: 60%;
    }
}

@media(min-width:992px) {
    .resources .col-lg-8 .article-layout .img-container {
        width: 55%;
    }
}

.resources .col-md-6 .article-layout .resources-text {
    padding: 1rem;
}

    .resources .col-md-6 .article-layout .resources-text .details .tags-scroll-container .temasek-btn-xs {
        padding: 0.5rem 1rem;
    }

    .resources .col-md-6 .article-layout .resources-text .details .tags-scroll-container span {
        color: var(--primary-temasek-orchid);
        font-size: 0.75em;
    }

    .resources .col-md-6 .article-layout .resources-text .details .tags-scroll-container .icon {
        padding: 0.5rem;
    }

@media(min-width:992px) {
    .resources .col-lg-12 .article-layout .col128container {
        width: 40%;
        /* padding: 1rem; */
        position: relative;
    }
}

@media(min-width:992px) {
    .resources .col-lg-8 .article-layout .col128container {
        width: 45%;
        /* padding: 1rem; */
        position: relative;
    }
}

@media(min-width:992px) {

    .resources .col-lg-12 .article-layout .col128container .resources-text,
    .resources .col-lg-8 .article-layout .col128container .resources-text {
        /* padding: 1rem; */
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: absolute;
        /* transform: translateY(-50%); */
        top: 20%;
        width: 100%;
        transition: top 0.3s ease;
    }
}

@media(min-width:992px) {

    .resources .col-lg-12 .link-no-deco .article-layout .col128container .resources-text .snippet,
    .resources .col-lg-8 .link-no-deco .article-layout .col128container .resources-text .snippet {
        opacity: 0;
        transition: opacity 0.1s ease;
    }
}

@media(min-width:992px) {

    .resources .col-lg-12 .link-no-deco:hover .article-layout .col128container .resources-text .snippet,
    .resources .col-lg-8 .link-no-deco:hover .article-layout .col128container .resources-text .snippet {
        opacity: 1;
        transition-duration: 1s;
        height: initial;
    }
}

@media(min-width:992px) {

    .resources .col-lg-12 .link-no-deco:hover .article-layout .col128container .resources-text,
    .resources .col-lg-8 .link-no-deco:hover .article-layout .col128container .resources-text {
        top: 0;
        /* transform: initial; */
    }
}

@media(min-width:992px) {
    .resources .col-lg-8 .article-layout .resources-text {
        width: 100%;
        /* padding: 1rem; */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* @media(min-width:992px) {
            .resources .col-md-6 .h7 {
    
            }
        } */

@media(min-width:992px) {
    .resources .col-lg-12 .article-layout .resources-text .h7 {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }
}

@media (min-width:992px) {
    .resources .col-md-6 .article-layout .resources-text .snippet {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 7;
        -webkit-box-orient: vertical;
        z-index: -1;
        position: relative;
        height: 0;
        font-size: 1em;
    }
}

@media (min-width:992px) {
    .resources .col-lg-12 .article-layout .resources-text .snippet {
        -webkit-line-clamp: 6;
    }
}

.details {
    display: flex;
    gap: 0.5rem;
}

.media {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding-left: 8px;
    padding-right: 8px;
}

    .media span {
        min-width: 27px;
        font-size: 0.75em;
        font-weight: 600;
        color: var(--primary-temasek-orchid);
        line-height: 0.8;
    }

.dot {
    width: 2px;
    height: 2px;
    background-color: var(--primary-temasek-orchid);
    border-radius: 50%;
}

@media (min-width: 992px) {
    .resetBtn {
        width: 40px;
        height: 40px;
        align-self: end;
    }
}

.topics {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

    .topics .temasek-btn-xs {
        padding: 0.75rem 2rem;
    }

@media(max-width: 992px) {
    .topics .temasek-btn-xs {
        padding: 0.5rem 1rem;
    }
}

.topics .temasek-btn-xs:hover {
    background-color: var(--primary-temasek-orchid);
    outline: 1px solid var(--primary-temasek-orchid);
}

    .topics .temasek-btn-xs:hover span {
        color: var(--primary-connection-white);
    }

.topics .temasek-btn-xs span {
    color: var(--primary-temasek-orchid);
    font-size: 0.75em;
}

@media(min-width:992px) {
    .topics .temasek-btn-xs span {
        font-size: 1em;
    }
}

.topics .all {
    background-color: transparent;
    border: none;
    color: var(--primary-trust-blue);
    font-weight: 600;
    font-size: 0.75em;
}

@media(min-width:992px) {
    .topics .all {
        font-size: 1em;
    }
}

.topics .all:hover {
    color: var(--primary-temasek-orchid);
}


@media(min-width:992px) {
    .col-lg-4 .article-layout {
        position: relative;
        padding-top: 77.66666%;
        height: 100%;
    }
}

@media(min-width:1200px) {
    .col-lg-4 .article-layout {
        position: relative;
        padding-top: 65.66666%;
    }
}

@media(min-width:1400px) {
    .col-lg-4 .article-layout {
        position: relative;
        padding-top: 55.66666%;
    }
}

@media(min-width:992px) {
    .col-lg-4 .article-layout .img-container {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transition: opacity .3s ease;
    }
}

@media(min-width:992px) {
    .col-lg-4 .article-layout:hover .img-container {
        opacity: 0;
    }
}

@media(min-width:992px) {
    .col-lg-4 .article-layout .resources-text {
        position: absolute;
        width: 100%;
        transition: top 0.3s ease;
        top: 55%;
    }
}

@media(min-width:992px) {
    .col-lg-4 .article-layout:hover .resources-text {
        top: 0;
        left: 0;
    }
}

@media(min-width:992px) {
    .col-lg-4 .article-layout .resources-text .snippet {
        opacity: 0;
        transition: opacity 0s ease;
    }
}

@media(min-width:992px) {
    .col-lg-4 .article-layout:hover .resources-text .snippet {
        opacity: 1;
        transition-duration: 1.5s;
        height: initial;
    }
}

.text-overlay-p img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

@media(min-width:576px) {
    .bg-img-one img {
        object-position: 50% 0%;
        max-height: 450px;
        width: 100%
    }
}

.tt-y-center {
    padding-bottom: 0 !important;
    height: initial !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    bottom: initial !important;
}

@media(min-width:992px) {
    .tt-y-lg-center {
        padding-bottom: 0 !important;
        height: initial !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        bottom: initial !important;
    }
}

.swiper-button-next:hover,
.swiper-button-prev:hover,
.vertical-fade-wrapper article .resources-text .button-container .prev:hover,
.vertical-fade-wrapper article .resources-text .button-container .next:hover {
    background-color: var(--primary-connection-white);
}

    .swiper-button-next:hover img,
    .swiper-button-prev:hover img {
        filter: brightness(0) saturate(100%) invert(53%) sepia(12%) saturate(3425%) hue-rotate(209deg) brightness(105%) contrast(94%);
    }

.vertical-fade-wrapper .bg_temasek_orchid .resources-text .button-container .prev:hover img,
.vertical-fade-wrapper .bg_temasek_orchid .resources-text .button-container .next:hover img {
    filter: brightness(0) saturate(100%) invert(53%) sepia(12%) saturate(3425%) hue-rotate(209deg) brightness(105%) contrast(94%);
}

.vertical-fade-wrapper .bg_trust_blue .resources-text .button-container .prev:hover img,
.vertical-fade-wrapper .bg_trust_blue .resources-text .button-container .next:hover img {
    filter: brightness(0) saturate(100%) invert(8%) sepia(97%) saturate(7317%) hue-rotate(251deg) brightness(46%) contrast(116%);
}

.dark-mode .resources .col-md-6 .link-no-deco .article-layout:hover span,
.dark-mode .resources .col-md-6 .link-no-deco .article-layout:hover p {
    color: var(--primary-connection-white);
}

.dark-mode .resources .col-md-6 .link-no-deco .article-layout:hover .tag {
    outline: 1px solid var(--primary-connection-white);
}

    .dark-mode .resources .col-md-6 .link-no-deco .article-layout:hover .tag i {
        color: var(--primary-connection-white);
    }

.dark-mode .resources .col-md-6 .link-no-deco .article-layout:hover .media img {
    filter: brightness(0) saturate(100%) invert(90%) sepia(10%) saturate(365%) hue-rotate(71deg) brightness(109%) contrast(113%);
}

.dark-mode .resources .col-md-6 .link-no-deco .article-layout:hover .dot {
    background-color: var(--primary-connection-white);
}

.dark-mode .topics .all {
    color: var(--primary-connection-white);
}


/* Insights start */

.insights-banner {
    height: 345px;
    width: 100%;
    position: relative;
}

    .insights-banner img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    .insights-banner .insights-banner--text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        flex-direction: column;
    }

        .insights-banner .insights-banner--text h2,
        .insights-banner .insights-banner--text span {
            color: var(--primary-connection-white);
        }

            .insights-banner .insights-banner--text span {
                font-size: 1.25em;
            }

            .insights .insights--article {
                margin-bottom: 1rem;
            }

    .insights .insights--article .link-no-deco {
        height: 100%;
        display: block;
        border: 1px solid var(--primary-temasek-orchid);
    }

    .insights .insights--article .link {
        font-size: 0.8em;
    }

    .insights .insights--article .title {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        font-size: 1.4em;
        line-height: 1.2;
        font-family: var(--font-domaine-text-bold);
    }

    .insights .insights--article .article-layout .resources-text .snippet {
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 7;
        -webkit-box-orient: vertical;
        font-size: 1em;
        margin-bottom: 0;
    }

@media(min-width:992px) {
    .insights .insights--article .article-layout .resources-text .snippet {
        opacity: 1;
    }
}

.insights .insights--article .link-no-deco .article-layout {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-top-left-radius: 0;
}

@media(min-width:992px) {
    .insights .insights--article .link-no-deco .article-layout {
        padding-top: 0;
    }
}

@media(min-width:1200px) {
    .insights .insights--article .link-no-deco .article-layout {
        padding-top: 0;
    }
}

@media(min-width:1400px) {
    .insights .insights--article .link-no-deco .article-layout {
        padding-top: 0;
    }
}

@media(min-width:992px) {
    .insights .insights--article .link-no-deco .article-layout .img-container {
        position: initial;
        height: 240px;
    }
}

@media(min-width:992px) {
    .insights .insights--article:hover .link-no-deco .article-layout .img-container {
        opacity: 1;
    }
}

.insights .insights--article:hover .link-no-deco,
.insights .insights--article:hover .link-no-deco .article-layout .img-container img {
    border-top-left-radius: 40px;
}

.insights .insights--article:hover .link-no-deco .article-layout .col128container .resources-text .title {
    color: var(--temasek_orchid);
}

.insights .insights--article .link-no-deco .article-layout .img-container img {
    width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    aspect-ratio: 1.5;
    border-top-left-radius: 0;
}

.insights .insights--article .link-no-deco .article-layout .resources-text {
    padding: 1rem;
}

@media(min-width:992px) {
    .insights .insights--article .link-no-deco .article-layout .resources-text {
        position: initial;
    }
}

.insights .insights--article .link-no-deco .article-layout:hover .tag {
    outline: 1px solid var(--primary-temasek-orchid);
    color: var(--primary-temasek-orchid);
}

.insights .insights--article .link-no-deco .article-layout .resources-text .details .tags-scroll-container .icon {
    padding: 0.5rem;
}

.insights .insights--article .link-no-deco .article-layout .resources-text .details .tags-scroll-container .temasek-btn-xs {
    padding: 0.5rem 1rem;
}

.insights .insights--article .link-no-deco .article-layout .resources-text .details .tags-scroll-container span {
    color: var(--primary-temasek-orchid);
    font-size: 0.75em;
}

.insights .insights--article .link-no-deco .article-layout:hover .media span {
    color: var(--primary-temasek-orchid);
}

.insights .insights--article .link-no-deco .article-layout:hover span,
.insights .insights--article .link-no-deco .article-layout:hover p {
    color: var(--primary-trust-blue);
}

@media(min-width:768px) {
    .insights .insights-main--article {
        height: 430px;
    }
}

@media(min-width:768px) {
    .insights .insights-main--article .link-no-deco .article-layout {
        flex-direction: row;
    }
}

@media(min-width:768px) {
    .insights .insights-main--article .link-no-deco .article-layout {
        flex-direction: row;
    }
}

@media(min-width:768px) {
    .insights .insights-main--article .link-no-deco .article-layout .img-container {
        width: 60%;
        min-width: 60%;
        max-width: 60%;
        height: 100%;
    }
}

@media(min-width:768px) {
    .insights .insights-main--article .link-no-deco .article-layout .col128container {
        width: 40%;
        min-width: 40%;
        max-width: 40%;
        height: 100%;
        display: flex;
        align-items: center;
    }
}

@media(min-width:768px) {
    .insights .insights-main--article .link-no-deco .article-layout .col128container .resources-text {
        width: 100%;
    }
}

.dark-mode .insights-banner .insights-banner--text h2,
.dark-mode .insights-banner .insights-banner--text span,
.dark-mode .insights-banner .insights-banner--text p {
    color: var(--primary-connection-white);
}

.dark-mode .insights .insights--article .link-no-deco .article-layout:hover span,
.dark-mode .insights .insights--article .link-no-deco .article-layout:hover p {
    color: var(--primary-connection-white) !important;
}

.dark-mode .insights .insights--article .link-no-deco .article-layout:hover .media img {
    filter: brightness(0) saturate(100%) invert(90%) sepia(10%) saturate(365%) hue-rotate(71deg) brightness(109%) contrast(113%);
}

.dark-mode .insights .insights--article .link-no-deco .article-layout:hover .tag {
    outline: 1px solid var(--primary-connection-white);
}

    .dark-mode .insights .insights--article .link-no-deco .article-layout:hover .tag i,
    .dark-mode .insights .insights--article .link-no-deco .article-layout:hover .tag em {
        color: var(--primary-connection-white);
    }

.dark-mode .insights .insights--article:hover .link-no-deco .article-layout .col128container .resources-text .title {
    color: var(--primary-connection-white);
}

.dark-mode .insights .insights--article:hover .link-no-deco {
    border: 1px solid var(--primary-connection-white);
}

/* Insights end */
