/* landing.css — fluid & responsive layout */
:root {
  --accent: #0b76ef;
  --brand: #e69824;
  --text: #1f2937;
  --bg: #ffffff;
  --shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  font-size: 16px; /* gốc cho rem */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  margin: 0;
}

/* === HEADER CHÍNH === */
.landing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem clamp(1rem, 4vw, 2.5rem);
  background: #fff;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 10;
  gap: 1rem;
  padding-left: 9%;
  padding-right: 9%;
  flex-wrap: nowrap;
}

.landing-header img {
  object-fit: contain;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

/* === CONTACT INFO === */
.header-top-info {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  gap: 1.5rem;
}

.header-top-info .contact-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-top-info .contact-item {
  display: flex;
  margin-bottom: 0 !important;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  color: #555;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  line-height: 1.2;
}

.header-top-info .contact-item svg {
  background: #2f3033;
  fill: #fff;
  border-radius: 50%;
  padding: 6px;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: block;
}

.header-top-info .contact-item:hover svg {
  background: var(--brand);
  fill: #fff;
}

.header-top-info .contact-item:hover span {
  color: var(--brand);
}

/* === NAVIGATION DESKTOP === */
.landing-nav.desktop-nav {
  display: flex;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  align-items: center;
}

.landing-nav.desktop-nav .nav-item a.has-arrow {
  display: flex;
  align-items: center;
  gap: 6px;
}

.arrow-icon {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #666;
  transition: transform 0.3s ease, border-top-color 0.3s ease;
}

.landing-nav.desktop-nav .nav-item:hover .arrow-icon {
  transform: rotate(180deg);
  border-top-color: var(--brand);
}

.landing-nav.desktop-nav .nav-item.active .arrow-icon {
  transform: rotate(180deg);
  border-top-color: var(--brand);
}

/* ICON HOME */
.landing-nav .home-icon {
  width: 1.75rem;
  height: 1.75rem;
  vertical-align: middle;
  fill: currentColor;
  transition: fill 0.3s ease;
}

.landing-nav.desktop-nav .nav-item:hover .home-icon {
  fill: var(--brand);
}

.landing-nav.desktop-nav .nav-item.active .home-icon,
.landing-nav.desktop-nav .nav-item a.active .home-icon {
  fill: var(--brand);
}

/* === SUBMENU DESKTOP - FIX MÀU CHỈ HIỆN KHI HOVER === */
.nav-item.has-submenu {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 220px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  padding: 10px 0;
  list-style: none;
  z-index: 11;
  border-top: 3px solid var(--brand);
}

.nav-item.has-submenu:hover > .submenu {
  display: block;
}

/* SUBMENU ITEM - CHUNG CHO CẢ A VÀ DIV */
.submenu .submenu-item {
  display: block;
  padding: 10px 20px;
  color: #333 !important;
  text-decoration: none;
  font-size: 1.2rem !important;
  font-weight: 500 !important;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
  background-color: transparent !important;
  cursor: pointer;
}

/* SUBMENU ITEM - CHỈ ĐỔI MÀU KHI HOVER */
.submenu .submenu-item:hover {
  background-color: #f5f5f5 !important;
  color: var(--brand) !important;
}

/* === SUBMENU CẤP 2 DESKTOP === */
.submenu-item.has-submenu-level2 {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.submenu-item.has-submenu-level2::after {
  content: "▸";
  font-size: 25px;
  color: #888;
  margin-left: 10px;
}

.submenu-level2 {
  display: none;
  position: absolute;
  top: -13px;
  left: 100%;
  background-color: white;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  padding: 10px 0;
  list-style: none;
  z-index: 12;
  border-top: 3px solid var(--brand);
}

.submenu-item.has-submenu-level2:hover > .submenu-level2 {
  display: block;
}

/* SUBMENU LEVEL 2 - MÀU MẶC ĐỊNH */
.submenu-level2 a.submenu-item {
  color: #333 !important;
  background-color: transparent !important;
}

/* SUBMENU LEVEL 2 - CHỈ ĐỔI MÀU KHI HOVER */
.submenu-level2 a.submenu-item:hover {
  background-color: #f5f5f5 !important;
  color: var(--brand) !important;
}
/* === NAV ITEM DESKTOP === */
.landing-nav.desktop-nav .nav-item {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.3rem;
  position: relative;
  padding: 8px 0;
  transition: color 0.3s ease;
  letter-spacing: 0.3px;
}

.landing-nav.desktop-nav .nav-item a:not(.has-arrow) {
  display: flex;
  align-items: center;
  height: 100%;
}

.landing-nav.desktop-nav .nav-item[data-link="/"] {
  padding: 8px 10px;
  margin-right: 15px;
  text-align: center;
}

.landing-nav.desktop-nav .nav-item a,
.landing-nav.desktop-nav .nav-item a:link,
.landing-nav.desktop-nav .nav-item a:visited {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}

.landing-nav.desktop-nav .nav-item:hover a {
  color: var(--brand);
  font-weight: 700;
}

.landing-nav.desktop-nav .nav-item a.active {
  color: var(--brand) !important;
  font-weight: 700;
}

.landing-nav.desktop-nav .nav-item::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 3px;
  background: var(--brand);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.landing-nav.desktop-nav .nav-item:hover::after,
.landing-nav.desktop-nav .nav-item.active::after {
  width: 100%;
  background: var(--brand);
}

/* === HAMBURGER MENU === */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 24px;
  cursor: pointer;
  z-index: 20;
  background: transparent;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s ease;
}

/* === LANGUAGE SELECT DESKTOP === */
.language-select-wrapper {
  position: relative;
  display: inline-block;
}

.current-language-display {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--brand, #f39c12);
  color: white;
  padding: 0.5em 1.25em;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.current-language-display:hover {
  background-color: #d9880b;
}

.current-language-display .flag-icon {
  width: 24px;
  height: auto;
  border: 1px solid #fff;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
}

.current-language-display .language-arrow {
  font-size: 0.7em;
}

.language-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: auto;
  min-width: 110px;
  background-color: #fff;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  padding: 0;
  list-style: none;
  z-index: 20;
  border: 1px solid #eee;
  margin-top: 0px;
  overflow: hidden;
}

.language-select-wrapper:hover .language-dropdown-menu {
  display: block;
}

.language-dropdown-item {
  display: flex;
  align-items: center;
  padding: 8px 15px;
  gap: 10px;
  color: #333;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s ease;
}

.language-dropdown-item:last-child {
  border-bottom: none;
}

.language-dropdown-item:hover {
  background-color: #f5f5f5;
  color: #333;
}

.language-dropdown-item .flag-icon {
  width: 24px;
  height: auto;
  flex-shrink: 0;
  border: 1px solid #eee;
}

/* === ẨN MOBILE MENU BOOTSTRAP TRÊN DESKTOP === */
.mobile-menu-bootstrap {
  display: none !important;
}

/* === RESPONSIVE MOBILE === */
@media (max-width: 768px) {
  /* Hiển thị hamburger */
  .hamburger {
    display: flex;
  }

  /* Ẩn desktop nav */
  .landing-nav.desktop-nav {
    display: none !important;
  }

  /* Ẩn contact info trên mobile */
  .header-top-info {
    display: none !important;
  }

  /* Hiển thị mobile menu bootstrap */
  .mobile-menu-bootstrap {
    display: block !important;
  }

  /* === CUSTOM BOOTSTRAP OFFCANVAS === */
  .mobile-menu-bootstrap.offcanvas {
    width: 85% !important;
    max-width: 400px;
    background: #2f3033;
  }

  .mobile-menu-bootstrap .offcanvas-header {
    background: #222;
    color: #fff;
    padding: 1.5rem 1.5rem;
    border-bottom: 1px solid #444;
  }

  .mobile-menu-bootstrap .offcanvas-title {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
  }

  .mobile-menu-bootstrap .btn-close {
    filter: invert(1);
    opacity: 0.8;
    font-size: 1.2rem;
  }

  /* === CUSTOM ACCORDION === */
  .mobile-menu-bootstrap .accordion {
    --bs-accordion-bg: transparent;
    --bs-accordion-border-color: #444;
    --bs-accordion-btn-color: #ddd;
    --bs-accordion-btn-bg: transparent;
    --bs-accordion-active-color: var(--brand);
    --bs-accordion-active-bg: #3a3b3e;
  }

  .mobile-menu-bootstrap .accordion-button {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 1rem 1.5rem;
    border: none;
    color: #ddd !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .mobile-menu-bootstrap .accordion-button:not(.collapsed) {
    color: var(--brand) !important;
    background: #3a3b3e !important;
  }

  .mobile-menu-bootstrap .accordion-button::after {
    filter: invert(1);
    font-size: 1.2rem;
  }

  .mobile-menu-bootstrap .accordion-item {
    border: none;
    border-bottom: 1px solid #444;
    background: transparent;
  }

  .mobile-menu-bootstrap .accordion-body {
    background: #3a3b3e;
    padding: 0;
  }

  /* === NESTED ACCORDION (CẤP 2) === */
  .nested-accordion .accordion-button.nested-btn {
    font-size: 1rem;
    font-weight: 500;
    text-transform: none;
    padding: 0.85rem 1.5rem 0.85rem 2.5rem;
    background: #2f3033 !important;
    color: #ccc !important;
  }

  .nested-accordion .accordion-button.nested-btn:not(.collapsed) {
    background: #3a3b3e !important;
    color: var(--brand) !important;
  }

  .nested-accordion .accordion-body {
    background: #2f3033;
  }

  /* === MOBILE MENU LINKS === */
  .mobile-menu-link {
    display: block;
    padding: 0.85rem 1.5rem 0.85rem 2.5rem;
    color: #ccc;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid #4a4b4e;
    transition: all 0.2s ease;
    background: #2f3033;
  }

  .mobile-menu-link.no-submenu {
    padding: 1rem 1.5rem;
    text-transform: uppercase;
    font-weight: 600;
    color: #ddd;
  }

  .mobile-menu-link:hover {
    background: #3a3b3e;
    color: #fff;
  }

  .mobile-menu-link.level-3 {
    padding-left: 3.5rem;
    position: relative;
  }

  .mobile-menu-link.level-3 .bullet {
    position: absolute;
    left: 2.5rem;
    color: #888;
    font-size: 1.2rem;
  }

  .mobile-menu-link:last-child {
    border-bottom: none;
  }

  /* === MOBILE LANGUAGE SECTION === */
  .mobile-language-section {
    padding: 1.5rem;
    border-top: 1px solid #444;
    background: #2f3033;
  }

  .mobile-language-title {
    color: #888;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-align: center;
  }

  .mobile-language-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    justify-items: center;
  }

  .mobile-lang-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #3a3b3e;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    width: 100%;
  }

  .mobile-lang-item img {
    width: 40px;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }

  .mobile-lang-item span {
    color: #ddd;
    font-size: 0.85rem;
    font-weight: 600;
  }

  .mobile-lang-item:hover {
    background: #4a4b4e;
    border-color: #888;
  }

  .mobile-lang-item.active {
    border-color: var(--brand);
    background: #4a4b4e;
    box-shadow: 0 0 8px rgba(243, 156, 18, 0.3);
  }

  .mobile-lang-item.active span {
    color: var(--brand);
  }
}

