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

.page-about {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Light text for dark body background */
  background-color: var(--body-bg);
}

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

.page-about__container--center {
  text-align: center;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, main offset handled by body in shared.css */
  background-color: var(--deep-green); /* A slightly different dark background for the hero */
}

.page-about__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure it takes full width for max-width to work */
}

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

.page-about__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-color);
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

.page-about__hero-title {
  color: var(--text-main);
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-about__hero-description {
  color: var(--text-secondary);
  font-size: clamp(1rem, 2vw, 1.25rem); /* Responsive font size */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  border: none;
}

.page-about__cta-button:hover {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

/* General Section Styling */
.page-about__section {
  padding: 80px 0;
  background-color: var(--body-bg); /* Default section background */
}

.page-about__section:nth-of-type(even) {
  background-color: var(--card-bg); /* Alternate background for readability */
}

.page-about__heading {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text-main);
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  padding-bottom: 15px;
}

.page-about__heading::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.page-about__subheading {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--secondary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-about__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-about__text-block {
  flex: 1;
  padding: 20px;
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-about__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__image-block img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.page-about p {
  margin-bottom: 15px;
  color: var(--text-secondary);
  font-size: 1rem;
}

.page-about a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about a:hover {
  color: var(--glow-color);
  text-decoration: underline;
}

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

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

.page-about__list-item::before {
  content: '✓'; /* Checkmark for list items */
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2em;
  line-height: 1;
}

.page-about__list-item p {
  margin-bottom: 0;
}

/* Join Community Section Specifics */
.page-about__join-community {
  background: var(--button-gradient); /* Use button gradient for a vibrant CTA section */
  padding: 100px 20px;
}

.page-about__join-community .page-about__heading {
  color: #ffffff;
}

.page-about__join-community .page-about__heading::after {
  background-color: #ffffff;
}

.page-about__join-community .page-about__description-text {
  color: #ffffff;
  font-size: 1.15rem;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.page-about__join-community .page-about__cta-button {
  background: #ffffff;
  color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__join-community .page-about__cta-button:hover {
  background: #f0f0f0;
  color: var(--deep-green);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* FAQ Section */
.page-about__faq-section {
  padding-bottom: 80px;
}

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
}
details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main);
}
details.page-about__faq-item summary.page-about__faq-question::-webkit-details-marker {
  display: none;
}
details.page-about__faq-item summary.page-about__faq-question:hover {
  background: var(--deep-green); /* Slightly lighter dark green on hover */
}
.page-about__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-about__faq-item .page-about__faq-answer {
  padding: 0 20px 20px;
  background: var(--body-bg); /* Darker background for answer */
  border-radius: 0 0 5px 5px;
  color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__content-wrapper {
    flex-direction: column;
  }

  .page-about__content-wrapper--reverse {
    flex-direction: column; /* Revert to column for smaller screens */
  }

  .page-about__text-block,
  .page-about__image-block {
    width: 100%;
    padding: 0; /* Remove padding from text-block to allow container padding */
  }
  .page-about__text-block {
    background-color: transparent; /* Remove background for better flow */
    box-shadow: none;
    border: none;
  }
  .page-about__image-block img {
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: 10px !important; /* Keep small top padding */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-about__hero-image img {
    border-radius: 4px;
  }
  
  .page-about__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .page-about__hero-description {
    font-size: clamp(0.9rem, 3vw, 1.1rem);
  }

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

  .page-about__container {
    padding: 20px 15px;
  }

  .page-about__heading {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 40px;
  }

  .page-about__subheading {
    font-size: clamp(1.3rem, 4vw, 1.8rem);
  }

  .page-about p, .page-about li {
    font-size: 0.95rem;
  }

  .page-about__list-item {
    padding-left: 25px;
  }

  .page-about__list-item::before {
    font-size: 1.1em;
  }

  .page-about__image-block img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-about__text-block,
  .page-about__image-block,
  .page-about__container,
  .page-about__section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ */
  details.page-about__faq-item summary.page-about__faq-question { padding: 15px; }
  .page-about__faq-qtext { font-size: 15px; }
  .page-about__faq-toggle { font-size: 20px; width: 24px; }
  details.page-about__faq-item .page-about__faq-answer { padding: 0 15px 15px; }
}

/* Ensure images and buttons are responsive */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Button responsive styles */
.page-about__cta-button,
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about a[class*="button"],
.page-about a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__cta-buttons,
.page-about__button-group,
.page-about__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-about__cta-button,
  .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;
  }
  
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  
  .page-about__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}