:root {
  --cyan: #00bcd4;
  --yellow: #ffeb3b;
  --dark: #0f172a;
  --white: #ffffff;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Lexend", sans-serif;
}
body {
  background: #f8fafc;
  color: var(--dark);
  scroll-behavior: smooth;
}

/* Navbar */
header {
  background: rgba(255, 255, 255, 0.98);
  padding: 15px 5%;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: auto;
}
.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--cyan);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
}
.nav-hotline {
  background: #ff4757;
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
}

/* Banner Ảnh đầu trang */
.hero {
  height: 85vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}
.hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 20px;
}
.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}
.hero h1 span {
  color: var(--cyan);
}
.hero-btns {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}
.btn-main {
  background: var(--yellow);
  color: #000;
  padding: 15px 35px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
}
.btn-sub {
  border: 2px solid #fff;
  color: #fff;
  padding: 15px 35px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
}

/* Thống kê */
.stats {
  display: flex;
  justify-content: space-around;
  padding: 60px 10%;
  background: var(--dark);
  color: var(--yellow);
  text-align: center;
}
.stats h2 {
  font-size: 3rem;
  font-weight: 800;
}
.stats p {
  color: #fff;
}

/* FAQ - Bài viết xổ xuống */
.faq {
  padding: 80px 5%;
  background: #f1f5f9;
}
.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 40px;
  font-weight: 800;
}
.faq-container {
  max-width: 850px;
  margin: auto;
}
.faq-card {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.faq-question {
  width: 100%;
  padding: 20px;
  text-align: left;
  background: #fff;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: 0.4s ease-out;
  background: #fafafa;
}
.faq-answer p {
  padding: 25px;
  line-height: 1.8;
  color: #444;
  border-top: 1px solid #eee;
}
.faq-card.active .faq-answer {
  max-height: 400px;
}
.faq-card.active .faq-question {
  color: var(--cyan);
}

/* Fix lỗi Khóa học */
.course-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 40px 5%;
  flex-wrap: wrap;
}

.course-card {
  background: #fff;
  border-radius: 15px;
  width: 400px; /* Tăng độ rộng để không bị co chữ */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
  overflow: hidden;
}

.card-header {
  background: #1a1e29;
  color: white;
  padding: 20px;
  font-weight: bold;
  font-size: 1.2rem;
}

.card-body {
  padding: 30px;
  text-align: center;
}

.card-price {
  font-size: 4rem;
  font-weight: 800;
  color: #00bcd4;
  margin-bottom: 20px;
}
.card-price span {
  font-size: 1.5rem;
  color: #999;
}

.card-features {
  list-style: none;
  padding: 0;
  text-align: left;
  margin-bottom: 30px;
}
.card-features li {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #444;
}

.btn-select {
  width: 100%;
  padding: 15px;
  background: #fff;
  border: 2px solid #00bcd4;
  color: #00bcd4;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}
.btn-select:hover {
  background: #00bcd4;
  color: #fff;
}

/* Fix lỗi Liên hệ bị lệch */
.contact-box {
  display: flex;
  max-width: 1000px;
  margin: 50px auto;
  background: #1a1e29;
  color: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.contact-info {
  padding: 40px;
  flex: 1;
  background: #1a1e29;
}
.contact-form {
  padding: 40px;
  flex: 1.5;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-row {
  display: flex;
  gap: 10px;
}
.contact-form input,
.contact-form select {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  flex: 1;
}

.contact-form button {
  background: #00bcd4;
  color: white;
  border: none;
  padding: 15px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}
/* Tổng thể khu vực lộ trình */
.process-section {
  padding: 80px 5%;
  background-color: #f8fafc;
}

.section-subtitle {
  text-align: center;
  color: #64748b;
  margin-top: -30px;
  margin-bottom: 50px;
  font-weight: 300;
}

/* Lưới hiển thị - ÉP DÀN HÀNG NGANG TRIỆT ĐỂ */
.process-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
  max-width: 1400px; /* Nới rộng để 4 ô nằm thoải mái */
  margin: 0 auto;
  flex-wrap: nowrap; /* Không cho xuống hàng trên máy tính */
}

/* Thiết kế Card hình chữ nhật đứng như cũ */
.step-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px 20px;
  flex: 1; /* Chia đều 4 ô */
  min-width: 250px; /* Đảm bảo không bị quá hẹp */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: left; /* Căn trái nội dung */
}

.step-card:hover {
  transform: translateY(-10px);
  border-color: #00bcd4;
  box-shadow: 0 20px 40px rgba(0, 188, 212, 0.15);
}

.step-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.step-number {
  font-size: 2rem;
  font-weight: 800;
  color: #f1f5f9;
}

.icon-step {
  font-size: 1.8rem;
  color: #00bcd4;
}

.step-body {
  flex-grow: 1;
}

.step-body h4 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #1e293b;
  font-weight: 700;
}

.step-body p {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
}

