/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/


/* Dự án section: ngăn tab switching gây CLS */
.xc-du-an-tabs .tab-panels {
    min-height: 400px;
    contain: content;
}


/* ==========================================================================
   xc-post-progress — Reading progress bar (sticky top)
   ========================================================================== */

.xc-post-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: #e8e8e8;
    z-index: 9999;
    overflow: hidden;
}

.xc-post-progress__bar {
    height: 100%;
    width: 0%;
    background-color: #276ae6;
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
    will-change: width;
}

/* ==========================================================================
   xc-lightbox — Lightgallery customization (Maison Décor style)
   ========================================================================== */

/* Ảnh trong bài có Lightbox: hiệu ứng hover */
img.xc-lightbox-img {
    cursor: zoom-in !important;
    transition: opacity 0.2s ease;
}

img.xc-lightbox-img:hover {
    opacity: 0.9;
}

/* Caption text */
.xc-lg-caption {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    margin: 0;
    padding: 0 20px;
}

/* Thumbnail strip — active border màu brand */
.lg-thumb-item.active,
.lg-thumb-item:hover {
    border-color: #276ae6 !important;
}

/* Nút prev/next — tông tối */
.lg-prev::after,
.lg-next::before {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 2px;
}

/* Counter */
.lg-counter {
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   xc-popup-form — Contact form popup (BEM, CF7-ready)
   ========================================================================== */

/* — Block — */
.xc-popup-form {
    --xc-form-accent: #000;
    /* màu accent: heading bg, button, deco */
    --xc-form-second: #b89a6a;
    /* màu phụ: gold / warm tone */
    --xc-form-radius: 6px;
    --xc-form-border: #e5e5e5;

    position: relative;
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
    border: 1px solid var(--xc-form-border);
    border-radius: var(--xc-form-radius);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
    background: #fff;
    overflow: hidden;
    /* clip deco spans */
}

/* — Header — */
.xc-popup-form__header {
    background-color: var(--xc-form-accent);
    padding: 18px 24px;
    text-align: center;
    border-radius: var(--xc-form-radius) var(--xc-form-radius) 0 0;
}

.xc-popup-form__title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
}

/* — Body — */
.xc-popup-form__body {
    padding: 24px;
}

/* — CSS variables: định nghĩa ở __form để hoạt động cả khi dùng trực tiếp trong lightbox — */
.xc-popup-form__form {
    --xc-form-accent: #000;
    --xc-form-second: #b89a6a;
    --xc-form-border: #e5e5e5;

    display: block;
}

/* — CF7 reset — */
.xc-popup-form__form .wpcf7 {
    margin: 0;
}

/* CF7 mặc định thêm <p> bọc ngoài mỗi field, reset margin */
.xc-popup-form__form p {
    margin: 0;
    padding: 0;
}

.xc-popup-form__form br {
    display: none;
}

/* — Field wrapper: border ở đây, input bên trong không có border (giống bản gốc) — */
.xc-popup-form__field {
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 12px;
    border: 1px solid var(--xc-form-border);
    border-radius: 4px;
    background-color: #fff;
    transition: border-color 0.2s ease;
    overflow: hidden;
}

.xc-popup-form__field:first-child {
    margin-top: 0;
}

/* Highlight khi focus bất kỳ input nào bên trong */
.xc-popup-form__field:focus-within {
    border-color: var(--xc-form-accent);
}

/* Required asterisk — nằm tự nhiên trong flex row */
.xc-popup-form__field-required {
    flex-shrink: 0;
    padding-right: 12px;
    color: #a30000;
    font-size: 14px;
    line-height: 1;
}

/* Note */
.xc-popup-form__note {
    font-size: 12px;
    color: #a30000;
    margin-top: 10px;
    margin-bottom: 8px;
}

/* Submit wrapper */
.xc-popup-form__submit-wrap {
    margin-top: 8px;
}

/* — Inputs bên trong field: NO border, NO background, chỉ padding — */
.xc-popup-form__form .wpcf7-text,
.xc-popup-form__form .wpcf7-tel,
.xc-popup-form__form .wpcf7-email,
.xc-popup-form__form .wpcf7-select,
.xc-popup-form__form .wpcf7-textarea {
    flex: 1;
    display: block;
    width: 100%;
    padding: 12px 14px !important;
    font-size: 14px !important;
    line-height: 1.5;
    color: #333;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    box-sizing: border-box;
    height: auto !important;
    -webkit-appearance: none;
    appearance: none;
}

.xc-popup-form__form .wpcf7-text:focus,
.xc-popup-form__form .wpcf7-tel:focus,
.xc-popup-form__form .wpcf7-email:focus,
.xc-popup-form__form .wpcf7-select:focus,
.xc-popup-form__form .wpcf7-textarea:focus {
    background: #f5f5f5 !important;
    box-shadow: none !important;
    outline: none !important;
}

.xc-popup-form__form .wpcf7-text::placeholder,
.xc-popup-form__form .wpcf7-tel::placeholder,
.xc-popup-form__form .wpcf7-email::placeholder,
.xc-popup-form__form .wpcf7-textarea::placeholder {
    color: #555555;
    font-size: 13px;
}

/* CF7 control-wrap: chiếm toàn bộ chiều rộng trong flex */
.xc-popup-form__field .wpcf7-form-control-wrap {
    display: block;
    flex: 1;
    min-width: 0;
}

/* Select: custom arrow, không border */
.xc-popup-form__form .wpcf7-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px !important;
    padding-right: 32px !important;
    cursor: pointer;
}

/* Textarea: wrapper không flex vì textarea cao hơn */
.xc-popup-form__field:has(.wpcf7-textarea) {
    align-items: flex-start;
}

.xc-popup-form__form .wpcf7-textarea {
    resize: vertical;
    min-height: 88px;
}

/* Submit button — override Flatsome's input[type=submit] */
.xc-popup-form__submit-wrap input[type="submit"],
.xc-popup-form__form .wpcf7-submit {
    display: block !important;
    width: 100% !important;
    padding: 13px 20px !important;
    font-size: 14px !important;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff !important;
    background-color: var(--xc-form-accent) !important;
    border: none !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    cursor: pointer;
    line-height: 1.4 !important;
    height: auto !important;
    min-height: 0 !important;
    transition: background 0.25s ease, letter-spacing 0.25s ease;
    margin: 0 !important;
}

.xc-popup-form__submit-wrap input[type="submit"]:hover,
.xc-popup-form__form .wpcf7-submit:hover {
    background-color: var(--xc-form-second) !important;
    letter-spacing: 1.5px;
    box-shadow: none !important;
}

/* Validation */
.xc-popup-form__form .wpcf7-not-valid-tip {
    font-size: 11px;
    color: #cc0000;
    margin-top: 3px;
    display: block;
}

.xc-popup-form__form .wpcf7-response-output {
    margin: 12px 0 0;
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 4px;
    border: none !important;
}

.xc-popup-form__form .wpcf7-mail-sent-ok {
    background: #e8f5e9;
    color: #2e7d32;
}

.xc-popup-form__form .wpcf7-mail-sent-ng,
.xc-popup-form__form .wpcf7-spam-blocked {
    background: #ffebee;
    color: #c62828;
}

/* — Deco: animated border trên 4 cạnh (chạy tuần tự 4s/vòng) — */
.xc-popup-form__deco {
    position: absolute;
    background-color: var(--xc-form-second);
    pointer-events: none;
    z-index: 0;
}

/* Top: left → right */
.xc-popup-form__deco--top {
    height: 2px;
    width: 0;
    top: 0;
    left: 0;
    animation: xc-popup-deco-top 4s infinite;
}

/* Right: top → bottom */
.xc-popup-form__deco--right {
    width: 2px;
    height: 0;
    top: 0;
    right: 0;
    animation: xc-popup-deco-right 4s infinite;
}

