/* style/guides.css */
.page-guides {
  color: #f0f0f0; /* Sử dụng màu chữ nhạt cho nền tối */
  background-color: #0a0a0a; /* Nền tối */
  padding-top: 100px; /* Khoảng cách cho header cố định */
}

@media (min-width: 769px) {
  .page-guides {
    padding-top: 120px; /* Khoảng cách cho header cố định trên desktop */
  }
}

.page-guides__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-guides__container--padded {
  padding: 40px 20px;
}

.page-guides__main-title {
  font-size: 3.2em;
  color: #FFD700; /* Màu vàng phụ trợ */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-guides__intro-text {
  font-size: 1.15em;
  line-height: 1.8;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-guides__intro-text strong {
  color: #FFD700;
}

.page-guides__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.page-guides__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.page-guides__btn--primary {
  background-color: #FFD700; /* Màu vàng */
  color: #0A192F; /* Màu chữ chính cho nền vàng */
}

.page-guides__btn--primary:hover {
  background-color: #e6c200;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-guides__btn--secondary {
  background-color: transparent;
  color: #FFD700; /* Màu chữ vàng */
  border-color: #FFD700;
}

.page-guides__btn--secondary:hover {
  background-color: rgba(255, 215, 0, 0.1);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

.page-guides__section {
  padding: 60px 0;
  background-color: #1a1a1a; /* Nền hơi sáng hơn để tạo sự phân biệt */
  margin-bottom: 20px;
  border-radius: 10px;
}

.page-guides__section:nth-child(even) {
  background-color: #0f0f0f;
}

.page-guides__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-guides__section-description {
  font-size: 1.05em;
  line-height: 1.7;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-guides__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-guides__feature-card {
  background-color: #0A192F; /* Nền đậm */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-guides__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.page-guides__feature-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 215, 0, 0.1);
  border-radius: 50%;
  padding: 15px;
  box-sizing: border-box;
}

.page-guides__feature-icon img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: none; /* Đảm bảo không có filter màu */
}

.page-guides__feature-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-guides__feature-description {
  font-size: 1em;
  line-height: 1.6;
  color: #cccccc;
}

.page-guides__guide-steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 40px;
}

.page-guides__step-item {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  background-color: #0A192F;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.page-guides__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #FFD700;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 215, 0, 0.15);
  border-radius: 50%;
  border: 2px solid #FFD700;
}

.page-guides__step-content h3 {
  font-size: 1.8em;
  color: #FFD700;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-guides__step-content p {
  font-size: 1.05em;
  line-height: 1.7;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.page-guides__step-content img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 20px;
  border: 1px solid rgba(255, 215, 0, 0.1);
  filter: none; /* Đảm bảo không có filter màu */
}

.page-guides__error-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-guides__error-item {
  background-color: #0A192F;
  padding: 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.page-guides__error-item h3 {
  font-size: 1.6em;
  color: #FFD700;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-guides__error-item p {
  font-size: 1em;
  line-height: 1.6;
  color: #cccccc;
}

.page-guides__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-guides__feature-item {
  background-color: #0A192F;
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.page-guides__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-guides__feature-item img {
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  filter: none; /* Đảm bảo không có filter màu */
}

.page-guides__feature-item h3 {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-guides__feature-item p {
  font-size: 0.95em;
  line-height: 1.6;
  color: #cccccc;
}

.page-guides__notes-list {
  list-style: disc;
  padding-left: 25px;
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-guides__notes-list li {
  font-size: 1.05em;
  line-height: 1.8;
  margin-bottom: 15px;
  color: #e0e0e0;
}

.page-guides__notes-list li strong {
  color: #FFD700;
}

/* FAQ Section */
.page-guides__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-guides__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.page-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #0A192F;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #f0f0f0;
}

.page-guides__faq-question:hover {
  background-color: #1a2a40;
}

.page-guides__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn h3 chặn sự kiện click */
  color: #FFD700;
}

.page-guides__faq-toggle {
  font-size: 2.2em;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none; /* Ngăn icon chặn sự kiện click */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-guides__faq-item.active .page-guides__faq-toggle {
  transform: rotate(45deg); /* Biểu tượng xoay khi mở */
  color: #f0f0f0;
}

.page-guides__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background-color: #1a2a40; /* Nền tối cho câu trả lời */
  color: #e0e0e0;
}

.page-guides__faq-item.active .page-guides__faq-answer {
  max-height: 2000px !important; /* Đủ lớn để chứa mọi nội dung */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-guides__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.6;
}

.page-guides__conclusion .page-guides__section-title {
  color: #FFD700;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-guides__main-title {
    font-size: 2.8em;
  }

  .page-guides__section-title {
    font-size: 2.2em;
  }

  .page-guides__intro-text, .page-guides__section-description {
    font-size: 1.1em;
  }

  .page-guides__feature-title {
    font-size: 1.3em;
  }

  .page-guides__step-content h3 {
    font-size: 1.6em;
  }

  .page-guides__feature-item h3 {
    font-size: 1.3em;
  }

  .page-guides__faq-question h3 {
    font-size: 1.05em;
  }

  .page-guides__faq-toggle {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-guides {
    padding-top: 80px !important; /* Điều chỉnh cho mobile header */
  }

  .page-guides__container {
    padding: 0 15px;
  }

  .page-guides__container--padded {
    padding: 30px 15px;
  }

  .page-guides__main-title {
    font-size: 2.2em;
  }

  .page-guides__intro-text {
    font-size: 1em;
  }

  .page-guides__cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-guides__btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-guides__section {
    padding: 40px 0;
  }

  .page-guides__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

  .page-guides__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-guides__content-grid, .page-guides__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-guides__feature-card, .page-guides__feature-item {
    padding: 20px;
  }

  .page-guides__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }

  .page-guides__feature-title {
    font-size: 1.2em;
  }

  .page-guides__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    gap: 15px;
  }

  .page-guides__step-number {
    font-size: 2em;
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
  }

  .page-guides__step-content h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
  }

  .page-guides__step-content p {
    font-size: 0.95em;
  }

  .page-guides__step-content img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-guides__error-item {
    padding: 20px;
  }

  .page-guides__error-item h3 {
    font-size: 1.3em;
  }

  .page-guides__notes-list {
    padding-left: 20px;
  }

  .page-guides__notes-list li {
    font-size: 0.95em;
  }

  .page-guides__faq-question {
    padding: 15px 20px;
  }

  .page-guides__faq-question h3 {
    font-size: 1em;
  }

  .page-guides__faq-toggle {
    font-size: 1.8em;
    width: 25px;
    height: 25px;
    margin-left: 15px;
  }

  .page-guides__faq-answer {
    padding: 0 20px;
  }

  .page-guides__faq-item.active .page-guides__faq-answer {
    padding: 15px 20px !important;
  }

  /* Tất cả hình ảnh phải thích ứng với chiều rộng màn hình */
  .page-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-guides__section,
  .page-guides__card,
  .page-guides__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-guides__main-title {
    font-size: 1.8em;
  }

  .page-guides__section-title {
    font-size: 1.6em;
  }
}