/* style/about.css */

/* Custom properties for colors */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background-color: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
}

/* Base styles for the page content */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background-color);
}

/* Sections */
.page-about__section {
  padding: 60px 0;
  text-align: center;
}

.page-about__section--intro,
.page-about__section--why-choose,
.page-about__section--core-values,
.page-about__section--team,
.page-about__section--future,
.page-about__section--contact {
  background-color: var(--background-color);
}

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
  background-color: var(--background-color);
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for aesthetic */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px;
}

.page-about__hero-content {
  text-align: center;
  padding: 40px 20px 0;
  max-width: 800px;
  margin: 0 auto;
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Use clamp for H1 */
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-about__hero-description {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Section titles */
.page-about__section-title {
  font-size: 2.5em;
  color: var(--text-main);
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__text-block {
  font-size: 1.05em;
  color: var(--text-secondary);
  margin-bottom: 20px;
  text-align: left;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure responsiveness */
}

.page-about__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main); /* Light text on green button */
  border: none;
  margin: 10px;
}

.page-about__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 2px solid var(--border-color);
  margin: 10px;
}

.page-about__btn-secondary:hover {
  background: var(--border-color);
  color: var(--text-main);
  transform: translateY(-2px);
}

.page-about__cta-wrapper {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* Why Choose Section */
.page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-about__feature-card {
  background-color: var(--card-bg); /* Dark card background */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%; /* Ensure equal height */
  color: var(--text-main); /* Light text on dark card */
}

.page-about__feature-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px;
}

.page-about__feature-title {
  font-size: 1.5em;
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__feature-description {
  font-size: 0.95em;
  color: var(--text-secondary);
}

/* Core Values Section */
.page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-about__value-item {
  background-color: var(--card-bg); /* Dark card background */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main); /* Light text on dark card */
}

.page-about__value-title {
  font-size: 1.4em;
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__value-description {
  font-size: 0.95em;
  color: var(--text-secondary);
}

/* Team Section */
.page-about__section--team {
  background-color: var(--deep-green); /* Deeper green background for contrast */
}

.page-about__team-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-about__team-image {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  min-height: 200px; /* Enforce min image size */
}

.page-about__team-text {
  flex: 2;
  min-width: 300px;
}

/* Future Section */
.page-about__future-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-about__future-item {
  background-color: var(--card-bg); /* Dark card background */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-main); /* Light text on dark card */
}

.page-about__future-title {
  font-size: 1.4em;
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__future-description {
  font-size: 0.95em;
  color: var(--text-secondary);
}

/* Contact Section */
.page-about__contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about__section {
    padding: 40px 0;
  }

  .page-about__container {
    padding: 0 15px; /* Add padding for mobile content */
  }

  .page-about__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-about__main-title {
    font-size: clamp(1.6em, 7vw, 2.5em);
  }

  .page-about__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  /* Force responsive for all images and containers */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-image-wrapper,
  .page-about__team-content,
  .page-about__features-grid,
  .page-about__values-grid,
  .page-about__future-points {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  
  /* Buttons responsive */
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    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;
    margin: 10px 0 !important; /* Stack buttons vertically */
  }

  .page-about__cta-wrapper,
  .page-about__contact-links {
    flex-direction: column;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }
}