/*
 Theme Name: Hello Elementor Child
 Template: hello-elementor
*/
/* Menu mặc định ẩn */
.home {
    padding-top: 60px;
}

.footer-has-copyright{
    display: none;
}

.zev-header {
  /* position: fixed; */
  top: 0;
  /* dính trên cùng */
  z-index: 9999;
  /* đảm bảo nổi trên nội dung */
  background: #000;
  /* giữ nền để không bị trong suốt khi scroll */
}


/* Menu mặc định (Trạng thái đóng) */
.zev-dropdown {
    position: fixed;
    top: -100%; /* Giấu lên trên màn hình */
    right: 0;
    width: 40%;
    height: 350px;
    background: rgba(255, 255, 255, 0.95); /* Tăng độ đậm nền */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: top 0.4s ease-in-out;
    z-index: 99999; /* Đảm bảo đè lên mọi phần tử */
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom-left-radius: 10px;
}

/* Khi mở menu */
.zev-dropdown.active {
    top: 45px; /* Trượt xuống dính mép trên màn hình */
    z-index: 99999; /* Giữ nguyên z-index cao nhất */
}

/* Nút đóng */
.zev-dropdown .zev-close {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 28px;
  font-weight: bold;
  color: #000;
  cursor: pointer;
}

/* Danh sách menu */
.zev-dropdown ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: center;
}

.zev-dropdown ul li {
  margin: 12px 0;
}

.zev-dropdown ul li a{
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: #000;
    text-decoration: none;
    display: inline-block;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-weight: 700;
}

.zev-dropdown ul li a:hover {
  color: #181818;
   text-decoration: underline;
}
/* Icon mặc định bars */
.zev-menu .elementor-icon svg {
  width: 28px;
  height: 28px;
  transition: opacity 0.3s ease;
}

/* Khi active thì ẩn svg và hiện dấu X */
.zev-menu.active .elementor-icon svg {
  display: none;
}

.zev-menu.active .elementor-icon::before {
  content: "✕";
  font-size: 28px;
  color: #000;
  display: inline-block;
  line-height: 1;
}




#page, .elementor.elementor-2423{
    overflow: hidden;
}

.zev-button .elementor-button {
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    animation: blinkText 1.2s infinite alternate;
}

.zev-button .elementor-button svg path {
    stroke: currentColor !important;
}

.zev-button .elementor-button:hover {
    animation: blinkTextBorder 1.2s infinite alternate;
}

.zev-button .elementor-button:hover svg path {
    stroke: currentColor !important;
}

@keyframes blinkText {
    0% {
        color: #7c7c7c;
    }

    100% {
        color: #ffffff;
    }
}

@keyframes blinkTextBorder {
    0% {
        color: #7c7c7c;
        border: 1px solid #7c7c7c;
    }

    100% {
        color: #ffffff;
        border: 1px solid #ffffff;
    }
}

/* Wrapper chứa button */
.zev-button-blur {
    position: relative;
    display: inline-block;
}

.zev-button-blur .elementor-button {
    position: relative;
    z-index: 2;
}
a.elementor-button.elementor-button-link.elementor-size-sm{
    text-decoration: none !important;
}
/* Glow nằm ở ngoài button */
.zev-button-blur::after {
    content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) !important;
        width: 128%;
        height: 175%;
        border-radius: inherit;
        background: linear-gradient(90deg, #44beff41, #ff44ec4d);
        filter: blur(10px);
        /* opacity: 5.7 !important; */
        z-index: 1;
        animation: glowPulse 2s infinite alternate;
        border-radius: 35px;
}

@keyframes glowPulse {
    0% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(0.95);
    }

    100% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.zev-crk-footer::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 574px;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 100%;
    transition: all 200ms linear;
}

.zev-slider .bdt-slider-excerpt p {
    display: none !important;
}

.zev-img-gird {
    position: relative; /* cần để z-index hoạt động */
    z-index: 1;
}

