/* style/about.css */

/* Base styles for the page-about scope */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color based on body background */
  background-color: var(--background); /* Body background from shared */
  padding-top: 10px; /* Small top padding for the first section, body handles header offset */
}

/* Ensure content areas respect padding and max-width */
.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px; /* Added horizontal padding for desktop */
  box-sizing: border-box;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image first, then content */
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding-bottom: 60px; /* Space below content */
  background-color: var(--card-bg); /* Dark background for hero */
  color: var(--text-main); /* Light text on dark background */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 40px;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-about__hero-content-wrapper {
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

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

.page-about__lead-text {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--primary-color); /* Use primary color for text */
  border: 2px solid var(--border-color);
}

.page-about__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* General Section Styling */
.page-about__introduction-section,
.page-about__advantages-section,
.page-about__commitment-section,
.page-about__cta-section {
  padding: 80px 0;
  background-color: var(--background);
  color: var(--text-main);
}

.page-about__values-section,
.page-about__faq-section {
  padding: 80px 0;
  background-color: var(--card-bg); /* Darker background for these sections */
  color: var(--text-main); /* Light text on dark background */
}

.page-about__light-bg {
  background-color: var(--background); /* Ensure light background for contrast */
  color: var(--text-main);
}

.page-about__dark-section {
  background-color: var(--card-bg); /* Deep green background */
  color: var(--text-main); /* Light text */
}

.page-about__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--gold-color);
}

.page-about__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--text-secondary);
}

/* Content Flex Layout */
.page-about__content-flex {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-about__content-flex:nth-child(even) {
  flex-direction: row-reverse; /* Alternate image/text order */
}

.page-about__image-block,
.page-about__text-block-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-about__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about__value-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-about__value-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  color: var(--text-secondary);
}

.page-about__value-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Advantages Grid */
.page-about__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__advantage-card {
  background-color: var(--card-bg);
  color: var(--text-main);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-about__card-image {
  width: 100%;
  height: auto;
  max-height: 250px; /* Limit card image height */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-about__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-about__card-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-align: justify;
}

/* FAQ Section */
.page-about__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-about__faq-item {
  background-color: var(--background); /* Lighter background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-main);
  background-color: var(--card-bg); /* Darker background for question header */
  border-bottom: 1px solid var(--divider-color);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-about__faq-question::-webkit-details-marker {
  display: none;
}

.page-about__faq-question:hover {
  background-color: var(--deep-green);
}

.page-about__faq-qtext {
  flex-grow: 1;
  color: var(--text-main);
}

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

.page-about__faq-answer {
  padding: 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  background-color: var(--background); /* Lighter background for answer content */
  border-top: 1px solid var(--divider-color);
}

.page-about__faq-answer p {
  margin: 0;
}

/* Specific link styling in text */
.page-about__text-block a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-about__text-block a:hover {
  color: var(--gold-color);
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-section {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .page-about__main-title {
    font-size: 2.8rem;
  }

  .page-about__section-title {
    font-size: 2.2rem;
  }

  .page-about__content-flex {
    flex-direction: column;
    text-align: center;
  }

  .page-about__image-block,
  .page-about__text-block-wrapper {
    min-width: unset;
    width: 100%;
  }

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

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

  .page-about__container {
    padding: 0 15px !important; /* Ensure padding on mobile */
  }

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

  .page-about__hero-image-wrapper {
    margin-bottom: 20px;
    max-height: 300px; /* Adjust hero image height for mobile */
  }

  .page-about__main-title {
    font-size: 2.2rem !important;
    margin-bottom: 15px;
  }

  .page-about__lead-text {
    font-size: 1rem !important;
    margin-bottom: 20px;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 0.95rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__introduction-section,
.page-about__advantages-section,
.page-about__commitment-section,
.page-about__cta-section,
  .page-about__values-section,
  .page-about__faq-section {
    padding: 40px 0;
  }

  .page-about__section-title {
    font-size: 1.8rem !important;
    margin-bottom: 30px;
  }

  .page-about__text-block {
    font-size: 0.9rem;
  }

  .page-about__advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-about__advantage-card {
    padding: 20px;
  }

  .page-about__card-title {
    font-size: 1.3rem;
  }

  .page-about__card-text {
    font-size: 0.85rem;
  }

  .page-about__faq-question {
    font-size: 1rem;
    padding: 15px;
  }

  .page-about__faq-answer {
    padding: 15px;
    font-size: 0.85rem;
  }

  /* Image responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video responsive */
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

/* Custom Colors */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --card-bg: #11271B;
  --background: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green: #0A4B2C;
}

/* Apply colors to general elements */
.page-about h1, .page-about h2, .page-about h3, .page-about h4, .page-about h5, .page-about h6 {
  color: var(--text-main);
}

.page-about p, .page-about li {
  color: var(--text-secondary);
}

.page-about__section-title {
  color: var(--gold-color); /* Section titles can use gold for emphasis */
}

/* Ensure contrast for specific elements */
.page-about__faq-question {
  color: var(--text-main);
}
.page-about__faq-answer {
  color: var(--text-secondary);
}

/* Button colors are already defined above using custom values */
/* Card background and text color are defined above */