/* News Content */
body.single-post {
    background: var(--global--color-white);
}

.single-news-wrapper .single-news-wrapper-details {
    position: relative;
}

.single-news-wrapper .single-news-wrapper-details:after {
    content: '';
    position: absolute;
    top: 39.8%;
    right: 0;
    width: 315px;
    height: 639px;
    background: url('../images/bgr-right-new-detail.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.single-news-wrapper .single-news-wrapper-details:before {
    content: '';
    position: absolute;
    top: 14.5%;
    left: 0;
    width: 313px;
    height: 640px;
    background: url('../images/bgr-left-new-detail.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.single-post .site-main article {
    max-width: 800px;
    width: 100%;
    padding-top: 80px;
    padding-bottom: 120px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.single-post .news-content {
    padding-top: 0;
}

.news-content .terms-name {
    margin-bottom: 20px;
}

.news-content .news-title {
    color: var(--global--color-cristal-blue);
    margin-bottom: 20px;
}

.news-content .wp-block-gallery {
    margin: 0 auto;
    --wp--style--unstable-gallery-gap: 30px;
}

.news-content .wp-block-gallery,
.news-content .wp-block-gallery.wp-block-gallery-1 {
    --wp--style--unstable-gallery-gap: var(--wp--style--gallery-gap-default, var(--gallery-block--gutter-size, var(--wp--style--block-gap, 30px)));
    gap: var(--wp--style--gallery-gap-default, var(--gallery-block--gutter-size, var(--wp--style--block-gap, 30px)));
}


.news-content p {
    line-height: 21px;
}

.news-content .wp-block-image {
    margin-top: 40px;
    margin-bottom: 60px;
    display: inline-block;
    vertical-align: top;
    width: 100%;
}

.news-content .wp-block-gallery {
    margin: 60px 0;
}

.news-content .wp-block-list {
    padding-left: 25px;
}

.single-post .wp-block-image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
}

/* Share Buttons */

.site .share-buttons .share-btn:focus {
    outline: none;
    outline-offset: 0;
}

.share-buttons {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 30px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: end;
    -ms-flex-pack: end;
    justify-content: flex-end;
    position: relative;
    padding-top: 40px;
}

.share-btn {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    text-decoration: none;
    border: none;
    cursor: pointer;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    position: relative;
    padding: 0;
}

.share-btn svg {
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.share-buttons .share-btn.share-copy {
    background: none;
}

/* Copy Notification Styles */
.copy-notification {
    position: absolute;
    top: calc(100% + 35px);
    left: 50%;
    border-radius: 8px;
    -webkit-transform: translate(-50%, -100%);
    -ms-transform: translate(-50%, -100%);
    transform: translate(-50%, -100%);
    background: var(--global--color-cristal-blue);
    color: var(--global--color-white);
    padding: 8px;
    z-index: 9999;
    font-size: 12px;
    -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    opacity: 0;
    -webkit-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
    transition: opacity 0.3s ease;
    display: none;
}

.copy-notification.show {
    opacity: 1;
}

/* Related News Section */
.related-news {
    overflow: hidden;
    background-color: var(--global--color-light-grey-bg);
    margin: 0 !important;
    padding-top: 120px;
    padding-bottom: 102px;
}

.related-news .related-news__title {
    text-align: center;
    margin-bottom: 60px;
    text-transform: capitalize;
}

.related-news .related-news__grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 25px 1fr 25px 1fr;
    grid-template-columns: repeat(3, 1fr);
    -ms-grid-rows: 1fr;
    grid-template-rows: 1fr;
    grid-column-gap: 25px;
    grid-row-gap: 25px;
}

.related-news .related-news__grid>*:nth-child(1) {
    -ms-grid-row: 1;
    -ms-grid-column: 1;
}

.related-news .related-news__grid>*:nth-child(2) {
    -ms-grid-row: 1;
    -ms-grid-column: 3;
}

.related-news .related-news__grid>*:nth-child(3) {
    -ms-grid-row: 1;
    -ms-grid-column: 5;
}

.related-news .swiper-slide {
    width: 475px;
    height: 288px;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.related-news__item .related-news__content {
    padding-top: 18px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 18px;
}

.related-news__item .related-news__view--more {
    position: absolute;
    right: 0;
    bottom: 0;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 10px;
    background: var(--global--color-light-grey-bg);
    padding: 20px 24px;
    color: var(--global--color-cristal-blue);
    text-decoration: none;
    font-size: 16px;
    line-height: 21px;
}

.related-news__item .related-news__image {
    position: relative;
    width: 100%;
    height: 334px;
    overflow: hidden;
}

.related-news__item .related-news__term-date-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 29px;
    color: var(--global--color-black);
}

.related-news .related-news__item .related-news__date {
    text-transform: uppercase;
}

.related-news__item .related-news__image .related-news__img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: center;
    object-position: center;
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
    -webkit-transition: -webkit-transform 0.5s ease;
    transition: -webkit-transform 0.5s ease;
    -o-transition: transform 0.5s ease;
    transition: transform 0.5s ease;
    transition: transform 0.5s ease, -webkit-transform 0.5s ease;
}

.related-news__item:hover .related-news__image .related-news__img {
    transform: scale(1.1);
}  

.related-news__item:hover .related-news__item-title {
    color: var(--global--color-cristal-blue);
}

.related-news__item:hover .related-news__view--more .dot:before {
    animation-name: rippleWith;
}

.related-news__item:hover .related-news__view--more .dot:after {
    animation-name: ripple;
}

body.single-post .site-footer {
    margin-top: 0;
}

.related-news__item .related-news__item-excerpt {
    display: none;
    color: var(--global--color-black);
}

@media (max-width: 991.98px) {
    .related-news .related-news__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-news {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .related-news .related-news__title {
        margin-bottom: 40px;
    }
}

@media (max-width: 767.98px) {
    .single-news-wrapper .single-news-wrapper-details:after,
    .single-news-wrapper .single-news-wrapper-details:before {
        display: none;
    }
    
    .related-news .related-news__grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .single-post .site-main article {
        padding-top: 40px;
        padding-bottom: 60px;
    }

    .news-content .wp-block-image {
        margin-top: 10px;
        margin-bottom: 30px;
    }

    .related-news__item .related-news__item-excerpt {
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        -o-text-overflow: ellipsis;
        text-overflow: ellipsis;
    }


    .cristal-custom-video-wrapper,
    .news-content .wp-block-gallery {
        margin: 30px 0;
    }

    .news-content .news-title {
        font-size: 25px;
        line-height: 32px;
    }

    .news-content .wp-block-gallery {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .news-content .wp-block-gallery.has-nested-images figure.wp-block-image {
        width: 100% !important;
    }

    .cristal-custom-video-wrapper,
    .cristal-video-poster {
        height: 397px;
    }

    .related-news__item .related-news__image {
        height: 369px;
    }

    .related-news .related-news__grid {
        grid-row-gap: 40px;
    }

    .related-news__item .related-news__view--more {
        padding: 10px 16px;
    }

    .news-content .wp-block-gallery,
    .news-content .wp-block-gallery.wp-block-gallery-1 {
        --wp--style--unstable-gallery-gap: var(--wp--style--gallery-gap-default, var(--gallery-block--gutter-size, var(--wp--style--block-gap, 20px)));
        gap: var(--wp--style--gallery-gap-default, var(--gallery-block--gutter-size, var(--wp--style--block-gap, 20px)));
    }
}

@media (max-width: 560.98px) {

    .cristal-custom-video-wrapper,
    .cristal-video-poster {
        height: 297px;
    }
}

@media (max-width: 475.98px) {

    .cristal-custom-video-wrapper,
    .cristal-video-poster {
        height: 197px;
    }

    .related-news__item .related-news__image {
        height: 269px;
    }
}