@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100;
    font-display: swap;
    src: url(/theme1/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCtr6Uw-.ttf) format('truetype');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 200;
    font-display: swap;
    src: url(/theme1/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCvr6Ew-.ttf) format('truetype');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url(/theme1/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCs16Ew-.ttf) format('truetype');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(/theme1/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCtr6Ew-.ttf) format('truetype');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(/theme1/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCtZ6Ew-.ttf) format('truetype');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url(/theme1/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCu170w-.ttf) format('truetype');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(/theme1/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCuM70w-.ttf) format('truetype');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url(/theme1/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCvr70w-.ttf) format('truetype');
}

@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url(/theme1/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCvC70w-.ttf) format('truetype');
}

:root {
    --theme1-font-sans: Montserrat, sans-serif;

    --theme1-color-brand: #a41034;
    --theme1-color-brand-strong: #8f0728;
    --theme1-color-text: #111827;
    --theme1-color-text-soft: #292929;
    --theme1-color-text-muted: #6b7280;
    --theme1-color-border: #d9d9d9;
    --theme1-color-border-strong: #bdbdbd;
    --theme1-color-surface: #ffffff;
    --theme1-color-surface-muted: #f6f6f6;

    --theme1-radius-sm: 0.5rem;
    --theme1-radius-md: 0.75rem;
    --theme1-radius-lg: 1rem;

    --theme1-shadow-soft: 0 10px 30px rgba(17, 24, 39, 0.08);

    --theme1-space-xs: 0.5rem;
    --theme1-space-sm: 0.75rem;
    --theme1-space-md: 1rem;
    --theme1-space-lg: 1.5rem;
    --theme1-space-xl: 2rem;
    --theme1-space-2xl: 2.5rem;

    --theme1-content-max: 1200px;
    --theme1-content-narrow: 58rem;

    --theme1-heading-title-gap: 0;
    --theme1-heading-desc-gap: 1rem;
    --theme1-heading-desc-max: 42.1354166667rem;
}

/*
@font-face {
    font-family: 'Nunito','Nunito';
    src: url("../fonts/Nunito-Regular.eot");
    src: local("Nunito Regular"), local("Nunito-Regular"), url("../fonts/Nunito-Regular.eot#iefix") format("embedded-opentype"), url("../fonts/Nunito-Regular.woff2") format("woff2"), url("../fonts/Nunito-Regular.woff") format("woff"), url("../fonts/Nunito-Regular.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Nunito','Nunito';
    src: url("../fonts/Nunito-Bold.eot");
    src: local("Nunito Bold"), local("Nunito-Bold"), url("../fonts/Nunito-Bold.eot#iefix") format("embedded-opentype"), url("../fonts/Nunito-Bold.woff2") format("woff2"), url("../fonts/Nunito-Bold.woff") format("woff"), url("../fonts/Nunito-Bold.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
}
*/

body {
	font-family: var(--theme1-font-sans);
}

/* Always show main navigation bar (header-bot)
   Theme gốc ẩn header-bot trên màn hình nhỏ (header .header-bot { display:none })
   nhưng với layout CI4 hiện tại, ta muốn thanh menu luôn hiển thị. */
header .header-bot {
    display: block;
}

/* Keep home-nav below sticky header */
.home-nav {
    top: var(--header-height, 120px);
}

a,
abbr,
acronym,
address,
applet,
article,
aside,
audio,
b,
big,
blockquote,
body,
canvas,
caption,
center,
cite,
code,
dd,
del,
details,
dfn,
div,
dl,
dt,
fieldset,
figcaption,
figure,
footer,
form,
h1,
h2,
h3,
h4,
h5,
h6,
header,
hgroup,
html,
iframe,
img,
ins,
label,
li,
mark,
menu,
ol,
p,
pre,
samp,
section,
small,
span,
strong,
sub,
summary,
sup,
table,
tbody,
td,
tfoot,
th,
thead,
u,
ul {
    font-family: Montserrat, sans-serif;
}

header .main-menu > li > a,
.home-nav .nav-list li .pc,
.home-nav .nav-list li .mobile,
.news-item .news-title,
.header-40,
.full-content,.full-content p,.full-content h1, .full-content h2, .full-content h3, .full-content b,
.trangioithieu, .trangioithieu p, .trangioithieu h1, .trangioithieu h2, .trangioithieu h3, .trangioithieu h4,
.box-course-content, .box-course-content ul, .box-course-content ul li
 {
    font-family: var(--theme1-font-sans);
}

/* Logo + brand text block trên header */
header .header-top .logo-block {
    display: flex;
    align-items: center;
    gap: calc(12/1920*100rem);
}

header .header-top .logo-block .logo {
    height: 4.4270833333rem; /* giữ nguyên chiều cao logo gốc */
}

