/* style/resources-best-card-game-strategy.css */
.page-resources-best-card-game-strategy {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

.page-resources-best-card-game-strategy__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* --- Hero Section --- */
.page-resources-best-card-game-strategy__hero-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 550px; /* Minimum height for hero */
  background-color: #017439; /* Brand primary color for hero background */
  color: #ffffff;
  padding-top: calc(var(--header-offset, 120px) + 100px); /* Adjust for header, and add desired top padding */
}

.page-resources-best-card-game-strategy__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom color for main title for prominence, ensure contrast */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.page-resources-best-card-game-strategy__subtitle {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-resources-best-card-game-strategy__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-resources-best-card-game-strategy__btn-primary,
.page-resources-best-card-game-strategy__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Include padding in width */
  text-align: center;
}

/* Custom colors for 'Đăng Ký Ngay' button in Hero */
.page-resources-best-card-game-strategy__hero-section .page-resources-best-card-game-strategy__btn-primary {
  background-color: #C30808; /* Custom for Register */
  color: #FFFF00; /* Custom for Register text */
  border: 2px solid #C30808;
}
.page-resources-best-card-game-strategy__hero-section .page-resources-best-card-game-strategy__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

/* General secondary button style (used for 'Chơi Thử Miễn Phí' in Hero) */
.page-resources-best-card-game-strategy__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #ffffff;
}
.page-resources-best-card-game-strategy__btn-secondary:hover {
  background-color: #f0f0f0;
  border-color: #f0f0f0;
}

/* General primary button style (used outside hero if not overridden, e.g., 'Tải Game Bài Ngay') */
.page-resources-best-card-game-strategy__btn-primary {
  background: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}
.page-resources-best-card-game-strategy__btn-primary:hover {
  background: #005a2e;
  border-color: #005a2e;
}

/* --- Video Section --- */
.page-resources-best-card-game-strategy__video-section {
  position: relative;
  padding: 60px 0;
  background-color: #1a1a2e; /* Dark background, matching body */
  color: #ffffff;
  text-align: center;
}

.page-resources-best-card-game-strategy__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Max width for video */
  margin: 30px auto;
  background-color: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-resources-best-card-game-strategy__video {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.page-resources-best-card-game-strategy__video-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: pointer;
}

.page-resources-best-card-game-strategy__video-caption {
  font-size: 1.1em;
  margin-top: 20px;
  color: #f0f0f0;
}

/* --- Content Sections --- */
.page-resources-best-card-game-strategy__content-section {
  padding: 60px 0;
}

.page-resources-best-card-game-strategy__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  color: #ffffff; /* Default for dark sections */
  font-weight: bold;
}

.page-resources-best-card-game-strategy__text-contrast-fix {
  color: #333333; /* For light background sections */
}

.page-resources-best-card-game-strategy__light-bg {
  background-color: #FFFFFF; /* Light background */
  color: #333333; /* Dark text for light background */
}
.page-resources-best-card-game-strategy__light-bg .page-resources-best-card-game-strategy__section-title {
  color: #017439; /* Brand color for titles on light bg */
}
.page-resources-best-card-game-strategy__light-bg .page-resources-best-card-game-strategy__list-title {
  color: #017439; /* Brand color for list titles on light bg */
}

.page-resources-best-card-game-strategy__dark-bg {
  background-color: #017439; /* Brand primary color for dark sections */
  color: #ffffff;
}

.page-resources-best-card-game-strategy__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-resources-best-card-game-strategy p {
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-resources-best-card-game-strategy strong {
  color: #FFFF00; /* Highlight keywords, good contrast on dark backgrounds */
}

/* --- Game List / Card Layout --- */
.page-resources-best-card-game-strategy__game-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-best-card-game-strategy__game-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark bg */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  color: #ffffff;
}

.page-resources-best-card-game-strategy__game-card .page-resources-best-card-game-strategy__card-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover; /* Cover the area */
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-resources-best-card-game-strategy__card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #FFFF00; /* Highlight card titles */
  font-weight: bold;
}

