/* style/about.css */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-about__hero-section {
  position: relative;
  text-align: center;
  color: #FFFFFF;
  overflow: hidden;
  padding: 80px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 500px; /* Minimum height for hero section */
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-about__hero-title {
  font-size: 3.2em;
  margin-bottom: 15px;
  color: #FCBC45; /* Login button color for emphasis */
}

.page-about__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #FFFFFF;
}

.page-about__hero-button {
  display: inline-block;
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Dark text for bright button */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-about__hero-button:hover {
  background-color: #e0a53b;
}

.page-about__story-section, .page-about__mission-section, .page-about__why-choose-section, .page-about__cta-section {
  padding: 60px 0;
  background-color: #f8f8f8; /* Light background for sections */
}

.page-about__story-section {
  background-color: #FFFFFF;
}

.page-about__story-title, .page-about__mission-title, .page-about__why-choose-title, .page-about__cta-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 40px;
}

.page-about__story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__story-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: #333333;
}

.page-about__story-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-about__mission-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.page-about__mission-item {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-about__mission-item h3 {
  font-size: 1.8em;
  color: #000000;
  margin-bottom: 15px;
}

.page-about__mission-item p {
  font-size: 1.1em;
  color: #555555;
}

.page-about__why-choose-section {
  background-color: #f0f0f0;
}

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

.page-about__advantage-card {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-about__advantage-icon {
  width: 100%; /* Occupy card width */
  height: auto; /* Maintain aspect ratio */
  max-width: 400px; /* Ensure it's not too wide */
  margin: 0 auto 20px auto;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-about__advantage-card h3 {
  font-size: 1.5em;
  color: #000000;
  margin-bottom: 10px;
}

.page-about__advantage-card p {
  color: #555555;
}

.page-about__cta-section {
  padding: 80px 0;
  background-color: #000000; /* Main brand color for CTA */
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-about__cta-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 1;
}

.page-about__cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.page-about__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FCBC45; /* Emphasize with accent color */
}

.page-about__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
}

.page-about__cta-button {
  display: inline-block;
  background-color: #FCBC45; /* Login button color */
  color: #000000; /* Dark text for bright button */
  padding: 18px 40px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.3em;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-about__cta-button:hover {
  background-color: #e0a53b;
  transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__story-grid {
    grid-template-columns: 1fr;
  }
  .page-about__mission-content {
    grid-template-columns: 1fr;
  }
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__story-title, .page-about__mission-title, .page-about__why-choose-title, .page-about__cta-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-about {
    padding-top: var(--header-offset, 80px); /* Adjust for mobile header offset */
  }
  .page-about__hero-section {
    padding: 60px 15px;
    min-height: 400px;
  }
  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }
  .page-about__story-section, .page-about__mission-section, .page-about__why-choose-section, .page-about__cta-section {
    padding: 40px 0;
  }
  .page-about__content-container {
    padding: 0 15px;
  }
  .page-about__story-title, .page-about__mission-title, .page-about__why-choose-title, .page-about__cta-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-about__mission-item, .page-about__advantage-card {
    padding: 20px;
  }
  .page-about__cta-title {
    font-size: 2.2em;
  }
  .page-about__cta-button {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  .page-about__story-image, .page-about__advantage-icon, .page-about__cta-image {
    max-width: 100%;
    height: auto;
  }
  /* Enforce min-width 200px for images in content area, regardless of class */
  .page-about__story-grid img, .page-about__advantages-grid img {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__story-title, .page-about__mission-title, .page-about__why-choose-title, .page-about__cta-title {
    font-size: 1.5em;
  }
  .page-about__hero-section {
    min-height: 350px;
  }
  .page-about__advantages-grid {
    grid-template-columns: 1fr;
  }
  .page-about__mission-item h3 {
    font-size: 1.5em;
  }
  .page-about__advantage-card h3 {
    font-size: 1.3em;
  }
  .page-about__cta-title {
    font-size: 1.8em;
  }
}

/* Add initial hidden state for JS animation */
.page-about__section--hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.page-about__section--visible {
  opacity: 1;
  transform: translateY(0);
}