/* === WRAPPER === */
.main-header-wrapper {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
  box-shadow: var(--shadow);
}

/* HERO SLIDER */
/* landing.css */

/* HERO SLIDER */
/* =================================================================== */
/*                     FINAL HERO SLIDER STYLES                        */
/* =================================================================== */

.hero-slider {
  max-width: none;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 75vh; /* Chiều cao cân đối, bạn có thể chỉnh thành 70vh hoặc 80vh nếu muốn */
  color: #fff;
  position: relative;
  background-color: #333; /* Thêm màu nền dự phòng khi ảnh đang tải */
}

/* --- THÊM ĐOẠN CODE NÀY VÀO --- */
.hero-slider .swiper {
  width: 100%;
  height: 100%; /* Dòng này sẽ giải quyết vấn đề */
}

.hero-slider .swiper-slide {
  position: relative;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Lớp phủ tối để làm nổi bật chữ */
.hero-slider .swiper-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

/* Khối chứa nội dung chính */
.hero-slider .hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px; /* Tăng nhẹ để thoáng hơn trên màn hình lớn */
  padding: 2rem 1.5rem; /* Thêm padding trên dưới để cân đối */

  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 400px; /* Chiều cao tối thiểu đủ để chứa cả tiêu đề dài nhất */

  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.7s ease-out, opacity 0.7s ease-out;
}