.page-resources-best-card-game-strategy__card-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* --- Strategy List / Advice List --- */
.page-resources-best-card-game-strategy__strategy-list,
.page-resources-best-card-game-strategy__advice-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-resources-best-card-game-strategy__list-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter for list items on dark bg */
  margin-bottom: 20px;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}
.page-resources-best-card-game-strategy__light-bg .page-resources-best-card-game-strategy__list-item {
  background-color: #f9f9f9;
  color: #333333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources-best-card-game-strategy__list-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #FFFF00; /* Highlight list titles */
  font-weight: bold;
}
.page-resources-best-card-game-strategy__light-bg .page-resources-best-card-game-strategy__list-title {
  color: #017439; /* Brand color for list titles on light bg */
}


.page-resources-best-card-game-strategy__cta-buttons--center {
  margin-top: 50px;
}

/* --- FAQ Section --- */
.page-resources-best-card-game-strategy__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF; /* Light background for FAQ */
  color: #333333;
}

.page-resources-best-card-game-strategy__faq-list {
  margin-top: 40px;
}

.page-resources-best-card-game-strategy__faq-item {
  background-color: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-resources-best-card-game-strategy__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s ease;
}
.page-resources-best-card-game-strategy__faq-question:hover {
  background-color: #f0f0f0;
}

.page-resources-best-card-game-strategy__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #017439; /* Brand color for FAQ questions */
  font-weight: bold;
}

.page-resources-best-card-game-strategy__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #017439; /* Brand color for toggle icon */
  transition: transform 0.3s ease;
}

.page-resources-best-card-game-strategy__faq-item.active .page-resources-best-card-game-strategy__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-best-card-game-strategy__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
  background-color: #f9f9f9;
}

.page-resources-best-card-game-strategy__faq-item.active .page-resources-best-card-game-strategy__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 25px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-resources-best-card-game-strategy__main-title {
    font-size: 2.8em;
  }
  .page-resources-best-card-game-strategy__subtitle {
    font-size: 1.2em;
  }
  .page-resources-best-card-game-strategy__game-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* Ensure header offset is applied to the first main content element */
  .page-resources-best-card-game-strategy__hero-section {
    padding-top: var(--header-offset, 120px); /* Use header offset directly, remove extra 100px for mobile */
    min-height: 400px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources-best-card-game-strategy__main-title {
    font-size: 2.2em;
  }
  .page-resources-best-card-game-strategy__subtitle {
    font-size: 1.1em;
  }
  .page-resources-best-card-game-strategy__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to buttons container */
  }
  .page-resources-best-card-game-strategy__btn-primary,
  .page-resources-best-card-game-strategy__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-resources-best-card-game-strategy__section-title {
    font-size: 2em;
  }
  .page-resources-best-card-game-strategy p {
    font-size: 1em;
  }

  /* Mobile image responsiveness */
  .page-resources-best-card-game-strategy img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources-best-card-game-strategy__game-card .page-resources-best-card-game-strategy__card-image {
    height: 180px; /* Adjust height for mobile cards */
  }

  /* Mobile video responsiveness */
  .page-resources-best-card-game-strategy video,
  .page-resources-best-card-game-strategy__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources-best-card-game-strategy__video-section,
  .page-resources-best-card-game-strategy__video-container,
  .page-resources-best-card-game-strategy__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  /* For elements containing images/videos/buttons, ensure max-width and padding */
  .page-resources-best-card-game-strategy__content-section,
  .page-resources-best-card-game-strategy__game-card,
  .page-resources-best-card-game-strategy__container,
  .page-resources-best-card-game-strategy__game-list,
  .page-resources-best-card-game-strategy__strategy-list,
  .page-resources-best-card-game-strategy__advice-list,
  .page-resources-best-card-game-strategy__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources-best-card-game-strategy__game-list {
    grid-template-columns: 1fr; /* Single column on mobile */
  }
  .page-resources-best-card-game-strategy__faq-question,
  .page-resources-best-card-game-strategy__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-resources-best-card-game-strategy__main-title {
    font-size: 1.8em;
  }
  .page-resources-best-card-game-strategy__subtitle {
    font-size: 1em;
  }
  .page-resources-best-card-game-strategy__section-title {
    font-size: 1.8em;
  }
}