/* style/about.css */

/* --- General Page Styles --- */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Light text on dark body background */
  background-color: var(--background); /* Deep green background from shared */
}

.page-about__section {
  padding: 60px 20px;
  position: relative;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-about__dark-section {
  background-color: var(--card-bg); /* Darker green for contrast sections */
  color: var(--text-main);
}

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Consistent padding for content */
  box-sizing: border-box;
}

.page-about__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--gold); /* Gold for main titles */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-about__sub-title {
  font-size: 1.8em;
  color: var(--glow); /* Glow green for sub titles */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about__text-block p,
.page-about__list li {
  margin-bottom: 15px;
  color: var(--text-secondary); /* Secondary text for paragraphs */
}

.page-about__list {
  list-style: disc;
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-about__list--small li {
  font-size: 0.9em;
}

/* --- Hero Section --- */
.page-about__hero-section {
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  text-align: center;
  padding: 10px 0 60px 0; /* Small top padding, then larger bottom padding */
  background-color: var(--background); /* Matches body background */
}

.page-about__hero-image {
  width: 100%;
  max-width: 1920px; /* Full width image */
  height: auto;
  object-fit: cover;
  margin-bottom: 40px;
  display: block; /* Ensure it behaves as a block element */
  /* HTML width/height attributes handle aspect ratio, CSS for responsiveness */
}

.page-about__hero-content {
  max-width: 900px;
  padding: 0 15px;
}

.page-about__main-title {
  font-size: clamp(2.2em, 4vw, 3em); /* Responsive font size for H1 */
  font-weight: 700;
  color: var(--text-main); /* Main text color for H1 */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__description {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* --- Buttons --- */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure text breaks */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-about__btn-primary {
  background: var(--button-gradient); /* Gradient button */
  color: var(--text-main); /* Light text on gradient */
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(var(--glow-rgb), 0.4); /* Glow effect */
}

.page-about__btn-secondary {
  background-color: transparent;
  color: var(--glow); /* Glow color for text */
  border: 2px solid var(--glow); /* Glow border */
  margin-left: 20px;
}

.page-about__btn-secondary:hover {
  background-color: var(--glow);
  color: var(--background); /* Dark text on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(var(--glow-rgb), 0.2);
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
}

/* --- Card Layout (Why Choose Us) --- */
.page-about__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__card {
  background-color: var(--card-bg); /* Dark card background */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border); /* Border for cards */
  color: var(--text-secondary);
}

.page-about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(var(--glow-rgb), 0.2);
}

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

.page-about__card-title {
  font-size: 1.4em;
  color: var(--text-main); /* Light text for card titles */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-about__card p {
  font-size: 0.95em;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

/* --- Team Section --- */
.page-about__team-section .page-about__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-about__team-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  margin-top: 40px;
  display: block;
}

/* --- Call to Action Section --- */
.page-about__cta-section {
  text-align: center;
  padding: 80px 20px;
  background-color: var(--background);
}

.page-about__cta-container {
  max-width: 800px;
}

/* --- FAQ Section --- */
.page-about__faq-list {
  margin-top: 30px;
}

.page-about__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--divider);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-about__faq-item:hover {
  background-color: var(--deep-green); /* Slightly darker on hover */
}

.page-about__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  outline: none;
  list-style: none; /* Hide default marker */
}

.page-about__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-about__faq-qtext {
  flex-grow: 1;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow);
}

.page-about__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: var(--text-secondary);
}

/* --- Color Variables (from custom config) --- */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border: #2E7A4E;
  --glow: #57E38D;
  --glow-rgb: 87, 227, 141; /* For rgba shadows */
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__sub-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-about__section {
    padding: 40px 15px;
  }

  .page-about__hero-section {
    padding: 10px 0 40px 0;
  }

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

  .page-about__description {
    font-size: 1em;
  }

  /* Images responsiveness */
  .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__grid-layout {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons responsiveness */
  .page-about__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important; /* Remove left margin for stacking */
    padding: 12px 20px !important;
    font-size: 1em !important;
  }
  .page-about__btn-secondary {
    margin-top: 10px; /* Space between stacked buttons */
  }

  .page-about__card-image {
    height: 180px; /* Adjust card image height for mobile */
  }

  .page-about__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-about__faq-answer {
    padding: 0 20px 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__sub-title {
    font-size: 1.3em;
  }
  .page-about__card-title {
    font-size: 1.2em;
  }
  .page-about__card {
    padding: 20px;
  }
}