/* Bottom: right → left */
.xc-popup-form__deco--bottom {
    height: 2px;
    width: 0;
    bottom: 0;
    right: 0;
    animation: xc-popup-deco-bottom 4s infinite;
}

/* Left: bottom → top */
.xc-popup-form__deco--left {
    width: 2px;
    height: 0;
    bottom: 0;
    left: 0;
    animation: xc-popup-deco-left 4s infinite;
}

@keyframes xc-popup-deco-top {
    0% {
        width: 0;
    }

    25% {
        width: 100%;
    }

    100% {
        width: 100%;
    }
}

@keyframes xc-popup-deco-right {

    0%,
    25% {
        height: 0;
    }

    50% {
        height: 100%;
    }

    100% {
        height: 100%;
    }
}

@keyframes xc-popup-deco-bottom {

    0%,
    50% {
        width: 0;
    }

    75% {
        width: 100%;
    }

    100% {
        width: 100%;
    }
}

@keyframes xc-popup-deco-left {

    0%,
    75% {
        height: 0;
    }

    100% {
        height: 100%;
    }
}

/* — Responsive — */
@media (max-width: 600px) {
    .xc-popup-form {
        max-width: 92%;
    }

    .xc-popup-form__title {
        font-size: 15px;
        letter-spacing: 1px;
    }

    .xc-popup-form__body {
        padding: 16px;
    }
}

/* ==========================================================================
   xc-section-title — Tiêu đề section (viết hoa, căn giữa, deco underline)
   ========================================================================== */

.xc-section-title {
    text-align: center;
    text-transform: uppercase;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.4;
    margin: 0 0 40px;
    padding-bottom: 16px;
    position: relative;
}

/* Thanh gạch ngắn căn giữa bên dưới */
.xc-section-title::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 2px;
    background-color: #000;
}

@media (max-width: 767px) {
    .xc-section-title {
        font-size: 17px;
        letter-spacing: 1px;
    }
}

/* ==========================================================================
   xc-home-about — About section (3 col: image | text card | text card)
   ========================================================================== */

/* Flex chain: col → col-inner → box → box-text → box-text-inner
   Mục tiêu: tất cả box cao bằng nhau, button luôn cùng vị trí đáy */

.xc-home-about .col-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Shared box: border + shadow + radius, stretch cao theo row */
.xc-home-about .box {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.10);
    overflow: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 245px;
}

/* ——— Col 1: chỉ ảnh, ẩn text overlay ——— */
.xc-home-about__box-no-text .box-text {
    display: none;
}

.xc-home-about__box-no-text .box-image {
    flex: 1;
    min-height: 245px;
}

.xc-home-about__box-no-text .box-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ——— Col 2 & 3: ẩn ảnh, chỉ text + button ——— */
.xc-home-about__box-no-img .box-image {
    display: none;
}

/* box-text chiếm toàn bộ chiều cao còn lại */
.xc-home-about__box-no-img .box-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left !important;
    padding: 20px 18px 18px !important;
}

/* box-text-inner cũng flex column để button dồn xuống */
.xc-home-about__box-no-img .box-text-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
}

.xc-home-about__box-no-img h3,
.xc-home-about__box-no-img h4 {
    color: #111;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 10px;
    flex-shrink: 0;
}

/* p cố định 4 dòng — đủ để nội dung tương đương nhau */
.xc-home-about__box-no-img p {
    font-size: 13.5px;
    line-height: 1.75;
    color: #555;
    margin-bottom: 0;
    flex-shrink: 0;

    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ——— Button: margin-top auto đẩy xuống đáy ——— */
.xc-home-about__btn-xem {
    display: block !important;
    width: fit-content;
    margin: auto auto 0 !important;
    /* top: auto = đẩy xuống đáy; left/right: auto = căn giữa */
    padding: 0 24px !important;
    height: 36px;
    line-height: 34px !important;
    font-size: 12px !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #111 !important;
    background: #fff !important;
    border: 1px solid #111 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    transition: background 0.25s ease, color 0.25s ease;
    text-align: center;
    min-height: 0 !important;
    flex-shrink: 0;
    margin-top: 16px !important;
}

.xc-home-about__btn-xem:hover {
    background: #111 !important;
    color: #fff !important;
    box-shadow: none !important;
}

/* ——— Responsive ——— */
@media (max-width: 849px) {
    .xc-home-about .box {
        min-height: 200px;
    }
}

@media (max-width: 549px) {
    .xc-home-about__btn-xem {
        margin-top: 12px !important;
    }
}

/* ==========================================================================
   xc-carousel — Row Flickity carousel (row-slider-image-box)
   ========================================================================== */

/* Khoảng trống phía dưới viewport để dots không đè lên video */
.row-slider-image-box {
    padding-bottom: 28px !important;
}

/* Cursor grab — báo hiệu có thể kéo bằng chuột */
.row-slider-image-box .flickity-viewport {
    cursor: grab;
}

.row-slider-image-box .flickity-viewport.is-pointer-down {
    cursor: grabbing;
}

/* Dots: đẩy xuống, cách video */
.row-slider-image-box .flickity-page-dots {
    bottom: 6px;
}

.row-slider-image-box .flickity-page-dots .dot {
    background: #000;
    opacity: 0.25;
}

.row-slider-image-box .flickity-page-dots .dot.is-selected {
    opacity: 1;
}

/* Video wrapper: border-radius + clip iframe bên trong */
.xc-video-khach-hang {
    border-radius: 8px !important;
    overflow: hidden !important;
}

.xc-video-khach-hang iframe {
    border-radius: 8px;
    display: block;
}

/* ==========================================================================
   xc-float-contact — Floating contact buttons (bottom-right fixed)
   ========================================================================== */

.xc-float-contact {
    position: fixed;
    bottom: 60px;
    right: 10px;
    text-align: center;
    z-index: 999;
    width: 60px;
}

.xc-float-contact__item {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 10px;
    margin-bottom: 10px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .15), 0 4px 15px rgba(0, 0, 0, .13);
    border: 2px solid #fff !important;
}

.xc-float-contact__item a {
    display: block;
    text-decoration: none;
    outline: none;
    color: #fff;
    text-align: center;
}

.xc-float-contact__item p {
    margin: 0;
    padding: 0;
    display: contents;
}

.xc-float-contact__item br {
    display: none;
}

.xc-float-contact__icon {
    display: inline-block;
    width: 50px;
    height: 50px;
    border-radius: 100%;
    line-height: 50px;
    font-size: 22px;
}

/* — Zalo icon (SVG) — */
.xc-float-contact__icon--zalo {
    background: url('/wp-content/uploads/2026/03/widget_icon_zalo.svg') no-repeat center / 100%;
}

/* — Messenger icon (SVG) — */
.xc-float-contact__icon--messenger {
    background: url('/wp-content/uploads/2026/03/widget_icon_messenger.svg') no-repeat center / 100%;
}

/* — Phone — */
.xc-float-contact__item--phone .xc-float-contact__icon {
    background: #ed1c24;
    color: #fff;
}

/* — Email — */
.xc-float-contact__item--email .xc-float-contact__icon {
    background: #76b51b;
    color: #fff;
    line-height: 44px;
}

/* — Label tooltip — */
.xc-float-contact__label {
    position: absolute;
    top: 5px;
    right: -300px;
    width: 200px;
    padding: 10px;
    font-size: 13px;
    line-height: 18px;
    z-index: 1;
    background-color: #ffd145;
    color: #111;
    opacity: 0;
    transition: all 0.3s ease-out;
    border-radius: 3px 0 0 3px;
}

.xc-float-contact__item:hover .xc-float-contact__label {
    right: 68px;
    opacity: 1;
}

.xc-float-contact__label::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 50%;
    border: 8px solid transparent;
    border-left-color: #ffd145;
    margin-top: -8px;
    pointer-events: none;
}

