/* Base styles for the Đá Gà page */
.page-da-ga {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
  line-height: 1.6;
}

/* Hero Section */
.page-da-ga__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding as per rule */
  padding-bottom: 60px;
  background-color: #2F6BFF; /* Main color as background for hero */
  color: #ffffff; /* White text for contrast */
  overflow: hidden;
}

.page-da-ga__hero-image {
  position: relative;
  width: 100%;
  max-height: 500px; /* Limit height to prevent excessive size */
  overflow: hidden;
  margin-bottom: 30px;
}

.page-da-ga__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
  min-width: 200px; /* Ensure minimum size */
}

.page-da-ga__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.page-da-ga__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
  line-height: 1.2;
}

.page-da-ga__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-da-ga__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

/* General button styles */
.page-da-ga__btn-primary,
.page-da-ga__btn-secondary,
.page-da-ga__read-more-btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  text-align: center;
  box-sizing: border-box;
}

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

.page-da-ga__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

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

.page-da-ga__btn-secondary:hover {
  background: #F4F7FB;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.2);
}

.page-da-ga__read-more-btn {
  background: #2F6BFF;
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
}

.page-da-ga__read-more-btn:hover {
  background: #4A8BFF;
}

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

.page-da-ga__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-da-ga__text-block {
  font-size: 1.05em;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #1F2D3D;
  text-align: justify;
}

/* Image with text block */
.page-da-ga__image-text-block {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.page-da-ga__image-text-block img {
  flex: 1 1 400px;
  max-width: 50%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

.page-da-ga__image-text-block p {
  flex: 1 1 400px;
  font-size: 1.05em;
  line-height: 1.7;
  color: #1F2D3D;
  text-align: justify;
}

/* Card styles */
.page-da-ga__card {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  padding: 25px;
  display: flex;
  flex-direction: column;
  color: #1F2D3D; /* Text Main */
  border: 1px solid #D6E2FF; /* Border */
}

.page-da-ga__card-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #2F6BFF; /* Main color for card titles */
}

.page-da-ga__card-description {
  font-size: 1em;
  line-height: 1.6;
  color: #1F2D3D;
}

/* Features Section */
.page-da-ga__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Gameplay Guide Section */
.page-da-ga__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-da-ga__guide-step {
  text-align: center;
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  padding: 25px;
  border: 1px solid #D6E2FF;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-da-ga__step-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #2F6BFF;
}

.page-da-ga__guide-step p {
  font-size: 1em;
  line-height: 1.6;
  color: #1F2D3D;
  margin-bottom: 20px;
  flex-grow: 1; /* Ensure text takes available space */
}

.page-da-ga__step-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  display: block;
  margin-top: auto; /* Push image to bottom if content varies */
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

.page-da-ga__cta-section {
  text-align: center;
  padding: 40px 20px;
  background-color: #6FA3FF; /* Auxiliary color for CTA background */
  border-radius: 10px;
  margin-top: 50px;
  color: #ffffff;
}

.page-da-ga__cta-text {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 25px;
  color: #ffffff;
}

/* FAQ Section */
.page-da-ga__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-da-ga__faq-item {
  cursor: pointer;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  background-color: #FFFFFF;
  border: 1px solid #D6E2FF;
  overflow: hidden;
}

.page-da-ga__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #1F2D3D;
  background-color: #F4F7FB;
  border-bottom: 1px solid #D6E2FF;
  cursor: pointer;
  list-style: none; /* For details/summary */
}

.page-da-ga__faq-item[open] .page-da-ga__faq-question {
  border-bottom: none;
}

.page-da-ga__faq-question::-webkit-details-marker {
  display: none;
}

.page-da-ga__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
  color: #2F6BFF; /* Main color for FAQ questions */
}

.page-da-ga__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #2F6BFF;
  transition: transform 0.3s ease;
}

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

.page-da-ga__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #1F2D3D;
}

.page-da-ga__faq-answer p {
  margin-bottom: 0;
}

