﻿
.news-detail-page {
    background: #fff;
    padding: 152px 0 0;
}

/* Back link */
.news-back-link {
    text-decoration: none;
    color: #272e4e;
    font-weight: 700;
}

    .news-back-link:hover {
        text-decoration: underline;
    }

.banner-card-cat-slide.tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 0;
    border: 1px solid #272e4e;
    border-radius: 4px;
    text-decoration: none;
    color: #272e4e;
    background: #fff;
    width: 20%;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 40px
}
/* Main */
.news-detail-main {
    border-radius: 14px;
}

.news-badge {
    background: rgba(13,110,253,.12);
    color: #0d6efd;
    font-weight: 700;
    padding: 8px 10px;
    border-radius: 999px;
}

.news-detail-title {
    font-weight: 700;
    line-height: 1.5;
    margin: 40px 0 15px;
    color: #0c41be;
}

.news-detail-meta {
    color: rgba(255,255,255,.65);
    font-size: 14px;
    margin-bottom: 14px;
}

.news-meta-dot {
    opacity: .6;
}

.banner-card-date {
    margin-bottom: 25px;
}

.news-sapo {
    border-left: 4px solid;
    border-image: linear-gradient(180deg, #0c41be, #0c5eda, #02c2ff, #0ac3d1) 1;
    padding-left: 25px;
    margin: 15px 0;
}

blockquote {
    border-left: 4px solid;
    border-image: linear-gradient(180deg, #0c41be, #0c5eda, #02c2ff, #0ac3d1) 1;
    padding: 20px;
    margin: 15px 0;
    background: rgba(233, 233, 233, 1);
    border-radius: 8px
}

    blockquote p {
        margin: 0 !important;
    }

.news-detail-desc {
    margin: 15px 0;
}

.news-toc {
    background: rgba(233, 233, 233, 1);
    border-radius: 20px;
    padding: 28px 36px;
    margin: 24px 0 32px;
}

.news-toc-title {
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    color: #272e4e;
    margin-bottom: 14px;
}

    .news-toc-title.toc-closed {
        margin-bottom: 0;
    }

.news-toc-list {
    margin: 0;
    padding-left: 24px;
}

    .news-toc-list li {
        margin-bottom: 10px;
        color: #272e4e;
    }

        .news-toc-list li:last-child {
            margin-bottom: 0;
        }

    .news-toc-list a {
        color: #272e4e;
        font-size: 16px;
        line-height: 1.7;
    }

        .news-toc-list a:hover {
            opacity: 0.8;
            text-decoration: underline;
        }

    .news-toc-list .toc-h3 {
        margin-left: 16px;
        list-style-type: circle;
    }

    .news-toc-list .toc-h2 {
        padding-left: 0;
    }

    .news-toc-list .toc-h4 {
        padding-left: 32px;
        list-style: none;
    }

    .news-toc-list .toc-h5 {
        padding-left: 48px;
        list-style: none;
    }

    .news-toc-list .toc-h6 {
        padding-left: 64px;
        list-style: none;
    }
/* Hero */
.news-hero {
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.08);
    margin: 16px 0 22px;
}

    .news-hero img {
        width: 100%;
        height: auto;
        display: block;
    }

/* Content typography */
.news-detail-content {
    line-height: 2;
    font-size: 16px;
}

    .news-detail-content h1 {
        font-weight: 800;
        font-size: 36px;
        color: #0c41be;
    }

    .news-detail-content h2 {
        font-weight: 800;
        margin: 28px 0 10px;
        font-size: 30px;
        color: #0c41be;
    }

    .news-detail-content h3 {
        font-weight: 800;
        margin: 22px 0 8px;
        font-size: 24px;
        color: #0c41be;
    }

    .news-detail-content h4 {
        font-weight: 800;
        margin: 22px 0 8px;
        font-size: 20px;
        color: #272e4e;
    }

    .news-detail-content h5 {
        font-weight: 800;
        margin: 22px 0 8px;
        font-size: 18px;
        color: #272e4e;
    }

    .news-detail-content h6 {
        font-weight: 800;
        margin: 22px 0 8px;
        font-size: 16px;
        color: #272e4e;
    }

    .news-detail-content p {
        /*margin: 0 0 14px;*/
        margin-bottom: 25px;
    }

    .news-detail-content a {
        color: #0c41be;
    }

        .news-detail-content a:hover {
            text-decoration: underline;
        }

figcaption {
    text-align: center;
    line-height: 1;
    margin-top: 15px;
}

.news-detail-content ul,
.news-detail-content ol {
    padding-left: 1.3rem;
    margin-bottom: 25px;
}

.news-detail-content img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.08);
    /*margin-top: 40px;*/
}

