/* --- 1. BIẾN TOÀN CỤC (Để dễ đổi màu/font sau này) --- */
:root {
  --bg-dark: #1a1a1a; /* Màu nền đen xám */
  --text-light: #ffffff;
  --text-gray: #cccccc;
  --container-width: 1200px;
  --transition: all 0.3s ease;
}

@font-face {
  font-family: "Afacad";
  src: url(../fonts/Afacad-Regular.ttf) format("truetype");
}

/* --- 2. LAYOUT CƠ BẢN --- */
body {
  font-size: 20px;
  font-family: "Afacad";
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px; /* Padding để mobile không bị dính sát mép */
}

/* Container này sẽ chiếm 100% chiều rộng */
.container-fluid {
  width: 100%;
  padding-right: 80px; /* Khoảng cách an toàn 2 bên lề */
  padding-left: 80px;
  margin-right: auto;
  margin-left: auto;
  display: flex; /* Giữ các thành phần bên trong nằm ngang */
  align-items: center;
  justify-content: space-between;
  max-width: 1920px;
}

.section {
  padding: 60px 0;
}

.section__title {
  color: var(--section__title-color);
  text-align: center;
  font-size: 2rem;

  text-transform: uppercase;
  font-weight: 500;
}

.section__title_primary {
  color: var(--section__title_primary-color);
  font-size: 3.5rem;
  margin-bottom: 60px;
  text-align: center;
  font-weight: 600;
}

/* --- 3. HEADER & NAV --- */
.header {
  padding: 15px 0;
  top: 0;
  left: 0;
  z-index: 1000;
  position: fixed;
  width: 100%;
  background-color: transparent;
  transition:
    background-color 0.5s ease,
    padding 0.5s ease,
    /* Ép padding phải chuyển động mượt */ box-shadow 0.5s ease;
}

.header--scrolled {
  background-color: rgba(var(--header-bg-color), 0.8);
  padding: 10px 0; /* Co nhỏ header lại một chút cho chuyên nghiệp */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* Thêm bóng đổ nhẹ */
}

.header__wrapper {
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.nav__list {
  display: flex;
  text-transform: uppercase;
}

.nav__list a:hover {
  color: var(--primary-color);
  transition: var(--transition);
}

/* --- 4. HERO SECTION (BANNER) --- */
.hero {
  position: relative;
  height: 90vh; /* Chiếm 80% chiều cao màn hình */
  overflow: hidden;
}

/* Đảm bảo Swiper chiếm toàn bộ diện tích Hero */
.hero-swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  position: relative;
  overflow: hidden;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Quan trọng để ảnh không bị méo khi slide */
}

/* --- 5. GRID CHO CÁC CARD (Chương trình đang diễn ra) --- */
.shows__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Chia 3 cột đều nhau */
  gap: 30px;
}

.card {
  background: #252525;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #333;
}

.card__img img {
  width: 100%;
  aspect-ratio: 16/9; /* Giữ tỷ lệ ảnh chuẩn card */
  object-fit: cover;
}

.card__body {
  padding: 20px;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #000;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  margin-top: 15px;
  display: inline-block;
}

/* --- 6. PHẦN TRÒN (Chương trình sắp công diễn) --- */
.upcoming__list {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.upcoming__item {
  text-align: center;
  width: 230px;
}

.circle-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--primary-color);
  margin-bottom: 15px;
}

.circle-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo {
  display: flex;
  align-items: end;
  gap: 10px;
  font-family: "Afacad";
  color: var(--primary-color);
  font-weight: 700;
  font-size: 36px;
  line-height: normal;
}

.btn-login {
  color: #ffffff;
  width: 220px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--primary-color);
  border-radius: 50px;
}

.lang-switch {
  width: 100%;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 5px;
}
.lang-switch img {
  width: 24px;
  height: auto;
  cursor: pointer;
}

/* Đưa các nút ra phía trước và chỉnh màu */
.swiper-button-next,
.swiper-button-prev {
  background-color: var(--card__divider-color);
  backdrop-filter: blur(5px); /* Hiệu ứng kính mờ */
  width: 50px;
  height: 50px;
  border-radius: 50%; /* Làm nút hình tròn */
  color: var(--primary-color) !important; /* Ép dùng màu Gold đã định nghĩa */
  border: 1px solid rgba(212, 175, 55, 0.3); /* Viền vàng nhạt */
  transition: var(--transition);
}

