/* AI Assistant Popup */
/*-------------------------------------------------*/
.popup__wrapper.popup__wrapper-custom {
    display: flex;
    bottom: 0;
    opacity: 1;
    z-index: 1000;
}

.popup__wrapper-custom .popup-container {
    display: flex;
    flex-direction: column;
    position: absolute;
    align-items: end;
    bottom: 15px;
    right: 0;
    gap: 15px;
}

.popup__wrapper-custom .assist-wrapper {
    display: flex;
    position: relative;
    right: 10px;
    align-items: end;
    pointer-events: all;
}

.popup__wrapper-custom .assist-wrapper .dialogue-wrapper {
    background-image: url("../../images/ai-assist/electronic-pattern.jpg");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.15);
    width: calc(100vw - 100px);
    max-width: 250px;
    position: relative;
    margin-right: 15px;
    padding: 10px;
    transition: width .3s ease-in-out;
}

.popup__wrapper-custom a.close-circle:link,
.popup__wrapper-custom a.close-circle:visited,
.popup__wrapper-custom a.close-circle:active {
    background-color: #FFF;
    border-radius: 20px;
    color: #AAA;
    display: flex;
    font-size: 28px;
    height: 24px;
    width: 24px;
    position: absolute;
    align-items: center;
    justify-content: center;
    top: -12px;
    right: -12px;
    z-index: 1;
    text-shadow: none;
    opacity: unset;
}

.popup__wrapper-custom a.close-circle:hover {
    color: #cfcfcf;
}

.popup__wrapper-custom .assist-wrapper p {
    color: #555;
    margin-top: 0;
    margin-bottom: 5px;
}

.popup__wrapper-custom .assist-wrapper .btn-wrapper {
    display: flex;
    width: 100%;
    justify-content: end;
}