/* ==========================================================================
   xc-contact-list — Contact info list (ul/li)
   ========================================================================== */

.xc-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.xc-contact-list br {
    display: none;
}

.xc-contact-list__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-left: 0 !important;
    margin-bottom: 16px; /* Tăng từ 8px lên 16px để dãn khoảng cách Touch Targets theo chuẩn Google */
    font-size: 14px;
    line-height: 1.6;
}

.xc-contact-list__icon {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    margin-top: 3px;
    color: inherit;
}

.xc-contact-list__text {
    flex: 1;
}

.xc-contact-list__link {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    padding: 6px 0; /* Tăng không gian vùng chạm cho ngón tay (Touch Targets) */
}

.xc-contact-list__link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   xc-contact-form — Contact form (placeholder-only, no labels)
   ========================================================================== */

.xc-contact-form {
    width: 100%;
    max-width: 100%;
}

.xc-contact-form br {
    display: none;
}

.xc-contact-form__field {
    margin-bottom: 16px;
}

.xc-contact-form__input {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background: transparent;
    border: none;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
    outline: none;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.xc-contact-form__input:focus {
    border-bottom-color: #000;
}

.xc-contact-form__input::placeholder {
    color: #999;
}

.xc-contact-form__input--textarea {
    resize: vertical;
    min-height: 100px;
}

.xc-contact-form__submit {
    display: inline-block;
    padding: 12px 40px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    background: #000;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
}

.xc-contact-form__submit:hover {
    opacity: 0.85;
}

.xc-contact-form__submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.xc-contact-form__status {
    margin-top: 12px;
    padding: 10px;
    font-size: 14px;
    border-radius: 3px;
}

.xc-contact-form__status--success {
    background: #e8f5e9;
    color: #2e7d32;
}

.xc-contact-form__status--error {
    background: #ffebee;
    color: #c62828;
}

/* ==========================================================================
   xc-lang-switch — Language switcher (Polylang + Flatsome)
   ========================================================================== */

/* — Hide default Flatsome language dropdown — */
.header-language-dropdown {
    display: none !important;
}

/* — xc-lang-switch — */
.xc-lang-switch {
    display: inline-block;
    position: relative;
    font-size: 13px;
    line-height: 21px;
    z-index: 210;
}

.xc-lang-switch__active {
    display: block;
    padding: 6px 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    background: #fff;
    color: #999;
    text-transform: uppercase;
    font-weight: 400;
    text-decoration: none !important;
    transition: border-radius 0.15s ease;
    cursor: pointer;
}

.xc-lang-switch__active:hover {
    text-decoration: none !important;
    color: #444;
}

.xc-lang-switch__icon {
    font-size: 14px;
    margin-left: 5px;
    vertical-align: middle;
}

/* — Dropdown — */
.xc-lang-switch__dropdown {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-top: 0;
    border-radius: 0 0 5px 5px;
    overflow: hidden;
    z-index: 205;
}

.xc-lang-switch__dropdown-item {
    margin: 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.xc-lang-switch__dropdown-item:last-child {
    border-bottom: 0;
}

.xc-lang-switch__dropdown-item a {
    display: block;
    text-align: center;
    padding: 6px 0;
    font-size: 12px;
    color: #444;
    text-transform: uppercase;
    text-decoration: none !important;
    opacity: 0.75;
}

.xc-lang-switch__dropdown-item a:hover {
    opacity: 1;
    text-decoration: none !important;
}

/* — Hover open — */
.xc-lang-switch:hover .xc-lang-switch__active {
    border-radius: 5px 5px 0 0;
    border-bottom-color: transparent;
}

.xc-lang-switch:hover .xc-lang-switch__dropdown {
    display: block;
}

/* ==========================================================================
   xc-footer — Footer section
   ========================================================================== */

.xc-footer {
    background-color: #FCFCFC !important;
    color: #000 !important;
}

.xc-footer .is-divider {
    max-width: 100%;
    height: 2px;
    background-color: #000;
    margin: 0;
}

.xc-footer__logo {
    max-width: 180px;
}

.xc-footer a {
    color: #000;
}

.xc-footer a:hover {
    color: rgba(0, 0, 0, 0.7);
}

/* — Social follow icons — */
.xc-footer__follow {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.xc-footer__follow .button.icon {
    color: #000 !important;
    border-color: #000 !important;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    line-height: 40px;
    font-size: 0.85em;
    margin: 0;
    padding: 0;
}

.xc-footer__follow .button.icon:hover {
    color: #fff !important;
}

.xc-footer__follow .button.facebook:hover {
    background-color: #3a589d !important;
    border-color: #3a589d !important;
}

.xc-footer__follow .button.instagram:hover {
    background-color: #e1306c !important;
    border-color: #e1306c !important;
}

.xc-footer__follow .button.twitter:hover {
    background-color: #2478ba !important;
    border-color: #2478ba !important;
}

.xc-footer__follow .button.email:hover {
    background-color: #111 !important;
    border-color: #111 !important;
}

/* ==========================================================================
   xc-contact-form — Contact form styling
   ========================================================================== */

.xc-contact-form__submit {
    background-color: #000 !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 40px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.xc-contact-form__submit:hover {
    opacity: 0.8;
}

/* ==========================================================================
   xc-projects — Projects grid (archive + shortcode)
   ========================================================================== */

/* ==========================================================================
   xc-hero — Full-viewport hero slider (header overlays, like maison-decor.vn)
   ========================================================================== */



.xc-hero__btn-du-an {
    background-color: #000 !important;
    color: #fff !important;
    border: none !important;
    width: 100%;
    margin: 0 !important;
    border-radius: 0 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 13px;
    padding: 10px 20px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    line-height: 1;
}

.xc-hero__btn-du-an i {
    font-size: 14px;
    line-height: 1;
}

.row-scroll-du-an .col-inner {
    padding: 0 !important;
}

/* ==========================================================================
   xc-projects — Projects grid (archive + shortcode)
   ========================================================================== */

.xc-projects {
    display: grid;
    grid-template-columns: repeat(var(--xc-projects-cols, 4), 1fr);
    gap: var(--xc-projects-gap, 4px);
    width: 100%;
    transition: opacity 0.3s ease;
}

.xc-archive-projects__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    width: 100%;
}

.xc-projects__item {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: var(--xc-projects-ratio, 1);
    text-decoration: none !important;
    color: #fff;
}

.xc-projects__image {
    width: 100%;
    height: 100%;
}

.xc-projects__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;

}

.xc-projects__item:hover .xc-projects__image img {
    transform: scale(1.05);

}

.xc-projects__placeholder {
    width: 100%;
    height: 100%;
    background: #e0e0e0;
}

/* Overlay: title at bottom with black bg (like maison-decor.vn) */
.xc-projects__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    padding: 12px 15px;
    text-align: center;
    transform: translateY(100%);
}

.xc-projects__item:hover .xc-projects__overlay {
    opacity: 1;
    transform: translateY(0);
}

.xc-projects__title {
    font-family: "Open Sans", Arial, Tahoma, sans-serif;
    font-style: normal;
    font-weight: 400;
    color: rgb(255, 255, 255);
    font-size: 15px;
    line-height: 40px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.xc-archive-projects__pagination,
.xc-pagination {
    display: block;
    margin: 20px 0;
    padding: 0;
    text-align: center;
}

.xc-archive-projects__pagination ul,
.xc-pagination ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    gap: 0;
}

.xc-archive-projects__pagination li,
.xc-pagination li {
    margin: 0;
}

.xc-archive-projects__pagination a,
.xc-archive-projects__pagination span,
.xc-pagination a,
.xc-pagination span {
    background: #fff;
    color: #333;
    display: inline-block;
    margin: 3px 2px 3px 0;
    padding: 4px 10px;
    text-decoration: none !important;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
    line-height: 1.5;
}