.hero-slider .swiper-slide-active .hero-content {
  transform: translateY(0);
  opacity: 1;
}

/* Tiêu đề (H1) */
.hero-slider h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  line-height: 1.25;
  letter-spacing: 1px;
  margin: 0 0 clamp(1rem, 3vw, 1.5rem) 0;
}

/* Đoạn mô tả (P) */
.hero-slider p {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.8);
  max-width: 750px;
  line-height: 1.7;
  font-weight: 400; /* Tăng nhẹ độ đậm để dễ đọc hơn */
  margin: 0 auto clamp(1.5rem, 4vw, 2.5rem) auto; /* Căn giữa và thêm khoảng cách */
}

/* Nút bấm (Button) */
.hero-slider a.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: clamp(0.8rem, 2vw, 1rem) clamp(2rem, 5vw, 3rem);
  border-radius: 4px;
  border: none;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(0.9rem, 1.5vw, 1rem);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  align-self: center; /* Đảm bảo nút luôn ở giữa */
}
.hero-slider a.btn:hover {
  background-color: #d9880b;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Nút điều hướng và chấm tròn */
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
  color: rgba(255, 255, 255, 0.8);
  --swiper-navigation-size: 35px;
  transition: color 0.3s ease;
}
.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
  color: #fff;
}

