/* =============================================================================
   y2026_tcgc — post detail styles
   Loaded via PostDetailAsset (after theme.css) on article/video detail pages.

   One declaration per concern. Shared markup aliases
   (detail-* + article__/cms-*) are listed together so they cannot fight.
   ========================================================================== */

/* -----------------------------------------------------------------------------
   Title / meta / sapo / author / tags
   Markup: h1.detail-title.article__title.cms-title
           .detail-sapo.article__sapo.cms-desc
           .article__author.cms-author.detail-author
   -------------------------------------------------------------------------- */

.detail-article .detail-title,
.article__title.cms-title {
    font-family: var(--font-1);
    font-size: 25px;
    line-height: 1.35;
    font-weight: bold;
    color: var(--black);
    text-align: left;
}

.detail-article .detail-meta {
    color: #777;
    font-size: 14px;
    font-family: var(--font-1);
}

.detail-article .detail-desc {
    margin-bottom: 15px;
}

.detail-article .detail-sapo,
.article__sapo {
    margin: 0 0 15px;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text);
    text-align: justify;
}

.article__author,
.detail-article .detail-author {
    clear: both;
    text-align: right;
    font-family: var(--font-1);
    font-weight: bold;
    margin: 20px 0 15px;
    color: var(--black, #000);
}

.detail-article .detail-tags {
    margin-bottom: 25px;
}

.detail-article .detail-tags .inner-label {
    font-weight: bold;
    font-size: 16px;
    font-family: var(--font-1);
    display: inline-block;
    height: 22px;
}

.detail-article .detail-tags a {
    display: inline-block;
    padding: 3px 5px;
    background: #e3e3e3;
    margin: 0 0 10px 5px;
    border-radius: 3px;
    font-size: 14px;
    color: var(--color-text);
}

.article__tag .box-content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.box-content .tag-item {
    padding: 5px 8px;
    background: #eeeeee;
    border-radius: 5px;
}

time.time {
    font-size: 14px;
}

/* -----------------------------------------------------------------------------
   Article body typography
   -------------------------------------------------------------------------- */

.detail-content,
.detail-content.cms-body,
.article__body {
    font-family: var(--font-4);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--black);
    text-align: justify;
    overflow-wrap: anywhere;
}

/* Editor paste often carries inline font-family/size — normalise to the article base */
.detail-content p,
.detail-content li,
.detail-content td,
.detail-content span,
.detail-content .article-content-detail,
.post-detail p {
    font-family: inherit !important;
    font-size: inherit !important;
    letter-spacing: normal !important;
    text-align: justify;
}

.detail-content p {
    margin-bottom: 1em;
}

.detail-content h2,
.detail-content h3,
.detail-content h4,
.blog-details-content h1,
.blog-details-content h2,
.blog-details-content h3,
.blog-details-content h4,
.blog-details-content h5,
.blog-details-content h6 {
    font-family: var(--font-1);
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-text, #1f2b3d);
    margin: 1.2em 0 0.6em;
}

.detail-content h2 { font-size: 1.25em; }
.detail-content h3 { font-size: 1.125em; }
.detail-content h4 { font-size: 1.05em; }

.blog-details-content h1 { font-size: 22px; }
.blog-details-content h2 { font-size: 20px; }
.blog-details-content h3 { font-size: 19px; }
.blog-details-content h4 { font-size: 18px; }
.blog-details-content h5 { font-size: 17px; }
.blog-details-content h6 { font-size: 16px; }

.detail-article .detail-content img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto 10px;
}

.detail-article .detail-content iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 16/9;
}

.blog-details-thumb {
    margin-bottom: 0;
}

blockquote::before,
blockquote::after {
    display: none;
}

.post-detail blockquote {
    border-color: #ffc107;
}

/* -----------------------------------------------------------------------------
   Source / share / ads / comments / aA / audio
   -------------------------------------------------------------------------- */

.article__source.active .link-source-detail {
    display: block;
}

.article-content .ads-zone {
    margin: 0;
}

.article-content .ads-title {
    display: none;
}

.blog-details-share .d-md-none {
    display: none;
}

.feed-post-detail-comments {
    margin-top: 15px;
}

.feed-post-detail-comments .box-header {
    display: flex;
    align-items: center;
}

.box-comments {
    margin-top: 25px;
    clear: both;
}

.box-comments .inner-title {
    font-family: var(--font-1);
    font-weight: bold;
    text-transform: uppercase;
    color: var(--black);
    font-size: 16px;
    margin-bottom: 15px;
}

.box-comments .form-group {
    margin-bottom: 15px;
}

.box-comments .form-control {
    width: 100%;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--color-text);
    background: var(--white);
}

.box-comments textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.box-comments .text-right {
    text-align: right;
}