.step-footer {
  margin-top: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #00bcd4;
}

/* Chỉ xuống hàng khi xem trên điện thoại */
@media (max-width: 1024px) {
  .process-grid {
    flex-wrap: wrap;
  }
  .step-card {
    flex: 1 1 calc(50% - 20px);
  }
}

@media (max-width: 650px) {
  .step-card {
    flex: 1 1 100%;
  }
}
/* Chỉnh lại Modal bài viết cho đẹp */
.modal-content {
  border-radius: 30px;
  border-top: 10px solid var(--primary);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}
.main-footer {
  background-color: #1a1e29; /* Màu tối như ảnh số 5 của Thầy */
  color: #cbd5e1;
  padding: 60px 0 20px;
  font-size: 0.95rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  padding: 0 5%;
}

.logo-footer {
  font-size: 1.5rem;
  font-weight: 800;
  color: #00bcd4;
  margin-bottom: 20px;
}
.logo-footer span {
  color: #fff;
}

.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h4::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: #00bcd4;
}

.footer-links,
.footer-info {
  list-style: none;
  padding: 0;
}
.footer-links li,
.footer-info li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: 0.3s;
}
.footer-links a:hover {
  color: #00bcd4;
  padding-left: 5px;
}

.footer-info i {
  color: #00bcd4;
  width: 20px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}
.social-links a {
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 50%;
  transition: 0.3s;
}
.social-links a:hover {
  background: #00bcd4;
  transform: translateY(-3px);
}

.footer-bottom {
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 0.85rem;
}
.contact-bright {
  background: #e0f7fa; /* Nền xanh tươi mát */
  padding: 100px 5%; /* Tăng không gian để nhìn thoáng hơn */
  border: none; /* Bỏ hoàn toàn viền */
  position: relative;
}

.contact-bright {
  /* Chuyển màu từ Trắng tinh khiết sang Xanh lơ nhạt một cách từ từ */
  background: linear-gradient(to bottom, #ffffff 0%, #f0fdff 20%, #e0f7fa 100%);
  padding: 120px 5%; /* Tăng khoảng cách để màu có không gian trải dài */
  border: none;
  position: relative;
  overflow: hidden;
}

/* Thêm hiệu ứng trang trí nhẹ để tăng chiều sâu (Đồ sộ hơn) */
.contact-bright::after {
  content: "";
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(0, 188, 212, 0.05) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

/* Dòng 533 - PHẦN CONTACT BRIGHT */
.contact-bright {
  background: #e0f7fa;
  padding: 80px 5%;
  position: relative;
}

.bright-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}

.bright-text {
  flex: 1;
}

.bright-text h2 {
  font-size: 2rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 15px;
  line-height: 1.3;
}

.bright-text p {
  font-size: 1rem;
  color: #475569;
  line-height: 1.6;
}

.bright-action {
  text-align: center;
}

.btn-register-now {
  display: inline-block;
  padding: 18px 45px;
  background: #00bcd4;
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0, 188, 212, 0.3);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-register-now:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 188, 212, 0.4);
}

.hotline-text {
  margin-top: 20px;
  color: #64748b;
  font-weight: 500;
  font-size: 0.95rem;
}

.hotline-text span {
  color: #ff4757;
  font-weight: 800;
  font-size: 1.15rem;
}
/* Dòng 577 */
/* Cấu trúc bong bóng chat Zalo */
/* Nút Zalo tỏa sáng như đèn */
.zalo-chat-bubble {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  text-decoration: none;
  display: flex;
  align-items: center;
  background: #0084ff;
  padding: 12px 25px;
  border-radius: 12px; /* Hình thoi dài bo góc nhẹ cho nam tính */

  /* Hiệu ứng phát sáng như đèn neon */
  box-shadow:
    0 0 15px rgba(0, 132, 255, 0.8),
    0 0 30px rgba(0, 132, 255, 0.4),
    0 0 45px rgba(0, 132, 255, 0.2);

  transition: all 0.3s ease;
  animation: glow-lamp 2s infinite alternate; /* Nhịp thở phát sáng */
}

/* Hiệu ứng hào quang tỏa sáng nhịp nhàng */
@keyframes glow-lamp {
  from {
    box-shadow:
      0 0 10px rgba(0, 132, 255, 0.6),
      0 0 20px rgba(0, 132, 255, 0.3);
    filter: brightness(1);
  }
  to {
    box-shadow:
      0 0 25px rgba(0, 132, 255, 0.9),
      0 0 50px rgba(0, 132, 255, 0.5);
    filter: brightness(1.2); /* Sáng rực lên như đèn */
  }
}

/* Icon Zalo giữ nguyên hình dáng, không bo tròn */
.zalo-icon img {
  width: 35px;
  height: auto;
  display: block;
  /* Giữ nguyên hình chữ nhật/vuông bo nhẹ của logo gốc */
}

