/* Base styles for the Đá Gà page */
.page-da-ga {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #F5F7FA; /* Default background color */
}

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

.page-da-ga__section {
  padding: 60px 0;
}

.page-da-ga__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #E53935;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-da-ga__text-block {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-da-ga__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  min-height: 500px;
}

.page-da-ga__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: 20px;
}

.page-da-ga__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/9;
  filter: brightness(0.8); /* Slightly darken image for text contrast */
}

.page-da-ga__hero-content {
  position: relative;
  z-index: 10;
  padding: 20px;
  max-width: 900px;
  margin-top: -150px; /* Pull content up over image a bit for visual flow */
}

.page-da-ga__main-title {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.1;
  color: #ffffff;
}

.page-da-ga__description {
  font-size: 19px;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-da-ga__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

/* Buttons */
.page-da-ga__btn-primary,
.page-da-ga__btn-secondary,
.page-da-ga__btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-da-ga__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-da-ga__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(229, 57, 53, 0.3);
}

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

.page-da-ga__btn-secondary:hover {
  background: #f0f0f0;
  color: #E53935;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.page-da-ga__btn-link {
  color: #E53935;
  text-decoration: underline;
  font-weight: 600;
  padding: 0;
  background: none;
  border: none;
  font-size: 16px;
  margin-top: 15px;
  display: block;
  text-align: center;
}

.page-da-ga__btn-link:hover {
  color: #FF5A4F;
}

/* Dark Background Sections */
.page-da-ga__dark-section {
  background: #E53935;
  color: #ffffff;
}

.page-da-ga__dark-section .page-da-ga__section-title {
  color: #ffffff;
}

.page-da-ga__dark-section .page-da-ga__text-block {
  color: #f0f0f0;
}

/* Feature Grid (Why Choose Us) */
.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: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-da-ga__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-da-ga__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

.page-da-ga__feature-card .page-da-ga__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #E53935;
}

.page-da-ga__feature-card .page-da-ga__card-text {
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
}

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

.page-da-ga__type-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-da-ga__type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-da-ga__type-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-da-ga__type-card .page-da-ga__card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #E53935;
}

.page-da-ga__type-card .page-da-ga__card-text {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 25px;
  flex-grow: 1;
  text-align: center;
}

/* How To Bet Section */
.page-da-ga__betting-steps {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-da-ga__step-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-da-ga__step-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-da-ga__step-item p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #f0f0f0;
}

/* Betting Tips Section */
.page-da-ga__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-da-ga__tip-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-da-ga__tip-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #E53935;
}

.page-da-ga__tip-item p {
  font-size: 16px;
  line-height: 1.7;
  text-align: left;
}

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

.page-da-ga__promo-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  color: #333333;
}

.page-da-ga__promo-card .page-da-ga__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #E53935;
}

.page-da-ga__promo-card .page-da-ga__card-text {
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
}

.page-da-ga__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* FAQ Section */
details.page-da-ga__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid #E0E0E0;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

details.page-da-ga__faq-item summary.page-da-ga__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-size: 18px;
  font-weight: 600;
  color: #333333;
}

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: #f8f8f8;
}

.page-da-ga__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}

.page-da-ga__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #E53935;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-da-ga__faq-item .page-da-ga__faq-answer {
  padding: 0 25px 25px;
  background: #fdfdfd;
  border-radius: 0 0 12px 12px;
  color: #555555;
}

.page-da-ga__faq-answer p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 10px;
  text-align: left;
}

.page-da-ga__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* General image styling for content sections */
.page-da-ga img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-da-ga__hero-content {
    margin-top: -100px;
  }
  .page-da-ga__main-title {
    font-size: clamp(32px, 4.5vw, 50px);
  }
  .page-da-ga__description {
    font-size: 17px;
  }
  .page-da-ga__section-title {
    font-size: clamp(26px, 3.5vw, 38px);
  }
}

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

  .page-da-ga__section {
    padding: 40px 0;
  }

  /* Hero Section Mobile */
  .page-da-ga__hero-section {
    padding-top: 10px;
    min-height: auto;
  }
  .page-da-ga__hero-image-wrapper {
    margin-bottom: 15px;
    max-height: 300px;
  }
  .page-da-ga__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-da-ga__hero-content {
    margin-top: -80px; /* Adjust pull-up for mobile */
    padding: 15px;
  }
  .page-da-ga__main-title {
    font-size: clamp(28px, 8vw, 38px);
    margin-bottom: 15px;
  }
  .page-da-ga__description {
    font-size: 15px;
    margin-bottom: 25px;
  }
  .page-da-ga__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }
  .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;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General content section adjustments */
  .page-da-ga__section-title {
    font-size: clamp(24px, 7vw, 32px);
    margin-bottom: 30px;
  }
  .page-da-ga__text-block {
    font-size: 15px;
    text-align: left;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Feature Grid Mobile */
  .page-da-ga__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-da-ga__feature-card {
    padding: 25px;
  }
  .page-da-ga__feature-icon {
    width: 70px;
    height: 70px;
  }
  .page-da-ga__feature-card .page-da-ga__card-title {
    font-size: 20px;
  }

  /* Game Types Mobile */
  .page-da-ga__type-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-da-ga__type-card {
    padding: 20px;
  }
  .page-da-ga__type-image {
    height: 180px;
  }
  .page-da-ga__type-card .page-da-ga__card-title {
    font-size: 20px;
  }

  /* How To Bet Mobile */
  .page-da-ga__betting-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-da-ga__step-item {
    padding: 25px;
  }
  .page-da-ga__step-title {
    font-size: 20px;
  }
  .page-da-ga__step-item p {
    font-size: 15px;
  }

  /* Betting Tips Mobile */
  .page-da-ga__tips-list {
    gap: 15px;
  }
  .page-da-ga__tip-item {
    padding: 20px;
  }
  .page-da-ga__tip-title {
    font-size: 18px;
  }
  .page-da-ga__tip-item p {
    font-size: 15px;
  }

  /* Promotions Mobile */
  .page-da-ga__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-da-ga__promo-card {
    padding: 25px;
  }
  .page-da-ga__promo-card .page-da-ga__card-title {
    font-size: 20px;
  }

  /* FAQ Mobile */
  details.page-da-ga__faq-item summary.page-da-ga__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-da-ga__faq-qtext {
    font-size: 16px;
  }
  .page-da-ga__faq-toggle {
    font-size: 24px;
    width: 24px;
    height: 24px;
  }
  details.page-da-ga__faq-item .page-da-ga__faq-answer {
    padding: 0 20px 20px;
  }
  .page-da-ga__faq-answer p {
    font-size: 15px;
  }

  /* Ensure all images and containers are responsive */
  .page-da-ga img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-da-ga__hero-section,
  .page-da-ga__intro-section,
  .page-da-ga__why-choose-us,
  .page-da-ga__game-types-section,
  .page-da-ga__how-to-bet-section,
  .page-da-ga__betting-tips-section,
  .page-da-ga__promotions-section,
  .page-da-ga__faq-section,
  .page-da-ga__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
  .page-da-ga__cta-center .page-da-ga__cta-buttons {
    padding-left: 0;
    padding-right: 0;
  }
}