.zev-img-gird img {
    transition: transform 0.1s ease-in-out;
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

/* Khi hover thì scale + nổi lên trên */
.zev-img-gird:hover {
    z-index: 999; /* nổi lên trên các item khác */
}

.zev-img-gird:hover img {
    transform: scale(1.3);
    position: relative;
    z-index: 9999; /* ảnh nổi trên cùng */
}




.numberx:before {
    content: '';
    position: absolute;
    top: 77px;
    width: 150px;
    height: 1px;
    z-index: 1;
    left: -75px;
    /* bottom: 22px; */
    background: rgba(0, 0, 0, 0.21);
}
.numbery:after {
    content: '';
    position: absolute;
    left: 74px;
    bottom: 67px;
    width: 6px;
    z-index: 2;
    height: 6px;
    background: #000;
    border-radius: 100%;
    /* margin-top: -3px; */
    /* margin-left: 53px; */
}

.elementor-counter-number-prefix{
    display: none;
}

@media (max-width: 820px) {
    body {
        padding-top: 0px;
    }
    .numberx:before {
        content: '';
        position: absolute;
        top: 76px;
        width: 150px;
        height: 1px;
        z-index: 1;
        left: -75px;
        bottom: 34px;
        background: rgba(0, 0, 0, 0.21);
    }
        .numbery:after {
        content: '';
        position: absolute;
        left: 73px;
        bottom: 69px;
        width: 6px;
        z-index: 2;
        height: 6px;
        background: #000;
        border-radius: 100%;
        /* margin-top: -3px; */
        /* margin-left: 53px; */
    }
}


/* form */
/* Áp dụng font Inter cho toàn form */
.zev-form {
    font-family: 'Montserrat', sans-serif !important;
}

/* Label */
.zev-form .wpforms-field-label {
    font-size: 15px !important;
    font-weight: 500 !important;
    margin-bottom: 6px !important;
    display: block !important;
    color: #000 !important;
}

/* Input fields */
.zev-form input[type="text"],
.zev-form input[type="email"],
.zev-form input[type="number"],
.zev-form textarea {
    width: 100% !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
    font-family: 'Montserrat', sans-serif !important;
    background: #fff !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease !important;
    max-width: 100%;
}

.zev-form input:focus,
.zev-form textarea:focus {
    outline: none !important;
    border-color: #000 !important;
}

/* Placeholder */
.zev-form ::placeholder {
    color: #bbb !important;
    font-size: 15px !important;
}

/* Submit button */
.zev-form .wpforms-submit {
    width: 100% !important;
    background: #444444 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 14px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    font-family: 'Montserrat', sans-serif !important;
    cursor: pointer !important;
    transition: background 0.25s ease !important;
    margin-top: 10px !important;
}

.zev-form .wpforms-submit:hover {
    background: #333 !important;
}


.zev-menu .elementor-icon-list-items {
  display: flex !important;
  flex-wrap: nowrap !important; /* Không cho xuống dòng */
}

@media (max-width: 576px) {
    body {
        padding-top: 0px;
    }
    .home {
        padding-top: 0px;
    }
    body.home::before {
      left: 25px;
  }
    .zev-slider-text h2{
        font-size: 1.25rem !important;
    }
    .zev-slider-text p{
        font-size: 12px !important;
    }

    .zev-slider .zev-slider-text{
        left: 53%;
    }
    .zev-multi-slider .swiper-slide {
        height: auto !important;
        width: 350px !important;
        margin-left: 30px !important;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .zev-button-blur::after {
        width: 40%;
}
}
@media (max-width: 1500px) {
  .zev-repons-num {
    left: -165px !important;
  }
}

/* Menu mặc định ẩn */


/* ===== Cấu hình chung ===== */

/* Link font Inter: đặt trong <head> của website
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
*/

.elementor-element.textPost * {
  font-family: 'Montserrat', sans-serif;
}

/* Link chữ a */
.elementor-element.textPost a {
  color: #374151;
  font-weight: 600;
}

/* Custom title: in nghiêng */
.elementor-element.customtitle * {
  font-style: italic;
}

/* Hình ảnh full width */
.elementor-element img {
  width: 100%;
}

/* ===== Nội dung đoạn văn trong textPost ===== */
.elementor-element.textPost p {
  color: #374151;
  font-size: 1.25rem;
  line-height: 1.75;
}

/* ===== Tiêu đề trong titlePost ===== */
.elementor-element.titlePost h2 {
  font-family: 'Montserrat', sans-serif;
  color: #000;
  font-size: 2.2rem;
  line-height: 1.3333333;
  font-weight: 800;
  margin-top: 1rem;
}

.elementor-element.namePost h1 {
  font-family: 'Montserrat', sans-serif !important;
    color: #000;
    font-size: 2.8rem;
    font-weight: 800;
}

/* ===== Danh sách UL ===== */
.elementor-element.textPost ul {
  list-style-type: disc;
  padding-inline-start: 2em;
  margin-top: 1em;
  margin-bottom: 1em;
}

/* Chấm tròn bullet */
.elementor-element.textPost ul li::marker {
  color: #9ca3af; /* xám nhạt */
  font-size: 0.6em; /* thu nhỏ bullet */
}

/* Nội dung trong UL */
.elementor-element.textPost ul li {
  color: #374151;
  margin-bottom: 0.7em;
  font-size: 1.3rem;
  line-height: 1.75;
  padding-inline-start: 0.5em;
}

/* ===== Danh sách OL ===== */
.elementor-element.textPost ol {
  padding-inline-start: 2em;
  margin-top: 1em;
  margin-bottom: 1em;
}

/* Nội dung trong OL */
.elementor-element.textPost ol li {
  color: #374151;
  margin-bottom: 0.7em;
  font-size: 1.3rem;
  line-height: 1.75;
  padding-inline-start: 0.5em;
  font-style: italic; /* chữ in nghiêng */
}

/* ===== Bảng ===== */

/* Bảng tổng thể */
.elementor-element.textPost table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  background-color: #fff;
  font-size: 1.25rem;
  line-height: 1.7;
  color: #374151;
  text-align: left;
  margin-top: 1.5em;
  margin-bottom: 1.5em;
  border: none;
}

/* Ô chung */
.elementor-element.textPost table td {
  padding: 14px 16px;
  border: none;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
  background-color: #fff;
  transition: none;
}

/* Header bảng (hàng đầu tiên) */
.elementor-element.textPost table tr:first-child td {
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #d1d5db;
  background-color: #fff;
  padding-top: 12px;
  padding-bottom: 12px;
}

/* Cột bên trái */
.elementor-element.textPost table td:first-child {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #374151;
  font-weight: 600;
}

/* Cột bên phải (Mức phạt) */
.elementor-element.textPost table td:nth-child(2) strong {
  font-size: 1.25rem;
  line-height: 1.7;
  color: #374151;
  font-weight: 600;
}

/* Bỏ border dưới hàng cuối */
.elementor-element.textPost table tr:last-child td {
  border-bottom: none;
}

/* Hover tắt hoàn toàn */
.elementor-element.textPost table tr:hover td,
.elementor-element.textPost table td:hover {
  background-color: #fff;
  color: #111827;
}

/* Cho phép bảng cuộn ngang trên màn hình nhỏ */
@media (max-width: 767px) {
  .elementor-element.textPost table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* =========================================
   Laptop/Desktop (>=1025px)
   ========================================= */
@media (min-width: 1025px) {
    .elementor-element.textPost p {
        font-size: 1.25rem;
    }

    .elementor-element.textPost ul li,
    .elementor-element.textPost ol li {
        font-size: 1.3rem;
    }

    .elementor-element.titlePost h2 {
        font-size: 2.2rem;
    }
    .elementor-element.namePost h1 {
        font-size: 3.5rem !important;
    }
    .elementor-element.textPost table td,
    .elementor-element.textPost table td strong {
        font-size: 1.25rem;
    }
}

/* =========================================
   Tablet (768px – 1024px)
   ========================================= */
@media (max-width: 1024px) and (min-width: 768px) {
  .elementor-element.textPost p {
    font-size: 1.2rem;
    line-height: 1.6;
  }

  .elementor-element.textPost ul li,
  .elementor-element.textPost ol li {
    font-size: 1.15rem;
    line-height: 1.6;
  }

  .elementor-element.titlePost h2 {
    font-size: 1.8rem;
    line-height: 1.4;
  }
    .elementor-element.namePost h1 {
        font-size: 3rem !important;
    }
  .elementor-element.textPost table td,
  .elementor-element.textPost table td strong {
    font-size: 1.1rem;
    line-height: 1.6;
    padding: 12px 10px;
  }

  .elementor-element.textPost table td:first-child {
    font-weight: 600;
  }
}

/* =========================================
   Mobile (<768px)
   ========================================= */
@media (max-width: 767px) {
  /* Nội dung đoạn văn */
  .elementor-element.textPost p {
    font-size: 1.2rem;
    line-height: 1.5;
  }

  /* Tiêu đề */
  .elementor-element.titlePost h2 {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-top: 0.8rem;
  }
    .elementor-element.namePost h1 {
      margin-top: 2.5rem !important;
      font-size: 2.5rem !important;
    }
  /* Danh sách UL & OL */
  .elementor-element.textPost ul li,
  .elementor-element.textPost ol li {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0.5em;
  }

  /* Giảm padding bullet */
  .elementor-element.textPost ul,
  .elementor-element.textPost ol {
    padding-inline-start: 1.2em;
  }

  /* Bảng trên mobile */
  .elementor-element.textPost table td,
  .elementor-element.textPost table td strong {
    font-size: 1rem;
    line-height: 1.4;
    padding: 10px 8px;
  }

  .elementor-element.textPost table td:first-child {
    font-weight: 600;
  }

  .elementor-element-abf045a .zev-category-columns .zev-category-column:nth-child(2),
  .elementor-element-abf045a .zev-category-columns .zev-category-column:nth-child(3){
    display: none;
  }
}

/* Container cần làm nền cho lớp phủ */
.library_tag {
  position: relative;
  overflow: hidden; /* tránh tràn lớp phủ */
}

/* Lớp phủ đen */
.library_tag::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0;              /* mặc định không mờ */
  pointer-events: none;    /* không chặn sự kiện hover */
  transition: opacity 0.3s ease; /* mượt hơn khi hover */
  z-index: 1;              /* đảm bảo lớp phủ nằm trên nền nhưng dưới chữ */
}

/* Khi hover: chạy animation mờ đen liên tục */
.library_tag:hover::after {
  animation: darkPulse 2.5s ease-in-out infinite;
}

/* Nhịp mờ → đậm → mờ */
@keyframes darkPulse {
  0%   { opacity: 0; }
  50%  { opacity: 0.5; } /* độ đậm tối đa */
  100% { opacity: 0; }
}

/* Đảm bảo nội dung bên trong luôn hiển thị trên overlay */
.library_tag > * {
  position: relative;
  z-index: 0; /* chữ, hình ảnh nằm trên lớp phủ */
}

/* Tôn trọng người dùng không muốn animation */
@media (prefers-reduced-motion: reduce) {
  .library_tag:hover::after {
    animation: none;
    opacity: 0.45; /* chỉ mờ tĩnh khi hover */
  }
}

/* Container toàn màn hình */
.page-404-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 100vh !important;
    background-color: #000 !important; /* Nền đen */
    text-align: center !important;
    color: #fff !important;
}

