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

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

/* Hero Section */
.page-about-development-history__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* body handles --header-offset */
  overflow: hidden;
  box-sizing: border-box;
}

.page-about-development-history__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  filter: brightness(0.6);
}

.page-about-development-history__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  color: var(--text-main, #F2FFF6);
  padding: 20px;
  background: rgba(17, 39, 27, 0.7); /* Card BG with opacity for readability */
  border-radius: 10px;
}

.page-about-development-history__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--gold, #F2C14E);
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

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

/* Sections */
.page-about-development-history__section {
  padding: 60px 20px;
  background-color: var(--bg-color, #08160F);
  color: var(--text-main, #F2FFF6);
  box-sizing: border-box;
}

.page-about-development-history__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-about-development-history__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main, #F2FFF6);
}

.page-about-development-history__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: var(--text-secondary, #A7D9B8);
}

/* Milestones Section */
.page-about-development-history__milestones {
  background-color: var(--card-bg, #11271B);
}

.page-about-development-history__milestone-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 80px;
  background-color: var(--bg-color, #08160F);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border, #2E7A4E);
  position: relative;
}

.page-about-development-history__milestone-item:nth-child(even) {
  flex-direction: column-reverse; /* Alternate image/text order */
}

.page-about-development-history__milestone-year {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--gold, #F2C14E);
  margin-bottom: 20px;
  background-color: var(--deep-green, #0A4B2C);
  padding: 10px 20px;
  border-radius: 5px;
  border: 1px solid var(--glow, #57E38D);
}

.page-about-development-history__milestone-title {
  font-size: 1.6em;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  text-align: center;
}

.page-about-development-history__milestone-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 30px;
  border: 2px solid var(--glow, #57E38D);
  box-shadow: 0 0 15px rgba(87, 227, 141, 0.5);
  display: block;
}

.page-about-development-history__milestone-content {
  font-size: 1.05em;
  color: var(--text-secondary, #A7D9B8);
  max-width: 800px;
  text-align: justify;
}

.page-about-development-history__milestone-content p {
  margin-bottom: 15px;
}

.page-about-development-history__milestone-content ul {
  list-style: disc;
  margin-left: 25px;
  margin-top: 15px;
}

.page-about-development-history__milestone-content li {
  margin-bottom: 8px;
  color: var(--text-secondary, #A7D9B8);
}

/* Achievements Section */
.page-about-development-history__achievements {
  background-color: var(--bg-color, #08160F);
}

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

.page-about-development-history__achievement-card {
  background-color: var(--card-bg, #11271B);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--divider, #1E3A2A);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-about-development-history__achievement-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
}

.page-about-development-history__achievement-card p {
  color: var(--text-secondary, #A7D9B8);
  font-size: 0.95em;
}

/* Future Vision Section */
.page-about-development-history__future-vision {
  background-color: var(--card-bg, #11271B);
  text-align: center;
}

.page-about-development-history__vision-content {
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-secondary, #A7D9B8);
}

.page-about-development-history__vision-content p {
  font-size: 1.1em;
  margin-bottom: 30px;
}

/* Buttons */
.page-about-development-history__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about-development-history__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about-development-history__hero-content {
    padding: 15px;
  }

  .page-about-development-history__main-title {
    font-size: clamp(1.8em, 4.5vw, 3em);
  }

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

  .page-about-development-history__section-title {
    font-size: clamp(1.6em, 3.5vw, 2.5em);
  }

  .page-about-development-history__milestone-image {
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .page-about-development-history__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-about-development-history__hero-content {
    padding: 10px;
    border-radius: 8px;
  }

  .page-about-development-history__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }

  .page-about-development-history__intro-text {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  .page-about-development-history__section {
    padding: 40px 15px;
  }

  .page-about-development-history__section-title {
    font-size: clamp(1.4em, 5vw, 2em);
    margin-bottom: 15px;
  }

  .page-about-development-history__section-description {
    font-size: 0.9em;
    margin-bottom: 30px;
  }

  .page-about-development-history__milestone-item {
    margin-bottom: 60px;
    padding: 20px;
  }

  .page-about-development-history__milestone-item:nth-child(even) {
    flex-direction: column; /* Reset order for mobile */
  }

  .page-about-development-history__milestone-year {
    font-size: 1.5em;
    margin-bottom: 15px;
  }

  .page-about-development-history__milestone-title {
    font-size: 1.3em;
    margin-bottom: 15px;
  }

  .page-about-development-history__milestone-image {
    margin-bottom: 20px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about-development-history__milestone-content {
    font-size: 0.9em;
  }

  .page-about-development-history__milestone-content ul {
    margin-left: 20px;
  }

  .page-about-development-history__achievement-card {
    padding: 20px;
  }

  .page-about-development-history__achievement-title {
    font-size: 1.2em;
  }

  .page-about-development-history__vision-content p {
    font-size: 1em;
  }

  /* Mobile image, video, button responsive adaptations */
  .page-about-development-history img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about-development-history__section,
  .page-about-development-history__card,
  .page-about-development-history__container,
  .page-about-development-history__hero-section,
  .page-about-development-history__milestone-item,
  .page-about-development-history__achievement-grid,
  .page-about-development-history__achievement-card,
  .page-about-development-history__vision-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

  .page-about-development-history__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}