.zalo-text {
  color: white !important;
  font-weight: 800;
  font-size: 1rem;
  margin-left: 12px;
  text-transform: uppercase; /* Cho chữ nổi bật hẳn lên */
  letter-spacing: 0.5px;
}

.zalo-chat-bubble:hover {
  transform: scale(1.05) translateY(-5px);
  filter: brightness(1.4);
}
/* Hiệu ứng cho mobile */
@media (max-width: 768px) {
  .bright-container {
    text-align: center;
  }
  .bright-text h2 {
    font-size: 1.8rem;
  }
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
}
.cta-content p {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 40px;
}

.btn-main-cta {
  display: inline-block;
  padding: 20px 40px;
  background: #00bcd4;
  color: white;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 800;
  border-radius: 50px;
  box-shadow: 0 10px 20px rgba(0, 188, 212, 0.3);
  transition: 0.3s;
  margin-bottom: 30px;
}

.btn-main-cta:hover {
  transform: scale(1.05);
  background: #ffeb3b;
  color: #1a1e29;
}

.cta-contact-fast {
  display: flex;
  justify-content: center;
  gap: 30px;
  font-weight: 600;
  font-size: 1.1rem;
}

.cta-contact-fast i {
  color: #00bcd4;
}
/* Nút Bản Tin nổi bật */
/* Nút Bản Tin hình vuông bo cong */
.nav-links a.btn-news-square {
  background-color: #00bcd4; /* Màu xanh thương hiệu */
  color: #ffffff !important; /* Chữ trắng tinh */
  font-weight: 800;
  text-decoration: none;
  padding: 10px 20px !important; /* Chỉnh padding để tạo dáng hình chữ nhật/vuông cân đối */
  border-radius: 8px; /* Bo cong nhẹ (không tròn xoe) */
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 188, 212, 0.2);
  text-align: center;
}

/* Hiệu ứng khi di chuột vào */
.nav-links a.btn-news-square:hover {
  background-color: #00acc1; /* Đậm hơn một chút */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 188, 212, 0.3);
  color: #ffffff !important;
}
/* --- CHO DESKTOP (Màn hình lớn) --- */
@media (min-width: 1025px) {
  .hero-content h1 {
    font-size: 3rem;
  } /* Chữ to cho sang */
  .step-card {
    flex: 1;
  } /* 4 ô dàn hàng ngang */
}

/* --- CHO TABLET (Màn hình vừa) --- */
@media (max-width: 1024px) {
  .step-card {
    flex: 1 1 45%;
  } /* Hiện 2 ô một hàng */
}

/* --- CHO MOBILE (Điện thoại - Quan trọng nhất) --- */
@media (max-width: 768px) {
  /* Hạ size chữ xuống để không bị ngắt dòng khó chịu */
  h1 {
    font-size: 1.6rem !important;
  }
  h2 {
    font-size: 1.4rem !important;
  }
  p {
    font-size: 0.9rem !important;
  }

  /* Ép tất cả dàn hàng dọc cho dễ đọc */
  .process-grid {
    flex-direction: column;
    align-items: center;
  }
  .step-card {
    width: 100%;
    max-width: 350px;
  }

  /* Nút bấm phải to ra cho dễ chạm tay */
  .btn-hero,
  .btn-news-square {
    padding: 12px 20px !important;
    width: 90%; /* Gần full màn hình điện thoại */
    text-align: center;
  }
}
@media (max-width: 768px) {
  .hero-content {
    text-align: center; /* Căn giữa toàn bộ chữ và nút */
    padding: 40px 20px;
  }
}
/* Nút Tư vấn miễn phí (Viền trắng, Chữ trắng, nền trong suốt hoặc đậm) */
.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid #ffffff; /* Viền trắng sang trọng */
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 700;
  border-radius: 50px; /* Bo cong tròn */
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  background: transparent; /* Nền trong suốt để thấy ảnh xe phía sau */
}

/* Hiệu ứng khi di chuột vào */
.btn-secondary:hover {
  background-color: #ffffff; /* Đổi thành nền trắng */
  color: #1e293b !important; /* Chữ chuyển sang màu tối */
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Fix cho Mobile: Nút tự xuống dòng và to ra dễ bấm */
@media (max-width: 768px) {
  .btn-secondary {
    display: block;
    width: 80%;
    margin: 10px auto;
    text-align: center;
    padding: 15px;
  }
}
.btn-secondary {
  display: inline-flex; /* Dùng flex để căn giữa */
  align-items: center; /* Giữa theo chiều dọc */
  justify-content: center; /* Giữa theo chiều ngang */
  padding: 12px 30px; /* Bỏ padding lẻ, dùng số chẵn cho cân */
  border: 2px solid #ffffff;
  color: #ffffff !important;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1; /* Ép dòng về 1 để không bị đẩy chữ */
  height: 48px; /* Cố định chiều cao để dễ kiểm soát */
  box-sizing: border-box;
}