/* Nội dung chính */
.page-404-content {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
}

/* Mã lỗi 404 */
.error-code {
    font-size: 4vh !important;
    font-weight: bold !important;
    margin: 0 !important;
    color: #fff !important;
}

/* Thanh gạch đứng giữa */
.error-divider {
    width: 2px !important;
    height: 5vh !important;
    background-color: #888 !important;
}

/* Thông báo lỗi */
.error-message {
    font-size: 2vh !important;
    color: #ccc !important;
    margin: 0 !important;
}
.csb-item img {
    max-width: 30px !important;
}

/* Chỉnh lại icon chuông reo */
.zev-contact-btn.zev-phone{
    width: 40px;
    height: 40px;
    margin-left: unset;
}


@media (max-width: 767px) {
  .elementor-13 .elementor-element.elementor-element-77652a3 .zev-slider-text .zev-typing {
    transform: scale(0.9);
    letter-spacing: 6px;
  }
}

.list-services .zev-excerpt2 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word; /* Đảm bảo từ dài không làm vỡ layout */
    line-height: 1.5;       /* Khoảng cách dòng phù hợp */
    max-height: calc(1.5em * 3); /* Phòng trường hợp trình duyệt cũ không hỗ trợ line-clamp */
}

.list-services .zev-category-posts .zev-thumb img {
  width: 150px;
  height: 150px;
  max-width: unset;
}

.zev-category-posts .zev-post-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

@media (max-width: 768px) {
    .zev-category-posts .zev-post-list {
        grid-template-columns: 1fr;
    }
}