/* style/da-ga.css */

/* Base styles for the page content */
.page-da-ga {
  font-family: Arial, sans-serif;
  color: #FFF6D6; /* Text Main for dark background */
  background-color: transparent; /* Body background is handled by shared.css */
}

/* General container for content sections */
.page-da-ga__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

/* Section titles */
.page-da-ga__section-title {
  font-size: 32px;
  font-weight: bold;
  color: #F2C14E; /* Primary color for titles */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

/* Section descriptions */
.page-da-ga__section-description {
  font-size: 18px;
  color: #FFF6D6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.5;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Primary Button Style */
.page-da-ga__btn-primary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for bright button */
  font-weight: bold;
  text-decoration: none;
  font-size: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-da-ga__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(242, 193, 78, 0.4);
}

/* Secondary Button Style */
.page-da-ga__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  background: transparent;
  color: #F2C14E; /* Primary color for text */
  border: 2px solid #F2C14E; /* Border color */
  font-weight: bold;
  text-decoration: none;
  font-size: 18px;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-da-ga__btn-secondary:hover {
  background-color: #F2C14E;
  color: #111111; /* Dark text for primary color background */
}

/* Text link button style */
.page-da-ga__btn-text-link {
  color: #FFD36B; /* Glow color */
  text-decoration: underline;
  font-weight: bold;
  font-size: 16px;
  display: inline-block;
  margin-top: 10px;
}

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

/* Image styles - general */
.page-da-ga img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* HERO Section */
.page-da-ga__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: transparent; /* Background for main is dark, handled by shared.css */
}

.page-da-ga__hero-container {
  max-width: 1170px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 0 16px;
}

.page-da-ga__hero-content {
  flex: 1 1 45%;
  min-width: 300px;
  text-align: left;
}

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

