*,
*:before,
*:after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    font-family: "Averta Std CY", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Áp dụng rõ ràng cho body và mọi text element (đảm bảo UA style không thắng) */
body,
h1, h2, h3, h4, h5, h6,
p, a, span, div,
button, input, textarea, select,
.header, .header *,
.footer, .footer * {
    font-family: "Averta Std CY", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.section-content__body .wp-block-image figure.aligncenter,
.section-content__body .wp-block-image .aligncenter {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
}

.section-content__body .wp-block-image figure.aligncenter img,
.section-content__body .wp-block-image .aligncenter img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}.wp-block-image figure {
    text-align: center;
}

.wp-block-image figcaption {
    width: 100%;
    text-align: center !important;
}

.section-content__body .wp-block-image figure.aligncenter figcaption,
.section-content__body .wp-block-image .aligncenter figcaption,
.section-content__body .wp-element-caption {
    text-align: center !important;
}
.section-content__body .wp-block-image figure.aligncenter {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  width: 100% !important;
}

.section-content__body .wp-block-image figure.aligncenter figcaption,
.section-content__body .wp-block-image .wp-element-caption {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
}
html {
    position: relative;
    scroll-behavior: smooth;
    font-size: var(--root-font-size);
    scrollbar-gutter: stable;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.hidden__scrollbar,
body[data-scroll-locked] {
    overflow: hidden !important;
}

h1, h2, h3, h4, h5, h6, p {
    padding: 0;
    margin: 0;
}

a,
a:link,
a:visited {
    display: block;
    text-decoration: none;
    color: inherit;
    /*width: 100%;*/
}

[class*="__breadcrumb"] a,
[class*="__breadcrumb"] a:link,
[class*="__breadcrumb"] a:visited {
    width: auto;
}

section {
    position: relative;
}

img,
picture,
svg,
video {
    display: block;
    max-width: 100%;
}

svg {
    width: 1rem;
    height: 1rem;
}

input,
textarea,
select {
    border: none;
    background-color: transparent;
    outline: none;
    font-family: inherit;
}

button {
    cursor: pointer;
    display: flex;
    background-color: transparent;
    outline: none;
    border: 0;
    font-family: inherit;
}

::-webkit-scrollbar {
    display: none;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
    cursor: grabbing;
}

/* ===== Helper classes ===== */
.my-container {
    width: 100%;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

@media screen and (max-width: 768px) {
    .my-container {
        padding-left: var(--container-padding-mobile) !important;
        padding-right: var(--container-padding-mobile) !important;
    }
}

.text-line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.none-pc {
    display: none !important;
}

@media (max-width: 640px) {
    .none-mobile {
        display: none !important;
    }
    .none-pc {
        display: flex !important;
    }
}