.box-comments .btn-primary,
.box-comments .send-comment {
    display: inline-block;
    background: var(--color-main);
    color: var(--white);
    border: none;
    border-radius: 4px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.box-comments .btn-primary:hover,
.box-comments .send-comment:hover {
    opacity: 0.9;
    color: var(--white);
}

.box-comments button {
    cursor: pointer;
}

.audio-player {
    height: 50px;
    width: 100%;
    background: #f8f9fa;
    font-family: arial;
    overflow: hidden;
    display: grid;
    grid-template-rows: 6px auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
}

.audio-player .timeline {
    background: white;
    width: 100%;
    position: relative;
    cursor: pointer;
    box-shadow: 0 2px 10px 0 #0008;
}

.audio-player .timeline .progress {
    background: var(--color-main);
    width: 0%;
    height: 100%;
    transition: 0.25s;
}

.audio-player .controls {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    padding: 0 20px;
}

.audio-player .controls > * {
    display: flex;
    justify-content: center;
    align-items: center;
}

.audio-player .controls .play-container .toggle-play {
    border: 1px solid #ddd;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.audio-player .controls .toggle-play.play {
    cursor: pointer;
    position: relative;
    left: 0;
    height: 0;
    width: 0;
    border: 7px solid #0000;
    border-left: 13px solid white;
}

.audio-player .controls .toggle-play.play:hover {
    transform: scale(1.1);
}

.audio-player .controls .toggle-play.pause {
    height: 15px;
    width: 20px;
    cursor: pointer;
    position: relative;
}

.audio-player .controls .toggle-play.pause:before {
    position: absolute;
    top: 0;
    left: 0;
    background: white;
    content: "";
    height: 15px;
    width: 3px;
}

.audio-player .controls .toggle-play.pause:after {
    position: absolute;
    top: 0;
    right: 8px;
    background: white;
    content: "";
    height: 15px;
    width: 3px;
}

.audio-player .controls .toggle-play.pause:hover {
    transform: scale(1.1);
}

.audio-player .controls .time {
    display: flex;
    font-size: 13px;
}

.audio-player .controls .time > * {
    padding: 2px;
}

.audio-player .controls .volume-container {
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.audio-player .controls .volume-container .volume-button {
    height: 26px;
    display: flex;
    align-items: center;
    font-size: 24px;
}

.audio-player .controls .volume-container .volume-button .volume {
    transform: scale(0.7);
}

.audio-player .controls .volume-container .volume-slider {
    position: absolute;
    left: -3px;
    top: 15px;
    z-index: -1;
    width: 0;
    height: 12px;
    background: white;
    transition: 0.25s;
    border: 1px solid #ddd;
}

.audio-player .controls .volume-container .volume-slider .volume-percentage {
    background: var(--color-main);
    height: 100%;
    width: 75%;
}

.audio-player .controls .volume-container:hover .volume-slider {
    left: -123px;
    width: 120px;
}

/* -----------------------------------------------------------------------------
   Breadcrumb (singular — used by full/longform layouts; theme.css uses .breadcrumbs)
   -------------------------------------------------------------------------- */

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin-bottom: 10px;
    justify-content: flex-start;
    list-style: none;
}

/* -----------------------------------------------------------------------------
   Prev/next + related news
   -------------------------------------------------------------------------- */

.blog-prev-next-posts a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    background: #fffde3;
    border-radius: 5px;
    margin-bottom: 15px;
    color: #ad850f;
    font-weight: 500;
    font-style: italic;
    font-size: 18px;
}

.related-news {
    margin-top: 32px;
    padding: 20px;
    border: 1px solid #e2e5ea;
    border-radius: 16px;
    background: #fff;
}

.related-news-placeholder {
    display: none;
}

.related-news-inline-paragraph {
    position: relative;
}

.related-news.related-news--inline {
    float: right;
    width: 420px;
    margin: 8px 0 20px 28px;
}

.related-news .box-heading {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(214, 166, 59, 0.28);
}

.related-news .box-heading .title {
    display: inline-block;
    font-family: var(--font-1);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--color-main, #1e4f9a);
}

.related-news .box-content {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 18px 20px;
}

.related-news .story {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.related-news .story__thumb {
    display: block;
    overflow: hidden;
    border-radius: 8px;
    aspect-ratio: 16/10;
    background: #f5f7fa;
}

.related-news .story__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.related-news .story:hover .story__thumb img {
    transform: scale(1.04);
}

.related-news .story__heading {
    margin: 0;
    font-family: var(--font-1);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.5;
    color: var(--color-main, #1e4f9a);
}

.related-news .story__heading a {
    color: inherit;
    text-decoration: none;
}

.related-news .story__heading a:hover {
    color: var(--red, #c21f25);
}

.related-news.related-news--inline .story {
    grid-template-columns: 80px minmax(0, 1fr);
}

.related-news.related-news--inline .story__heading {
    font-size: 14px;
    line-height: 1.4;
}

/* =============================================================================
   Responsive — all viewport overrides, grouped by breakpoint
   ========================================================================== */

/* --- ≤1199px --- */
@media (max-width: 1199px) {
    .related-news.related-news--inline {
        float: none;
        width: 100%;
        margin: 32px 0 0;
    }
}

/* --- ≤991px --- */
@media (max-width: 991px) {
    .detail-article .detail-title,
    .article__title.cms-title {
        font-size: 20px;
        line-height: 1.35;
    }

    .detail-article .detail-meta {
        font-size: 12px;
    }

    .detail-article .detail-tags .inner-label {
        font-size: 12px;
    }

    .detail-article .detail-tags a {
        margin: 0 0 5px 5px;
        font-size: 12px;
    }

    .related-news .box-content {
        grid-template-columns: 1fr;
    }

    .related-news .story {
        grid-template-columns: 140px minmax(0, 1fr);
    }

    .related-news .story:nth-last-child(-n + 2) {
        padding-bottom: 18px;
        border-bottom: 1px solid #e2e5ea;
    }

    .related-news .story:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }
}

/* --- ≤767px --- */
@media (max-width: 767px) {
    .blog-details-content h1 { font-size: 30px; }
    .blog-details-content h2 { font-size: 27px; }
    .blog-details-content h3 { font-size: 24px; }
    .blog-details-content h4 { font-size: 22px; }
    .blog-details-content h5 { font-size: 21px; }
    .blog-details-content h6 { font-size: 20px; }

    .related-news {
        padding: 16px;
    }

    .related-news .box-heading .title {
        font-size: 22px;
    }

    .related-news .story {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .related-news .story__thumb {
        aspect-ratio: 16/9;
    }

    .related-news .story__heading {
        font-size: 17px;
        line-height: 1.45;
    }
}
