/* style/player-guides.css */

/* --- Base Styles & Variables --- */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-color-dark-bg: #FFFFFF; /* For dark backgrounds like body */
  --text-color-light-bg: #333333; /* For light backgrounds like cards */
  --link-color: #017439;
  --button-register-login-bg: #C30808;
  --button-register-login-text: #FFFF00;
  --body-background: #000000; /* From prompt, body background is #000000 (dark) */
}

/* Ensure text on body background is light */
.page-player-guides {
  color: var(--text-color-dark-bg); /* Default text color for the entire page content */
  background-color: var(--body-background); /* Ensure consistent background, though body handles it */
}

/* --- Section Layouts --- */
.page-player-guides__section {
  padding: 60px 20px;
  max-width: 100%;
  box-sizing: border-box;
}

.page-player-guides__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Add some padding for smaller screens */
  box-sizing: border-box;
}

.page-player-guides__section-title {
  font-size: 3em;
  color: var(--text-color-dark-bg); /* Default for sections */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-player-guides__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
}

.page-player-guides__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-player-guides__text-block {
  flex: 1;
  font-size: 1.1em;
  line-height: 1.8;
}

.page-player-guides__text-block p {
  margin-bottom: 1em;
}

.page-player-guides__text-block--light {
  color: var(--text-color-dark-bg);
}

.page-player-guides__image-content {
  flex: 1;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size for content images */
  min-height: 200px;
}

/* --- Hero Section --- */
.page-player-guides__hero-section {
  position: relative;
  width: 100%;
  height: 70vh; /* Adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  box-sizing: border-box;
}

.page-player-guides__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  min-width: 200px;
  min-height: 200px;
}

.page-player-guides__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-player-guides__hero-content {
  position: relative;
  z-index: 3;
  color: var(--text-color-dark-bg);
  max-width: 900px;
  padding: 0 20px;
}

.page-player-guides__hero-title {
  font-size: 4.5em;
  margin-bottom: 20px;
  line-height: 1.1;
  color: var(--text-color-dark-bg);
}

.page-player-guides__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-player-guides__hero-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* --- Buttons --- */
.page-player-guides__btn-primary,
.page-player-guides__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-player-guides__btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.page-player-guides__btn-primary:hover {
  background-color: #005c2d; /* Manual darken */
}

.page-player-guides__btn-primary--large {
  padding: 18px 40px;
  font-size: 1.2em;
}

.page-player-guides__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-player-guides__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-player-guides__btn-text {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 15px;
  transition: color 0.3s ease;
}

.page-player-guides__btn-text:hover {
  color: #005c2d; /* Manual darken */
}

/* --- Specific Section Styles --- */
.page-player-guides__what-is-nổhũ {
  background-color: var(--body-background); /* Dark background */
  color: var(--text-color-dark-bg);
}

.page-player-guides__how-it-works {
  background-color: var(--primary-color); /* Brand color as dark background */
  color: var(--text-color-dark-bg);
}

.page-player-guides__how-it-works .page-player-guides__section-title {
  color: var(--text-color-dark-bg);
}

.page-player-guides__types-of-nổhũ {
  background-color: var(--body-background); /* Dark background */
  color: var(--text-color-dark-bg);
}

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

.page-player-guides__grid--two-columns {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.page-player-guides__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  color: var(--text-color-dark-bg); /* Light text on card background */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 350px; /* Ensure cards have some height */
  box-sizing: border-box;
}

.page-player-guides__card-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum size for card images */
  min-height: 200px;
}

.page-player-guides__card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: var(--text-color-dark-bg);
}

.page-player-guides__card-description {
  font-size: 1em;
  line-height: 1.6;
  flex-grow: 1; /* Allow description to take available space */
}

.page-player-guides__card--small {
  text-align: left;
  min-height: auto;
  padding: 20px;
}

.page-player-guides__tips-strategies {
  background-color: var(--primary-color);
  color: var(--text-color-dark-bg);
}

.page-player-guides__tips-strategies .page-player-guides__section-title {
  color: var(--text-color-dark-bg);
}

.page-player-guides__list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 1em;
}

.page-player-guides__list li {
  margin-bottom: 0.5em;
}

.page-player-guides__reputable-platform {
  background-color: var(--body-background);
  color: var(--text-color-dark-bg);
}

