/* style/da-ga.css */

:root {
  --page-da-ga-primary-color: #017439;
  --page-da-ga-secondary-color: #FFFFFF;
  --page-da-ga-register-color: #C30808;
  --page-da-ga-login-color: #C30808;
  --page-da-ga-background-color: #FFFFFF;
  --page-da-ga-text-color-dark: #333333;
  --page-da-ga-text-color-light: #FFFFFF;
  --page-da-ga-text-color-yellow: #FFFF00; /* Note: Not used for button text due to contrast issues */
}

.page-da-ga {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-da-ga-text-color-dark);
  background-color: var(--page-da-ga-background-color);
}

.page-da-ga__container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 40px 16px;
  box-sizing: border-box;
}

/* Color Contrast Handling */
.page-da-ga__dark-bg {
  background-color: var(--page-da-ga-primary-color);
  color: var(--page-da-ga-text-color-light);
}

.page-da-ga__light-bg {
  background-color: var(--page-da-ga-background-color);
  color: var(--page-da-ga-text-color-dark);
}

.page-da-ga__dark-bg h1,
.page-da-ga__dark-bg h2,
.page-da-ga__dark-bg h3,
.page-da-ga__dark-bg p {
  color: var(--page-da-ga-text-color-light);
}

.page-da-ga__light-bg h1,
.page-da-ga__light-bg h2,
.page-da-ga__light-bg h3,
.page-da-ga__light-bg p {
  color: var(--page-da-ga-text-color-dark);
}

/* Typography */
.page-da-ga__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-da-ga__section-subtitle {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-da-ga__hero-title {
  font-size: 3em;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  max-width: 600px;
}

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

/* Buttons */
.page-da-ga__cta-button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-da-ga__btn-primary {
  background-color: var(--page-da-ga-register-color);
  color: var(--page-da-ga-text-color-light); /* Forced white for WCAG AA contrast */
  border: 2px solid var(--page-da-ga-register-color);
}

.page-da-ga__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-da-ga__btn-secondary {
  background-color: transparent;
  color: var(--page-da-ga-text-color-light); /* Forced white for WCAG AA contrast */
  border: 2px solid var(--page-da-ga-text-color-light);
}

.page-da-ga__btn-secondary:hover {
  background-color: var(--page-da-ga-text-color-light);
  color: var(--page-da-ga-primary-color);
}

.page-da-ga__text-button {
  background-color: var(--page-da-ga-register-color);
  color: var(--page-da-ga-text-color-light); /* Forced white for WCAG AA contrast */
  border: 2px solid var(--page-da-ga-register-color);
}

.page-da-ga__text-button:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-da-ga__btn-link {
  display: inline-block;
  margin-top: 15px;
  color: var(--page-da-ga-primary-color);
  text-decoration: underline;
  font-weight: bold;
}

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

/* Hero Section */
.page-da-ga__hero-section {
  padding-top: 10px; /* Small top padding */
  padding-bottom: 60px;
  background-color: var(--page-da-ga-primary-color);
  color: var(--page-da-ga-text-color-light);
}

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

.page-da-ga__hero-content {
  flex: 1 1 50%;
  min-width: 300px;
}

.page-da-ga__hero-image {
  flex: 1 1 40%;
  text-align: center;
}

.page-da-ga__hero-main-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: block;
}

.page-da-ga__hero-cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
}

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

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

