/* Gia Hieu Tech - Article layout */
:root {
    --gh-navy: #142b45;
    --gh-orange: #f28c28;
    --gh-text: #263445;
    --gh-muted: #687789;
    --gh-border: #e5e9ed;
    --gh-soft: #f4f6f8;
}

.gh-article-page { color: var(--gh-text); }
.gh-article-container { max-width: 1200px; margin: 0 auto; padding: 18px 15px 55px; }
.gh-breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin: 0 0 24px; color: var(--gh-muted); font-size: 13px; }
.gh-breadcrumb a { color: var(--gh-muted); }
.gh-breadcrumb a:hover { color: var(--gh-orange); }
.gh-article-header { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 30px; align-items: center; padding: 8px 0 28px; border-bottom: 1px solid var(--gh-border); }
.gh-article-category { display: inline-block; margin-bottom: 12px; padding: 6px 11px; border-radius: 4px; background: var(--gh-orange); color: #fff !important; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.gh-article-title {margin: 0 0 14px;
    color: #132554;
    font-size: clamp(30px, 3.2vw, 23px);
    line-height: 1.13;
    font-weight: 800;}
.gh-article-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--gh-muted); font-size: 13px; }
.gh-article-meta > span { display: inline-flex; gap: 6px; align-items: center; }
.gh-meta-icon { color: var(--gh-orange); font-size: 16px; }
.gh-article-excerpt { margin: 18px 0 0; color: #465466; font-size: 16px; line-height: 1.7; }
.gh-article-featured { margin: 0; overflow: hidden; border-radius: 9px; background: var(--gh-soft); }
.gh-featured-image { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.gh-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 32px; align-items: start; padding-top: 28px; }
.gh-article-main { min-width: 0; }
.gh-article-content { color: var(--gh-text); font-size: 16px; line-height: 1.8; overflow-wrap: anywhere; }
.gh-article-content > :first-child { margin-top: 0; }
.gh-article-content h2 { margin: 34px 0 15px; padding-left: 13px; border-left: 5px solid var(--gh-orange); color: var(--gh-navy); font-size: 27px; line-height: 1.3; font-weight: 800; }
.gh-article-content h3 { margin: 25px 0 10px; color: var(--gh-navy); font-size: 21px; line-height: 1.4; font-weight: 700; }
.gh-article-content p { margin: 0 0 17px; }
.gh-article-content img { max-width: 100%; height: auto; border-radius: 7px; }
.gh-article-content figure { margin: 22px 0; }
.gh-article-content figcaption { margin-top: 7px; color: var(--gh-muted); font-size: 13px; text-align: center; }
.gh-article-content ul, .gh-article-content ol { margin: 0 0 20px 22px; }
.gh-article-content li { margin-bottom: 7px; }
.gh-article-content blockquote { margin: 22px 0; padding: 16px 20px; border-left: 4px solid var(--gh-orange); background: var(--gh-soft); color: #435267; }
.gh-article-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.gh-article-content th, .gh-article-content td { padding: 10px 12px; border: 1px solid var(--gh-border); }
.gh-article-content th { background: var(--gh-soft); color: var(--gh-navy); }
.gh-article-sidebar { position: sticky; top: 95px; }
.gh-sidebar-box { margin-bottom: 20px; overflow: hidden; border: 1px solid var(--gh-border); border-radius: 9px; background: #fff; }
.gh-toc-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 15px 16px; border: 0; background: var(--gh-soft); color: var(--gh-navy); text-align: left; font-size: 17px; font-weight: 800; cursor: pointer; }
.gh-orange-mark { margin-right: 7px; color: var(--gh-orange); font-size: 21px; }
.gh-toc-chevron { color: var(--gh-orange); }
.gh-toc-list { padding: 10px 16px 14px; }
.gh-toc-list ol { margin: 0; padding-left: 20px; }
.gh-toc-list li { margin: 0; padding: 7px 0; border-bottom: 1px solid var(--gh-border); color: var(--gh-muted); font-size: 13px; line-height: 1.45; }
.gh-toc-list li:last-child { border-bottom: 0; }
.gh-toc-list a { color: var(--gh-text); }
.gh-toc-list a:hover, .gh-toc-list a.is-active { color: var(--gh-orange); }
.gh-toc-list .gh-toc-h3 { margin-left: 10px; list-style-type: circle; }
.gh-toc-empty { margin: 0; color: var(--gh-muted); font-size: 13px; }
.gh-toc-box.is-collapsed .gh-toc-list { display: none; }
.gh-contact-box { padding: 22px; border-radius: 9px; background: var(--gh-navy); color: #fff; }
.gh-contact-box h2 { margin: 0 0 9px; color: #fff; font-size: 21px; }
.gh-contact-box p { margin: 0 0 17px; color: #e6edf5; font-size: 14px; line-height: 1.6; }
.gh-contact-button { display: block; margin-top: 10px; padding: 12px 14px; border-radius: 6px; text-align: center; font-weight: 700; }
.gh-call-button { background: var(--gh-orange); color: #fff !important; }
.gh-zalo-button { background: #fff; color: #0878d1 !important; }
.gh-article-share { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 28px 0; padding: 15px 0; border-top: 1px solid var(--gh-border); border-bottom: 1px solid var(--gh-border); font-size: 13px; }
.gh-article-share a, .gh-copy-link {  margin: 0;padding: 7px 11px; border: 1px solid var(--gh-border); border-radius: 5px; background: #fff; color: var(--gh-navy); cursor: pointer; }
.gh-related-posts { margin-top: 35px; }
.gh-related-posts h2 { margin: 0 0 16px; color: var(--gh-navy); font-size: 24px; }
.gh-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gh-related-card { display: block; color: var(--gh-navy); }
.gh-related-thumb { display: block; margin-bottom: 9px; overflow: hidden; border-radius: 6px; background: var(--gh-soft); }
.gh-related-thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gh-related-card-title { display: block; font-size: 15px; line-height: 1.45; font-weight: 700; }
.gh-related-date { display: block; margin-top: 6px; color: var(--gh-muted); font-size: 12px; }
.gh-page-links { margin: 25px 0; }
.gh-mobile-contact { display: none; }

@media (max-width: 849px) {
    .gh-article-container { padding: 12px 15px 90px; }
    .gh-breadcrumb { margin-bottom: 17px; font-size: 12px; }
    .gh-article-header { grid-template-columns: 1fr; gap: 16px; padding-bottom: 20px; }
    .gh-article-title { font-size: 29px; line-height: 1.2; }
    .gh-article-meta { gap: 9px 13px; font-size: 12px; }
    .gh-article-excerpt { margin-top: 13px; font-size: 15px; }
    .gh-article-featured { grid-row: 2; }
    .gh-featured-image { aspect-ratio: 16 / 9; }
    .gh-article-layout { display: block; padding-top: 20px; }
    .gh-article-sidebar { position: static; margin-bottom: 22px; }
    .gh-contact-box { display: none; }
    .gh-article-content { font-size: 16px; line-height: 1.75; }
    .gh-article-content h2 { margin-top: 28px; font-size: 23px; }
    .gh-article-content h3 { font-size: 19px; }
    .gh-related-grid { grid-template-columns: 1fr; gap: 15px; }
    .gh-related-card { display: grid; grid-template-columns: 105px minmax(0, 1fr); column-gap: 12px; align-items: center; }
    .gh-related-thumb { grid-row: span 2; margin: 0; }
    .gh-related-thumb img { aspect-ratio: 1 / 1; }
    .gh-mobile-contact { position: fixed; z-index: 9999; right: 0; bottom: 0; left: 0; display: flex; gap: 8px; padding: 9px 12px calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid var(--gh-border); background: rgba(255,255,255,.97); box-shadow: 0 -3px 15px rgba(20,43,69,.10); }
    .gh-mobile-contact a { flex: 1; padding: 12px 8px; border-radius: 6px; text-align: center; font-size: 14px; font-weight: 700; }
    .gh-mobile-call { background: var(--gh-orange); color: #fff !important; }
    .gh-mobile-zalo { background: #0878d1; color: #fff !important; }
}


/* Related news - full width section below article and sidebar */
.gh-related-posts {
    margin-top: 38px;
    padding-top: 26px;
    border-top: 1px solid var(--gh-border);
}
.gh-related-posts h2 {
    margin: 0 0 20px;
    padding-left: 13px;
    border-left: 5px solid var(--gh-orange);
    color: var(--gh-navy);
    font-size: 25px;
    line-height: 1.3;
    font-weight: 800;
}
.gh-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.gh-related-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--gh-border);
    border-radius: 8px;
    background: #fff;
    transition: box-shadow .2s ease, transform .2s ease;
}
.gh-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(20,43,69,.09);
}
.gh-related-thumb { margin: 0; }
.gh-related-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.gh-related-card-title {
    display: block;
    padding: 12px 14px 4px;
    color: var(--gh-navy);
    font-size: 16px;
    line-height: 1.45;
    font-weight: 700;
}
.gh-related-date {
    display: block;
    padding: 0 14px 13px;
    color: var(--gh-muted);
    font-size: 12px;
}
@media (max-width: 849px) {
    .gh-related-posts { margin-top: 28px; padding-top: 22px; }
    .gh-related-grid { grid-template-columns: 1fr; gap: 12px; }
    .gh-related-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; }
    .gh-related-thumb { grid-row: span 2; }
    .gh-related-thumb img { height: 100%; min-height: 100px; aspect-ratio: 1 / 1; }
    .gh-related-card-title { padding: 10px 12px 3px; font-size: 14px; }
    .gh-related-date { padding: 0 12px 9px; }
}


/* Rank Math breadcrumb styling */
.gh-breadcrumb .rank-math-breadcrumb,
.gh-breadcrumb .rank-math-breadcrumb p {
    margin: 0;
    padding: 0;
    color: var(--gh-muted);
    font-size: 13px;
    line-height: 1.6;
}
.gh-breadcrumb .rank-math-breadcrumb a {
    color: var(--gh-muted);
    text-decoration: none;
}
.gh-breadcrumb .rank-math-breadcrumb a:hover {
    color: var(--gh-orange);
}
.gh-breadcrumb .rank-math-breadcrumb .last {
    color: var(--gh-navy);
}


/* Active table-of-contents item follows the section in view */
.gh-toc-list li.is-active {
    border-left: 3px solid var(--gh-orange);
    padding-left: 9px;
    margin-left: -12px;
}
.gh-toc-list a.is-active {
    color: var(--gh-orange);
}