/* Related */
.news-related-title {
    font-weight: 800;
    color: #0c41be;
    padding-bottom: 10px;
    border-bottom: 4px solid;
    margin-bottom: 80px;
}

.news-related-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease;
}

    .news-related-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(0,0,0,.20);
    }

.news-related-thumb {
    height: 120px;
    overflow: hidden;
}

    .news-related-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.news-related-body {
    padding: 12px 12px 14px;
}

.news-related-date {
    font-size: 12px;
    color: rgba(255,255,255,.65);
    margin-bottom: 6px;
}

.news-related-name {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Sidebar */
.news-sidebar {
    position: sticky;
    top: 120px;
}

.news-sidebar-sticky {
    position: sticky;
    top: 16px;
}

.news-sidebar .card {
    margin-top: 120px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.02);
}

.news-sidebar-block.card {
    margin-top: 40px;
}

.news-sidebar-title {
    font-weight: 800;
    letter-spacing: .04em;
    font-size: 28px;
    opacity: .9;
    line-height: 1;
    margin-bottom: 15px;
}

.news-sidebar-title1 {
    font-weight: 800;
    letter-spacing: .04em;
    font-size: 28px;
    opacity: .9;
    color: #0c41be;
    line-height: 1;
    margin-bottom: 15px;
}

.form-control.news-search-input {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 16px;
    background: #e9e9e9;
    padding: 0 20px;
    font-size: 16px;
    color: #24335d;
    outline: none;
    font-weight: 700;
    margin-top: 15px
}

.news-select-wrap {
    margin-top: 15px
}

.news-category-select {
    border-radius: 16px;
    background: #e9e9e9;
    font-weight: 700;
    height: 46px;
    border-color: none;
    color: #0c41be;
}

.news-detail-search-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.news-select-wrap {
    position: relative;
}

.news-category-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 44px;
}

.news-select-wrap .arrow-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: rotate(-45deg) translateY(-100%);
    font-size: 18px;
    line-height: 1;
    color: #2450d3;
    pointer-events: none;
    font-weight: 700;
}

.news-search-btn {
    width: 50%;
    height: 46px;
    border: none;
    border-radius: 16px;
    padding: 5px 0;
    background: linear-gradient(to right, #0c41be, #0ac3d1);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .news-search-btn img {
        margin-left: 10px;
        width: 36px;
        padding: 3px;
    }

    .news-search-btn:hover {
        filter: brightness(1.5);
    }

.clear-btn {
    background: #ffffff;
    color: #272e4e;
    font-weight: 700;
    display: block;
    width: 50%;
    padding: 6px 0;
    border-radius: 16px;
    text-align: center;
    justify-content: center;
    border: 4px solid #272e4e !important;
}

    .clear-btn:hover {
        color: #0c41be;
        text-decoration: none;
    }

.news-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news-item {
    /* border: 1px solid #e6ecf2; */
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background: #fff;
    position: relative;
    cursor: pointer;
    margin-bottom: 30px;
}

.news-thumb {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #eceff4;
}

    .news-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.news-meta {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding-top: 22px;
}

.news-meta {
    padding: 10px;
}

.news-sidebar .news-title {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
    color: #272e4e;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: auto;
}

.news-title:hover {
    color: #0c41be;
}

.news-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.banner-card-date {
    color: #272e4e;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.banner-card-date {
    color: #272e4e;
    font-size: 16px;
    margin-bottom: 12px;
}

.banner-card-cat-slide.tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 0;
    border: 1px solid #272e4e;
    border-radius: 4px;
    text-decoration: none;
    color: #272e4e;
    background: #fff;
    width: 60%;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0;
}

    .banner-card-cat-slide.tab:hover {
        background: #0C41BE;
        color: #fff;
        border-color: #0C41BE;
    }

