/* style/about.css */

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

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

/* General Section Styling */
.page-about__hero-section,
.page-about__video-section,
.page-about__content-area {
  padding: 60px 20px;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Specific background colors for sections */
.page-about__dark-bg {
  background-color: var(--background-color);
  color: var(--text-main-color);
}

.page-about__light-bg {
  background-color: var(--card-bg-color); /* Using card bg for contrast */
  color: #333333; /* Dark text for light background */
}

.page-about__text--dark {
  color: #333333;
}
.page-about__list--dark li {
  color: #333333;
}
.page-about__section-title--dark,
.page-about__subsection-title--dark {
  color: var(--primary-color);
}

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px;
  padding-bottom: 40px;
  background-color: var(--background-color);
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

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

.page-about__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gold-color);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

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

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Buttons */
.page-about__button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
}

.page-about__button--primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
}

.page-about__button--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
}

.page-about__button--secondary {
  background-color: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
}

.page-about__button--secondary:hover {
  background-color: rgba(242, 193, 78, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--gold-color);
}

.page-about__button--tertiary {
  background: var(--deep-green-color);
  color: var(--text-main-color);
  border: 1px solid var(--primary-color);
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: 5px;
}

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

/* Video Section */
.page-about__video-section {
  text-align: center;
  padding-bottom: 60px;
  background-color: var(--card-bg-color);
  color: var(--text-main-color);
}

.page-about__video-wrapper {
  width: 100%;
  max-width: 1000px;
  margin: 30px auto 0;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.page-about__video-link {
    display: block;
    line-height: 0;
}

.page-about__video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* Section Titles */
.page-about__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 25px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-about__subsection-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 20px;
  margin-bottom: 15px;
}

.page-about__card-title {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
  color: var(--gold-color);
  margin-top: 20px;
  margin-bottom: 15px;
}

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

/* Card Grid Layout */
.page-about__card-grid,
.page-about__feature-grid,
.page-about__commitment-grid,
.page-about__contact-grid,
.page-about__team-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

/* Card Styling */
.page-about__card {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--text-main-color);
  border: 1px solid var(--border-color);
}

.page-about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 15px rgba(17, 168, 78, 0.3);
}

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

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

/* Feature Grid specific styling */
.page-about__feature-item {
  background-color: #ffffff; /* Light background for features */
  color: #333333; /* Dark text for features */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid #e0e0e0;
}

.page-about__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2), 0 0 15px rgba(34, 199, 104, 0.2);
}

.page-about__feature-image {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-about__feature-title {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 10px;
  margin-bottom: 10px;
}

.page-about__feature-text {
  font-size: 0.95rem;
  color: #555555;
  margin-bottom: 15px;
  text-align: justify;
}

/* List Styling */
.page-about__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 15px;
}

.page-about__list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: var(--text-secondary-color);
  font-size: 0.95rem;
}

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

.page-about__list--dark li {
  color: #555555;
}

/* Team Info Specific */
.page-about__team-info {
  grid-template-columns: 1fr; /* Stack vertically on desktop too for cleaner look */
  gap: 40px;
  margin-top: 40px;
}

.page-about__team-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

.page-about__team-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

/* Contact Grid Specific */
.page-about__contact-grid {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.page-about__card--contact {
  align-items: center;
  text-align: center;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-main-color);
  background-color: var(--deep-green-color);
  border-bottom: 1px solid var(--divider-color);
  transition: background-color 0.3s ease;
  list-style: none;
}

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

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

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

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

.page-about__faq-item[open] .page-about__faq-toggle {
  content: '−';
}

.page-about__faq-answer {
  padding: 20px 25px;
  font-size: 0.95rem;
  color: var(--text-secondary-color);
  text-align: justify;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .page-about__card-grid,
  .page-about__feature-grid,
  .page-about__commitment-grid,
  .page-about__contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
}

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

  .page-about__hero-section,
  .page-about__video-section,
  .page-about__content-area {
    padding: 30px 15px;
  }

  .page-about__hero-section {
    padding-top: 10px;
    padding-bottom: 30px;
  }

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

  .page-about__description-text {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-about__button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
  }
  
  /* Images responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Image containers responsive */
  .page-about__hero-image-wrapper,
  .page-about__card,
  .page-about__feature-item,
  .page-about__team-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video responsive */
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video containers responsive */
  .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;
  }

  .page-about__section-title {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .page-about__subsection-title {
    font-size: 1.5rem;
  }

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

  .page-about__text,
  .page-about__card-text,
  .page-about__feature-text,
  .page-about__list li,
  .page-about__faq-answer {
    font-size: 1rem;
  }

  .page-about__card-grid,
  .page-about__feature-grid,
  .page-about__commitment-grid,
  .page-about__contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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