.hero-slider .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.6);
  width: 11px;
  height: 11px;
  transition: all 0.3s ease;
}

.hero-slider .swiper-pagination-bullet-active {
  background: var(--brand);
  transform: scale(1.2);
}

/* SECTIONS */
section {
  max-width: 68.75rem; /* 1100px */
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 5rem) 1.5rem;
}
.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title h2 {
  font-size: clamp(1.5rem, 2.5vw, 1.75rem);
  color: var(--brand);
}
.section-title p {
  color: #555;
  font-size: clamp(0.95rem, 1vw, 1rem);
}

/* SERVICES */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: 0.3s;
}
.service-card:hover {
  transform: translateY(-6px);
}

/* ABOUT */
.about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem;
}
.about img {
  width: 100%;
  max-width: 26rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.about-content {
  flex: 1;
}

/* CONTACT */
.contact {
  text-align: center;
}
.contact p {
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  margin-bottom: 0.75rem;
}
.contact a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

/* FOOTER */
footer {
  text-align: center;
  font-size: 0.875rem;
  color: #888;
  /* padding: 1.5rem 0; */
  background: #fafafa;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 992px) {
  .landing-header {
    justify-content: center;
  }
  .landing-header img {
    height: 5.5rem;
  }
}

@media (max-width: 768px) {
  .about {
    flex-direction: column;
    text-align: center;
  }
  .hero {
    padding: 4rem 1rem;
  }
  .landing-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .landing-header {
    text-align: center;
  }
  .landing-header nav {
    flex-direction: column;
    gap: 0.5rem;
  }
  .landing-header .cta {
    width: 100%;
    text-align: center;
  }
}