/* Xóa bỏ icon mặc định của swiper để dùng SVG của mình */
.swiper-button-next::after,
.swiper-button-prev::after {
  display: none;
}

.swiper-button-next svg,
.swiper-button-prev svg {
  width: 24px;
  height: 24px;
  color: var(--primary-color);
}

/* Hiệu ứng khi di chuột vào (Hover) */
.swiper-button-next:hover,
.swiper-button-prev:hover {
  background-color: var(--nav-button-hover-bg-color);
  color: #000;
  box-shadow: 0 0 15px var(--primary-color);
}

.swiper-button-next:hover svg,
.swiper-button-prev:hover svg {
  color: #000;
}

.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
  opacity: 0; /* Ẩn hoàn toàn */
  visibility: hidden; /* Ngăn người dùng click khi đang ẩn */
  transition: all 0.4s ease-in-out; /* Hiệu ứng mờ dần trong 0.4 giây */
}

/* Khi di chuột vào slider (.hero-swiper), các nút sẽ hiện lên */
.hero-swiper:hover .swiper-button-next,
.hero-swiper:hover .swiper-button-prev {
  opacity: 1; /* Hiện hoàn toàn */
  visibility: visible; /* Cho phép click */
}

.shows-btn-prev.swiper-button-prev,
.upcoming-btn-prev.swiper-button-prev {
  left: -55px; /* Đẩy nút prev ra ngoài slider */
}

.shows-btn-next.swiper-button-next,
.upcoming-btn-next.swiper-button-next {
  right: -55px; /* Đẩy nút prev ra ngoài slider */
}

/* card */

