/* style/resources-registration-guide.css */
:root {
  --primary-color: #FFD700; /* Vàng kim */
  --secondary-color: #8B0000; /* Đỏ sẫm */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #121212;
  --bg-light: #f5f5f5;
  --border-color: #333333;
}

.page-resources-registration-guide {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Màu chữ mặc định cho nền tối */
  background-color: var(--bg-dark); /* Nền tối */
}

/* 🚨 Desktop Video Section Styles (Strictly enforced) */
.page-resources-registration-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: Adjust according to actual navigation bar height */
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(139, 0, 0, 0.1));
}

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

/* 🚨 Video Click Link Styles (Strictly enforced) */
.page-resources-registration-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-resources-registration-guide__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-resources-registration-guide__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio - 🚨 PageSpeed optimization: fixed aspect ratio to prevent layout shifts (CLS) */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.page-resources-registration-guide__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* Prevent video controls from blocking click events */
}

/* 🚨 Video Click Hint Overlay Styles (Optional, enhances user experience) */
.page-resources-registration-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: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

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

.page-resources-registration-guide__video-click-hint {
  color: var(--text-light);
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  background: rgba(255, 215, 0, 0.8);
  border-radius: 5px;
  white-space: nowrap;
  color: var(--text-dark); /* Ensure contrast on primary color background */
}

/* 🚨 Play Now Button Styles (Strictly enforced, centered below video) */
.page-resources-registration-guide__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.page-resources-registration-guide__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--text-dark); /* Ensure text is dark for contrast on primary color */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
}

