/* General styles for the Đá Gà page */
.page-da-ga {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background: #FFFFFF; /* Body background from shared.css */
}

/* Hero Section */
.page-da-ga__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-da-ga__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 500px; /* Limit height on desktop */
}

.page-da-ga__hero-content {
  position: relative; /* Not absolute, for upper-image-lower-text */
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.page-da-ga__main-title {
  font-size: 2.8em; /* Adjusted to avoid being too large */
  font-weight: 700;
  color: #017439; /* Brand color for title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-da-ga__description {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 30px;
}

/* General Container */
.page-da-ga__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Section Titles */
.page-da-ga__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
}

/* Call to Action Buttons */
.page-da-ga__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-da-ga__cta-buttons--center {
  justify-content: center;
}

.page-da-ga__btn-primary,
.page-da-ga__btn-secondary,
.page-da-ga__btn-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  max-width: 100%; /* Button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

.page-da-ga__btn-primary:hover {
  background: #a30606;
  border-color: #a30606;
}

.page-da-ga__btn-secondary {
  background: #017439;
  color: #FFFFFF;
  border: 2px solid #017439;
}

.page-da-ga__btn-secondary:hover {
  background: #005f2c;
  border-color: #005f2c;
}

.page-da-ga__btn-link {
  background: transparent;
  color: #017439;
  border: 2px solid #017439;
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-da-ga__btn-link:hover {
  background: #017439;
  color: #FFFFFF;
}

/* Image styles */
.page-da-ga__content-image,
.page-da-ga__step-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Intro Section */
.page-da-ga__intro-section p {
  margin-bottom: 15px;
  text-align: justify;
}

/* Advantages Section */
.page-da-ga__dark-bg {
  background: #017439;
  color: #FFFFFF;
  padding: 60px 0;
}

.page-da-ga__dark-bg .page-da-ga__section-title {
  color: #FFFFFF;
}

.page-da-ga__dark-bg p {
  color: #f0f0f0;
}

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

.page-da-ga__advantage-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-da-ga__advantage-card .page-da-ga__card-title {
  font-size: 1.4em;
  color: #FFFF00; /* Yellow for card titles on dark background */
  margin-bottom: 15px;
}

/* How to Play Section */
.page-da-ga__light-bg {
  background: #FFFFFF;
  color: #333333;
  padding: 60px 0;
}

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

.page-da-ga__step-card {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-da-ga__step-card .page-da-ga__card-title {
  font-size: 1.3em;
  color: #017439;
  margin-bottom: 15px;
}

/* Betting Types Section */
.page-da-ga__bet-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-da-ga__bet-type-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-da-ga__bet-type-card .page-da-ga__card-title {
  font-size: 1.3em;
  color: #FFFF00;
  margin-bottom: 15px;
}

/* Tips Section */
.page-da-ga__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-da-ga__tips-list li {
  background: #f0fdf2; /* Light green background for list items */
  padding: 15px 20px;
  margin-bottom: 10px;
  border-left: 5px solid #017439;
  border-radius: 5px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-da-ga__tips-list li strong {
  color: #017439;
}

/* Promotions Section */
.page-da-ga__promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-da-ga__promo-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-da-ga__promo-card .page-da-ga__card-title {
  font-size: 1.4em;
  color: #FFFF00;
  margin-bottom: 15px;
}

.page-da-ga__promo-card p {
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* FAQ Section */
details.page-da-ga__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-da-ga__faq-item summary.page-da-ga__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-da-ga__faq-item summary.page-da-ga__faq-question::-webkit-details-marker {
  display: none;
}
details.page-da-ga__faq-item summary.page-da-ga__faq-question:hover {
  background: #f5f5f5;
}
.page-da-ga__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-da-ga__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-da-ga__faq-item .page-da-ga__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}
.page-da-ga__faq-answer p {
  margin: 0;
  color: #555555;
}

/* Contact CTA Section */
.page-da-ga__contact-cta {
  text-align: center;
}

.page-da-ga__contact-content {
  padding: 60px 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-da-ga__main-title {
    font-size: 2.5em;
  }
  .page-da-ga__section-title {
    font-size: 2em;
  }
  .page-da-ga__advantages-grid,
  .page-da-ga__steps-grid,
  .page-da-ga__bet-types-grid,
  .page-da-ga__promo-cards {
    gap: 20px;
  }
  .page-da-ga__container {
    padding: 30px 15px;
  }
}

@media (max-width: 768px) {
  /* Top text / Hero padding */
  .page-da-ga__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
  }

  .page-da-ga__main-title {
    font-size: clamp(1.8em, 6vw, 2.2em); /* Clamp for h1 font-size */
    margin-top: 15px; /* Add some space above the title */
  }

  .page-da-ga__description {
    font-size: 1em;
  }

  .page-da-ga__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  /* Images */
  .page-da-ga img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-da-ga__container,
  .page-da-ga__hero-content,
  .page-da-ga__advantages-grid,
  .page-da-ga__steps-grid,
  .page-da-ga__bet-types-grid,
  .page-da-ga__promo-cards {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons */
  .page-da-ga__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .page-da-ga__btn-primary,
  .page-da-ga__btn-secondary,
  .page-da-ga__btn-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

  /* Grid layouts to single column */
  .page-da-ga__advantages-grid,
  .page-da-ga__steps-grid,
  .page-da-ga__bet-types-grid,
  .page-da-ga__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-da-ga__advantage-card,
  .page-da-ga__step-card,
  .page-da-ga__bet-type-card,
  .page-da-ga__promo-card {
    padding: 25px;
  }

  /* FAQ */
  details.page-da-ga__faq-item summary.page-da-ga__faq-question { padding: 15px; }
  .page-da-ga__faq-qtext { font-size: 15px; }
  details.page-da-ga__faq-item .page-da-ga__faq-answer { padding: 0 15px 15px; }
}