header .header-top .logo-block .header-brand {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

header .header-top .logo-block .header-brand-line1 {
    font-weight: 700;
    font-size: clamp(12px, calc(14/1920*100rem), 14px);
    text-transform: uppercase;
}

/* Optional: show text label instead of home icon on breadcrumb first item */
.global-breadcrumb.show-home-label .breadcrumb li:first-child a {
    font-size: clamp(12px, calc(14/1920*100rem), calc(14/1920*100rem));
}

.global-breadcrumb.show-home-label .breadcrumb li:first-child a::before {
    display: none;
    content: none;
}

.faq-list .toggle-item.is-static .title {
    cursor: default;
}

.faq-list .toggle-item.is-static:hover .title {
    border-color: rgb(246 246 246);
}

.faq-list .toggle-item.is-static:hover .title .txt > span,
.faq-list .toggle-item.is-static:hover .title .txt > span *,
.faq-list .toggle-item.is-static:hover .title em {
    color: inherit;
}

/* Product grid cards */
.home-product-grid .card.card-product {
    border: 2px solid var(--theme1-color-brand); /* chủ đạo theme */
    border-radius: var(--theme1-radius-md);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-product-grid .home-product-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.home-product-grid .home-product-title {
    color: var(--theme1-color-brand);
    display: inline-block;
}

.theme1-section-heading {
    display: flex;
    flex-direction: column;
    gap: var(--theme1-heading-desc-gap);
}

.theme1-section-heading.is-center {
    align-items: center;
    text-align: center;
}

.theme1-section-heading.is-left {
    align-items: flex-start;
    text-align: left;
}

.theme1-section-heading.is-right {
    align-items: flex-end;
    text-align: right;
}

.theme1-section-heading__title {
    margin: 0;
}

.theme1-section-heading__desc {
    max-width: var(--theme1-heading-desc-max);
}

.theme1-section-heading__desc > *:first-child {
    margin-top: 0;
}

.theme1-section-heading__desc > *:last-child {
    margin-bottom: 0;
}

.theme1-button-row {
    display: flex;
}

.theme1-button-row.is-center {
    justify-content: center;
}

.theme1-button-row.is-left {
    justify-content: flex-start;
}

.theme1-button-row.is-right {
    justify-content: flex-end;
}

.theme1-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: calc(8/1920*100rem);
    min-height: calc(44/1920*100rem);
    padding: calc(8/1920*100rem) calc(16/1920*100rem);
    border-radius: calc(4/1920*100rem);
    font-weight: 500;
    line-height: 1.2;
}

.theme1-button svg,
.theme1-button i,
.theme1-button em {
    flex: 0 0 auto;
}

.theme1-button span {
    display: inline-block;
}

.theme1-button__suffix {
    font-size: 1em;
    font-weight: 500;
    line-height: 1;
}

.home-product-grid .btn-view-all {
    background: #a41034;
    color: #fff;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.home-product-grid .btn-view-all:hover {
    background: #7b0c26;
    transform: translateX(2px);
}

.product-list-page {
    padding-top: 30px;
    padding-bottom: 40px;
}

.product-list-section .eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.product-list-title {
    color: #1f1f1f;
}

.product-filter-bar {
    margin: 24px 0;
    background: #fff8fb;
    border: 1px solid rgba(164, 16, 52, 0.15);
    border-left: 4px solid #a41034;
    border-radius: 12px;
    padding: 18px;
}

.product-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.product-filter-form .filter-field {
    min-width: 220px;
}

.product-filter-form label {
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
    color: #444;
}

.product-filter-form .form-select,
.product-filter-form .form-control {
    border-radius: 999px;
    border: 1px solid #d8d8d8;
    font-size: 0.95rem;
    padding: 8px 18px;
}

.product-filter-form .filter-actions {
    display: flex;
    align-items: flex-end;
}

.product-filter-form .btn {
    background: #a41034;
    border: none;
    color: #fff;
    padding: 10px 26px;
    border-radius: 999px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.product-filter-form .btn:hover {
    background: #7b0c26;
}

.product-card {
    border: 1px solid rgba(164, 16, 52, 0.15);
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
    box-shadow: 0 16px 35px rgba(164, 16, 52, 0.18);
    transform: translateY(-4px);
}

.product-card .card-thumb img,
.product-card .thumb-placeholder {
    width: 100%;
    display: block;
}

.product-card .card-body {
    padding: 16px 20px 20px;
}

.product-card .card-title a {
    color: #1f1f1f;
}

.product-card .card-summary {
    font-size: 0.95rem;
    line-height: 1.5;
}

.product-list-empty {
    padding: 32px;
    border: 1px dashed rgba(164, 16, 52, 0.3);
    border-radius: 12px;
    text-align: center;
    color: #6b6b6b;
}

.product-list-pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.product-list-pagination .pagination,
.theme1-pagination {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.product-list-pagination .pagination a,
.product-list-pagination .pagination span,
.theme1-pagination a,
.theme1-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.75rem;
    height: 2.75rem;
    padding: 0 0.875rem;
    border: 1px solid var(--theme1-color-brand);
    border-radius: calc(4/1920*100rem);
    color: var(--theme1-color-brand);
    background: #fff;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.product-list-pagination .pagination span.inactive,
.theme1-pagination span.inactive {
    opacity: 0.45;
    cursor: default;
}

.product-list-pagination .pagination span.active,
.product-list-pagination .pagination a.active,
.product-list-pagination .pagination a:hover,
.theme1-pagination span.active,
.theme1-pagination a.active,
.theme1-pagination a:hover {
    background: var(--theme1-color-brand);
    border-color: var(--theme1-color-brand);
    color: #fff;
}

.home-product-grid .card.card-product .card-body {
    padding: 10px 12px 16px;
}

.home-product-grid .card.card-product:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(164, 16, 52, 0.15);
}

.home-product-grid .card.card-product .card-thumb img {
    display: block;
    width: 100%;
    border-bottom: 1px solid rgba(164, 16, 52, 0.15);
}

header .header-top .logo-block .header-brand-line2 {
    font-weight: 500;
    font-size: clamp(11px, calc(13/1920*100rem), 13px);
    text-transform: uppercase;
}

@media (min-width: 1200px) {
    /* Theme gốc thu header quá mạnh khi sticky active, làm block logo tụt chiều cao rõ rệt.
       Giữ hiệu ứng gọn lại nhưng giảm biên độ shrink để header ổn định hơn khi cuộn. */
    header.active .header-top {
        padding-top: 0.25rem;
        padding-bottom: 0.25rem;
    }

    header.active .header-top .logo-block .logo,
    header.active .logo {
        height: 2.25rem;
    }
}

.home-news2:is(.news-list-section) .news-list {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
.full-content iframe {
	overflow-x: hidden;
}
@media (max-width: 768px) {
  .full-content iframe {
    width: 100% !important;
	max-width:100% !important;
    height: 100vh; /* Hoặc chỉnh theo nội dung mong muốn */
    border: none;
    display: block;
    overflow-x: hidden;
  }

}
@media (max-width: 768px) {
    .home-news2:is(.news-list-section) .news-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (min-width: 768px) {
    .home-news2:is(.news-list-section) .news-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .home-news2:is(.news-list-section) .news-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .home-news2:is(.news-list-section) .news-list {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .home-news2:is(.news-list-section) .news-item {
        grid-column: span 3 / span 3;
    }
}

.home-news2.news-list-section .news-item:nth-child(1) .caption, .home-news2.news-list-section .news-item:nth-child(2) .caption {
    position: absolute;
    bottom: 0 /* 0px */;
    left: 0 /* 0px */;
    justify-content: flex-end;
    gap: calc(12 / 1920 * 100rem);
    z-index: 1;
    border-width: 0px;
    border-radius: 0px;
    background: unset;
    background-color: transparent;
    padding: calc(32 / 1920 * 100rem);
    padding-top: 7.96875rem;
    width: 100%;
    pointer-events: none;
}
.home-news2.news-list-section .news-item:nth-child(1) .image, .home-news2.news-list-section .news-item:nth-child(2) .image {
    aspect-ratio: 480 / 322;
}
.home-news2.news-list-section .news-item:nth-child(1) .news-date, .home-news2.news-list-section .news-item:nth-child(2) .news-date {
    --tw-text-opacity: 1;
    color: rgb(0 0 0 / var(--tw-text-opacity));
}
.home-news2.news-list-section .news-item:nth-child(1) .news-title, .home-news2.news-list-section .news-item:nth-child(2) .news-title {
    --tw-text-opacity: 1;
    color: rgb(0 0 0 / var(--tw-text-opacity));
    line-height: 1.375;
}

/* Footer menu: add spacing between root groups */
.footer-menu > li.footer-menu-group + li.footer-menu-group {
    margin-top: calc(20/1920*100rem);
}

/* Footer logo: force full logo visible (no top/bottom crop for different locale logo ratios). */
.footer-top .logo img,
.footer-top .logo svg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Isolated style for certification block only (no impact on footer columns). */
.footer-top .footer-cert-badges .certification-item,
.footer-top .footer-cert-badges .certification-item span {
    text-align: left;
}

.footer-top .footer-cert-badges .certification-item {
    align-items: flex-start;
}

.footer-top .footer-cert-badges .certification-item span {
    line-height: 1.35;
    word-break: break-word;
}

/* Footer menu: add breathing room between group title and first child link */
.footer-menu .footer-menu-heading {
    display: block;
    margin-bottom: calc(8/1920*100rem);
}

/* Footer menu: extra spacing only for columns 2-4 */
.footer-block-column_2 .footer-menu > :not([hidden]) ~ :not([hidden]),
.footer-block-column_3 .footer-menu > :not([hidden]) ~ :not([hidden]),
.footer-block-column_4 .footer-menu > :not([hidden]) ~ :not([hidden]) {
    margin-top: calc(calc(12/1920*100rem) + 10px);
}
.footer-block-column_2 .footer-submenu > :not([hidden]) ~ :not([hidden]),
.footer-block-column_3 .footer-submenu > :not([hidden]) ~ :not([hidden]),
.footer-block-column_4 .footer-submenu > :not([hidden]) ~ :not([hidden]) {
    margin-top: 10px;
}

/*
 * Footer columns stability:
 * - Base CSS used `columns` (multi-column), which can rebalance unpredictably
 *   after locale switch / first paint.
 * - Force deterministic grid layout for all tenants/locales.
 */
footer .footer-mid {
    display: grid !important;
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    gap: calc(32/1920*100rem) !important;
    columns: auto !important;
    column-count: unset !important;
    column-width: auto !important;
}

@media (min-width: 768px) {
    footer .footer-mid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (min-width: 1200px) {
    footer .footer-mid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

footer .footer-mid .footer-block {
    break-inside: auto !important;
    min-width: 0;
}

/* Keep the dynamic CMS footer aligned with the course-management frontend.
 * The content remains configurable per site; these rules only stabilize the
 * logo and the two-column certification layout. */
.theme1-footer .footer-top {
    gap: 1.25rem;
    padding-top: 30px;
    padding-bottom: 30px;
}

.theme1-footer .footer-cert-badges .certification-item {
    align-items: flex-start;
    text-align: left;
}

.theme1-footer .footer-cert-badges .certification-item span {
    line-height: 1.35;
    word-break: break-word;
}

/* News list page: keep full image in frame (no crop). */
.news-list-section .news-item .image.image-full img {
    object-fit: contain;
    background: #f6f6f6;
}

/* News list cell: allow admin to control default thumbnail ratio via thumbnail_config. */
.news-list-section .news-item .image {
    aspect-ratio: var(--news-thumb-ratio, 480 / 322);
}

/* Event list/slider static grid: 4 cards per row on desktop. */
.event-list-section .news-list,
.event-slider-section .news-list {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: calc(32/1920*100rem);
}

@media (min-width: 768px) {
    .event-list-section .news-list,
    .event-slider-section .news-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .event-list-section .news-list,
    .event-slider-section .news-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .event-list-section .news-list,
    .event-slider-section .news-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Event list page: keep uniform 4 items/row on desktop (no featured first card). */
@media (min-width: 1024px) {
    .event-list-product .news-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.event-list-product .news-list > .event-item {
    grid-column: span 1 / span 1;
}

.event-list-product .event-item:first-child {
    grid-column: span 1 / span 1;
}

/* Event list page: card style aligned with product-card look. */
.event-list-product .event-item {
    border: 1px solid rgba(164, 16, 52, 0.15);
    border-bottom-width: 1px;
    border-radius: 14px;
    background: #ffffff;
    height: 100%;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.event-list-product .event-item:hover {
    box-shadow: 0 16px 35px rgba(164, 16, 52, 0.18);
    transform: translateY(-4px);
}

.event-list-product .event-item .image,
.event-slider-section .event-item .image {
    /* tăng thêm ~10% và đồng bộ chiều cao card event giữa list + home */
    aspect-ratio: 480 / 613;
    border-bottom: 1px solid rgba(164, 16, 52, 0.12);
}

.event-list-product .event-item .caption {
    padding: 16px 20px 20px;
    gap: 10px;
}

.event-list-product .event-item .news-title a {
    color: #1f1f1f;
}

.event-list-product .event-item .news-date {
    color: #6b6b6b;
}

.notification-slider-section .swiper-slide {
    height: auto;
}

.notification-slider-section .swiper-slide .notification-item {
    height: 100%;
}

/* Detail header: keep title block width aligned with content and add divider line below meta/share. */
.detail-header-section {
    padding-bottom: 0;
}

.detail-header-section .detail-header-wrap {
    --tw-border-opacity: 1;
    border-bottom-width: 1px;
    border-style: solid;
    border-color: rgb(217 217 217 / var(--tw-border-opacity));
    padding-bottom: calc(12/1920*100rem);
}

/* Event card badges: left = days remaining, right = event status. */
.event-item .event-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    pointer-events: none;
}

.event-item .event-card-badges--inline {
    position: static;
    margin-bottom: 10px;
}

.event-item .event-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
    background: rgba(25, 35, 52, 0.9);
    white-space: nowrap;
}

.event-item .event-badge-right.is-upcoming {
    background: rgba(211, 128, 0, 0.95);
}

.event-item .event-badge-right.is-ongoing {
    background: rgba(22, 140, 83, 0.95);
}

.event-item .event-badge-right.is-ended {
    background: rgba(112, 122, 138, 0.95);
}

@media (max-width: 576px) {
    .event-item .event-card-badges {
        top: 8px;
        left: 8px;
        right: 8px;
    }

    .event-item .event-badge {
        font-size: 11px;
        padding: 4px 8px;
    }
}

.detail-header-section .news-detail-title {
    line-height: calc(48 / 40);
}

.detail-header-section .date-share {
    margin-top: calc(24/1920*100rem);
}

.detail-header-section + .section-large {
    padding-top: calc(24/1920*100rem);
}

@media (min-width: 1200px) {
    .detail-header-section + .section-large {
        padding-top: calc(32/1920*100rem);
    }
}

/* Phase 1: tighten page rhythm for list/detail pages without touching header/footer/base layout. */
.theme1-phase1-nav-section {
    position: static;
    top: auto;
    padding-left: 0;
    padding-right: 0;
    border-bottom: 1px solid var(--theme1-color-border);
}

.theme1-phase1-nav-section .theme1-phase1-nav-container {
    max-width: var(--theme1-content-max);
}

.theme1-phase1-nav-section .theme1-phase1-nav-flex {
    align-items: stretch;
    gap: var(--theme1-space-sm);
}

.theme1-phase1-nav-section::before {
    display: none;
}

.theme1-phase1-nav-section .nav-heading {
    min-width: clamp(9rem, 16vw, 12rem);
    padding: var(--theme1-space-md) 1.125rem;
}

.theme1-phase1-nav-section .nav-list {
    align-items: center;
    min-height: 100%;
}

.theme1-phase1-list-section {
    padding-top: 2.25rem;
}

.theme1-phase1-list-section .container,
.detail-header-section .container,
.theme1-phase1-detail-body-section .container,
.theme1-phase1-detail-attachments .container {
    max-width: var(--theme1-content-max);
}

.theme1-phase1-list-section .site-title {
    margin-bottom: 0;
}

.theme1-phase1-list-section .theme1-phase1-list-grid {
    margin-top: 1.75rem !important;
    gap: var(--theme1-space-lg);
    align-items: stretch;
}

.theme1-phase1-news-list .news-item,
.theme1-phase1-video-list .hub-life-item,
.theme1-phase1-video-list .theme1-card--video {
    height: 100%;
}

.theme1-phase1-video-list .hub-life-item,
.theme1-phase1-video-list .theme1-card--video {
    display: flex;
    flex-direction: column;
}

.theme1-phase1-video-list .hub-life-item .caption,
.theme1-phase1-video-list .theme1-card--video .caption {
    display: flex;
    align-items: flex-start;
    min-height: 6.25rem;
}

.theme1-phase1-video-list .hub-life-item .title,
.theme1-phase1-video-list .theme1-card--video .title,
.theme1-phase1-video-list .theme1-card--video .news-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* Phase 4: cards follow content type, not page type. */
.theme1-card {
    position: relative;
    overflow: hidden;
}

.theme1-card .caption {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.theme1-card .news-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.theme1-card__media-link {
    position: relative;
    display: block;
    height: 100%;
    cursor: pointer;
}

.theme1-card__media-link picture,
.theme1-card__media-link img {
    display: block;
    width: 100%;
    height: 100%;
}

.theme1-card--video .image,
.theme1-card--news .image,
.theme1-card--gallery .image {
    position: relative;
}

.theme1-card--news {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme1-card--news .caption {
    min-height: 6.5rem;
}

.theme1-card--news .news-date {
    color: var(--theme1-color-text-muted);
    font-weight: 500;
    margin-bottom: 0;
}

.theme1-card--news .news-title,
.theme1-card--news .news-title a {
    color: var(--theme1-color-text);
}

.theme1-card--news .news-title {
    line-height: 1.35;
    margin-bottom: 0;
}

.theme1-card--news:hover {
    transform: translateY(-2px);
}

.theme1-card--news:hover .news-title a {
    color: var(--theme1-color-brand);
}

/* Phase 5.1: home news list aligns to news-card rhythm without touching featured home-news2 rules. */
.theme1-phase5-home-news .theme1-phase5-home-news-grid {
    align-items: stretch;
}

.theme1-phase5-home-news .theme1-card--news {
    height: 100%;
}

.theme1-phase5-home-news .theme1-card--news .caption {
    min-height: 5.75rem;
}

.theme1-phase5-home-news .theme1-card--news .news-title {
    line-height: 1.33;
}

.theme1-phase5-home-news .theme1-card--news .news-date {
    font-size: 0.95em;
}

.theme1-phase5-home-news .theme1-phase5-home-news-grid > .theme1-card--lead .news-date,
.theme1-phase5-home-news .theme1-phase5-home-news-grid > .theme1-card--lead .news-title,
.theme1-phase5-home-news .theme1-phase5-home-news-grid > .theme1-card--lead .news-title a,
.theme1-phase5-home-news .theme1-phase5-home-news-grid > .theme1-card--news-featured .news-date,
.theme1-phase5-home-news .theme1-phase5-home-news-grid > .theme1-card--news-featured .news-title,
.theme1-phase5-home-news .theme1-phase5-home-news-grid > .theme1-card--news-featured .news-title a {
    color: #fff;
}

.theme1-phase5-home-news .theme1-phase5-home-news-grid > .theme1-card--lead .news-title,
.theme1-phase5-home-news .theme1-phase5-home-news-grid > .theme1-card--lead .news-title a,
.theme1-phase5-home-news .theme1-phase5-home-news-grid > .theme1-card--news-featured .news-title,
.theme1-phase5-home-news .theme1-phase5-home-news-grid > .theme1-card--news-featured .news-title a {
    font-weight: 700;
}

/* Phase 5.2: news-like slider in HUB 4.0 section uses shared news-card anatomy only. */
.theme1-phase5-home-news-hub40 .swiper-slide {
    height: auto;
}

.theme1-phase5-home-news-hub40 .swiper-slide .theme1-card--news {
    height: 100%;
}

.theme1-phase5-home-news-hub40 .theme1-card--news .caption {
    min-height: 5.75rem;
}

.theme1-phase5-home-news-hub40 .theme1-card--news .news-title {
    line-height: 1.33;
}

.news-related-section .swiper-slide {
    height: auto;
}

.news-related-section .swiper-slide .theme1-card--news {
    height: 100%;
}

.news-related-section .theme1-card--news .caption {
    min-height: 5.75rem;
}

.news-related-section .theme1-card--news .news-title {
    min-height: 2.7em;
    line-height: 1.35;
}

.theme1-card--gallery {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme1-card--video .caption,
.theme1-card--gallery .caption {
    position: relative;
}

.theme1-card--gallery .caption {
    min-height: 6.25rem;
}

.theme1-card--gallery .news-date {
    color: var(--theme1-color-text-muted);
    font-weight: 500;
    margin-bottom: 0;
}

.theme1-card--gallery .news-title,
.theme1-card--gallery .news-title a {
    color: var(--theme1-color-text);
}

.theme1-card--gallery .news-title {
    line-height: 1.35;
    margin-bottom: 0;
}

.theme1-card--gallery:hover {
    transform: translateY(-2px);
}

.theme1-card--gallery:hover .news-title a {
    color: var(--theme1-color-brand);
}

.theme1-card--gallery:hover .theme1-card__gallery-badge {
    background: var(--theme1-color-brand-strong);
}

.theme1-card--video .title a,
.theme1-card--video .news-title a {
    display: block;
}

.theme1-card__play-badge,
.theme1-card__gallery-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    color: #ffffff;
    background: rgba(20, 20, 20, 0.52);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    pointer-events: none;
}

.theme1-card__play-badge {
    font-size: 1rem;
}

.theme1-card__gallery-badge {
    top: auto;
    left: auto;
    right: 1rem;
    bottom: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    transform: none;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    background: rgba(164, 16, 52, 0.92);
}

.theme1-card--video .image::after,
.theme1-card--gallery .image::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    background: linear-gradient(180deg, rgba(15, 15, 15, 0) 0%, rgba(15, 15, 15, 0.28) 100%);
    pointer-events: none;
}

.theme1-card--gallery .caption {
    border-bottom: 2px solid rgba(164, 16, 52, 0.18);
}

@media (min-width: 1200px) {
    .theme1-phase5-home-news .theme1-phase5-home-news-grid > .theme1-card--lead,
    .theme1-phase5-home-news .theme1-phase5-home-news-grid > .theme1-card--news-featured {
        grid-column: span 6 / span 6;
        border-radius: 0;
    }

    .theme1-phase5-home-news .theme1-phase5-home-news-grid > .theme1-card--lead .image,
    .theme1-phase5-home-news .theme1-phase5-home-news-grid > .theme1-card--news-featured .image {
        aspect-ratio: 736 / 484;
    }

    .theme1-phase5-home-news .theme1-phase5-home-news-grid > .theme1-card--lead .caption,
    .theme1-phase5-home-news .theme1-phase5-home-news-grid > .theme1-card--news-featured .caption {
        position: absolute;
        bottom: 0;
        left: 0;
        z-index: 1;
        justify-content: flex-end;
        gap: calc(12 / 1920 * 100rem);
        width: 100%;
        border-width: 0;
        border-radius: 0;
        background: linear-gradient(0, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 76.5%);
        background-color: transparent;
        padding: calc(32 / 1920 * 100rem);
        padding-top: 7.96875rem;
        pointer-events: none;
    }

    .theme1-phase5-home-news .theme1-phase5-home-news-grid > .theme1-card--lead .caption > *,
    .theme1-phase5-home-news .theme1-phase5-home-news-grid > .theme1-card--news-featured .caption > * {
        pointer-events: auto;
    }

    .theme1-phase5-home-news .theme1-phase5-home-news-grid > .theme1-card--lead .news-date,
    .theme1-phase5-home-news .theme1-phase5-home-news-grid > .theme1-card--news-featured .news-date {
        color: rgb(220 220 220 / 1);
    }

    .theme1-phase5-home-news .theme1-phase5-home-news-grid > .theme1-card--lead .news-title,
    .theme1-phase5-home-news .theme1-phase5-home-news-grid > .theme1-card--news-featured .news-title {
        font-size: clamp(12px, calc(20 / 1920 * 100rem), calc(20 / 1920 * 100rem));
        line-height: 1.375;
    }

    .theme1-phase1-news-list .theme1-phase1-list-grid > .theme1-card--lead,
    .theme1-phase1-news-list .theme1-phase1-list-grid > .theme1-card--news-featured {
        grid-column: span 2 / span 2;
        border-radius: 0;
    }

    .theme1-phase1-news-list .theme1-phase1-list-grid > .theme1-card--lead .image,
    .theme1-phase1-news-list .theme1-phase1-list-grid > .theme1-card--news-featured .image {
        aspect-ratio: var(--news-thumb-ratio, 736 / 484);
    }

    .theme1-phase1-news-list .theme1-phase1-list-grid > .theme1-card--lead .caption,
    .theme1-phase1-news-list .theme1-phase1-list-grid > .theme1-card--news-featured .caption {
        position: absolute;
        bottom: 0;
        left: 0;
        z-index: 1;
        justify-content: flex-end;
        gap: calc(12 / 1920 * 100rem);
        width: 100%;
        border-width: 0;
        border-radius: 0;
        background: linear-gradient(0, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 76.5%);
        background-color: transparent;
        padding: calc(32 / 1920 * 100rem);
        padding-top: 7.96875rem;
        pointer-events: none;
    }

    .theme1-phase1-news-list .theme1-phase1-list-grid > .theme1-card--lead .caption > *,
    .theme1-phase1-news-list .theme1-phase1-list-grid > .theme1-card--news-featured .caption > * {
        pointer-events: auto;
    }

    .theme1-phase1-news-list .theme1-phase1-list-grid > .theme1-card--lead .news-date,
    .theme1-phase1-news-list .theme1-phase1-list-grid > .theme1-card--news-featured .news-date {
        color: rgb(220 220 220 / 1);
    }

    .theme1-phase1-news-list .theme1-phase1-list-grid > .theme1-card--lead .news-title,
    .theme1-phase1-news-list .theme1-phase1-list-grid > .theme1-card--lead .news-title a,
    .theme1-phase1-news-list .theme1-phase1-list-grid > .theme1-card--news-featured .news-title,
    .theme1-phase1-news-list .theme1-phase1-list-grid > .theme1-card--news-featured .news-title a {
        color: #fff;
        font-size: clamp(12px, calc(20 / 1920 * 100rem), calc(20 / 1920 * 100rem));
        line-height: 1.375;
    }
}

.detail-header-section {
    padding-top: var(--theme1-space-xl);
}

.detail-header-section .theme1-phase1-detail-header,
.theme1-phase1-detail-body {
    max-width: var(--theme1-content-narrow);
}

.detail-header-section .theme1-phase1-detail-header {
    padding-bottom: var(--theme1-space-md);
}

.detail-header-section .news-detail-title {
    max-width: 52rem;
    margin-bottom: 0;
}

.detail-header-section .theme1-phase1-date-share {
    margin-top: var(--theme1-space-md);
    gap: var(--theme1-space-md);
}

.theme1-phase1-detail-body-section {
    padding-top: var(--theme1-space-lg);
}

.theme1-phase1-detail-body .full-content {
    margin-top: 0;
    padding-top: 0;
    border-top-width: 0;
}

.theme1-phase1-detail-body .thongbaoanh {
    display: inline-block;
    margin: 0 0 var(--theme1-space-md);
}

@media (max-width: 767.98px) {
    .theme1-phase1-nav-section .nav-heading {
        min-width: 0;
    }

    .theme1-phase1-list-section {
        padding-top: var(--theme1-space-lg);
    }

    .theme1-phase1-list-section .theme1-phase1-list-grid {
        margin-top: 1.25rem !important;
        gap: var(--theme1-space-md);
    }

    .theme1-phase1-video-list .hub-life-item .caption,
    .theme1-phase1-video-list .theme1-card--video .caption {
        min-height: 5.25rem;
    }

    .theme1-card--news .caption {
        min-height: 5.75rem;
    }

    .theme1-phase5-home-news .theme1-card--news .caption {
        min-height: 5.25rem;
    }

    .theme1-phase5-home-news-hub40 .theme1-card--news .caption {
        min-height: 5.25rem;
    }

    .theme1-card--gallery .caption {
        min-height: 5.5rem;
    }

    .detail-header-section {
        padding-top: var(--theme1-space-lg);
    }

    .detail-header-section .theme1-phase1-date-share {
        align-items: flex-start;
        flex-direction: column;
    }

    .detail-header-section .social-list ul {
        justify-content: flex-start;
    }

    .theme1-phase1-detail-body-section {
        padding-top: var(--theme1-space-md);
    }
}

/* Home HUB Life media block (video background + CTA buttons) */
.home-hub-life-media .video-container {
    position: relative;
    width: 100%;
    min-height: var(--hub-life-height-mobile, 400px);
    overflow: hidden;
    background: #000;
}

@media (min-width: 768px) {
    .home-hub-life-media .video-container {
        min-height: var(--hub-life-height-desktop, 800px);
    }
}

.home-hub-life-media .video-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, var(--hub-life-overlay-opacity, 0.3));
    z-index: 2;
    pointer-events: none;
}

.home-hub-life-media iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    border: 0;
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 767.98px) {
    .home-hub-life-media iframe {
        width: 177.78vh;
        height: 100vh;
    }
}

.home-hub-life-media .image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.home-hub-life-media .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hub-life-media .container {
    position: relative;
    z-index: 3;
}

.home-hub-life-media .hub-life-side-logo {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: 3;
    width: clamp(140px, 22vw, var(--hub-life-logo-col-width, 280px));
    padding: clamp(16px, 2vw, 36px);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.home-hub-life-media.is-side-logo-left .hub-life-side-logo {
    left: 0;
    right: auto;
}

.home-hub-life-media .hub-life-side-logo img {
    width: 100%;
    max-width: 100%;
    max-height: 78%;
    object-fit: contain;
    opacity: var(--hub-life-logo-opacity, 0.22);
}

.home-hub-life-media .video-content.box-content {
    width: 100%;
    max-width: none;
    min-height: var(--hub-life-height-mobile, 400px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

@media (min-width: 768px) {
    .home-hub-life-media .video-content.box-content {
        min-height: var(--hub-life-height-desktop, 800px);
    }
}

.home-hub-life-media .site-title {
    color: #fff;
}

.home-hub-life-media .button {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: calc(12 / 1920 * 100rem);
}

@media (min-width: 768px) {
    .home-hub-life-media.has-side-logo.is-side-logo-right .container {
        padding-right: calc(clamp(140px, 22vw, var(--hub-life-logo-col-width, 280px)) + clamp(8px, 1vw, 20px));
    }

    .home-hub-life-media.has-side-logo.is-side-logo-left .container {
        padding-left: calc(clamp(140px, 22vw, var(--hub-life-logo-col-width, 280px)) + clamp(8px, 1vw, 20px));
    }
}

.home-hub-life-media.is-pos-left .video-content.box-content {
    align-items: flex-start;
    text-align: left;
}

.home-hub-life-media.is-pos-left .button {
    justify-content: flex-start;
}

.home-hub-life-media.is-pos-right .video-content.box-content {
    align-items: flex-end;
    text-align: right;
}

.home-hub-life-media.is-pos-right .button {
    justify-content: flex-end;
}

@media (max-width: 767.98px) {
    .home-hub-life-media .hub-life-side-logo {
        display: none;
    }
}

/* Lift the floating CTA stack higher so it does not collide with chat widgets. */
.cta-fixed {
    bottom: 8.5rem;
}

.cta-fixed ul > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0.2rem;
}

.cta-fixed li > * {
    width: 2.55rem;
    height: 2.55rem;
    gap: 0.1rem;
    font-size: 0.45rem;
    border-radius: 0.1rem;
}

.cta-fixed li i {
    width: 1rem;
    height: 1rem;
    font-size: 0.9rem;
}

.cta-fixed li img {
    width: 0.95rem;
    height: 0.95rem;
}

@media (max-width: 767.98px) {
    .cta-fixed li > * {
        width: 2.4rem;
        height: 2.4rem;
        font-size: 0.42rem;
    }

    .cta-fixed li i {
        width: 0.95rem;
        height: 0.95rem;
        font-size: 0.85rem;
    }
}

@media (min-width: 1200px) {
    .cta-fixed {
        bottom: 9.5rem;
    }
}

/* Theme1 accessibility quick wins: named controls and larger touch targets. */
header .button-search {
    appearance: none;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

#buttonMenu {
    min-width: 44px;
    min-height: 44px;
}

#theme1-search-submit,
.detail-header-section .social-list a,
footer .social-list a,
.mobile-wrap .menu-toggle,
.swiper-button .button-prev,
.swiper-button .button-next {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.detail-header-section .social-list ul,
footer .social-list ul {
    gap: 0.5rem;
}

.searchbox input {
    min-height: 44px;
}

.cta-fixed li > * {
    min-width: 44px;
    min-height: 44px;
}

.theme1-card__date,
.news-date,
.theme1-section-heading__desc,
.text-muted,
.mobile-wrap .contact-list a span {
    color: #4b5563;
}

.theme1-card__desc,
.theme1-card__summary,
.theme1-card__excerpt,
.theme1-card p,
.caption p,
.footer-info,
.footer-info a,
.footer-menu a,
.copyright,
.copyright a {
    color: #374151;
}

.bg-primary-950 .footer-info,
.bg-primary-950 .footer-info a,
.bg-primary-950 .footer-menu a,
.bg-primary-950 .copyright,
.bg-primary-950 .copyright a {
    color: #f3f4f6;
}

.bg-primary-950 .footer-title {
    color: #ffffff;
}

.theme1-card a,
.news-title a,
.footer-menu a,
.footer-info a,
.detail-header-section .social-list a,
footer .social-list a {
    text-underline-offset: 0.18em;
}

.theme1-card a:focus-visible,
.news-title a:focus-visible,
.footer-menu a:focus-visible,
.footer-info a:focus-visible,
.detail-header-section .social-list a:focus-visible,
footer .social-list a:focus-visible,
#buttonMenu:focus-visible,
header .button-search:focus-visible,
#theme1-search-submit:focus-visible,
.cta-fixed a:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 3px;
}

@media (max-width: 767.98px) {
    header .button-search,
    #buttonMenu,
    #theme1-search-submit,
    .detail-header-section .social-list a,
    footer .social-list a,
    .mobile-wrap .menu-toggle,
    .swiper-button .button-prev,
    .swiper-button .button-next,
    .cta-fixed li > * {
        min-width: 48px;
        min-height: 48px;
    }

    .mobile-wrap .navbar-nav-list a {
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .mobile-wrap .main-menu > li,
    .mobile-wrap .mega-list > li,
    .mobile-wrap .menu-top > li,
    .mobile-wrap .contact-list > li {
        margin-bottom: 0.375rem;
    }
}
