/*
Theme Name: Espace Theme
Theme URI: https://yourdomain.com
Author: Your Name
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #fff;
    color: #333;

    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Full viewport height */
}

/* Header Styles */
/* ======= Header Layout ======= */
.site-header {
    min-height: 80px;
    padding: 2rem 0;
    /* display: flex;
    align-items: center; */
    justify-content: space-between;
    flex-wrap: wrap;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    font-family: Inter, sans-serif;
    box-sizing: border-box;
    /* position: sticky;
    top: 0;
    z-index: 999; */
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon,
.logo-text {
    height: auto;
    max-height: 60px;
    width: auto;
}

.logo-container img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 1000px) {
    .logo-container {
        justify-content: center;
    }

    .site-footer {
        text-align: center;
    }
}

.menu-toggle {
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
    display: none;
    margin-left: auto;
    z-index: 1000;
}

.menu-toggle::before,
.menu-toggle::after,
.menu-toggle span {
    content: '';
    position: absolute;
    left: 8px;
    right: 8px;
    height: 2px;
    background-color: #000;
    transition: transform 0.3s ease, top 0.3s ease, opacity 0.3s ease;
}

.menu-toggle span {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle::before {
    top: 12px;
}

.menu-toggle::after {
    top: 26px;
}

.menu-toggle.active::before {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.menu-toggle.active::after {
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

.menu-toggle.active span {
    opacity: 0;
}

.menu-logo {
    display: none;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.menu-logo img {
    width: 100%;
}

.logo-icon-pc {
    display: block;
}

.logo-icon-sp {
    display: none;
}

@media (max-width: 960px) {
    .logo-icon-sp-footer {
        height: 100px !important;
    }
}

@media (max-width: 1124px) {
    .main-navigation {
        gap: 30px !important;
    }
}

@media (max-width: 1000px) {
    .main-navigation {
        gap: 0px !important;
    }
}

@media (max-width: 800px) {
    .logo-icon-pc {
        display: none;
    }

    .logo-icon-sp {
        display: block;
        height: 80px !important;
        width: 100%;
        min-width: 144px;
    }

    .site-header {
        margin-top: 10px !important;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .logo-icon {
        max-height: 200px !important;
    }
}

@media (max-width: 280px) {
    .logo-icon-sp {
        min-width: 50px !important;
        width: auto !important;
        height: 60% !important;
    }

    .footer-find-us-icon {
        align-items: center;
        flex-direction: column !important;
    }

    .footer-find-us-icon a {
        max-width: none !important;
    }
}

@media (max-width: 1000px) {
    .header-left {
        width: 100%;
        margin: 0;
    }

    .site-header {
        position: relative;
        z-index: 10;
    }

    .menu-toggle {
        display: block;
        font-size: 28px;
        cursor: pointer;
        user-select: none;
        margin-left: auto;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        left: -250px;
        /* Ẩn khỏi màn hình */
        width: 250px;
        height: 100%;
        background-color: #fff;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
        padding: 60px 20px 20px;
        display: flex;
        flex-direction: column;
        transition: left 0.3s ease;
        z-index: 999;
    }

    .main-navigation.active {
        left: 0;
    }

    .main-navigation.active .menu-logo {
        display: flex;
    }

    .main-menu {
        align-self: anchor-center;
    }
}

@media (max-width: 400px) {
    .header-left {
        padding: 0px;
    }

    .site-header {
        padding-top: 0px;
    }
}

@media (max-width: 360px) {
    .logo-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo-icon {
        align-self: center;
    }
}

/* Switcher Languages */
.main-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

.main-menu>li {
    position: relative;
}

.main-menu>li>a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: none;
    border-radius: 0;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    background: #fff;
    z-index: 2;
}

.submenu {
    display: none;
    top: 100%;
    /* đảm bảo submenu nằm ngay dưới nút */
    left: 0;
    background: white;
    border-radius: 6px;
    list-style: none;
    padding: 6px 0;
    margin: 0;
    z-index: 1;
    min-width: 80px;
}

.submenu li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.current-lang>a>span {
    color: red !important;
}

.submenu li a:hover {
    background-color: #f0f0f0;
}

/* Hiển thị submenu khi hover */
.has-submenu .submenu.active {
    display: block;
}

.company-name {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 5px;
}

.company-subname {
    font-size: 14px;
    margin-bottom: 20px;
}

.main-navigation {
    display: flex;
    gap: 30px;
    justify-content: right;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    align-self: anchor-center;
}

.main-navigation a:hover {
    color: #000;
}

.polylang-switcher {
    position: relative;
    display: inline-block;
}

.polylang-switcher::after {
    content: "▼";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 10px;
    color: #777;
}

.language-dropdown {
    padding: 3px 0;
    border: none;
    appearance: none;
}

.language-dropdown option {
    padding-left: 25px;
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 20px;
}

.flag-icon {
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #ccc;
    width: 16px;
    height: 16px;
    object-fit: cover;
}

.title-gap {
    gap: 16px;
}

.banner-img img {
    object-fit: cover;
    max-height: 650px;
}

@media (max-width: 768px) {
    .banner-img img {
        object-fit: cover;
        object-position: center;
        width: 100%;
        height: 400px;
        max-height: none;
    }
}

@media (max-width: 500px) {
    .banner-img img {
        object-fit: cover;
        max-height: 480px;
        height: 480px;
    }
}

.section-title {
    margin: 50px 0 20px;
}

.title-right {
    display: flex;
    justify-content: flex-end;
}

.primary-title {
    margin-bottom: 20px;
    font-family: Inter, sans-serif;
    font-weight: 700;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 60px;
    position: relative;
    padding: 20px;
    display: inline-block;
}

.primary-title::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 60px;
    background-color: #B02324;
    border-radius: 1000px;
    position: absolute;
    left: 0;
}

.buttons-navigation {
    font-family: Inter, sans-serif;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

.buttons-navigation .tab-button {
    padding: 12px 20px;
    font-size: 18px;
    border-radius: 4px;
    border: 1px solid #B02324;
    cursor: pointer;
    transition: background 0.2s;
    background-color: #B02324;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

/* Active tab */
.buttons-navigation .tab-button.active {
    background-color: #fff;
    color: #B02324;
    border: 1px solid #939598;
}

/* Hover effect */
.buttons-navigation .tab-button:hover {
    opacity: 0.8;
    text-decoration: none;
}

/* Responsive fix */
@media (max-width: 768px) {
    .buttons-navigation {
        justify-content: center;
    }

    .buttons-navigation .tab-button {
        font-size: 14px;
        padding: 10px 14px;
        text-align: center;
    }
}

/* Container của switcher */
.pll-switcher-select {
    position: relative;
    display: inline-block;
    margin-left: 20px;
    font-family: Inter, sans-serif;
}

/* Dropdown button */
.pll-switcher-select>ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pll-switcher-select>ul>li {
    cursor: pointer;
    position: relative;
    padding: 8px 12px;
    background-color: #f5f5f5;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.pll-switcher-select>ul>li:hover {
    background-color: #e0e0e0;
}

/* Dropdown menu */
.pll-switcher-select ul li ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 120px;
    z-index: 1000;
}

.pll-switcher-select ul li:hover ul {
    display: block;
}

.pll-switcher-select ul li ul li {
    padding: 8px 12px;
    white-space: nowrap;
}

.pll-switcher-select ul li ul li:hover {
    background-color: #f0f0f0;
}

/* Flag styling */
.pll-switcher-select img {
    vertical-align: middle;
    margin-right: 6px;
}

.ellipsis-2-lines {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Số dòng muốn hiển thị */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 3em;
    word-break: break-word;
    /* Tùy theo line-height */
}

.ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ======= Footer Layout ======= */
.site-footer {
    background-color: #EDEDED;
    padding: 30px 0 0;
    font-family: Inter, sans-serif;
}

.footer-menu a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
}

.footer-menu a:hover {
    text-decoration: underline;
    color: #B02324 !important;
}

.find-us {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-bottom {
    border-top: 1px solid #616161;
    padding: 32px 0;
}

.copyright,
.terms a {
    color: #666;
    font-size: 12px;
}

.terms a:hover {
    text-decoration: none;
    color: #B02324;
}

.social-icon svg {
    width: 32px;
    height: 32px;
}

@media (max-width: 992px) {
    .footer-content {
        flex-direction: column;
    }

    .footer-menu,
    .footer-right {
        width: 100% !important;
    }

    .footer-find-us {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 0;
    }

    .footer-menu {
        flex-direction: column;
    }

    .footer-menu-left,
    .footer-menu-right {
        width: 100% !important;
    }
}

.custom-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

@media (min-width: 768px) {
    .custom-container {
        padding-left: 24px;
        padding-right: 24px;
    }
}

.icon-hot {
    display: flex;
    width: 30px;
    height: 30px;
    padding: 8px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #B02324;
    background-image: url(../espace-theme/common/images/icon_hot.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
}

.icon-plus {
    display: flex;
    width: 30px;
    height: 30px;
    padding: 8px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #B02324;
    background-image: url(../espace-theme/common/images/icon_plus.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
}

.icon-clear {
    display: flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #e74c3c;
    background-image: url(../espace-theme/common/images/icon_close.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
    cursor: pointer;
}

.icon-toggle {
    display: flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #B02324;
    background-image: url(../espace-theme/common/images/icon_arrow_down.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
    cursor: pointer;
}

.icon-toggle.active {
    background-image: url(../espace-theme/common/images/icon_arrow_up.svg);
}

.next-page {
    display: flex;
    width: 15px;
    height: 15px;
    padding: 8px;
    align-items: center;
    justify-content: center;
    background-image: url(../espace-theme/common/images/paginator.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
    cursor: pointer;
}

.next-page.disabled {
    background-image: url(../espace-theme/common/images/paginator-disabled.svg) !important;
    cursor: default;
    pointer-events: none;
}

.prev-page {
    display: flex;
    width: 15px;
    height: 15px;
    padding: 8px;
    align-items: center;
    justify-content: center;
    background-image: url(../espace-theme/common/images/paginator.svg) !important;
    transform: rotate(180deg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
    cursor: pointer;
}

.prev-page.disabled {
    background-image: url(../espace-theme/common/images/paginator-disabled.svg) !important;
    cursor: default;
    pointer-events: none;
}

.wpcf7-not-valid-tip {
    display: none !important;
}

.privacy-check .wpcf7-not-valid-tip {
    display: block !important;
}

.flex-auto {
    flex: auto;
    align-items: center;
    justify-content: center;
    padding: 5rem;
}

.custom-404-heading {
    font-size: 6rem;
}

@media (max-width: 768px) {
    .custom-404-heading {
        font-size: 4rem;
    }
}

@media (max-width: 576px) {
    .custom-404-heading {
        font-size: 3rem;
    }
}

@media (max-width: 360px) {
    .custom-404-heading {
        font-size: 2rem;
    }
}

.title-wrapper-right {
    text-align: right;
}

.title-wrapper-left {
    text-align: left;
    margin-left: 10px;
}

.next-page-arrow-line {
    display: flex;
    width: 35px;
    height: 30px;
    padding: 8px;
    align-items: center;
    justify-content: center;
    background-image: url(../espace-theme/common/images/arrow-active.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
    cursor: pointer;
}

.next-page-arrow-line.disabled {
    background-image: url(../espace-theme/common/images/arrow.svg);
    cursor: default;
    pointer-events: none;
}

.prev-page-arrow-line {
    display: flex;
    width: 35px;
    height: 30px;
    padding: 8px;
    align-items: center;
    justify-content: center;
    background-image: url(../espace-theme/common/images/arrow-active.svg);
    transform: rotate(180deg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60%;
    cursor: pointer;
}

.prev-page-arrow-line.disabled {
    background-image: url(../espace-theme/common/images/arrow.svg);
    cursor: default;
    pointer-events: none;
}

.facebook-icon {
    width: 50px;
    height: 50px;
    background-image: url(../espace-theme/common/images/facebook.svg) !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    cursor: pointer;
}

.linkedin-icon {
    width: 50px;
    height: 50px;
    background-image: url(../espace-theme/common/images/linkedin.svg) !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    cursor: pointer;
}

.twitter-icon {
    width: 50px;
    height: 50px;
    background-image: url(../espace-theme/common/images/twitter.svg) !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    cursor: pointer;
}

.zalo-icon {
    width: 50px;
    height: 50px;
    background-image: url(../espace-theme/common/images/zalo.svg) !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    cursor: pointer;
}

html[lang="vi"] body,
html[lang="vi"] body * {
    font-family: 'Open Sans', sans-serif !important;
}

html[lang="vi"] .primary-title {
    line-height: normal !important;
}

.has-submenu.menu-item>a::after {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-left: 6px;
    background-image: url(../espace-theme/common/images/icon_arrow_down_language.svg);
    background-size: contain;
    background-repeat: no-repeat;
}

.has-submenu.menu-item:has(.active)>a::after {
    transform: rotate(180deg);
}

.has-submenu.menu-item {
    position: relative;
}

.has-submenu.menu-item .submenu {
    display: none;
    left: 0;
    z-index: 100;
    padding: 10px 0;
    border: none !important;
}

@media (max-width: 1000px) {
    .main-navigation div {
        padding: 10px;
        border-bottom: 1px solid #ebebeb;
    }

    .menu-logo {
        border: unset !important;
        padding: unset !important;
    }

    .main-menu>li>a {
        width: 100% !important;
        padding: unset !important;
    }

    .main-menu>li {
        width: 100% !important;
    }

    .main-navigation {
        flex-wrap: nowrap;
        overflow-y: auto;
    }
}

@media (max-width: 500px) {
    .main-navigation {
        height: auto;
        min-height: 100%;
    }
}

@media (min-width: 1000px) {
    .has-submenu.menu-item {
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
    }

    .has-submenu.menu-item .submenu {
        min-width: 180px;
        width: auto;
        box-shadow: 2px 2px 2px 2px rgba(10, 10, 10, 0.3);
        position: absolute;
        top: 100%;
        left: 0;
        right: auto;
        border: 1px solid #ccc;
        background: white;
        display: none;
        z-index: 100;
    }

    .has-submenu.menu-item.lang .submenu {
        min-width: 100px;
    }

    .has-submenu.menu-item:hover .submenu,
    .has-submenu:hover .submenu {
        display: block;
    }

    .has-submenu.menu-item:hover a::after {
        rotate: 180deg;
    }
}

.submenu.active {
    display: block !important;
}


.has-submenu.menu-item .submenu li {
    padding: 5px 15px;
}

.has-submenu.menu-item .submenu li a {
    display: block;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
}

.has-submenu.menu-item .submenu li a:hover {
    padding-left: 5px;
}

.no-data-message {
    padding: 20px;
    text-align: center;
    background-color: #f8f9fa;
    border: 2px dashed #ced4da;
    color: #6c757d;
    font-size: 16px;
    border-radius: 8px;
    margin-top: 15px;
}

.no-data-message i {
    margin-right: 8px;
    color: #17a2b8;
}

@media (min-width: 768px) {

    .primary-btn:hover,
    .wpcf7-submit:hover,
    .tab-button:not(.tag-all):hover {
        background: #8a1b1b;
        color: white !important;
    }
}

@media (min-width: 1000px) {
    .site-header {
        position: sticky;
        background-color: #fff;
        top: 0;
        z-index: 999;
        width: 100%;
    }
}

.grecaptcha-badge {
    display: none !important;
}

/* Wrapper phủ toàn bộ màn hình */
#loading-spinner-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.7);
    /* nền mờ */
    z-index: 9999;

    /* Căn giữa nội dung bên trong */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Ẩn mặc định */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Khi spinner được hiển thị */
#loading-spinner-wrapper.show {
    visibility: visible;
    opacity: 1;
}

/* Spinner ở giữa màn hình */
#loading-spinner {
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* SVG hoặc ảnh spinner */
#loading-spinner img {
    width: 100%;
    height: 100%;
    max-width: 300px;
    max-height: 300px;
    animation: spinnerFadeIn 0.3s ease-in-out;
}

/* Hiệu ứng fade-in */
@keyframes spinnerFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.label-required {
    color: #B02324;
}

.site-footer a {
    text-decoration: none !important;
}

.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 25px;
  width: 60px;
  height: 60px;
  cursor: pointer;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url(../espace-theme/common/images/arrow-up-white.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-color:#b02324;
  border-radius: 50%;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  animation: fadeIn 0.3s ease forwards,
    bounce 2s ease-in-out infinite;
}

@media  (min-width: 651px) {
    .scroll-to-top:hover,
    .scroll-to-top:active, 
    .scroll-to-top:focus {
        width: 65px;
        height: 65px;
        background-color:#801819;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(20px); }
}

@media  (max-width: 650px) {
    .scroll-to-top {
        left: 50%;
        width: 100px;
        height: 50px;
        bottom: 5px;
        background-color: unset;
        background-image: url(../espace-theme/common/images/arrow-up.svg);
        background-size: contain;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(20px) translateX(-50%); }
        to { opacity: 1; transform: translateY(0) translateX(-50%); }
    }

    @keyframes fadeOut {
        from { opacity: 1; transform: translateY(0) translateX(-50%); }
        to { opacity: 0; transform: translateY(20px) translateX(-50%); }
    }

    @keyframes bounce {
        0%, 100% {
            transform: translateX(-50%) translateY(0);
        }
        50% {
            transform: translateX(-50%) translateY(-10px);
        }
    }

    .chatway--trigger-container {
        bottom: 25px !important;
    }
}

.scroll-to-top:not(.show) {
  animation: fadeOut 0.3s ease forwards;
}

.news-page-arrow-line.disabled {
    background-image: unset !important;
}

.user-select {
    user-select: none;
}