/* Related Articles Section */
.page-da-ga__related-articles-section {
  background-color: #F4F7FB;
}

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

.page-da-ga__article-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border: 1px solid #D6E2FF;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-da-ga__article-link {
  text-decoration: none;
  color: inherit;
}

.page-da-ga__article-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Min image size */
  min-height: 200px; /* Min image size */
}

.page-da-ga__article-title {
  font-size: 1.25em;
  font-weight: 600;
  margin: 15px 20px 10px;
  color: #2F6BFF; /* Main color for article titles */
  line-height: 1.4;
}

.page-da-ga__article-title:hover {
  text-decoration: underline;
}

.page-da-ga__article-meta {
  font-size: 0.9em;
  color: #667eea; /* A lighter shade for meta info */
  margin: 0 20px 10px;
}

.page-da-ga__article-summary {
  font-size: 0.95em;
  line-height: 1.6;
  color: #1F2D3D;
  margin: 0 20px 20px;
  flex-grow: 1;
}

.page-da-ga__read-more-btn {
  align-self: flex-start;
  margin: 0 20px 20px;
}

.page-da-ga__view-all-button-container {
  text-align: center;
  margin-top: 50px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-da-ga__hero-image img {
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-da-ga__hero-section {
    padding-top: 10px; /* Maintain small top padding */
    padding-bottom: 40px;
  }

  .page-da-ga__main-title {
    font-size: 2.2em;
  }

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

  .page-da-ga__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to container */
  }

  /* Buttons forced full width on mobile */
  .page-da-ga__btn-primary,
  .page-da-ga__btn-secondary,
  .page-da-ga__read-more-btn {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    font-size: 1em;
  }

  .page-da-ga__hero-cta-buttons,
  .page-da-ga__cta-buttons,
  .page-da-ga__button-group,
  .page-da-ga__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
  }

  /* General container and text */
  .page-da-ga__container {
    padding: 20px 15px;
  }

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

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

  /* Image-Text Block */
  .page-da-ga__image-text-block {
    flex-direction: column;
    gap: 20px;
  }

  .page-da-ga__image-text-block img {
    max-width: 100%;
    min-width: 200px;
    min-height: 200px;
  }

  /* Images forced full width on mobile */
  .page-da-ga img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images or content */
  .page-da-ga__section,
  .page-da-ga__card,
  .page-da-ga__container,
  .page-da-ga__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* No additional padding here, handled by .page-da-ga__container for main content */
  }

  /* Reset padding for specific elements that are children of container */
  .page-da-ga__hero-section .page-da-ga__hero-image,
  .page-da-ga__container .page-da-ga__feature-grid,
  .page-da-ga__container .page-da-ga__guide-steps,
  .page-da-ga__container .page-da-ga__faq-list,
  .page-da-ga__container .page-da-ga__article-grid {
      padding-left: 0;
      padding-right: 0;
  }

  /* Cards and Grids */
  .page-da-ga__feature-grid,
  .page-da-ga__guide-steps,
  .page-da-ga__article-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-da-ga__card {
    padding: 20px;
  }

  .page-da-ga__cta-section {
    padding: 30px 15px;
  }

  .page-da-ga__cta-text {
    font-size: 1.2em;
  }

  /* FAQ Section */
  .page-da-ga__faq-question {
    padding: 15px 20px;
    font-size: 1.05em;
  }

  .page-da-ga__faq-answer {
    padding: 0 20px 15px;
  }

  /* Article Card */
  .page-da-ga__article-image {
    height: 180px;
  }

  .page-da-ga__article-title {
    font-size: 1.15em;
    margin: 15px 15px 10px;
  }

  .page-da-ga__article-meta,
  .page-da-ga__article-summary,
  .page-da-ga__read-more-btn {
    margin-left: 15px;
    margin-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-da-ga__main-title {
    font-size: 1.8em;
  }
  .page-da-ga__section-title {
    font-size: 1.5em;
  }
  .page-da-ga__cta-text {
    font-size: 1em;
  }
}