/* =================================================================== */
/*                      BIẾN TOÀN CỤC VÀ CÀI ĐẶT CHUNG                    */
/* =================================================================== */
:root {
  --primary-color: #0d47a1; /* Xanh đậm */
  --secondary-color: #1976d2; /* Xanh nhạt hơn */
  --accent-color: #42a5f5; /* Xanh accent */
  --text-color: #333;
  --light-text-color: #f5f5f5;
  --bg-color: #ffffff;
  --light-gray-bg: #f9f9f9;
  --border-color: #e0e0e0;
  --font-family: "Montserrat", sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

section {
  padding: 80px 0;
}

h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.3;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  color: var(--primary-color);
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--light-text-color);
  padding: 15px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 30px;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  color: #ffd700;
}

/* =================================================================== */
/*                              PHẦN HERO                               */
/* =================================================================== */
.hero {
  background: linear-gradient(135deg, var(--primary-color), #10396a);
  color: var(--light-text-color);
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 0;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.hero .subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 40px;
  opacity: 0.9;
}

/* =================================================================== */
/*                         PHẦN GIỚI THIỆU LỢI ÍCH                       */
/* =================================================================== */
#intro {
  margin-top: 50px;
  margin-bottom: 50px;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.benefit-item {
  text-align: center;
  padding: 30px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.benefit-item i {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.benefit-item h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

/* =================================================================== */
/*                         PHẦN LỘ TRÌNH (TIMELINE)                      */
/* =================================================================== */
#roadmap {
  background-image: url(../images/bg3_pacakge.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
}

#benefits-title:hover {
  color: black;
}

#title_roadmap {
  color: #ffffff;
}

#title_roadmap:hover {
  color: #ffd700;
}

#hero-title-roadmap:hover {
  color: #ffd700;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  width: 3px;
  background-color: var(--accent-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1.5px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  right: -11px;
  background-color: white;
  border: 4px solid var(--primary-color);
  top: 25px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(even)::after {
  left: -9px;
}

.timeline-content {
  padding: 20px 30px;
  background-color: white;
  position: relative;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
  color: var(--secondary-color);
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.timeline-content ul {
  list-style-type: none;
  padding-left: 0;
}

.timeline-content ul li {
  padding-left: 20px;
  position: relative;
}

.timeline-content ul li::before {
  content: "✓";
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* =================================================================== */
/*               NÂNG CẤP TIMELINE (ICON & ACCORDION)                  */
/* =================================================================== */

/* --- Styling cho phần Header của mỗi mục timeline --- */
.timeline-header {
  display: flex;
  align-items: center;
  cursor: pointer; /* Biến con trỏ thành hình bàn tay khi di chuột */
  padding: 10px 0;
}

.timeline-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-right: 15px;
}

.timeline-content h3 {
  margin-bottom: 0; /* Bỏ margin cũ */
  flex-grow: 1; /* Đẩy icon mũi tên ra cuối */
}

.expand-icon {
  font-size: 1.5rem;
  color: var(--accent-color);
  transition: transform 0.3s ease; /* Hiệu ứng xoay mượt mà */
}

/* --- Logic cho Accordion (Ẩn/Hiện) --- */
.timeline-body {
  max-height: 0; /* Mặc định ẩn nội dung */
  overflow: hidden;
  transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out; /* Hiệu ứng trượt mượt mà */
  padding: 0 20px; /* Bỏ padding khi bị ẩn */
}

/* 
 * Class 'active' này sẽ được JavaScript thêm vào.
 * Khi có class 'active', nội dung sẽ hiện ra.
*/
.timeline-content.active .timeline-body {
  max-height: 500px; /* Chiều cao tối đa đủ để chứa nội dung */
  padding: 20px;
}

/* Xoay icon mũi tên khi mục được mở */
.timeline-content.active .expand-icon {
  transform: rotate(180deg);
}

/* =================================================================== */
/*                        KÊU GỌI HÀNH ĐỘNG VÀ FOOTER                    */
/* =================================================================== */
#cta {
  text-align: center;
}

#cta p {
  max-width: 600px;
  margin: 0 auto 30px auto;
}

#title_cta {
  margin-top: 30px;
  margin-bottom: 20px;
}

#title_cta:hover {
  color: #000;
}

/* =================================================================== */
/*                              RESPONSIVE                               */
/* =================================================================== */
@media (max-width: 992px) {
  h1 {
    font-size: 2.8rem;
  }
  h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }

  /* Chuyển timeline sang 1 cột */
  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 15px;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-item::after {
    left: 11px;
  }
}
