/* style/about.css */

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

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

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

.page-about__dark-section {
  background-color: var(--rr3366-background);
  color: var(--rr3366-text-main);
  padding: 80px 0;
}

.page-about__light-section {
  background-color: #ffffff;
  color: #333333;
  padding: 80px 0;
}

.page-about__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--rr3366-text-main);
  line-height: 1.2;
}

.page-about__section-description {
  font-size: clamp(16px, 2vw, 18px);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--rr3366-text-secondary);
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding: 60px 0;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  max-height: 70vh; /* Limit hero image height */
  overflow: hidden;
  margin-bottom: 40px;
}

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

.page-about__hero-content-wrapper {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 0 20px;
}

.page-about__main-title {
  font-size: clamp(32px, 5vw, 55px); /* Adjusted for H1 formula length */
  font-weight: 800;
  color: var(--rr3366-text-main);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--rr3366-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-about__btn-primary {
  background: var(--rr3366-button-gradient);
  color: var(--rr3366-text-main);
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-about__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Vision and Mission Section */
.page-about__vision-mission-section .page-about__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-about__vision-mission-section .page-about__text-block {
  flex: 1;
}

.page-about__vision-mission-section .page-about__image-block {
  flex: 1;
  text-align: center;
}

.page-about__image-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

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

.page-about__feature-card {
  background-color: var(--rr3366-card-bg);
  border: 1px solid var(--rr3366-border);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-about__card-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--rr3366-text-main);
}

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

.page-about__feature-card p {
  font-size: 16px;
  color: var(--rr3366-text-secondary);
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-about__btn-small {
  padding: 10px 20px;
  font-size: 16px;
  align-self: center;
}

/* Commitment Section */
.page-about__commitment-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-about__commitment-list li {
  background-color: var(--rr3366-card-bg);
  border: 1px solid var(--rr3366-border);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  font-size: 17px;
  color: var(--rr3366-text-secondary);
  line-height: 1.8;
  transition: background-color 0.3s ease;
}

.page-about__commitment-list li:hover {
  background-color: var(--rr3366-deep-green);
}

.page-about__commitment-list li strong {
  color: var(--rr3366-text-main);
  font-weight: 700;
}

/* Team Section */
.page-about__team-section .page-about__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-direction: row-reverse; /* Image on right */
}

.page-about__team-section .page-about__text-block {
  flex: 1;
}

.page-about__team-section .page-about__image-block {
  flex: 1;
  text-align: center;
}

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: var(--rr3366-text-main);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-about__faq-item summary {
  list-style: none;
}

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

.page-about__faq-toggle {
  font-size: 24px;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg); /* Visually indicate open state */
}

.page-about__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  color: var(--rr3366-text-secondary);
  line-height: 1.7;
}

/* Join Us CTA Section */
.page-about__join-us-cta-section {
  text-align: center;
  padding-bottom: 80px;
}

.page-about__join-us-cta-section .page-about__cta-buttons {
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__vision-mission-section .page-about__content-grid,
  .page-about__team-section .page-about__content-grid {
    flex-direction: column;
    gap: 30px;
  }
  .page-about__team-section .page-about__content-grid {
    flex-direction: column-reverse; /* Team image above text on smaller screens */
  }
}

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

  .page-about__dark-section {
    padding: 50px 0;
  }

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

  .page-about__main-title {
    font-size: clamp(28px, 6vw, 45px);
  }

  .page-about__hero-description {
    font-size: clamp(16px, 3vw, 18px);
  }

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

  .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;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__button-group {
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-about__section-title {
    font-size: clamp(24px, 5vw, 36px);
  }

  .page-about__section-description {
    font-size: clamp(15px, 2.5vw, 17px);
    margin-bottom: 30px;
  }

  .page-about__feature-card {
    padding: 25px;
  }

  .page-about__card-title {
    font-size: 20px;
  }

  .page-about__card-image {
    height: 200px;
  }

  .page-about__feature-card p {
    font-size: 15px;
  }

  .page-about__commitment-list li {
    padding: 20px;
    font-size: 16px;
  }

  .page-about__faq-question {
    font-size: 16px;
    padding: 18px 20px;
  }

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

  /* Mobile specific image adaptation */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__hero-image-wrapper,
  .page-about__image-block,
  .page-about__feature-card,
  .page-about__container,
  .page-about__content-grid,
  .page-about__features-grid,
  .page-about__commitment-list,
  .page-about__faq-list,
  .page-about__faq-item,
  .page-about__join-us-cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-about__hero-section {
    min-height: 400px;
  }
}