.card {
  background-color: #262626; /* Màu xám đen của nền card */
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card__img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.card__content {
  padding: 13px;
  background-color: var(--card__content-bg-color);
}

.card__subtitle {
  color: var(--card__subtitle-color); /* Màu vàng gold */
  font-size: 20px;
  display: block;
  margin-bottom: 5px;
}

.card__title {
  color: var(--card__title-color);
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
}

.card__desc {
  color: var(--card__desc-color);
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
  /* Tạo hiệu ứng 2 dòng rồi chấm chấm nếu quá dài */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__divider {
  border-top: 1px dotted var(--card__divider-color);
  margin-bottom: 20px;
}

/* Phần thông tin vé (Icon + Text) */
.card__info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-icon {
  width: 50px;
  height: 50px;
  border: 1px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.info-icon img {
  width: 30px;
  height: auto;
}

.info-text {
  display: flex;
  flex-direction: column;
  font-size: 18px;
}

.info-text strong {
  color: var(--section__title-color);
}

.info-text span {
  font-size: 16px;
  color: var(--card__desc-color);
}

.align-right {
  text-align: right;
}

/* Nút Đặt Vé */
.btn-booking {
  width: 100%;
  background-color: var(--btn-booking-bg-color);
  color: var(--btn-booking-color);
  border: none;
  padding: 12px 0;
  font-weight: bold;
  font-size: 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.btn-booking:hover {
  background-color: #f1c40f;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.shows {
  background-color: var(--show-bg-color);
  border-bottom: 1px solid #d1bb6d;
}

.swiper-container {
  position: relative;
}

.upcoming {
  background-color: var(--upcoming-bg-color);
}

.upcoming .section__title_primary {
  color: var(--primary-color);
}

.shows-swiper {
  padding: 20px 5px 50px 5px; /* Thêm padding dưới để hiện pagination */
  overflow: hidden;
}

/* Đảm bảo các card trong slide có chiều cao bằng nhau */
.shows-swiper .swiper-slide {
  height: auto;
  display: flex;
}

.shows-swiper .card {
  width: 100%; /* Ép card chiếm hết chiều rộng slide */
  margin: 0; /* Swiper sẽ tự xử lý khoảng cách (gap) */
}

/* Style riêng cho pagination của phần này (màu Gold) */
.swiper-pagination .swiper-pagination-bullet-active {
  background: var(--primary-color) !important;
}

.upcoming__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 280px; /* Giới hạn độ rộng để text không bị tràn lan */
  margin: 0 auto;
}

/* Khung tròn chứa ảnh */
.upcoming__circle {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 20px;
  background-color: #333;
}

.upcoming__img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Đảm bảo ảnh không bị bóp méo */
  transition: transform 0.5s ease;
}

/* Hiệu ứng zoom nhẹ ảnh khi di chuột vào cả item */
.upcoming__item:hover .upcoming__img {
  transform: scale(1.05);
}

/* Tiêu đề vàng gold */
.upcoming__title {
  color: var(--primary-color);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* Đoạn văn bản mô tả */
.upcoming__text {
  color: var(--upcoming-text-color);
  font-size: 18px;
  line-height: 1.5;
  text-align: justify;
}

.upcoming {
  padding-bottom: 100px;
}

.upcoming .swiper-button-next:hover,
.upcoming .swiper-button-prev:hover {
  background-color: var(--primary-color);
  color: var(--btn-booking-color);
}

.leaders {
  position: relative; /* Làm gốc cho lớp giả */
  padding: 80px 0;
  width: 100%;
  background: var(--leaders-bg-gradient); /* Gradient làm nền chính */
  overflow: hidden;

  transition: 0.3s; /* Để đổi theme mượt hơn */
}

.leaders::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%; /* Chỉ chiếm nửa bên phải */
  height: 110%; /* Giữ chiều cao 110% như bạn muốn */

  /* Đưa ảnh vào đây */
  background-image: var(--leaders-bg-img);
  background-repeat: no-repeat;
  background-size: 200% 100%; /* Vì div này rộng 50%, nên ảnh phải rộng 200% để giữ đúng kích thước gốc */
  background-position: right top; /* Căn ảnh về bên phải */

  z-index: 0; /* Nằm dưới chữ */
}

/* Đảm bảo nội dung nằm trên ảnh */
.leaders > * {
  position: relative;
  z-index: 1;
}

/* Quan trọng: Để nội dung bên trong vẫn nằm giữa */
.leaders__wrapper {
  display: flex;
  align-items: start;
  gap: 50px;
}

.leaders-titles {
  width: 650px;
  margin-left: -100px;
}

.leaders-titles h2 {
  text-align: right;
  margin-bottom: 20px;
}

.leaders-titles .section__title_primary {
  line-height: 1.2;
}

.leader-card {
  display: flex;
  align-items: center;
  background-color: #ded5b3; /* Màu nền vàng kem nhạt như mẫu */
  border-radius: 100px; /* Tạo hình Oval */
  padding: 10px 40px 10px 10px; /* Padding phải rộng hơn để text không chạm mép cong */
  gap: 25px;
  margin-bottom: 30px;
  max-width: 800px; /* Giới hạn độ rộng để card không quá dài */
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.leader-card:hover {
  /* transform: translateX(10px);  */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.leader-card__image {
  width: 130px;
  height: 130px;
  flex-shrink: 0; /* Không cho ảnh bị bóp méo */
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
}

.leader-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leader-card__title {
  color: #1a1a1a;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.leader-card__text {
  color: #333;
  font-size: 18px;
  line-height: 1.5;
  /* Giới hạn 3 dòng để các card đều nhau */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* css footer */

/* Tổng thể Footer */
.main-footer {
  background-color: #3d3d3d; /* Màu xám đậm nền footer */
  padding: 60px 20px;
  color: #888888; /* Màu chữ mặc định */
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap; /* Cho phép rớt dòng khi màn hình nhỏ */
  justify-content: space-between;
  gap: 40px;
}

.footer-column {
  flex: 1;
  min-width: 250px; /* Độ rộng tối thiểu để kích hoạt responsive */
}

/* Cột 1: Thương hiệu */
.brand-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-logo {
  width: 50px;
  height: auto;
}

.brand-header h3 {
  color: var(--primary-color);
  margin: 0;
  font-size: 1.2rem;
}

.footer-line {
  border: 0;
  border-top: 1px solid #555555;
  margin: 20px 0;
  width: 80%;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: #ffffff;
  font-size: 1.5rem;
  text-decoration: none;
  opacity: 0.7;
  transition: 0.3s;
}

.social-icons a:hover {
  opacity: 1;
  color: var(--primary-color);
}

/* Cột 2 & 3: Tiêu đề cột */
.column-title {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
  width: fit-content;
}

.column-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
}

/* Danh sách link */
.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links li::before {
  content: "•";
  color: var(--primary-color);
  margin-right: 10px;
}

.footer-links a {
  color: #888888;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 5px;
}

/* Thông tin liên hệ */
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-item .icon {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.contact-item p {
  margin: 0;
  line-height: 1.5;
}

.links-col .column-title {
  margin-left: 100px;
}

.links-col .footer-links {
  margin-left: 100px;
}

/* Buttons */
.button-group {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  justify-content: center;
}

.button-group button {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
  max-width: 300px;
}

.btn-back {
  background-color: #777;
  color: white;
}
.btn-submit {
  background-color: var(--primary-color);
  color: white;
}

.btn-submit:hover {
  background-color: var(--btn-booking-bg-color);
}

.partners {
  background-color: var(--partners-bg-color);
}

.partners .section__title_primary {
  color: var(--primary-color);
}

.partners__text {
  color: var(--section__title-color);
}

.icon svg {
  fill: var(--primary-color);
}

.icon svg path {
  fill: var(--primary-color);
}

.header__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.header__right__top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.header__right__bottom {
  display: flex;
  align-items: end;
  gap: 20px;
}

/* Style cho nút Switch */

.theme-switch-wrapper {
  height: 40px;
}

.theme-switch {
  display: inline-block;
  height: 40px;
  position: relative;
  width: 220px; /* Độ dài theo mẫu */
}

.theme-switch input {
  display: none;
}

.slider {
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: 0.4s;
  border-radius: 50px; /* Bo tròn cực đại như ảnh */
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-mode {
  color: var(--switch-text);
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  user-select: none;
}

.search-wrapper {
  display: flex;
  justify-content: flex-end; /* Để nút mở rộng từ phải sang trái giống ảnh */
}

.search-container {
  display: flex;
  align-items: center;
  background-color: rgba(115, 115, 115, 0.5); /* Màu xám trung tính như ảnh */
  border-radius: 50px;
  height: 40px;
  width: 40px; /* Ban đầu chỉ là hình tròn chứa icon */
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1); /* Animation mượt hơn linear */
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

/* Khi có class .active (khi ấn vào) */
.search-container.active {
  width: 250px; /* Độ rộng khi mở ra giống ảnh 2 */
  padding: 0 10px;
}

.search-input {
  background: transparent;
  border: none;
  outline: none;
  width: 0;
  height: 100%;
  font-size: 16px;
  color: #e5d5a1; /* Màu chữ vàng nhạt */
  transition: all 0.5s;
  opacity: 0;
}

.search-container.active .search-input {
  width: 100%;
  opacity: 1;
  padding-left: 10px;
}

.search-input::placeholder {
  color: #e5d5a1;
  opacity: 0.7;
}

.search-icon-box {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.search-icon-box img {
  width: 24px; /* Chỉnh theo icon thực tế của bạn */
  height: auto;
}

.upcoming-swiper {
  padding: 20px 5px 50px 5px;
  overflow: hidden;
}
.mode-dark {
  font-weight: bold;
  color: #fbbf24; /* Màu vàng nhấn cho Dark mode */
  transition: all 0.3s ease;
}

.mode-light {
  font-weight: normal;
  color: #9ca3af;
  transition: all 0.3s ease;
}

#checkbox:checked + .slider .mode-dark {
  font-weight: normal;
  color: #9ca3af;
}

#checkbox:checked + .slider .mode-light {
  font-weight: bold;
  color: #ffffff; /* Hoặc màu đen tùy thiết kế của ông */
}

@media (max-width: 1400px) {
  .container-fluid {
    padding-left: 10px;
    padding-right: 10px;
  }

  .logo {
    font-size: 30px;
  }

  .logo img {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 1200px) {
  .links-col .column-title {
    margin-left: 0;
  }

  .links-col .footer-links {
    margin-left: 0;
  }
}

/* Responsive cho điện thoại (Dưới 768px) */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column; /* Xếp chồng các cột thành 1 hàng dọc */
    gap: 50px;
  }

  .footer-column {
    width: 100%;
    text-align: center;
  }

  .brand-header {
    justify-content: center;
  }

  .column-title::after {
    left: 50%;
    transform: translateX(-50%); /* Căn giữa gạch chân khi ở mobile */
  }

  .footer-links li::before {
    display: none; /* Ẩn dấu chấm ở mobile cho gọn */
  }

  .contact-item {
    flex-direction: column;
    align-items: center;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-line {
    margin: 20px auto;
  }
}

/* Responsive cho Mobile */
@media (max-width: 768px) {
  .leader-card {
    flex-direction: column;
    border-radius: 20px; /* Mobile nên để bo góc vuông hơn chút */
    padding: 30px 20px;
    text-align: center;
    max-width: 100%;
  }

  .leader-card__image {
    margin-bottom: 15px;
  }
}