.popup__wrapper-custom .assist-wrapper a.btn--try-assist,
.popup__wrapper-custom .assist-wrapper a.btn--try-assist:link,
.popup__wrapper-custom .assist-wrapper a.btn--try-assist:visited {
    background: linear-gradient(90deg, #5E90FB 0%, #B697FF 100%);
    border: 0;
    color: #FFF;
    outline: 0;
}

.popup__wrapper-custom .assist-wrapper a.btn--try-assist:hover {
    background: linear-gradient(90deg, #7fa6fb 0%, #cdb7ff 100%);
    color: #FFF;
}

.popup__wrapper-custom .assist-wrapper .assist-img img,
.popup__wrapper-custom .assist-wrapper .assist-avator img {
    display: block;
    width: 100%;
}

.popup__wrapper-custom .assist-wrapper .assist-img {
    display: none;
    width: 50px;
    cursor: pointer;
}

.popup__wrapper-custom .assist-wrapper .assist-avator {
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    width: 50px;
    position: relative;
    cursor: pointer;
}

.popup__wrapper-custom .avator-bg,
.popup__wrapper-custom .avator-bg-glow {
    border-radius: 50px;
    height: 50px;
    width: 50px;
    position: absolute;
    overflow: hidden;
    z-index: 0;
}

.popup__wrapper-custom .avator-bg-glow {
    filter: blur(2px);
}

.popup__wrapper-custom .avator-bg:before,
.popup__wrapper-custom .avator-bg-glow:before {
    content: '';
    z-index: -2;
    text-align: center;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    position: absolute;
    width: 99999px;
    height: 99999px;
    background-repeat: no-repeat;
    background-position: 0 0;
    background-image: conic-gradient(rgba(255, 255, 255, 0), #c8b0ff 15%, #986CFF, #3273FF 50%, #74a0ff 65%, rgba(255, 255, 255, 0) 75%);
    animation: avator-rotate 4s linear infinite;
}

.popup__wrapper-custom .avator-bg:after {
    content: '';
    position: absolute;
    z-index: -1;
    left: 4px;
    top: 4px;
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    background: #FFF;
    border-radius: 50px;
}

@keyframes avator-rotate {
    100% {
        transform: translate(-50%, -50%) rotate(1turn);
    }
}

.popup__wrapper-custom .assist-wrapper .assist-avator-body {
    background-color: #FFF;
    border-radius: 50px;
    display: flex;
    position: absolute;
    width: 46px;
    height: 46px;
    top: 2px;
    left: 2px;
    align-items: center;
    justify-content: center;
    z-index: 2;
}


/* Sticky Back to Top */
/*-------------------------------------------------*/
.popup__wrapper-custom .sticky-back-to-top:link,
.popup__wrapper-custom .sticky-back-to-top:visited {
    position: relative;
    bottom: unset;
}


/* Sheet - Article */
/*-------------------------------------------------*/
.popup__wrapper-custom .popup-info {
    background: linear-gradient(270deg, #79D3C3 0%, #41A0DD 100%);
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    display: none;
    position: relative;
    right: unset;
    bottom: unset;
}

.popup__wrapper-custom .popup-info .close {
    color: #FFF;
}

.popup__wrapper-custom .popup-info .article {
    margin-right: 24px;
    margin-bottom: 0;
}

.popup__wrapper-custom .popup-info .article .article__link--thumb {
    border-radius: 10px;
}

.popup__wrapper-custom .popup-info .article .article__overview {
    background-color: transparent;
    padding-left: 0;
    padding-right: 0;
}

.popup__wrapper-custom .popup-info .article .article__overview h4,
.popup__wrapper-custom .popup-info .article .article__overview:link h4 {
    color: #FFF;
}

.popup__wrapper-custom .popup-info .article .article__overview:hover h4 {
    color: rgba(255, 255, 255, .7);
}

.popup__wrapper-custom .popup-info .article a.btn--viewdetails,
.popup__wrapper-custom .popup-info .article a.btn--viewdetails:link,
.popup__wrapper-custom .popup-info .article a.btn--viewdetails:visited {
    background-color: #FFF;
    color: #1f81b9;
}

.popup__wrapper-custom .popup-info .article a.btn--viewdetails:hover {
    background-color: rgba(255, 255, 255, .8);
}

/* Sheet - Job */
/*-------------------------------------------------*/
.popup__wrapper-custom .popup-info .job {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: unset;
    padding: 0;
    margin-right: 24px;
    color: #FFF;
}

.popup__wrapper-custom .popup-info .job:hover {
    transform: unset;
}

.popup__wrapper-custom .popup-info .job .job__logo {
    background-color: #FFF;
    border-radius: 8px;
    display: flex;
    width: 105px;
    height: 42px;
}

.popup__wrapper-custom .popup-info .job .job__logo img {
    margin-bottom: 0;
}

.popup__wrapper-custom .popup-info .job .job__company {
    margin: 0;
    color: #FFF;
}

.popup__wrapper-custom .popup-info .job .job__title {
    margin: 0;
    color: #FFF;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.popup__wrapper-custom .popup-info .job:hover .job__title {
    opacity: 0.8;
}

.popup__wrapper-custom .popup-info .job .job__postdate {
    color: #FFF;
    opacity: 0.8;
}

.popup__wrapper-custom .popup-info .job .job-btn-wrapper {
    z-index: 3;
}


/* Sheet - Course */
/*-------------------------------------------------*/
.popup__wrapper-custom .popup-info .course-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 0;
    border-radius: unset;
    min-height: unset;
    height: unset;
    width: unset;
    margin-right: 24px;
    padding: 0;
    cursor: unset;
    transition: unset;
}

.popup__wrapper-custom .popup-info .course-card:hover {
    transform: none;
}

.popup__wrapper-custom .popup-info .course-card-thumb {
    display: block;
    position: relative;
    width: 100%;
    padding-top: 45%;
    overflow: hidden;
    border-radius: 6px;
}

.popup__wrapper-custom .popup-info .course-card-thumb .course-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    position: absolute;
    top: 0;
}

.popup__wrapper-custom .popup-info .course-partner {
    background-color: #FFF;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 110px;
    height: 48px;
}

.popup__wrapper-custom .popup-info .course-partner img {
    display: block;
    max-width: 104px;
    max-height: 42px;
    object-fit: contain;
}

.popup__wrapper-custom .popup-info .course-card a.comp-name,
.popup__wrapper-custom .popup-info .course-card a.comp-name:visited,
.popup__wrapper-custom .popup-info .course-card a.comp-name:active,
.popup__wrapper-custom .popup-info .course-card a.course-name,
.popup__wrapper-custom .popup-info .course-card a.course-name:visited,
.popup__wrapper-custom .popup-info .course-card a.course-name:active {
    color: #FFF;
    font-size: 14px;
}

.popup__wrapper-custom .popup-info .course-card a.comp-name:hover,
.popup__wrapper-custom .popup-info .course-card a.course-name:hover {
    color: rgba(255, 255, 255, .7);
}

.popup__wrapper-custom .popup-info .course-card .course-name {
    height: auto;
    max-height: 44px;
}

.popup__wrapper-custom .popup-info .course-card .course-desc {
    font-size: 14px;
    color: #FFF;
}

/* Picture in picture - Video */
/*-------------------------------------------------*/
.popup__wrapper-custom .popup-video {
    display: none;
    position: relative;
    width: 200px;
    right: 15px;
    margin-top: 10px;
}

.popup__wrapper-custom .popup-video.on {
    display: block;
}

.popup__wrapper-custom .popup-video-wrapper {
    box-shadow: 0 10px 10px 0 rgba(0, 0, 0, 0.2);
    width: 100%;
    pointer-events: all;
}

.popup__wrapper-custom .popup-video-wrapper .article {
    margin-bottom: 0;
}

.popup__wrapper-custom .popup-video-wrapper .article .article__title {
    height: 44px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.popup__wrapper-custom .ratio iframe {
    border: 0;
}

.popup__wrapper-custom .ratio {
    position: relative;
    width: 100%;
}

.popup__wrapper-custom .ratio::before {
    display: block;
    padding-top: 100%;
    content: "";
}

.popup__wrapper-custom .ratio>* {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.popup__wrapper-custom .ratio-16x9::before {
    padding-top: calc(9 / 16 * 100%);
}

.popup__wrapper-custom .ratio-9x16::before {
    padding-top: calc(16 / 9 * 100%);
}


/* Picture in picture - Shorts */
/*-------------------------------------------------*/
.popup__wrapper-custom .popup-video.popup-shorts {
    width: 140px;
}


@media (min-width: 768px) {
    .popup__wrapper-custom .popup-video.popup-shorts {
        width: 200px;
    }
}


@media (min-width: 992px) {
    /* AI Assistant Popup */
    .popup__wrapper-custom .assist-wrapper {
        position: unset;
    }

    .popup__wrapper-custom .assist-wrapper .assist-img {
        display: block;
    }

    .popup__wrapper-custom .assist-wrapper .assist-avator {
        display: none;
    }

    .popup__wrapper-custom .popup-video {
        width: 260px;
    }

    .popup__wrapper-custom .popup-info.on {
        display: flex;
    }
}