.banner-card-cat-slide {
    min-width: 120px;
    height: 42px;
    border: 1.5px solid #24335d;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background: #fff;
    color: #24335d;
    font-size: 16px;
    font-weight: 800;
    text-decoration: none;
}

.news-detail-main .banner-card-cat-slide.tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 3px 0;
    border: 1px solid #272e4e;
    border-radius: 4px;
    text-decoration: none;
    color: #272e4e;
    background: #fff;
    width: 25%;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 40px;
}

    .news-detail-main .banner-card-cat-slide.tab:hover {
        background: #0C41BE;
        color: #fff;
        border-color: #0C41BE;
    }

.news-related {
    padding: 0 15px;
    margin: 100px 0 100px;
}

    .news-related .news-related-slider {
        /*display: grid !important;*/
        /*grid-template-columns: repeat(3, minmax(0, 1fr)) !important;*/
        /*gap: 54px 38px !important;
        margin: 0;*/
        display: flex;
        gap: 20px;
    }

        .news-related .news-related-slider .related-track-wrapper {
            /*grid-template-columns: repeat(3, minmax(0, 1fr)) !important;*/
        }

        .news-related .news-related-slider > .news-item {
            width: 100%;
            max-width: 100%;
            margin-bottom: 0;
            min-width: 0;
        }

.content-right {
    padding-left: 20px;
}

.content-left {
    padding-right: 20px;
}


.news-related-slider {
    position: relative;
}

.related-track-wrapper {
    overflow: hidden;
}

.related-track {
    display: flex;
    gap: 20px;
    transition: transform 0.4s ease;
}

.related-card {
    min-width: calc(33.333% - 14px);
    /*flex-shrink: 0;*/
}

.related-card {
    flex: 0 0 calc((100% - 40px) / 3);
    max-width: calc((100% - 40px) / 3);
    min-width: calc((100% - 40px) / 3);
}

.related-arrow {
    /*position: absolute;*/
    top: 40%;
    transform: translateY(-50%);
    z-index: 2;
    background: white;
    border: 2px solid #272e4e;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-self: center;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
    /*.related-arrow:hover {
        background: #0c41be;
        border: 2px solid #0c41be;
        color: #ffffff
    }
    .related-arrow:hover {
        background: #0c41be;
        border: 2px solid #0c41be;
    }*/

    .related-arrow.left {
        /*left: -80px;*/
        padding: 12px;
    }

    .related-arrow.right {
        /*right: -80px;*/
        padding: 12px;
    }
/*.related-arrow:hover.left {
        color: #ffffff
    }

    .related-arrow:hover.right {
        color: #ffffff
    }*/
.news-related .news-title {
    min-height: 56px;
    cursor: pointer;
}

#blogSearchForm .news-mobile-category {
    display: block;
}

#blogSearchForm .news-mobile-category-toggle {
    margin-top: 15px
}


.news-detail-content h2 + h2,
.news-detail-content h2 + h3,
.news-detail-content h2 + h4,
.news-detail-content h2 + h5,
.news-detail-content h2 + h6,
.news-detail-content h3 + h2,
.news-detail-content h3 + h3,
.news-detail-content h3 + h4,
.news-detail-content h3 + h5,
.news-detail-content h3 + h6,
.news-detail-content h4 + h2,
.news-detail-content h4 + h3,
.news-detail-content h4 + h4,
.news-detail-content h4 + h5,
.news-detail-content h4 + h6,
.news-detail-content h5 + h2,
.news-detail-content h5 + h3,
.news-detail-content h5 + h4,
.news-detail-content h5 + h5,
.news-detail-content h5 + h6,
.news-detail-content h6 + h2,
.news-detail-content h6 + h3,
.news-detail-content h6 + h4,
.news-detail-content h6 + h5,
.news-detail-content h6 + h6 {
    margin-top: 0 !important;
}