.xc-archive-projects__pagination a:hover,
.xc-pagination a:hover {
    border-color: #000;
    background: #000;
    color: #fff;
}

.xc-archive-projects__pagination .current,
.xc-pagination .current {
    background: #000;
    color: #fff;
    border-color: #000;
}

.xc-archive-projects__pagination .disabled,
.xc-pagination .disabled {
    color: #999;
    cursor: default;
}

#xc-du-an-container {
    transition: opacity 0.3s ease;
}

/* — Archive page header — */
.xc-archive-projects__header {
    padding: 40px 0 30px;
    text-align: center;
}

.xc-archive-projects__heading {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}

.xc-archive-projects__desc {
    margin-top: 10px;
    color: #666;
}

/* — Filter tabs (xc-tab-du-an) — */
.xc-tab-du-an {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 0;
}

.xc-tab-du-an__wrapper {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.xc-tab-du-an__list {
    display: inline-flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
}

@media (max-width: 849px) {
    .xc-tab-du-an__wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        text-align: left;
    }

    .xc-tab-du-an__list {
        display: flex;
    }
}

.xc-tab-du-an__item {
    margin: 0 !important;
}

.xc-tab-du-an__link {
    display: block;
    padding: 14px 25px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #858585;
    text-decoration: none !important;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.xc-tab-du-an__link::after {
    content: "";
    display: none;
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background: #000;
}

.xc-tab-du-an__link:hover {
    color: #000;
    text-decoration: none !important;
}

.xc-tab-du-an__item--active .xc-tab-du-an__link {
    color: #000;
}

.xc-tab-du-an__item--active .xc-tab-du-an__link::after {
    display: block;
}

/* — Single project page — */
.xc-single-project {
    padding: 30px 0 60px;
}

.xc-single-project__breadcrumb {
    font-size: 13px;
    color: #999;
    margin-bottom: 20px;
}

.xc-single-project__breadcrumb a {
    color: #666;
    text-decoration: none;
}

.xc-single-project__breadcrumb a:hover {
    color: #000;
}

.xc-single-project__breadcrumb i {
    margin-right: 4px;
    font-size: 12px;
}

.xc-single-project__breadcrumb-sep {
    margin: 0 8px;
    color: #ccc;
}

.xc-single-project__title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 25px;
    text-align: center;
}

.xc-single-project__content img {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}


/* ==========================================================================
   Responsive
   ========================================================================== */

.absolute-footer {
    display: none;
}

.xc-footer__follow {
    text-align: center !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.xc-footer__follow .icon.circle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

@media only screen and (max-width: 48em) {
    /*************** ADD MOBILE ONLY CSS HERE  ***************/

    /* Hide float-contact tooltips on mobile */
    .xc-float-contact__item:hover .xc-float-contact__label {
        display: none !important;
    }

    /* Projects grid: 2 cols on tablet, 1 on small mobile */
    .xc-projects,
    .xc-archive-projects__grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media only screen and (max-width: 30em) {

    .xc-projects,
    .xc-archive-projects__grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   p-y-kien__row-lien-he - Liên hệ Row
   ========================================================================== */
.p-y-kien__row-lien-he {
    background-color: #000 !important;
    margin-bottom: 0 !important;
    /* padding: 0 !important; có hay không tuỳ theme nhưng thường row đã padding:0 mặc định rồi */
}

/* Make image stick to the right edge completely without any gap inside the row */
.p-y-kien__row-lien-he>.col:last-child {
    padding: 0 !important;
    margin-bottom: 0 !important;
}

/* Ensure the image fills the 100% height of its column */
.p-y-kien__row-lien-he>.col:last-child .col-inner,
.p-y-kien__row-lien-he>.col:last-child .img,
.p-y-kien__row-lien-he>.col:last-child .img-inner {
    height: 100% !important;
}

.p-y-kien__row-lien-he>.col:last-child img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Keep padding for the first column (Text) */
.p-y-kien__row-lien-he>.col:first-child {
    padding: 40px 30px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.p-y-kien__row-lien-he .text * {
    color: #ff9800 !important;
}

.p-y-kien__row-lien-he .text {
    color: #ff9800 !important;
}

/* ==========================================================================
   Form Liên Hệ TRONG POPUP (Đơn giản, Nền đen, Viền bo góc nhẹ)
   ========================================================================== */

/* Nền popup màu trắng */
#xc-popup {
    background-color: #fff !important;
    position: relative;
    /* Để nút close nằm đè lên */
    overflow: visible !important;
    border-radius: 12px !important;
}

#xc-popup .xc-popup-form__form {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Reset wrapper phức tạp cũ, cho nó trong suốt, không viền */
#xc-popup .xc-popup-form__field {
    display: block !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin-bottom: 15px !important;
}

#xc-popup .xc-popup-form__field-required {
    display: none !important;
}

/* Áp dụng CSS trực tiếp thẳng vào input (đơn giản, dễ nhìn, bo góc nhẹ) */
#xc-popup .xc-popup-form__form input:not([type="submit"]),
#xc-popup .xc-popup-form__form select,
#xc-popup .xc-popup-form__form textarea {
    display: block !important;
    width: 100% !important;
    color: #000 !important;
    background-color: #fff !important;
    /* Input nền trắng */
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    /* Bo góc nhẹ */
    padding: 12px 16px !important;
    font-size: 15px !important;
    box-shadow: none !important;
    height: auto !important;
}

#xc-popup .xc-popup-form__form input:focus,
#xc-popup .xc-popup-form__form select:focus,
#xc-popup .xc-popup-form__form textarea:focus {
    border-color: #ffc107 !important;
    /* Viền vàng khi nhấp vào */
    outline: none !important;
    background-color: #fff !important;
}

#xc-popup .xc-popup-form__form input::placeholder,
#xc-popup .xc-popup-form__form textarea::placeholder {
    color: #888 !important;
}

/* Select custom arrow */
#xc-popup .xc-popup-form__form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23aaa' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    padding-right: 35px !important;
}

/* Bọc chứa nút Submit để dễ căn giữa tuyệt đối */
#xc-popup .xc-popup-form__submit-wrap {
    text-align: center !important;
    margin-top: 20px !important;
    width: 100% !important;
}

#xc-popup .xc-popup-form__submit-wrap p {
    margin: 0 !important;
    padding: 0 !important;
    position: relative;
    display: block !important;
}

/* Ẩn spinner ẩn khỏi Flex flow tránh đẩy lệch nút */
#xc-popup .wpcf7-spinner {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    margin: 0 !important;
    right: 0 !important;
}

/* Nút Submit */
#xc-popup .xc-popup-form__form .wpcf7-submit {
    display: inline-block !important;
    margin: 0 auto !important;
    /* Giao việc căn giữa cho text-align: center của cha */
    width: auto !important;
    min-width: 200px !important;
    background-color: #ffc107 !important;
    /* Màu vàng */
    color: #000 !important;
    border-radius: 99px !important;
    /* Tròn 2 đầu */
    padding: 12px 45px 12px 25px !important;
    font-size: 15px !important;
    font-weight: bold;
    margin: 0 !important;
    transition: background 0.3s ease !important;

    /* Icon Máy bay (đen) */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' fill='%23000000'%3E%3Cpath d='M498.1 5.6c10.1 7 15.4 19.1 13.5 31.2l-64 416c-1.5 9.7-7.4 18.2-16 23s-18.9 5.4-28 1.6L284 427.7l-68.5 74.1c-8.9 9.7-22.9 12.9-35.2 8.1S160 493.2 160 480V396.4c0-4 1.5-7.8 4.2-10.7L331.8 202.8c5.8-6.3 5.6-16-.4-22s-15.7-6.4-22-.7L106 360.8 17.7 316.6C7.1 311.3 .3 300.7 0 288.9s5.9-22.8 16.1-28.7l448-256c10.7-6.1 23.9-5.5 34 1.4z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 20px center !important;
    background-size: 15px !important;
}