.page-player-guides__cta-bottom {
  text-align: center;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-player-guides__cta-text {
  font-size: 1.5em;
  margin-bottom: 20px;
  color: var(--text-color-dark-bg);
}

.page-player-guides__promotions {
  background-color: var(--primary-color);
  color: var(--text-color-dark-bg);
}

.page-player-guides__promotions .page-player-guides__section-title {
  color: var(--text-color-dark-bg);
}

/* --- FAQ Section --- */
.page-player-guides__faq {
  background-color: var(--body-background);
  color: var(--text-color-dark-bg);
}

.page-player-guides__faq-list {
  margin-top: 40px;
}

.page-player-guides__faq-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter card for FAQ */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-sizing: border-box;
}

.page-player-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: var(--text-color-dark-bg);
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-player-guides__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.page-player-guides__faq-qtext {
  flex-grow: 1;
}

.page-player-guides__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
}

.page-player-guides__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.1em;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8); /* Slightly muted text for answers */
}

/* Native details/summary styling reset */
.page-player-guides__faq-item summary {
  list-style: none;
}
.page-player-guides__faq-item summary::-webkit-details-marker {
  display: none;
}

/* --- Final CTA Section --- */
.page-player-guides__cta-final {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--primary-color); /* Use brand color as dark background */
  color: var(--text-color-dark-bg);
}

.page-player-guides__cta-content {
  max-width: 800px;
}

.page-player-guides__cta-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: var(--text-color-dark-bg);
}

.page-player-guides__cta-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-player-guides__hero-title {
    font-size: 3.5em;
  }
  .page-player-guides__hero-description {
    font-size: 1.1em;
  }
  .page-player-guides__section-title,
  .page-player-guides__cta-title {
    font-size: 2.5em;
  }
}

@media (max-width: 768px) {
  .page-player-guides__hero-section {
    height: 60vh;
  }
  .page-player-guides__hero-title {
    font-size: 2.5em;
  }
  .page-player-guides__hero-description {
    font-size: 1em;
  }
  .page-player-guides__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-player-guides__btn-primary,
  .page-player-guides__btn-secondary,
  .page-player-guides a[class*="button"],
  .page-player-guides a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-player-guides__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .page-player-guides__content-wrapper--reverse {
    flex-direction: column; /* Ensure it stays column on mobile */
  }
  .page-player-guides__section-title,
  .page-player-guides__cta-title {
    font-size: 2em;
  }
  .page-player-guides__cta-description {
    font-size: 1.1em;
  }
  .page-player-guides__grid {
    grid-template-columns: 1fr;
  }
  .page-player-guides__card {
    min-height: auto;
  }
  .page-player-guides img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-player-guides__section,
  .page-player-guides__card,
  .page-player-guides__container,
  .page-player-guides__video-section, /* Added for completeness, though no video currently */
  .page-player-guides__video-container,
  .page-player-guides__video-wrapper,
  .page-player-guides__cta-buttons,
  .page-player-guides__button-group,
  .page-player-guides__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }
  .page-player-guides__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Re-apply header offset for mobile */
  }
  /* For button groups that might flex-wrap */
  .page-player-guides__hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

/* Ensure all links within the main content are readable */
.page-player-guides a {
  color: var(--link-color); /* Default link color */
  text-decoration: underline;
}

.page-player-guides a:hover {
  color: #004c22; /* Manual darken */
}

/* Ensure no image filters */
.page-player-guides img {
  filter: none !important;
}

/* Ensure content images are not too small */
.page-player-guides__image-content {
  min-width: 200px;
  min-height: 200px;
}

.page-player-guides__card-image {
  min-width: 200px;
  min-height: 200px;
}

/* Specific button colors */
.page-player-guides__btn-register {
  background-color: var(--button-register-login-bg);
  color: var(--button-register-login-text);
  border: 2px solid var(--button-register-login-bg);
}

.page-player-guides__btn-register:hover {
  background-color: #a70707; /* Manual darken */
}

.page-player-guides__btn-login {
  background-color: var(--button-register-login-bg);
  color: var(--button-register-login-text);
  border: 2px solid var(--button-register-login-bg);
}

.page-player-guides__btn-login:hover {
  background-color: #a70707; /* Manual darken */
}

/* Text color for sections with primary color background */
.page-player-guides__dark-section .page-player-guides__text-block p,
.page-player-guides__dark-section .page-player-guides__list li {
  color: var(--text-color-dark-bg);
}

/* Ensure text in cards on dark background is light */
.page-player-guides__card p {
  color: rgba(255, 255, 255, 0.8);
}