/* --- 1. BIẾN TOÀN CỤC (Để dễ đổi màu/font sau này) --- */
:root {
  --primary-color: #d1bb6d; /* Màu vàng gold của Rạp Xiếc */
  --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 {
  text-align: center;
  font-size: 2rem;
  color: #ffffff;
  text-transform: uppercase;
  font-weight: 500;
}

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

/* --- 3. HEADER & NAV --- */
.header {
  /* background-color: rgba(0, 0, 0, 0.9); */
  padding: 15px 0;
  top: 0;
  left: 0;
  z-index: 1000;
  position: fixed;
  width: 100%;
  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: #1e1e1e; /* Màu bạn yêu cầu */
  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: center;
}

.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: 200px;
}

.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: center;
  gap: 10px;
  font-family: "Afacad";
  color: var(--primary-color);
  font-weight: 700;
  font-size: 36px;
}

.btn-login {
  color: var(--primary-color);
}

.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: rgba(255, 255, 255, 0.1); /* Nền mờ nhẹ */
  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(--primary-color);
  color: #000 !important;
  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: #313131;
}

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

.card__title {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 15px;
}

.card__desc {
  color: #b3b3b3;
  font-size: 16px;
  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 rgba(255, 255, 255, 0.2);
  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: #fff;
}

.info-text span {
  font-size: 13px;
  color: #b3b3b3;
}

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

/* Nút Đặt Vé */
.btn-booking {
  width: 100%;
  background-color: var(--primary-color);
  color: #000;
  border: none;
  padding: 12px 0;
  font-weight: bold;
  font-size: 16px;
  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: #434343;
  border-bottom: 1px solid #d1bb6d;
}

.swiper-container {
  position: relative;
}

.upcoming {
  background-color: #333333;
}

.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: #e0e0e0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.upcoming {
  padding-bottom: 100px;
}

.leaders {
  /* Chia đôi: 50% đầu là #1E1E1E, 50% sau là #333333 */
  background: linear-gradient(to right, #1e1e1e 50%, #333333 50%);
  padding: 80px 0;
  width: 100%;
}

/* 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: 1rem;
  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: #c4a661; /* Màu vàng thương hiệu */
  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: #c4a661;
}

/* 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: #c4a661;
}

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

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

.footer-links li::before {
  content: "•";
  color: #c4a661;
  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: #c4a661;
  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: #c4a661;
  color: white;
}

.btn-submit:hover {
  background-color: #d4b775;
}

@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;
  }
}

.partners {
  background-color: #434343;
}

/* --- SUB-PAGE STYLES --- */
.sub-page {
  background: #434343;
}

.sub-page .header {
  background: #1e1e1e;
  position: static;
}

.sub-page__title {
  margin-top: 50px;
}

.sub-page .main-footer {
  border-top: 4px solid #c4a661; 
}