.page-resources-registration-guide__play-now-button:hover {
  background: var(--secondary-color);
  color: var(--text-light); /* Text light on secondary dark background */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.page-resources-registration-guide__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Title Section */
.page-resources-registration-guide__title-section {
  padding: 80px 20px;
  text-align: center;
  background: var(--bg-dark);
  color: var(--text-light);
  padding-top: 10px; /* Adjust for fixed header */
}

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

.page-resources-registration-guide__main-title {
  font-size: 42px;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-registration-guide__title-description {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
}

.page-resources-registration-guide__title-description a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources-registration-guide__title-description a:hover {
  color: var(--secondary-color);
}

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

.page-resources-registration-guide__cta-button {
  display: inline-block;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
}

.page-resources-registration-guide__cta-button--primary {
  background: var(--primary-color);
  color: var(--text-dark);
}

.page-resources-registration-guide__cta-button--primary:hover {
  background: var(--secondary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.page-resources-registration-guide__cta-button--secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-resources-registration-guide__cta-button--secondary:hover {
  background: var(--primary-color);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* FAQ Section */
.page-resources-registration-guide__faq-section {
  padding: 80px 20px;
  background-color: #1a1a1a; /* Nền hơi sáng hơn để phân biệt */
  color: var(--text-light);
}

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

.page-resources-registration-guide__faq-title {
  font-size: 36px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 50px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-registration-guide__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-resources-registration-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 15px;
  opacity: 0;
}

.page-resources-registration-guide__faq-item.active .page-resources-registration-guide__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #2a2a2a;
  border-radius: 0 0 5px 5px;
  color: rgba(255, 255, 255, 0.85);
}

.page-resources-registration-guide__faq-answer p {
  margin: 0;
  padding: 0;
}

.page-resources-registration-guide__faq-answer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-resources-registration-guide__faq-answer a:hover {
  color: var(--secondary-color);
}

.page-resources-registration-guide__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #222222;
  border: 1px solid #333333;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources-registration-guide__faq-question:hover {
  background: #2b2b2b;
  border-color: var(--primary-color);
}

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

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

.page-resources-registration-guide__faq-item.active .page-resources-registration-guide__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* Change to X shape */
}

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

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

.page-resources-registration-guide__brand-title {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 50px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-resources-registration-guide__brand-item {
  background: #1a1a1a;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333333;
}

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

.page-resources-registration-guide__brand-item h3 {
  font-size: 24px;
  color: var(--primary-color);
  margin-top: 20px;
  margin-bottom: 15px;
}

.page-resources-registration-guide__brand-item p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
}

.page-resources-registration-guide__brand-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-resources-registration-guide__brand-item a:hover {
  color: var(--secondary-color);
}

.page-resources-registration-guide__brand-image {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* Blog Section */
.page-resources-registration-guide__blog-section {
  padding: 80px 20px;
  background-color: #121212;
  color: var(--text-light);
}

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

.page-resources-registration-guide__blog-title {
  font-size: 36px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 50px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-resources-registration-guide__blog-item {
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333333;
}

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

.page-resources-registration-guide__blog-link {
  display: block;
  text-decoration: none;
  color: var(--text-light);
  padding-bottom: 20px;
}

.page-resources-registration-guide__blog-item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #333333;
  transition: transform 0.3s ease;
}

.page-resources-registration-guide__blog-item:hover .page-resources-registration-guide__blog-item-image {
  transform: scale(1.03);
}

.page-resources-registration-guide__blog-item-title {
  font-size: 20px;
  color: var(--primary-color);
  margin: 20px 20px 10px 20px;
  line-height: 1.4;
}

.page-resources-registration-guide__blog-item-excerpt {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 20px 15px 20px;
}

.page-resources-registration-guide__blog-item-excerpt a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-resources-registration-guide__blog-item-excerpt a:hover {
  color: var(--secondary-color);
}

.page-resources-registration-guide__blog-item-date {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 20px;
}

/* General text link styling for dark background */
.page-resources-registration-guide__internal-link {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources-registration-guide__internal-link:hover {
  color: var(--secondary-color);
}

/* 🚨 Mobile Responsive Design (Strictly enforced) */
@media (max-width: 768px) {
  .page-resources-registration-guide {
    font-size: 15px;
  }

  .page-resources-registration-guide__video-section {
    padding-top: 10px !important; /* Mobile: Adjust according to mobile navigation bar height */
    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-resources-registration-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-resources-registration-guide__video-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-resources-registration-guide__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 4px;
    overflow: hidden !important;
  }
  
  .page-resources-registration-guide__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
    object-fit: contain;
  }
  
  .page-resources-registration-guide__video-cta {
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .page-resources-registration-guide__play-now-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources-registration-guide__main-title {
    font-size: 30px;
  }

  .page-resources-registration-guide__title-description {
    font-size: 16px;
  }

  .page-resources-registration-guide__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-resources-registration-guide__faq-title,
  .page-resources-registration-guide__brand-title,
  .page-resources-registration-guide__blog-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-resources-registration-guide__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-resources-registration-guide__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-resources-registration-guide__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-resources-registration-guide__faq-answer {
    padding: 0 15px;
  }
  
  .page-resources-registration-guide__faq-item.active .page-resources-registration-guide__faq-answer {
    padding: 15px !important;
  }

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

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

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

  .page-resources-registration-guide__brand-item p {
    font-size: 14px;
  }

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

  .page-resources-registration-guide__blog-item-title {
    font-size: 18px;
    margin: 15px 15px 8px 15px;
  }

  .page-resources-registration-guide__blog-item-excerpt,
  .page-resources-registration-guide__blog-item-date {
    margin: 0 15px;
  }

  /* All images responsive */
  .page-resources-registration-guide img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources-registration-guide__section,
  .page-resources-registration-guide__card,
  .page-resources-registration-guide__container,
  .page-resources-registration-guide__title-section,
  .page-resources-registration-guide__title-container,
  .page-resources-registration-guide__faq-section,
  .page-resources-registration-guide__faq-container,
  .page-resources-registration-guide__brand-section,
  .page-resources-registration-guide__brand-container,
  .page-resources-registration-guide__blog-section,
  .page-resources-registration-guide__blog-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video specific mobile overrides to ensure no overflow */
  .page-resources-registration-guide video,
  .page-resources-registration-guide__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources-registration-guide__video-section,
  .page-resources-registration-guide__video-container,
  .page-resources-registration-guide__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  .page-resources-registration-guide__video-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
    height: 0 !important;
  }
}