/* Base styles for the Đá Gà page */
.page-da-ga {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Default text color for dark background */
  background-color: #08160F; /* Custom Background color */
}

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

.page-da-ga__section-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-da-ga__text-block {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  text-align: justify;
}

.page-da-ga__list-title {
  font-size: 20px;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
}

/* Color specific classes */
.page-da-ga__dark-section {
  background-color: #08160F; /* Custom Background color */
  color: #F2FFF6; /* Text Main */
}

.page-da-ga__light-bg {
  background-color: #f8f9fa; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-da-ga__light-bg .page-da-ga__section-title,
.page-da-ga__light-bg .page-da-ga__list-title {
  color: #333333;
}

.page-da-ga__light-bg .page-da-ga__text-block,
.page-da-ga__light-bg .page-da-ga__tips-list li p {
  color: #555555;
}

.page-da-ga__text-main {
  color: #F2FFF6;
}

.page-da-ga__text-secondary {
  color: #A7D9B8;
}

/* Hero Section */
.page-da-ga__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, relying on body padding for header offset */
  padding-bottom: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-da-ga__hero-image {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  margin-bottom: 30px;
}

.page-da-ga__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 600px; /* Ensure image doesn't get too tall */
}

.page-da-ga__hero-content {
  max-width: 900px;
  padding: 0 15px;
}

.page-da-ga__main-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  color: #F2C14E; /* Gold */
}

.page-da-ga__description {
  font-size: 18px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-da-ga__hero-buttons,
.page-da-ga__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-da-ga__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom Button color */
  color: #F2FFF6; /* Text Main */
  border: none;
}

.page-da-ga__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-da-ga__btn-secondary {
  background: transparent;
  color: #F2FFF6; /* Text Main */
  border: 2px solid #2E7A4E; /* Custom Border color */
}

.page-da-ga__btn-secondary:hover {
  background: #2E7A4E; /* Custom Border color */
  color: #F2FFF6;
  transform: translateY(-2px);
}

.page-da-ga__center-btn {
  margin-top: 30px;
  margin-bottom: 30px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

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

.page-da-ga__feature-card {
  background: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border color */
}

.page-da-ga__feature-card img {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-da-ga__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #F2FFF6; /* Text Main */
}

.page-da-ga__card-description {
  font-size: 15px;
  color: #A7D9B8; /* Text Secondary */
}

/* How to Play Section */
.page-da-ga__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-da-ga__steps-list li {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-da-ga__steps-list li p {
  color: #555555;
  font-size: 15px;
}

.page-da-ga__article-figure {
  display: block;
  margin: 40px auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Match Types Section */
.page-da-ga__types-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-da-ga__types-list li {
  background: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-da-ga__types-list li p {
  font-size: 15px;
  color: #A7D9B8; /* Text Secondary */
}

/* Betting Tips Section */
.page-da-ga__tips-list {
  list-style: decimal;
  padding-left: 20px;
  margin-top: 30px;
  color: #333333; /* Dark text for light background */
}

.page-da-ga__tips-list li {
  margin-bottom: 15px;
  font-size: 16px;
}

.page-da-ga__tips-list li p {
  color: #555555;
}

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

.page-da-ga__promo-card {
  background: #11271B; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #2E7A4E; /* Border color */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-da-ga__promo-card .page-da-ga__card-title {
  margin-bottom: 10px;
}

.page-da-ga__promo-card .page-da-ga__card-description {
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Game Trial Section */
.page-da-ga__game-iframe-wrapper {
  margin-top: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-da-ga__game-trial-frame {
  border: none;
  width: 100%;
  min-height: 500px;
}

/* FAQ Section */
details.page-da-ga__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #2E7A4E; /* Border color */
  overflow: hidden;
  background: #11271B; /* Card BG */
}
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: #0a4b2c; /* Deep Green */
}
.page-da-ga__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2FFF6; /* Text Main */
}
.page-da-ga__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #57E38D; /* Glow */
  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: #0a4b2c; /* Deep Green */
  border-radius: 0 0 5px 5px;
}
.page-da-ga__faq-answer p {
  color: #A7D9B8; /* Text Secondary */
  font-size: 15px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-da-ga__hero-image img {
    max-height: 500px;
  }
  .page-da-ga__features-grid,
  .page-da-ga__promotion-cards,
  .page-da-ga__types-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 849px) {
  .page-da-ga__hero-image img {
    object-fit: contain !important; /* Ensure image is fully visible */
    aspect-ratio: unset !important;
    max-height: 400px; /* Adjust max height for smaller screens */
  }
}

@media (max-width: 768px) {
  .page-da-ga__container {
    padding: 15px 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-da-ga__hero-section {
    padding-top: 10px;
    padding-bottom: 30px;
  }

  .page-da-ga__main-title {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 15px;
  }

  .page-da-ga__description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-da-ga__hero-buttons,
  .page-da-ga__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-da-ga__btn-primary,
  .page-da-ga__btn-secondary,
  .page-da-ga a[class*="button"],
  .page-da-ga a[class*="btn"] {
    padding: 12px 20px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-da-ga__section-title {
    font-size: clamp(22px, 6vw, 30px);
    margin-bottom: 20px;
  }

  .page-da-ga__text-block {
    font-size: 15px;
    text-align: left;
  }

  .page-da-ga__features-grid,
  .page-da-ga__promotion-cards,
  .page-da-ga__types-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-da-ga__feature-card,
  .page-da-ga__promo-card,
  .page-da-ga__types-list li {
    padding: 20px;
  }

  .page-da-ga__feature-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-da-ga__card-title {
    font-size: 20px;
  }

  .page-da-ga__list-title {
    font-size: 18px;
  }

  .page-da-ga__steps-list li {
    padding: 20px;
  }

  .page-da-ga__article-figure {
    margin: 30px auto;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-da-ga__tips-list {
    padding-left: 15px;
  }

  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; }

  .page-da-ga img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-da-ga__section,
  .page-da-ga__card,
  .page-da-ga__container,
  .page-da-ga__hero-section,
  .page-da-ga__intro-section,
  .page-da-ga__why-choose-us,
  .page-da-ga__how-to-play,
  .page-da-ga__match-types,
  .page-da-ga__betting-tips,
  .page-da-ga__promotions-section,
  .page-da-ga__game-trial,
  .page-da-ga__faq-section,
  .page-da-ga__cta-final {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
}