.page-da-ga__feature-item {
  background-color: var(--page-da-ga-secondary-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-da-ga__feature-item:hover {
  transform: translateY(-10px);
}

.page-da-ga__icon-box-media {
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-da-ga__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--page-da-ga-primary-color);
}

.page-da-ga__feature-description {
  font-size: 1em;
  color: var(--page-da-ga-text-color-dark);
}

/* What Is Section */
.page-da-ga__what-is-section {
  padding: 60px 0;
}

.page-da-ga__text-with-image {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-da-ga__text-block {
  flex: 1 1 50%;
  min-width: 300px;
}

.page-da-ga__image-block {
  flex: 1 1 40%;
  text-align: center;
}

.page-da-ga__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: block;
}

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

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

.page-da-ga__type-card {
  background-color: var(--page-da-ga-secondary-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.page-da-ga__type-card:hover {
  transform: translateY(-5px);
}

.page-da-ga__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-da-ga__type-title {
  font-size: 1.4em;
  font-weight: bold;
  padding: 20px 20px 10px;
  color: var(--page-da-ga-primary-color);
}

.page-da-ga__type-description {
  font-size: 1em;
  padding: 0 20px 20px;
  color: var(--page-da-ga-text-color-dark);
}

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

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

.page-da-ga__guide-item {
  background-color: var(--page-da-ga-secondary-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  color: var(--page-da-ga-text-color-dark);
}

.page-da-ga__guide-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--page-da-ga-register-color);
  color: var(--page-da-ga-text-color-light);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4em;
  font-weight: bold;
  border: 3px solid var(--page-da-ga-secondary-color);
}

.page-da-ga__guide-image {
  max-width: 100%;
  height: 200px; /* Fixed height for visual consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-da-ga__guide-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--page-da-ga-primary-color);
}

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

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

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

.page-da-ga__tip-card {
  background-color: var(--page-da-ga-secondary-color);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.page-da-ga__tip-card:hover {
  transform: translateY(-5px);
}

.page-da-ga__tip-title {
  font-size: 1.4em;
  font-weight: bold;
  padding: 20px 20px 10px;
  color: var(--page-da-ga-primary-color);
}

.page-da-ga__tip-description {
  font-size: 1em;
  padding: 0 20px 20px;
  color: var(--page-da-ga-text-color-dark);
}

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

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

.page-da-ga__faq-item {
  background-color: var(--page-da-ga-secondary-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  color: var(--page-da-ga-text-color-dark);
}

.page-da-ga__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--page-da-ga-primary-color);
  color: var(--page-da-ga-text-color-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

.page-da-ga__faq-item[open] .page-da-ga__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

.page-da-ga__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  line-height: 1;
}

.page-da-ga__faq-answer {
  padding: 15px 25px 25px;
  font-size: 1em;
  color: var(--page-da-ga-text-color-dark);
  background-color: var(--page-da-ga-secondary-color);
}

/* Final CTA Section */
.page-da-ga__final-cta-section {
  padding: 80px 0;
  text-align: center;
}

/* General Images Responsive */
.page-da-ga img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

  .page-da-ga__hero-container {
    flex-direction: column;
    gap: 30px;
    padding: 20px 15px;
  }

  .page-da-ga__hero-content {
    text-align: center;
    order: 2; /* Content below image */
  }

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

  .page-da-ga__hero-title {
    font-size: 2em;
    margin-left: auto;
    margin-right: auto;
  }

  .page-da-ga__hero-description {
    font-size: 1em;
    margin-left: auto;
    margin-right: auto;
  }

  .page-da-ga__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }

  .page-da-ga__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-da-ga__section-title {
    font-size: 1.8em;
  }

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

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

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

  .page-da-ga__icon-box-media {
    width: 150px;
    height: 150px;
    margin-bottom: 15px;
  }

  /* What Is Section */
  .page-da-ga__what-is-section {
    padding: 40px 0;
  }

  .page-da-ga__text-with-image {
    flex-direction: column;
    gap: 30px;
  }

  .page-da-ga__text-block, .page-da-ga__image-block {
    flex: 1 1 100%;
    min-width: unset;
  }

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

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

  .page-da-ga__card-image {
    height: 200px; /* Adjust height for mobile */
  }

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

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

  .page-da-ga__guide-item {
    padding: 25px 20px;
  }

  .page-da-ga__guide-image {
    height: 150px; /* Adjust height for mobile */
  }

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

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

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

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

  .page-da-ga__faq-answer {
    padding: 10px 20px 20px;
    font-size: 0.95em;
  }

  /* Final CTA Section */
  .page-da-ga__final-cta-section {
    padding: 60px 0;
  }

  /* General image and container responsive rules */
  .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-content,
  .page-da-ga__hero-image,
  .page-da-ga__text-block,
  .page-da-ga__image-block,
  .page-da-ga__feature-item,
  .page-da-ga__type-card,
  .page-da-ga__guide-item,
  .page-da-ga__tip-card,
  .page-da-ga__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-da-ga__hero-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;
    flex-direction: column; /* Ensure buttons stack */
  }
}