/* style/beginner-guide.css */
:root {
  --primary-color: #0A2239;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #121212;
  --bg-light: #f9f9f9;
  --border-color: #e0e0e0;
}

.page-beginner-guide {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body background is dark, so text is light */
  background-color: var(--bg-dark);
}

/* 🚨 Cần điều chỉnh padding-top cho main content để tránh bị header cố định che khuất */
/* Desktop padding-top */
.page-content.page-beginner-guide {
  padding-top: 10px; /* Điều chỉnh dựa trên chiều cao thực tế của header */
}

/* Video Section */
.page-beginner-guide__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Desktop: Điều chỉnh dựa trên chiều cao thực tế của header */
  background: linear-gradient(135deg, var(--primary-color) 0%, #061522 100%);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-beginner-guide__video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-beginner-guide__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-beginner-guide__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-beginner-guide__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-beginner-guide__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 12px;
  object-fit: cover;
  pointer-events: none; /* Prevent video controls from blocking click event on parent <a> */
}

.page-beginner-guide__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-beginner-guide__video-link:hover .page-beginner-guide__video-overlay {
  opacity: 1;
}

.page-beginner-guide__video-click-hint {
  color: var(--text-light);
  font-size: 20px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
  padding: 12px 25px;
  background: rgba(255, 215, 0, 0.8);
  border-radius: 8px;
  white-space: nowrap;
  color: var(--primary-color);
}

.page-beginner-guide__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.page-beginner-guide__play-now-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--secondary-color); /* Gold color */
  color: var(--primary-color); /* Dark blue text */
  text-decoration: none;
  border-radius: 10px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-beginner-guide__play-now-button:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-beginner-guide__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* H1 Title + CTA Buttons Section */
.page-beginner-guide__title-section {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-beginner-guide__title-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-beginner-guide__main-title {
  font-size: 44px;
  color: var(--secondary-color);
  margin-bottom: 25px;
  line-height: 1.2;
  font-weight: 700;
}

.page-beginner-guide__title-description {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.85);
}

.page-beginner-guide__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-beginner-guide__cta-button {
  display: inline-block;
  padding: 16px 35px;
  background: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--secondary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
}

.page-beginner-guide__cta-button:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-beginner-guide__faq-section {
  padding: 80px 20px;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-beginner-guide__faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-beginner-guide__faq-title {
  font-size: 38px;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
}

.page-beginner-guide__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-beginner-guide__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 20px;
  opacity: 0;
}

.page-beginner-guide__faq-item.active .page-beginner-guide__faq-answer {
  max-height: 2000px !important;
  padding: 25px 20px !important;
  opacity: 1;
  background: #061522; /* Slightly darker than primary for contrast */
  border-radius: 0 0 8px 8px;
}

.page-beginner-guide__faq-answer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.7;
}

.page-beginner-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: #0A2239;
  border: 1px solid #1a3a5a;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-beginner-guide__faq-question:hover {
  background: #1a3a5a;
  border-color: #2a4a6a;
}

.page-beginner-guide__faq-item.active .page-beginner-guide__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-beginner-guide__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--secondary-color);
  pointer-events: none;
}

.page-beginner-guide__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-beginner-guide__faq-item.active .page-beginner-guide__faq-toggle {
  color: var(--text-light);
  transform: rotate(45deg); /* Change to X or rotate for visual effect */
}