.news-detail-content > * {
    margin-bottom: 25px;
}

.news-detail-content figure {
    margin-top: 40px;
}

.news-detail-content * + figure {
    margin-top: 40px;
}

.news-detail-content figure + figure {
    margin-top: 40px;
}

.news-detail-content figure:has(+ figure) {
    margin-bottom: 0;
}

.news-detail-content p:has(+ figure),
.news-detail-content ul:has(+ figure),
.news-detail-content ol:has(+ figure),
.news-detail-content h2:has(+ figure),
.news-detail-content h3:has(+ figure),
.news-detail-content h4:has(+ figure),
.news-detail-content h5:has(+ figure),
.news-detail-content h6:has(+ figure) {
    margin-bottom: 0;
}

.news-detail-content > *:not(blockquote) {
    margin-bottom: 25px;
}

.news-detail-content > blockquote {
    margin: 40px 0;
}
/* mobile */
@media (max-width: 991px) {
    .news-detail-page .col-12.col-lg-4 {
        display: none !important;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    .news-related {
        padding: 0 15px;
        margin: 50px 0 50px;
        width: 100%;
    }

    .news-detail-page {
        padding: 90px 0 0;
    }

    .news-detail-main .banner-card-cat-slide.tab {
        margin-top: 20px;
    }

    .news-detail-title {
        margin: 20px 0 15px;
    }

    .related-card {
        min-width: 80%;
    }

    .news-detail-page .col-12.col-lg-4 {
        display: none !important;
    }

    .related-arrow.left {
        left: 0;
    }

    .related-arrow.right {
        right: 0;
    }

    .related-arrow {
        width: 35px;
        height: 35px;
        font-size: 20px;
    }

    .content-right {
        padding-left: 15px;
    }

    .content-left {
        padding-right: 15px;
    }

    .news-related-title {
        margin: 0 auto 40px;
    }

    .related-card.next-fade {
        opacity: 0.22;
    }

    .news-related .news-related-slider {
        gap: 10px;
    }

    .related-track {
        /*gap: 16px;*/
    }

    .related-track-wrapper {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
    }

    .related-card {
        flex: 0 0 80%;
        min-width: 80%;
        max-width: 80%;
        box-sizing: border-box;
    }

    .news-related .news-title {
        min-height: 48px;
        font-size: 16px;
    }

    .news-detail-content img {
        /*margin-top: 20px;*/
    }

    .news-detail-content p {
        margin-bottom: 15px;
    }

    .news-detail-content h1 {
        font-size: 28px;
    }

    .news-detail-content h2 {
        font-size: 24px;
    }

    .news-detail-content h3 {
        font-size: 20px;
    }

    .news-detail-content h4 {
        font-size: 18px;
    }

    .news-detail-content h5 {
        font-size: 16px;
    }

    .news-detail-content h6 {
        font-size: 14px;
    }

    .news-detail-content ul,
    .news-detail-content ol {
        margin-bottom: 15px;
    }

    p, li {
        font-size: 0.875rem;
    }

    .news-toc-title {
        font-size: 16px;
    }

    .news-toc-list a {
        font-size: 14px;
    }

    .news-detail-content > * {
        margin-bottom: 15px;
    }

    .news-detail-content figure {
        margin-top: 20px;
    }

    .news-detail-content * + figure {
        margin-top: 20px;
    }

    .news-detail-content figure + figure {
        margin-top: 20px;
    }

    .news-detail-content > *:not(blockquote) {
        margin-bottom: 15px;
    }

    .news-detail-content > blockquote {
        margin: 20px 0;
    }

    .related-arrow:active {
        background: #0c41be;
        border: 2px solid #0c41be;
        color: #ffffff;
    }
}

@media (hover: hover) and (pointer: fine) {
    .related-arrow:hover {
        background: #0c41be;
        border: 2px solid #0c41be;
        color: #ffffff !important;
    }
}
