/* style/about-development-history.css */

.page-about-development-history {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Default text color for dark background */
  background-color: var(--background, #08160F); /* Main background color */
}

.page-about-development-history a {
  color: var(--gold, #F2C14E);
  text-decoration: none;
}

.page-about-development-history a:hover {
  text-decoration: underline;
}

.page-about-development-history__section {
  padding: 60px 20px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-about-development-history__section--alt-bg {
  background-color: var(--card-bg, #11271B);
}

.page-about-development-history__hero-section {
  position: relative;
  width: 100%;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding to respect body padding-top */
}

.page-about-development-history__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height of the hero image */
  overflow: hidden;
}

.page-about-development-history__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Darken image for better text contrast */
}

.page-about-development-history__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 8px;
}

.page-about-development-history__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-about-development-history__intro-text {
  font-size: 1.2rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
}

.page-about-development-history__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
}

.page-about-development-history__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
}

.page-about-development-history__cta-button--inline {
  margin-top: 20px;
}

.page-about-development-history__cta-button--center {
  display: block;
  margin: 30px auto 0 auto;
}

.page-about-development-history__section-title {
  font-size: 2.5rem;
  color: var(--gold, #F2C14E);
  margin-bottom: 40px;
  font-weight: 700;
}

.page-about-development-history__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: left;
}

.page-about-development-history__text-block p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--text-main, #F2FFF6);
}

.page-about-development-history__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-about-development-history__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-about-development-history__content-grid > div {
  flex: 1;
}

.page-about-development-history__image-container {
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-about-development-history__content-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-about-development-history__faq-section {
  padding: 80px 20px;
  text-align: left;
}

.page-about-development-history__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-about-development-history__faq-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main, #F2FFF6);
}

.page-about-development-history__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--card-bg, #11271B);
  color: var(--text-main, #F2FFF6);
  transition: background-color 0.3s ease;
  list-style: none;
}

.page-about-development-history__faq-question::-webkit-details-marker {
  display: none;
}

.page-about-development-history__faq-question:hover {
  background-color: var(--deep-green, #0A4B2C);
}

.page-about-development-history__faq-qtext {
  flex-grow: 1;
}

.page-about-development-history__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow, #57E38D);
}

.page-about-development-history__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05rem;
  color: var(--text-secondary, #A7D9B8);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about-development-history__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-about-development-history__section-title {
    font-size: 2rem;
  }

  .page-about-development-history__content-grid {
    flex-direction: column;
  }

  .page-about-development-history__content-grid--reverse {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-about-development-history__section,
  .page-about-development-history__content-area,
  .page-about-development-history__hero-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about-development-history__hero-content {
    position: static;
    transform: none;
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.6); /* Slightly darker for mobile */
  }

  .page-about-development-history__hero-image-wrapper {
    max-height: 300px;
  }

  .page-about-development-history__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-about-development-history__intro-text {
    font-size: 1rem;
  }

  .page-about-development-history__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-about-development-history__cta-button--inline,
  .page-about-development-history__cta-button--center {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .page-about-development-history__section-title {
    font-size: 1.8rem;
  }

  .page-about-development-history__text-block p {
    font-size: 1rem;
  }

  .page-about-development-history__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-about-development-history__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }

  /* Ensure all images are responsive */
  .page-about-development-history img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about-development-history__image-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-about-development-history__main-title {
    font-size: clamp(1.5rem, 9vw, 2rem);
  }
  .page-about-development-history__intro-text {
    font-size: 0.95rem;
  }
  .page-about-development-history__section-title {
    font-size: 1.5rem;
  }
}