/* Brand Introduction Section */
.page-beginner-guide__brand-section {
  padding: 80px 20px;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-beginner-guide__brand-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-beginner-guide__brand-title {
  font-size: 38px;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
}

.page-beginner-guide__brand-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-beginner-guide__brand-item {
  background: #0A2239; /* Primary color background */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-beginner-guide__brand-item h3 {
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-beginner-guide__brand-item p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

.page-beginner-guide__brand-image {
  max-width: 100%; /* Ensure images are responsive */
  height: auto; /* Maintain aspect ratio */
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  width: 100%; /* Fill container width */
  min-height: 200px; /* Minimum height for content images */
}

/* Blog List Section */
.page-beginner-guide__blog-section {
  padding: 80px 20px;
  background-color: #061522; /* Slightly darker for visual contrast */
  color: var(--text-light);
}

.page-beginner-guide__blog-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-beginner-guide__blog-title {
  font-size: 38px;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 50px;
  font-weight: 700;
}

.page-beginner-guide__blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-beginner-guide__blog-item {
  background: var(--primary-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-beginner-guide__blog-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 25px;
}

.page-beginner-guide__blog-image {
  width: 100%;
  height: 200px; /* Fixed height for blog images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-beginner-guide__blog-item-title {
  font-size: 22px;
  color: var(--secondary-color);
  margin-bottom: 10px;
  line-height: 1.3;
  font-weight: 600;
}

.page-beginner-guide__blog-item-excerpt {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
  line-height: 1.6;
}

.page-beginner-guide__blog-item-date {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-beginner-guide__main-title {
    font-size: 38px;
  }

  .page-beginner-guide__title-description {
    font-size: 17px;
  }

  .page-beginner-guide__faq-title,
  .page-beginner-guide__brand-title,
  .page-beginner-guide__blog-title {
    font-size: 34px;
  }

  .page-beginner-guide__brand-item h3 {
    font-size: 22px;
  }

  .page-beginner-guide__blog-item-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  /* 🚨 Mobile specific padding-top for fixed header */
  .page-content.page-beginner-guide {
    padding-top: 10px !important; /* Mobile: Điều chỉnh dựa trên chiều cao thực tế của header di động */
  }

  .page-beginner-guide__video-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-beginner-guide__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  
  .page-beginner-guide__video-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-beginner-guide__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 8px;
    overflow: hidden !important;
  }
  
  .page-beginner-guide__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    object-fit: contain;
  }
  
  .page-beginner-guide__video-click-hint {
    font-size: 16px !important;
    padding: 10px 20px !important;
  }

  .page-beginner-guide__video-cta {
    margin-top: 25px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .page-beginner-guide__play-now-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 15px 30px !important;
    font-size: 18px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-beginner-guide__title-section,
  .page-beginner-guide__faq-section,
  .page-beginner-guide__brand-section,
  .page-beginner-guide__blog-section {
    padding: 50px 15px;
  }

  .page-beginner-guide__main-title {
    font-size: 32px;
    margin-bottom: 20px;
  }

  .page-beginner-guide__title-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-beginner-guide__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-beginner-guide__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 25px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-beginner-guide__faq-title,
  .page-beginner-guide__brand-title,
  .page-beginner-guide__blog-title {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .page-beginner-guide__faq-question {
    padding: 18px 20px;
  }

  .page-beginner-guide__faq-question h3 {
    font-size: 16px;
  }

  .page-beginner-guide__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

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

  .page-beginner-guide__faq-item.active .page-beginner-guide__faq-answer {
    padding: 20px !important;
  }

  .page-beginner-guide__faq-answer p {
    font-size: 15px;
  }

  .page-beginner-guide__brand-content {
    grid-template-columns: 1fr;
  }

  .page-beginner-guide__brand-item {
    padding: 25px;
  }

  .page-beginner-guide__brand-item h3 {
    font-size: 20px;
  }

  .page-beginner-guide__brand-item p {
    font-size: 15px;
  }

  .page-beginner-guide__blog-list {
    grid-template-columns: 1fr;
  }

  .page-beginner-guide__blog-item {
    padding: 0;
  }

  .page-beginner-guide__blog-link {
    padding: 20px;
  }

  .page-beginner-guide__blog-image {
    height: 180px;
  }

  .page-beginner-guide__blog-item-title {
    font-size: 18px;
  }

  .page-beginner-guide__blog-item-excerpt {
    font-size: 14px;
  }

  .page-beginner-guide img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-beginner-guide__section,
  .page-beginner-guide__card,
  .page-beginner-guide__container,
  .page-beginner-guide__brand-item,
  .page-beginner-guide__blog-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  /* Specific padding for sections that need it */
  .page-beginner-guide__title-section .page-beginner-guide__title-container,
  .page-beginner-guide__faq-section .page-beginner-guide__faq-container,
  .page-beginner-guide__brand-section .page-beginner-guide__brand-container,
  .page-beginner-guide__blog-section .page-beginner-guide__blog-container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure images are responsive */
.page-beginner-guide img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Smart Contrast for various elements */
.page-beginner-guide h1, .page-beginner-guide h2, .page-beginner-guide h3, .page-beginner-guide h4, .page-beginner-guide h5, .page-beginner-guide h6 {
  color: var(--secondary-color); /* Headings use gold for emphasis */
}

.page-beginner-guide p, .page-beginner-guide li {
  color: rgba(255, 255, 255, 0.85); /* Light text for dark background */
}

.page-beginner-guide__card, .page-beginner-guide__box {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white on dark background */
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Overriding for specific sections if needed */
.page-beginner-guide__dark-section {
  background: var(--primary-color);
  color: var(--text-light);
}

.page-beginner-guide__text-block {
  background: #061522;
  color: var(--text-light);
  padding: 25px;
  border-radius: 8px;
}

/* Buttons contrast */
.page-beginner-guide__btn-primary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

.page-beginner-guide__btn-primary:hover {
  background: #e6c200;
  border-color: #e6c200;
}

.page-beginner-guide__btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-beginner-guide__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
}