#xc-popup .xc-popup-form__form .wpcf7-submit:hover {
    background-color: #e0a800 !important;
}

#xc-popup .xc-popup-form__note {
    text-align: center !important;
    color: #888 !important;
    margin-top: 10px !important;
}

/* NÚT CLOSE POPUP HÌNH TRÒN ĐEN ĐẨY LÊN GÓC */
#xc-popup .mfp-close,
.mfp-content:has(#xc-popup) .mfp-close {
    background-color: #000 !important;
    /* Nền đen */
    color: #fff !important;
    border-radius: 50% !important;
    /* Bo tròn hoàn toàn */
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    /* Căn giữa dấu X */
    text-align: center !important;
    position: absolute !important;
    z-index: 9999 !important;
    top: -18px !important;
    /* Đẩy lên trên popup */
    right: -18px !important;
    /* Đẩy ra lề phải */
    opacity: 1 !important;
    font-size: 26px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: background 0.2s ease, transform 0.2s ease !important;
}

#xc-popup .mfp-close:hover,
.mfp-content:has(#xc-popup) .mfp-close:hover {
    background-color: #333 !important;
    transform: scale(1.1) !important;
}

/* Mobile responsive padding */
@media (max-width: 849px) {
    .p-y-kien__row-lien-he>.col:first-child {
        padding: 30px 15px !important;
    }
}

/* Easy Table of Contents — tách khỏi ảnh phía trên */
#ez-toc-container {
    margin-top: 30px !important;
    margin-bottom: 20px !important;
}

/* Ẩn box-text trong gallery hoạt động */
.xc-hoat-dong .box-text {
    display: none !important;
}

/* =========================================================================
   GTV-STYLE BLOG PAGE
   ========================================================================= */
.gtv-blog-hero {
    position: relative;
    padding-bottom: 50px;
}

.gtv-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
    /* Gradient giống GTV SEO: Xanh dương sang Tím */
    background: linear-gradient(135deg, #1C64F2 0%, #8b5cf6 100%);
    z-index: 1;
}

.gtv-hero-content {
    padding-top: 60px;
    padding-bottom: 60px;
}

.gtv-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.gtv-hero-subtitle {
    font-size: 1.1rem;
    color: #f1f5f9;
    max-width: 800px;
    margin: 0 auto 30px;
}

.gtv-hero-search .searchform {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 50px;
    padding: 5px 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gtv-hero-search .search-field {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    font-size: 1rem;
    padding-left: 10px;
}

.gtv-hero-search .gtv-search-btn {
    border-radius: 50px;
    background: #000;
    color: #fff;
}

/* Hero Cards */
.gtv-hero-categories .card {
    border-radius: 16px;
    background-color: #fff;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* Nổi bật bóng đổ */
}

.gtv-hero-categories .cat-col {
    padding-left: 20px;
    padding-right: 20px;
}

.border-right-col {
    border-right: 1px solid #e2e8f0;
}

.border-right-col:last-child {
    border-right: none;
}

.cat-pill h3,
.cat-pill h3 a {
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid #1C64F2;
    border-radius: 50px;
    font-size: 1.1rem;
    color: #1C64F2;
    margin: 0;
    transition: all 0.3s ease;
}

.cat-pill h3 a:hover {
    background: #1C64F2;
    color: #fff;
}

.cat-count {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 10px;
}

.cat-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cat-list li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    color: #334155;
}

.cat-list li a {
    color: #334155;
}

.cat-list li a:hover {
    color: #f43f5e;
}

/* Feature Posts Overlay */
.gtv-feat-small-list {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    gap: 20px;
}

.gtv-feat-small-list .small-card {
    margin-bottom: 20px !important;
    height: 100%;
}

.gtv-feat-small-list .small-card:last-child {
    margin-bottom: 0 !important;
}

.gtv-feat-card.large-card:hover .card-img {
    transform: scale(1.03);
    transition: transform 0.4s ease;
}

.gtv-feat-card.large-card {
    overflow: hidden;
    height: 100%;
}

.border-radius-custom {
    border-radius: 12px;
}

.is-shadow {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.hover-shadow:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
    transition: all 0.3s ease;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
}

.gtv-hover-link:hover,
.post-title a:hover {
    color: #f43f5e;
    /* Rose / Pink for highlight */
}

.gtv-btn-outline-pink {
    border: 1px solid #f43f5e;
    color: #f43f5e;
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.gtv-btn-outline-pink:hover {
    background: #f43f5e;
    color: #fff;
}

.color-primary {
    color: #1C64F2;
}

/* Post boxes */
.gtv-post-box {
    margin-bottom: 20px;
}

.image-cover {
    position: relative;
    width: 100%;
}

.image-cover img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 849px) {
    .border-right-col {
        border-right: none;
        margin-bottom: 20px;
    }

    .gtv-hero-bg {
        height: 100%;
        /* Cover whole hero on mobile */
    }

    .gtv-hero-title {
        font-size: 1.8rem;
    }
}

/* XC Blog Item (GTV SEO Style) - Only on Blog Archive page */
.blog-archive .xc-blog-item {
    background-color: #D9D9D93B !important;
    border-radius: 16px;
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0 !important;
    box-shadow: none !important;
    position: relative;
}

.blog-archive .xc-blog-item .card-img-link {
    display: block;
    text-decoration: none !important;
    margin-bottom: 20px;
}

.blog-archive .xc-blog-item .card-img {
    width: 100%;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
}

.blog-archive .xc-blog-item .card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-archive .xc-blog-item .card-title-link {
    display: block;
    text-decoration: none !important;
}

