/* style/da-ga.css */
.page-da-ga {
  background-color: #0A0A0A;
  color: #FFF6D6;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

.page-da-ga__section-title {
  font-size: 2.5em;
  color: #F2C14E;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.page-da-ga__sub-title {
  font-size: 1.8em;
  color: #FFD36B;
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-da-ga__text-block {
  font-size: 1.1em;
  margin-bottom: 15px;
  color: #FFF6D6;
}

.page-da-ga__highlight {
  color: #FFD36B;
  font-weight: bold;
}

.page-da-ga__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-da-ga__list-item {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: #FFF6D6;
}

.page-da-ga__list-item::before {
  content: '▶';
  color: #F2C14E;
  position: absolute;
  left: 0;
  top: 0;
}

.page-da-ga__text-link {
  color: #F2C14E;
  text-decoration: underline;
}

.page-da-ga__text-link:hover {
  color: #FFD36B;
}

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

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

.page-da-ga__btn-primary:hover {
  background: linear-gradient(180deg, #FFD36B 0%, #F2C14E 100%);
  color: #0A0A0A;
}

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

.page-da-ga__btn-secondary:hover {
  background: #F2C14E;
  color: #111111;
}

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

/* Hero Section */
.page-da-ga__hero-section {
  padding-top: 10px; /* Small padding for fixed header */
  position: relative;
  text-align: center;
  color: #FFF6D6;
  overflow: hidden;
}

.page-da-ga__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-da-ga__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-da-ga__hero-content {
  padding: 30px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.page-da-ga__main-title {
  font-size: 3.2em;
  color: #FFD36B;
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
}

.page-da-ga__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Why Choose Section */
.page-da-ga__why-choose-section {
  background-color: #111111;
}

.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-color: #111111;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #3A2A12;
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #FFF6D6;
}

.page-da-ga__feature-icon {
  width: 100%;
  height: auto;
  max-width: 200px;
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 8px;
}

.page-da-ga__feature-title {
  font-size: 1.5em;
  color: #F2C14E;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-da-ga__feature-description {
  font-size: 1em;
  line-height: 1.5;
}

/* Game Types Section */
.page-da-ga__game-types-section {
  background-color: #0A0A0A;
}

/* Guide Section */
.page-da-ga__guide-section {
  background-color: #111111;
  padding-bottom: 60px;
}

.page-da-ga__guide-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Align items to the top to allow for staggered height */
  gap: 15px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-da-ga__guide-card {
  flex: 0 0 calc(20% - 12px); /* 5 cards per row, accounting for gap */
  max-width: calc(20% - 12px);
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s ease;
}

.page-da-ga__guide-card:hover {
  transform: translateY(-10px);
}

.page-da-ga__guide-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 250 / 350;
  object-fit: contain;
  border-radius: 8px;
  border: 2px solid #F2C14E;
}

/* Staggered effect for guide cards */
.page-da-ga__guide-card--pos-1 {
  padding-top: 50px;
}
.page-da-ga__guide-card--pos-2 {
  padding-top: 25px;
}
.page-da-ga__guide-card--pos-4 {
  padding-top: 25px;
}
.page-da-ga__guide-card--pos-5 {
  padding-top: 50px;
}

.page-da-ga__guide-text-content {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px dashed #3A2A12;
}

/* Tips Section */
.page-da-ga__tips-section {
  background-color: #0A0A0A;
}

/* Promotions Section */
.page-da-ga__promotions-section {
  background-color: #111111;
}

/* FAQ Section */
.page-da-ga__faq-section {
  background-color: #0A0A0A;
}

.page-da-ga__faq-list {
  margin-top: 30px;
}

.page-da-ga__faq-item {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFF6D6;
  box-shadow: 0 0 10px rgba(242, 193, 78, 0.05);
}

.page-da-ga__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #FFD36B;
  list-style: none; /* For details/summary */
}

.page-da-ga__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for details */
}

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

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

.page-da-ga__faq-answer {
  padding: 0 20px 15px;
  font-size: 1em;
  color: #FFF6D6;
}

/* Conclusion Section */
.page-da-ga__conclusion-section {
  background-color: #111111;
}

/* Global image and button responsiveness for mobile */
.page-da-ga img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
  .page-da-ga__container {
    padding: 15px;
  }

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

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

  .page-da-ga__sub-title {
    font-size: 1.5em;
  }

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

  .page-da-ga__hero-section {
    padding-top: 10px !important;
  }

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

  .page-da-ga__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-da-ga__btn-primary,
  .page-da-ga__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    box-sizing: border-box !important;
  }

  /* Guide Grid Mobile Adaptation */
  .page-da-ga__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 6 columns for finer control */
    gap: 10px;
  }

  .page-da-ga__guide-card {
    padding-top: 0 !important; /* Reset staggered padding */
    flex: auto; /* Remove flex sizing */
    max-width: 100%;
  }

  .page-da-ga__guide-card--pos-1,
  .page-da-ga__guide-card--pos-2 {
    grid-column: span 3; /* Top two cards take half width each */
  }

  .page-da-ga__guide-card--pos-3,
  .page-da-ga__guide-card--pos-4,
  .page-da-ga__guide-card--pos-5 {
    grid-column: span 2; /* Bottom three cards take one-third width each */
  }

  .page-da-ga__guide-card img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 250 / 350;
  }

  .page-da-ga__features-grid {
    grid-template-columns: 1fr;
  }

  .page-da-ga__feature-card {
    padding: 20px;
  }

  .page-da-ga__faq-question {
    font-size: 1em;
    padding: 12px 15px;
  }

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

  /* General mobile image handling */
  .page-da-ga img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-da-ga__hero-image-wrapper,
  .page-da-ga__features-grid,
  .page-da-ga__guide-grid,
  .page-da-ga__faq-list,
  .page-da-ga__cta-buttons,
  .page-da-ga__introduction-section .page-da-ga__container,
  .page-da-ga__why-choose-section .page-da-ga__container,
  .page-da-ga__game-types-section .page-da-ga__container,
  .page-da-ga__guide-section .page-da-ga__container,
  .page-da-ga__tips-section .page-da-ga__container,
  .page-da-ga__promotions-section .page-da-ga__container,
  .page-da-ga__faq-section .page-da-ga__container,
  .page-da-ga__conclusion-section .page-da-ga__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}