.page-da-ga__hero-description {
  font-size: 18px;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-da-ga__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-da-ga__hero-image {
  flex: 1 1 45%;
  text-align: center;
  min-width: 300px;
}

.page-da-ga__hero-side-image {
  max-width: 600px; /* Specific max-width for the hero image */
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Intro Section (Module 1 - 3 columns with circular images) */
.page-da-ga__intro-section {
  padding: 60px 0;
}

.page-da-ga__icon-boxes {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 40px;
}

.page-da-ga__icon-box {
  flex: 1 1 30%;
  min-width: 280px;
  background-color: #111111; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12; /* Border color */
}

.page-da-ga__icon-box-media {
  width: 200px; /* Fixed width for circle */
  height: 200px; /* Fixed height for circle */
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #FFD36B; /* Glow color border */
  box-shadow: 0 0 15px rgba(255, 211, 107, 0.6);
}

.page-da-ga__icon-box-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%; /* Ensure image is circular */
}

.page-da-ga__icon-box-title {
  font-size: 22px;
  font-weight: bold;
  color: #F2C14E; /* Primary color */
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-da-ga__icon-box-text {
  font-size: 16px;
  color: #FFF6D6; /* Text Main */
  line-height: 1.6;
}

/* Why Choose Section */
.page-da-ga__why-choose-section {
  padding: 60px 0;
  background-color: #111111; /* Card BG for this section */
}

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

.page-da-ga__feature-item {
  display: flex;
  align-items: center;
  background-color: #0A0A0A; /* Background color for items */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12; /* Border color */
}

.page-da-ga__feature-image {
  width: 40%;
  height: 250px; /* Fixed height for consistent look */
  object-fit: cover;
}

.page-da-ga__feature-content {
  padding: 25px;
  width: 60%;
}

.page-da-ga__feature-title {
  font-size: 20px;
  font-weight: bold;
  color: #F2C14E; /* Primary color */
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-da-ga__feature-text {
  font-size: 16px;
  color: #FFF6D6; /* Text Main */
  line-height: 1.6;
}

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

/* Game Types Section */
.page-da-ga__types-section {
  padding: 60px 0;
}

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

.page-da-ga__card {
  background-color: #111111; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12; /* Border color */
  text-align: center;
  padding-bottom: 20px;
}

.page-da-ga__card-image {
  width: 100%;
  height: 220px; /* Fixed height for card images */
  object-fit: cover;
  margin-bottom: 20px;
}

.page-da-ga__card-title {
  font-size: 22px;
  font-weight: bold;
  color: #F2C14E; /* Primary color */
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-da-ga__card-text {
  font-size: 16px;
  color: #FFF6D6; /* Text Main */
  line-height: 1.6;
  padding: 0 15px;
}

/* Guide Section */
.page-da-ga__guide-section {
  padding: 60px 0;
  background-color: #111111; /* Card BG for this section */
}

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

.page-da-ga__step-item {
  background-color: #0A0A0A; /* Background color for items */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12; /* Border color */
}

.page-da-ga__step-icon {
  width: 60px;
  height: 60px;
  background-color: #F2C14E; /* Primary color */
  color: #111111;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 28px;
  font-weight: bold;
  margin: 0 auto 20px;
  box-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
}

.page-da-ga__step-title {
  font-size: 22px;
  font-weight: bold;
  color: #F2C14E; /* Primary color */
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-da-ga__step-text {
  font-size: 16px;
  color: #FFF6D6; /* Text Main */
  line-height: 1.6;
}

/* Promo Section */
.page-da-ga__promo-section {
  padding: 60px 0;
}

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

/* Promo cards use the same .page-da-ga__card style */

/* FAQ Section */
.page-da-ga__faq-section {
  padding: 60px 0;
  background-color: #111111; /* Card BG for this section */
}

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

.page-da-ga__faq-item {
  background-color: #0A0A0A; /* Background color for items */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 12px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-da-ga__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #111111; /* Card BG for summary */
  color: #F2C14E; /* Primary color */
  font-size: 18px;
  font-weight: bold;
  line-height: 1.4;
  outline: none;
}

.page-da-ga__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for Webkit browsers */
}

.page-da-ga__faq-qtext {
  flex-grow: 1;
}

.page-da-ga__faq-toggle {
  font-size: 24px;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: #FFD36B; /* Glow color */
}

.page-da-ga__faq-item[open] .page-da-ga__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-da-ga__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  color: #FFF6D6; /* Text Main */
  line-height: 1.6;
}

/* Conclusion Section */
.page-da-ga__conclusion-section {
  padding: 60px 0 80px;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-da-ga__hero-container {
    flex-direction: column;
    text-align: center;
  }

  .page-da-ga__hero-content {
    text-align: center;
  }

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

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

  .page-da-ga__feature-item {
    flex-direction: column;
    text-align: center;
  }

  .page-da-ga__feature-image {
    width: 100%;
    height: auto;
  }

  .page-da-ga__feature-content {
    width: 100%;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  /* General */
  .page-da-ga__container {
    padding: 20px 15px !important;
  }

  .page-da-ga__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-da-ga__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* HERO Section */
  .page-da-ga__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 40px;
  }

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

  .page-da-ga__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-da-ga__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-da-ga__btn-primary,
  .page-da-ga__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-da-ga__hero-image {
    order: -1; /* Image appears above content on mobile */
  }

  /* Module 1 - Intro Section */
  .page-da-ga__intro-section {
    padding: 40px 0;
  }

  .page-da-ga__icon-boxes {
    flex-direction: column;
    gap: 20px;
  }

  .page-da-ga__icon-box {
    min-width: unset;
    padding: 25px;
  }

  .page-da-ga__icon-box-media {
    width: 160px; /* Smaller circle for mobile */
    height: 160px;
    margin-bottom: 15px;
  }

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

  .page-da-ga__icon-box-text {
    font-size: 15px;
  }

  /* Why Choose Section */
  .page-da-ga__why-choose-section {
    padding: 40px 0;
  }

  .page-da-ga__feature-list {
    gap: 20px;
  }

  .page-da-ga__feature-item {
    flex-direction: column;
  }

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

  .page-da-ga__feature-content {
    width: 100% !important;
    padding: 15px;
  }

  /* Game Types Section */
  .page-da-ga__types-section {
    padding: 40px 0;
  }

  .page-da-ga__type-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-da-ga__card-image {
    height: 180px; /* Smaller card image height */
  }

  /* Guide Section */
  .page-da-ga__guide-section {
    padding: 40px 0;
  }

  .page-da-ga__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-da-ga__step-icon {
    width: 50px;
    height: 50px;
    font-size: 24px;
    margin-bottom: 15px;
  }

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

  /* Promo Section */
  .page-da-ga__promo-section {
    padding: 40px 0;
  }

  .page-da-ga__promo-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* FAQ Section */
  .page-da-ga__faq-section {
    padding: 40px 0;
  }

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

  .page-da-ga__faq-item summary {
    padding: 15px 20px;
    font-size: 16px;
  }

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

  /* Conclusion Section */
  .page-da-ga__conclusion-section {
    padding: 40px 0 60px;
  }

  /* Universal image responsive styles */
  .page-da-ga img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  
  /* Exception for circular images */
  .page-da-ga__icon-box-media img {
    height: 100% !important; /* Keep original height for object-fit */
    width: 100% !important;
    object-fit: cover !important;
  }

  /* All containers for mobile overflow prevention */
  .page-da-ga__hero-section,
  .page-da-ga__intro-section,
  .page-da-ga__why-choose-section,
  .page-da-ga__types-section,
  .page-da-ga__guide-section,
  .page-da-ga__promo-section,
  .page-da-ga__faq-section,
  .page-da-ga__conclusion-section,
  .page-da-ga__container,
  .page-da-ga__card,
  .page-da-ga__icon-box,
  .page-da-ga__feature-item,
  .page-da-ga__step-item,
  .page-da-ga__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
}