/* ======== RESET & FONT ======== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans", "Segoe UI", sans-serif;
  background-color: #f9f6f2; /* nền kem ấm */
  color: #3d2c23;            /* chữ nâu đậm */
  line-height: 1.7;
}

/* ======== NAVBAR ======== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  padding: 0px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  z-index: 1000;
}

.navbar a {
  text-decoration: none;
  color: #5c4033;
  font-weight: 600;
  margin: 0 15px;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #b97a57; /* màu cà phê sữa */
}

/* ======== HEADER ======== */
header {
  text-align: center;
  padding: 80px 15px 10px;
  color: #fff;
 background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
            url("../banner_giaotiep.jpg") center/cover no-repeat;
}

header h1 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0px;
  color: #fff;
}

header p {
  font-size: 0.8rem;
  opacity: 0.95;
  margin-top: 0;
}

/* ======== SECTION ======== */
/* Luôn hiển thị section đầu tiên khi vừa vào */
.fade-in:first-of-type {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

section {
  max-width: 900px;
  margin: 20px auto;
  padding: 0 20px;
}

/* ======== TIÊU ĐỀ ======== */
.section-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: #5c4033;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background-color: #e6c3a5;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ======== INTRO TEXT / CARD ======== */
.intro-text {
  background: #ffffffd9;
  border: 1px solid #eee0d2;
  border-radius: 16px;
  padding: 30px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  line-height: 1.8;
  color: #3d2c23;
}

.intro-text strong {
  color: #b97a57;
}

.intro-text ul {
  padding-left: 25px;
}

.intro-text li {
  margin-bottom: 8px;
}
/* ======== Lich Trinh Hoc ======== */
.schedule-poster {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 25px;
}

.schedule-poster img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transition: 0.3s ease;
}

.schedule-poster img:hover {
  transform: scale(1.02);
}

/* Section Quá Trình 1 Ngày Học */
.day-schedule-poster {
  display: flex;
  justify-content: center; /* căn giữa poster */
  margin-top: 25px;
}

.day-schedule-poster img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.day-schedule-poster img:hover {
  transform: scale(1.02);
}

/* ===== PHẦN HỌC VIÊN NÓI GÌ ===== */


.review-poster {
  display: flex;
  justify-content: center; /* căn giữa hàng ảnh */
  gap: 20px;               /* khoảng cách giữa các ảnh */
  flex-wrap: wrap;          /* tự động xuống dòng nếu màn hình nhỏ */
  margin-top: 25px;
}

.review-poster img {
  width: 260px;            /* cố định chiều rộng */
  height: auto;            /* chiều cao tự động */
  border-radius: 16px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.review-poster img:hover {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .review-poster img {
    width: 100%;           /* ảnh full width khi mobile */
    margin-bottom: 15px;   /* khoảng cách dọc */
  }
}


/* Bố cục 3 video dọc */
.review-videos {
  display: flex;
  justify-content: center; /* căn giữa hàng video */
  gap: 15px;               /* khoảng cách giữa các video */
  flex-wrap: wrap;          /* tự động xuống dòng nếu màn hình nhỏ */
  margin-top: 20px;
}

.review-videos video {
  width: 200px;            /* giảm chiều rộng */
  height: 360px;           /* tỷ lệ dọc */
  border-radius: 12px;     /* bo góc */
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  object-fit: cover;       /* poster hiển thị đầy, không méo */
  transition: transform 0.3s ease;
}


.review-videos video:hover {
  transform: scale(1.03);
}
/* Đảm bảo phần Học Viên Nói Gì luôn hiển thị */
#hocvien.fade-in {
  opacity: 1 !important;
  transform: none !important;
}

/* Cho mobile đẹp */
@media (max-width: 768px) {
  .review-videos video {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
  }
}
/* ======== Lich Hoc ======== */
.schedule-poster {
  display: flex;
  justify-content: center; /* căn giữa poster */
  margin-top: 25px;
}

.schedule-poster img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.schedule-poster img:hover {
  transform: scale(1.02);
}

.schedule-poster.vertical {
  display: flex;
  flex-direction: column; /* xếp dọc */
  justify-content: center;
  align-items: center;
  gap: 20px;
}
/* ======== BENEFITS ======== */
.benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.benefit {
  background: #fffaf5;
  border-radius: 14px;
  padding: 25px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: all 0.3s ease;
}

.benefit:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.benefit h3 {
  color: #b97a57;
  margin-bottom: 10px;
}

/* ======== CONTACT ======== */
.contact {
  text-align: center;
  margin-top: 60px;
}

.contact a {
  display: inline-block;
  padding: 12px 26px;
  margin: 5px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  background-color: #b97a57;
  color: #fff;
  transition: background 0.3s ease;
}

.contact a:hover {
  background-color: #9a6547;
}

.btn-home {
  background: #5c4033;
}

.btn-home:hover {
  background: #3d2c23;
}

#lightbox {
  display: none;               /* ẩn mặc định */
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  object-fit: contain;
}


/* ======== FOOTER ======== */
footer {
  text-align: center;
  padding: 30px 0;
  color: #6b5648;
  font-size: 0.9rem;
}

/* ======== FADE IN EFFECT ======== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .navbar {
    flex-wrap: wrap;
    padding: 0px;
  }
  .navbar a {
    margin: 6px;
    font-size: 0.9rem;
  }
}