/* Base styles for the page */
.page-da-ga-truc-tiep {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #f5f5f5; /* Light background for the main content area */
}

/* Ensure body padding-top is handled by shared.css */
/* .page-da-ga-truc-tiep { padding-top: var(--header-offset); } - NO, handled by body in shared.css */

.page-da-ga-truc-tiep__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-da-ga-truc-tiep__section {
  padding: 40px 0;
}

.page-da-ga-truc-tiep__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-da-ga-truc-tiep__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-da-ga-truc-tiep__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-da-ga-truc-tiep__dark-section .page-da-ga-truc-tiep__section-title {
  color: #ffffff;
}

.page-da-ga-truc-tiep__text-block {
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 1.1em;
}

.page-da-ga-truc-tiep__card {
  background: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-da-ga-truc-tiep__card-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 15px;
  display: block;
}

.page-da-ga-truc-tiep__card-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-da-ga-truc-tiep__card-text {
  font-size: 1em;
  line-height: 1.7;
}

/* Buttons */
.page-da-ga-truc-tiep__btn-primary,
.page-da-ga-truc-tiep__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  max-width: 100%; /* For responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-da-ga-truc-tiep__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-da-ga-truc-tiep__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-da-ga-truc-tiep__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-da-ga-truc-tiep__btn-secondary:hover {
  background-color: #e0e0e0;
}

.page-da-ga-truc-tiep__hero-cta-buttons,
.page-da-ga-truc-tiep__cta-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Hero Section */
.page-da-ga-truc-tiep__hero-section {
  padding-top: 10px; /* Small top padding, shared.css handles body padding */
  padding-bottom: 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #017439; /* Dark background for hero */
  color: #ffffff;
}

.page-da-ga-truc-tiep__hero-image {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
  margin-bottom: 20px;
}

.page-da-ga-truc-tiep__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-da-ga-truc-tiep__hero-content {
  max-width: 800px;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  background-color: #ffffff; /* Light background for text block */
  color: #333333;
  margin-top: 20px;
}

.page-da-ga-truc-tiep__hero-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  margin-bottom: 15px;
  font-weight: 800;
  line-height: 1.2;
  color: #017439; /* Brand color for H1 */
}

.page-da-ga-truc-tiep__hero-description {
  font-size: 1.2em;
  margin-bottom: 20px;
  line-height: 1.7;
}

/* Introduction Section */
.page-da-ga-truc-tiep__introduction .page-da-ga-truc-tiep__content-image {
  margin-top: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Game Types Grid */
.page-da-ga-truc-tiep__grid-3-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

/* How To Play Steps */
.page-da-ga-truc-tiep__step-by-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-da-ga-truc-tiep__step-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  text-align: center;
}

.page-da-ga-truc-tiep__step-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
}

.page-da-ga-truc-tiep__step-text {
  font-size: 1em;
  margin-bottom: 15px;
}

.page-da-ga-truc-tiep__step-item .page-da-ga-truc-tiep__btn-primary,
.page-da-ga-truc-tiep__step-item .page-da-ga-truc-tiep__btn-secondary {
  margin-top: 10px;
  display: block; /* Make buttons block for better mobile stacking */
  width: 100%;
}

/* Rules and Tips Grids */
.page-da-ga-truc-tiep__grid-2-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.page-da-ga-truc-tiep__rules ul {
  list-style: disc;
  margin-left: 20px;
  padding-left: 0;
}

.page-da-ga-truc-tiep__rules li {
  margin-bottom: 8px;
}

/* FAQ Section */
.page-da-ga-truc-tiep__faq-list {
  margin-top: 30px;
}

.page-da-ga-truc-tiep__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.page-da-ga-truc-tiep__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  list-style: none;
}

.page-da-ga-truc-tiep__faq-question::-webkit-details-marker, 
.page-da-ga-truc-tiep__faq-question::marker {
  display: none;
}

.page-da-ga-truc-tiep__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-da-ga-truc-tiep__faq-item[open] .page-da-ga-truc-tiep__faq-toggle {
  transform: rotate(45deg);
}

.page-da-ga-truc-tiep__faq-answer {
  padding: 0 20px 15px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: #555555;
}

/* Call to Action Bottom */
.page-da-ga-truc-tiep__cta-bottom {
  padding: 60px 0;
  text-align: center;
}

.page-da-ga-truc-tiep__cta-title {
  font-size: 2.2em;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-da-ga-truc-tiep__cta-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-da-ga-truc-tiep__section {
    padding: 20px 0;
  }

  .page-da-ga-truc-tiep__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-da-ga-truc-tiep__text-block,
  .page-da-ga-truc-tiep__hero-description,
  .page-da-ga-truc-tiep__card-text,
  .page-da-ga-truc-tiep__step-text,
  .page-da-ga-truc-tiep__faq-answer p,
  .page-da-ga-truc-tiep__cta-description {
    font-size: 1em;
    line-height: 1.5;
  }

  /* Hero Section Mobile */
  .page-da-ga-truc-tiep__hero-section {
    padding-top: 10px; /* Small top padding */
    padding-bottom: 20px;
  }

  .page-da-ga-truc-tiep__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-da-ga-truc-tiep__hero-content {
    padding: 20px;
    margin-top: 10px;
  }

  .page-da-ga-truc-tiep__hero-title {
    font-size: 1.8em; /* Adjust H1 size for mobile */
  }

  .page-da-ga-truc-tiep__hero-cta-buttons,
  .page-da-ga-truc-tiep__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* General Image Responsiveness */
  .page-da-ga-truc-tiep img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* General Container Responsiveness */
  .page-da-ga-truc-tiep__section,
  .page-da-ga-truc-tiep__card,
  .page-da-ga-truc-tiep__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button Specific Mobile Styles */
  .page-da-ga-truc-tiep__btn-primary,
  .page-da-ga-truc-tiep__btn-secondary,
  .page-da-ga-truc-tiep a[class*="button"],
  .page-da-ga-truc-tiep 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;
  }

  /* Grid Layouts Mobile */
  .page-da-ga-truc-tiep__grid-3-cols,
  .page-da-ga-truc-tiep__step-by-step,
  .page-da-ga-truc-tiep__grid-2-cols {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 15px;
  }

  /* FAQ Mobile */
  .page-da-ga-truc-tiep__faq-question {
    font-size: 1em;
    padding: 12px 15px;
  }

  .page-da-ga-truc-tiep__faq-answer {
    padding: 0 15px 12px 15px;
  }

  /* CTA Bottom Mobile */
  .page-da-ga-truc-tiep__cta-bottom {
    padding: 40px 0;
  }

  .page-da-ga-truc-tiep__cta-title {
    font-size: 1.6em;
  }
}