.blog-archive .xc-blog-item .card-title {
    font-size: 17px;
    font-weight: 800;
    color: #000;
    margin: 0 0 12px 0;
    line-height: 1.4;
    height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.blog-archive .xc-blog-item .card-title-link:hover .card-title {
    color: #555;
}

.blog-archive .xc-blog-item .card-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 20px 0;
    height: 3.2em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.blog-archive .xc-blog-item .card-readmore {
    font-size: 14px !important;
    font-weight: 800 !important;
    color: #555 !important;
    margin-top: auto !important;
    background: transparent !important;
    padding: 5px 0 !important;
    display: inline-block !important;
    align-self: flex-start;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.blog-archive .xc-blog-item .card-readmore:hover {
    color: #000 !important;
    transform: translateX(5px);
}

.blog-archive .xc-blog-item a::before,
.blog-archive .xc-blog-item a::after {
    display: none !important;
    content: none !important;
    background: transparent !important;
}

@media (max-width: 767px) {
    .blog-archive .xc-blog-item {
        padding: 12px !important;
    }

    .blog-archive .xc-blog-item .card-img {
        height: 160px !important;
    }

    .blog-archive .xc-blog-item .card-title {
        font-size: 15px !important;
    }
}

/* XC Featured Section & Category Section BEM structure */
.xc-featured-section {
    margin-bottom: 3rem;
}

.xc-featured-section__title {
    margin-bottom: 1rem;
}

.xc-featured-section__row {
    margin-bottom: 3rem;
}

.xc-category-section {
    margin-bottom: 3rem;
    padding-bottom: 1rem;
}

.xc-category-section__desc {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

/* Remove lines from Flatsome Section Titles in Blog Archive */
.blog-archive .section-title-normal {
    border-bottom: none !important;
    margin-bottom: 10px;
}

.blog-archive .section-title b {
    border-top: none !important;
    background-color: transparent !important;
}

/* End SCSS section */

/* XC Blog Item - Horizontal Variant for Featured Small Posts */
.blog-archive .xc-blog-item--horizontal {
    flex-direction: row;
    align-items: flex-start;
    padding: 12px;
    margin-bottom: 20px;
    height: auto;
}

.blog-archive .xc-blog-item--horizontal:last-child {
    margin-bottom: 0;
}

.blog-archive .xc-blog-item--horizontal .card-img-link {
    width: 35%;
    margin-bottom: 0;
    margin-right: 15px;
    flex-shrink: 0;
}

.blog-archive .xc-blog-item--horizontal .card-img {
    height: 110px;
    border-radius: 8px;
}

.blog-archive .xc-blog-item--horizontal .card-content-wrap {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
    height: 110px;
}

.blog-archive .xc-blog-item--horizontal .card-title {
    font-size: 15px;
    height: 2.8em;
    margin-bottom: 5px;
}

.blog-archive .xc-blog-item--horizontal .card-excerpt {
    font-size: 13px;
    margin-bottom: 0;
    height: 3.2em;
}

@media (max-width: 549px) {
    .blog-archive .xc-blog-item--horizontal .card-img-link {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .blog-archive .xc-blog-item--horizontal .card-img {
        height: 160px;
    }

    .blog-archive .xc-blog-item--horizontal {
        flex-direction: column;
        height: auto;
    }

    .blog-archive .xc-blog-item--horizontal .card-content-wrap {
        width: 100%;
        height: auto;
    }
}

/* End SCSS section */

/* ----- XC BLOG HERO (UX Block) - Luxury Black ----- */
.blog-hero {
    background-color: #0a0a0a !important;
    background-image: linear-gradient(135deg, #161616 0%, #000000 100%) !important;
    padding-top: 80px !important;
    padding-bottom: 100px !important;
}

.blog-hero h2 {
    color: #ffffff !important;
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em;
    margin-bottom: 1rem !important;
}

.blog-hero h3 {
    color: #a0a0a0 !important;
    font-size: 1.1rem !important;
    line-height: 1.6;
    font-weight: 300 !important;
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero .searchform-wrapper {
    margin: 30px auto 0;
    max-width: 650px;
}

.blog-hero .searchform-wrapper .search-field {
    background-color: #1a1a1a !important;
    border: 1px solid #333 !important;
    border-radius: 99px !important;
    color: #fff !important;
    height: 60px !important;
    padding: 0 30px !important;
    font-size: 1.05rem !important;
}

.blog-hero .searchform-wrapper .search-field::placeholder {
    color: #666 !important;
}

.blog-hero .searchform-wrapper .search-field:focus {
    border-color: #555 !important;
    background-color: #222 !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.05) !important;
}

.blog-hero .searchform-wrapper .ux-search-submit {
    color: #fff !important;
    background-color: #333 !important;
    height: 48px !important;
    width: 48px !important;
    min-width: 48px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    margin-top: 6px !important;
    margin-right: 6px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.blog-hero .searchform-wrapper .ux-search-submit:hover {
    background-color: #fff !important;
    color: #000 !important;
    transform: scale(1.05);
}

.blog-hero .searchform-wrapper .ux-search-submit i {
    font-size: 1.2rem;
    margin: 0;
    line-height: 1;
}

@media (max-width: 767px) {
    .blog-hero {
        padding-top: 50px !important;
        padding-bottom: 60px !important;
    }

    .blog-hero h2 {
        font-size: 1.6rem !important;
    }

    .blog-hero h3 {
        font-size: 0.95rem !important;
    }

    .blog-hero .searchform-wrapper .search-field {
        height: 50px !important;
        font-size: 0.95rem !important;
        padding: 0 20px !important;
    }

    .blog-hero .searchform-wrapper .ux-search-submit {
        height: 38px !important;
        width: 38px !important;
        min-width: 38px !important;
    }
}

/* ----- XC BLOG CATEGORY ROW (GTV SEO Style) ----- */
.xc-blog-category {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08) !important;
    position: relative;
    z-index: 10;
    margin-top: -60px !important;
    padding: 20px 0;
    margin-bottom: 40px !important;
}

@media (min-width: 850px) {
    .xc-blog-category>.col {
        border-right: 1px solid #f0f0f0;
    }

    .xc-blog-category>.col:last-child {
        border-right: none;
    }
}

.xc-blog-category .col-inner {
    padding: 10px 15px;
    text-align: center;
}

/* Category Button */
.xc-blog-category .xc-blog-category__btn {
    border-radius: 99px !important;
    background-color: #f5f5f5 !important;
    color: #111 !important;
    font-size: 14px;
    font-weight: 700;
    padding: 5px 20px;
    min-height: 34px;
    box-shadow: none !important;
    border: none !important;
    margin-bottom: 8px;
    display: inline-flex;
    text-transform: none;
    transition: all 0.3s ease;
}

.xc-blog-category .xc-blog-category__btn:hover {
    background-color: #111 !important;
    color: #fff !important;
}

/* Post Count Text */
.xc-blog-category p {
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
}

/* Category Menu Items */
.xc-blog-category .ux-menu {
    text-align: left;
}

.xc-blog-category .ux-menu--divider-solid .ux-menu-link {
    border: none !important;
    padding: 6px 0 !important;
}

.xc-blog-category .ux-menu-link__link {
    justify-content: flex-start !important;
    color: #444 !important;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    padding: 0 !important;
    transition: color 0.3s ease;
}

.xc-blog-category .ux-menu-link__link:hover {
    color: #111 !important;
    font-weight: 600;
}

.xc-blog-category .ux-menu-link__icon {
    font-size: 11px;
    margin-right: 8px;
    color: #ccc;
    transition: transform 0.3s ease;
}

.xc-blog-category .ux-menu-link__link:hover .ux-menu-link__icon {
    color: #111;
    transform: translateX(4px);
}

/* End SCSS section */


/* ==========================================================================
   Category Thiết kế (xc-cat-design) BEM
   ========================================================================== */
.xc-cat-design {
    display: block;
}

/* --- Hero Banner --- */
.xc-cat-design__hero {
    height: 700px;
    width: 100%;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-size: cover;
    background-position: center;
}

.xc-cat-design__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.xc-cat-design__hero-title {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 42px;
    font-weight: bold;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-align: center;
}

/* --- Fix dropdown thụt lề do .entry-content ul li { margin-left: 1.3em } --- */
.header-nav-main .nav-dropdown li {
    margin-left: 0 !important;
}

/* --- Nav Menu --- */
.xc-cat-design__nav {
    background: #fff;
    border-top: 2px solid #000;
    border-bottom: 1px solid #eaeaea;
}

.xc-cat-design__nav-list {
    list-style: none;
    margin: 0;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.xc-cat-design__nav-item {
    display: flex;
    align-items: center;
    margin: 0 !important;
    list-style: none;
}

/* Separator giống nav-divided: border-left trên item không phải đầu tiên */
.xc-cat-design__nav-item:not(:first-child) .xc-cat-design__nav-link {
    border-left: 1px solid rgba(0, 0, 0, 0.15);
}

.xc-cat-design__nav-link {
    font-family: "Open Sans", sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    line-height: 24px;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s;
    padding: 0 15px;
}

.xc-cat-design__nav-link--active {
    color: #d2a65a;
    font-weight: 600;
}

.xc-cat-design__nav-link:hover {
    color: #d2a65a;
}

/* --- Content & List --- */
.xc-cat-design__content {
    padding: 70px 0 20px;
}

.xc-cat-design__row {
    margin-bottom: 70px;
    padding-bottom: 70px;
    border-bottom: 1px solid #eaeaea;
}

.xc-cat-design__row:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* --- Meta (Left 30%) --- */
.xc-cat-design__meta {
    margin-bottom: 0;
}

.xc-cat-design__meta-link {
    display: block;
    color: inherit;
    text-decoration: none;
    text-align: left;
}

.xc-cat-design__meta-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.xc-cat-design__meta-link:hover .xc-cat-design__meta-title {
    color: #d2a65a;
}

.xc-cat-design__meta-desc {
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
}

.xc-cat-design__meta-btn {
    border-radius: 4px;
    padding: 0 25px;
}

/* --- Gallery & Slider (Right 70%) --- */
.xc-cat-design__slider {
    opacity: 1;
    margin-bottom: 0 !important;
}

.xc-cat-design__slider-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 6px;
}

.xc-cat-design__slider .flickity-prev-next-button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s;
}

.xc-cat-design__slider .flickity-prev-next-button:hover {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* --- Footer Desc --- */
.xc-cat-design__footer {
    background: #fafafa;
    padding: 60px 0;
}

/* ==========================================================================
   Responsive (Mobile)
   ========================================================================== */
@media (max-width: 768px) {

    /* Nav */
    .xc-cat-design__nav-list {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 12px !important;
        padding-top: 15px !important;
        scrollbar-width: none;
    }

    .xc-cat-design__nav-list::-webkit-scrollbar {
        display: none;
    }

    .xc-cat-design__nav-link {
        font-size: 13px !important;
        padding: 0 10px !important;
    }

    .xc-cat-design__nav-item {
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Hero */
    .xc-cat-design__hero {
        height: 300px !important;
        margin-bottom: 30px !important;
    }

    .xc-cat-design__hero-title {
        font-size: 26px !important;
    }

    /* Row Layout */
    .xc-cat-design__row {
        flex-direction: column;
        margin-bottom: 35px !important;
        padding-bottom: 35px !important;
    }

    /* Meta Left */
    .xc-cat-design__meta {
        margin-bottom: 20px;
        text-align: center;
    }

    .xc-cat-design__meta-link {
        text-align: center;
    }

    .xc-cat-design__meta-desc {
        text-align: justify;
        font-size: 14px !important;
        margin-bottom: 15px;
    }

    .xc-cat-design__meta-title {
        font-size: 18px !important;
        margin-bottom: 10px;
    }

    .xc-cat-design__meta-btn {
        padding: 0 16px !important;
        font-size: 12px !important;
        line-height: 30px !important;
        min-height: 30px !important;
    }

    /* Slider Right */
    .xc-cat-design__slider-wrap {
        padding: 0 15px;
    }
}

/* ==========================================================================
   xc-home-nhan-xet & xc-home-bao-chi — Tiêu đề chung
   ========================================================================== */

/* Hàng đầu tiên (chứa tiêu đề) nền đen, chữ trắng, bỏ gạch chân dưới */
.xc-home-nhan-xet .section-content>.row:first-child,
.xc-home-bao-chi .section-content>.row:first-child {
    background-color: #000;
    padding-top: 18px !important;
    padding-bottom: 18px !important;
    margin-bottom: 40px !important;
}

/* Loại bỏ khoảng trắng thừa gây lệch tâm do cột (.col) sinh ra */
.xc-home-nhan-xet .section-content>.row:first-child .col,
.xc-home-nhan-xet .section-content>.row:first-child .col-inner,
.xc-home-bao-chi .section-content>.row:first-child .col,
.xc-home-bao-chi .section-content>.row:first-child .col-inner {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.xc-home-nhan-xet .section-content>.row:first-child .xc-section-title,
.xc-home-bao-chi .section-content>.row:first-child .xc-section-title {
    color: #fff;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.xc-home-nhan-xet .section-content>.row:first-child .xc-section-title::after,
.xc-home-bao-chi .section-content>.row:first-child .xc-section-title::after {
    display: none !important;
}

/* Cho phép các cột kéo dài bằng nhau */
.xc-home-nhan-xet .col-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* 
 * 1. Border đen 
 * 2. Cấu trúc flex để đảo vị trí
 */
.xc-home-nhan-xet__box {
    border: 2px solid #000;
    display: flex !important;
    flex-direction: column;
    padding: 30px 20px;
    flex: 1;
    /* Điền đầy chiều cao col-inner */
    text-align: center;
}

/* Bỏ màng bọc để dùng flex order trực tiếp cho các phần tử con */
.xc-home-nhan-xet__box .box-image,
.xc-home-nhan-xet__box .box-text,
.xc-home-nhan-xet__box .box-text-inner {
    display: contents !important;
}

/* THỨ TỰ 1: Đoạn văn (p) */
.xc-home-nhan-xet__box p {
    order: 1;
    margin-bottom: 25px !important;
}

/* THỨ TỰ 2: Ảnh */
.xc-home-nhan-xet__box .box-image>div {
    order: 2;
    margin: auto auto 15px auto !important;
    /* Đẩy khối ảnh + tên xuống dưới nếu chữ (p) ngăn / dài khác nhau */
    width: 130px;
    height: 130px;
    border-radius: 50%;
    overflow: hidden;
}

/* Ảnh hình tròn, căn từ top để không cắt mất đỉnh đầu (portrait images) */
.xc-home-nhan-xet__box .box-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
    display: block;
}

/* THỨ TỰ 3: Tên tác giả (h4) */
.xc-home-nhan-xet__box h4 {
    order: 3;
    margin-bottom: 0 !important;
    text-transform: uppercase !important;
}

/* ==========================================================================
   xc-home-bao-chi — Logistics Responsive Slider
   ========================================================================== */

/* Desktop: 5 Logo (Mỗi logo 20%) - Dùng min-width ghi đè inline style của Builder */
.xc-home-bao-chi__logos .ux-logo {
    min-width: 20% !important;
}

/* Kích thước logo to thành 90px */
.xc-home-bao-chi__logos .ux-logo-image {
    height: 90px !important;
    object-fit: contain;
}

/* Mobile: 2 Logo (Mỗi logo 50%) */
@media (max-width: 767px) {
    .xc-home-bao-chi__logos .ux-logo {
        min-width: 50% !important;
    }
}

/* ==========================================================================
   xc-home-tvq — Thiết kế - TVQ Section
   ========================================================================== */

/* 1. Border Top & Bottom màu đen 2px, rộng 80% (không tràn viền full) */
.xc-home-tvq .row {
    background-image: linear-gradient(#000, #000), linear-gradient(#000, #000);
    background-size: 80% 2px, 80% 2px;
    background-position: top center, bottom center;
    background-repeat: no-repeat;
    padding-top: 40px;
    padding-bottom: 40px;
}

/* 2. Không có ảnh (Ẩn ảnh fallback/placeholder) */
.xc-home-tvq__box .box-image {
    display: none !important;
}

/* Kẻ khung cho Image Box, làm đều chiều cao */
.xc-home-tvq .col-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.xc-home-tvq__box {
    border: 2px solid #000;
    padding: 30px 20px;
    flex: 1;
    /* tự đẩy giãn đầy chiều cao của col-inner */
    display: flex;
    flex-direction: column;
}

.xc-home-tvq__box .box-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.xc-home-tvq__box .box-text-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    /* Căn giữa nội dung theo chiều dọc nếu có khoảng trống */
    align-items: center;
    /* Tránh cho button bị kéo giãn full width, căn giữa toàn bộ khối */
}

/* 3. Thẻ H4 viết hoa, in đậm */
.xc-home-tvq__box h4 {
    text-transform: uppercase !important;
    font-weight: 700 !important;
}

/* 4. Button viết hoa, chữ trắng, background đen, border radius 90999 */
.xc-home-tvq__btn {
    text-transform: uppercase !important;
    color: #fff !important;
    background-color: #000 !important;
    border-radius: 90999px !important;
    border: none !important;
    /* Đảm bảo không bị lẹm viền mặc định */
}

/* Hiệu ứng hover cho nút (thường làm nhẹ màu đen đi 1 chút) */
.xc-home-tvq__btn:hover {
    background-color: #333 !important;
}

/* ==========================================================================
   xc-form__lien-he-df — Form liên hệ CF7 theo thiết kế mới
   ========================================================================== */

.xc-form__lien-he-df {
    width: 100%;
    margin: 50px auto;
    border-top: 1px solid #000;
    /* Có border top như ảnh */
    padding-top: 40px;
}

.xc-form__lien-he-df-inner {
    max-width: 500px;
    /* Khung form thu gọn vào giữa */
    margin: 0 auto;
}

.xc-form__lien-he-df-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 30px;
    color: #000;
}

/* Giao diện input nhập liệu */
.xc-form__lien-he-df-field {
    margin-bottom: 10px;
}

.xc-form__lien-he-df-group input[type="text"],
.xc-form__lien-he-df-group input[type="email"],
.xc-form__lien-he-df-group input[type="tel"] {
    width: 100%;
    border: 2px solid #000 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 10px 15px !important;
    color: #000;
    font-size: 15px;
}

.xc-form__lien-he-df-group input::placeholder {
    color: #000;
    opacity: 1;
}

/* Phần checkbox chọn Option tư vấn */
.xc-form__lien-he-df-options {
    margin-top: 25px;
    margin-bottom: 30px;
}

.xc-form__lien-he-df-label {
    font-size: 15px;
    color: #000;
    margin-bottom: 25px;
    /* Thêm margin giữa dòng hỏi và phần checkbox */
}

.xc-form__lien-he-df-options .wpcf7-list-item {
    display: block;
    /* Tránh các item nằm ngang mặc định của CF7 */
    margin-left: 0;
    margin-bottom: 12px;
}

.xc-form__lien-he-df-options .wpcf7-list-item label {
    display: flex;
    align-items: center;
    /* Căn giữa dọc ô vuông và văn bản */
    cursor: pointer;
    margin: 0;
    font-weight: normal !important;
    /* Bỏ in đậm */
}

.xc-form__lien-he-df-options input[type="checkbox"] {
    margin: 0 12px 0 0 !important;
    /* Fixed margin để căn đều tuyệt đối (trên/dưới bằng 0) */
    width: 20px;
    height: 20px;
    border: 2px solid #000 !important;
    border-radius: 0 !important;
    appearance: none;
    -webkit-appearance: none;
    background-color: transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.2s;
    /* Dùng Flex/Grid trên input đôi khi ko stable, nhưng ta có thể dùng background image cho checkmark */
}

/* Checkmark cho checkbox (Sử dụng SVG để hiển thị trên input vì thẻ input không hỗ trợ ::after) */
.xc-form__lien-he-df-options input[type="checkbox"]:checked {
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='square' stroke-linejoin='miter'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: 80%;
    background-position: center;
    background-repeat: no-repeat;
}

/* Nút Gửi thông tin (Button) */
.xc-form__lien-he-df-submit {
    text-align: center;
}

.xc-form__lien-he-df-submit input[type="submit"] {
    display: inline-block !important;
    width: auto !important;
    min-width: 160px;
    background-color: transparent !important;
    color: #000 !important;
    border: 2px solid #000 !important;
    border-radius: 0 !important;
    padding: 8px 50px !important;
    /* Top bottom ngắn lại, left right dài ra */
    font-weight: 500 !important;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 15px;
    margin: 0 !important;
}

.xc-form__lien-he-df-submit input[type="submit"]:hover {
    background-color: #000 !important;
    color: #fff !important;
}

/* ==========================================================================
   xc-footer__follow — Social icons
   ========================================================================== */

/* Thêm khoảng cách ngang giữa các icon mạng xã hội để chúng không bị dính vào nhau */
.xc-footer__follow.social-icons .icon.button {
    margin-left: 8px !important;
    margin-right: 8px !important;
}

/* ==========================================================================
   Header Dropdown Arrow - Đậm hơn
   ========================================================================== */
.nav-dropdown-has-arrow li.has-dropdown:after,
.nav-dropdown-has-arrow li.has-dropdown:before {
    /* Ẩn hoàn toàn mũi tên dropdown theo yêu cầu */
    display: none !important;
}

/* ==========================================================================
   Header Nav Divided (Vạch ngăn cách menu)
   ========================================================================== */
@media (min-width: 850px) {
    .nav-divided>li+li>a:after {
        border-left: 1px solid rgba(0, 0, 0, 0.3) !important;
        /* Đậm hơn thành màu xám rõ */
    }
}

/* ==========================================================================
   Header Menu Typography & Styling
   ========================================================================== */
#header .header-nav-main .nav-top-link {
    font-family: "Open Sans", Arial, Tahoma, sans-serif !important;
    font-style: normal !important;
    font-weight: 400 !important;
    color: rgb(0, 0, 0) !important;
    font-size: 15px !important;
    line-height: 60px !important;
}

/* ==========================================================================
   Archive Page Post Title Typography
   ========================================================================== */
.archive.category .post-item .post-title,
.archive.category .post-item .post-title a {
    font-family: "Open Sans", Arial, Tahoma, sans-serif !important;
    font-style: normal !important;
    font-weight: 400 !important;
    color: rgb(0, 0, 0) !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
}

/* ==========================================================================
   Hero Button Typography
   ========================================================================== */
.xc-hero__btn-du-an,
.xc-hero__btn-du-an span,
.xc-hero__btn-du-an i {
    font-family: "Open Sans", Arial, Tahoma, sans-serif !important;
    font-style: normal !important;
    font-weight: 400 !important;
    color: rgb(255, 255, 255) !important;
    font-size: 14px !important;
    line-height: 24px !important;
}

/* ==========================================================================
   Giới thiệu Maison Décor (.xc-gioi-thieu)
   ========================================================================== */
.xc-gioi-thieu ::selection {
    background-color: #000000 !important;
    color: #fff !important;
}

.xc-gioi-thieu h4 {
    font-family: "Open Sans", Arial, Tahoma, sans-serif !important;
    font-size: 21px !important;
    line-height: 25px !important;
    font-weight: 500 !important;
    color: #444444 !important;
    margin-bottom: 15px !important;
    margin-top: 0 !important;
    letter-spacing: 0px !important;
}

.xc-gioi-thieu p {
    font-size: 16px !important;
    line-height: 1.6 !important;
    text-align: justify !important;
    color: #444 !important; /* Hơi xám đen hoặc đen */
    margin: 0 0 15px !important;
}

.xc-gioi-thieu strong {
    font-weight: 700 !important;
}

/* Giới hạn hình tác giả nhỏ lại như bản gốc width: 240px */
.xc-gioi-thieu .img,
.xc-gioi-thieu .img-inner img {
    max-width: 240px !important;
    margin-left: 0 !important;
    display: block !important;
}

@media screen and (min-width: 850px) {
    .xc-gioi-thieu .col.medium-4 .col-inner {
        /* Đẩy hình xuống hoặc căn lề để tự cân bằng với Text (bản gốc có padding 70px) */
        padding-top: 50px !important;
    }
}

/* Responsive h4 */
@media only screen and (max-width: 959px) {
    .xc-gioi-thieu h4 {
        font-size: 18px !important;
        line-height: 21px !important;
    }
}
@media only screen and (max-width: 767px) {
    .xc-gioi-thieu h4 {
        font-size: 16px !important;
        line-height: 19px !important;
    }
}
@media only screen and (max-width: 479px) {
    .xc-gioi-thieu h4 {
        font-size: 13px !important;
        line-height: 19px !important;
    }
}
/* ==========================================================================
   PERFORMANCE OPTIMIZATION - Layout Shift Prevention
   ========================================================================== */
/* Tr�nh gi?t Top Banner tru?c khi JS ch?y */
.slider:not(.flickity-enabled) > div:not(:first-child) { display: none !important; }

/* Khoanh v�ng D? �n d? tr�nh b? d?y layout khi Grid Init */
.xc-projects { contain: layout; }


