/* style/about.css */

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

/* Base styles for the about page content */
.page-about {
  background-color: var(--page-about-bg); /* Dark background from custom colors */
  color: var(--page-about-text-main); /* Light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Ensure space before footer */
}

/* Ensure headings and paragraphs use main text color by default */
.page-about h1,
.page-about h2,
.page-about h3,
.page-about h4,
.page-about h5,
.page-about h6 {
  color: var(--page-about-text-main);
  margin-bottom: 0.5em;
  line-height: 1.2;
}

.page-about p {
  color: var(--page-about-text-secondary);
  margin-bottom: 1em;
}

/* Section base styles */
.page-about__section {
  padding: 60px 20px;
  text-align: center;
}

.page-about__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: var(--page-about-text-main);
}

.page-about__section-description {
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
  color: var(--page-about-text-secondary);
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom */
  overflow: hidden;
  background-color: var(--page-about-deep-green); /* Fallback background color */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for aesthetic */
  overflow: hidden;
  margin-bottom: 40px; /* Space between image and content */
}

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

.page-about__hero-content {
  max-width: 900px;
  text-align: center;
  z-index: 1;
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Using clamp for H1 */
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--page-about-gold); /* Using gold for prominence */
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: var(--page-about-text-main);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__cta-buttons--centered {
  margin-top: 40px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-about__btn-primary {
  background: var(--page-about-button-gradient);
  color: #ffffff; /* White text for gradient button */
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

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

.page-about__btn-secondary:hover {
  background: var(--page-about-main-color);
  color: #ffffff;
}

/* Card styles */
.page-about__card {
  background-color: var(--page-about-card-bg); /* Darker card background */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  display: flex;
  flex-direction: column;
  color: var(--page-about-text-main);
  height: 100%; /* Ensure cards in a grid have equal height */
  box-sizing: border-box;
}

.page-about__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--page-about-gold);
}

.page-about__card-image {
  width: 100%;
  height: auto;
  max-height: 200px; /* Limit image height in cards */
  object-fit: cover;
  border-radius: 8px;
  margin-top: 15px;
  display: block; /* Ensure no extra space below image */
}

/* Mission & Vision Section */
.page-about__mission-vision {
  background-color: var(--page-about-bg); /* Consistent dark background */
}

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

/* Core Values Section */
.page-about__core-values {
  background-color: var(--page-about-deep-green); /* Deep green background */
  color: var(--page-about-text-main);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__core-values .page-about__section-title {
  color: var(--page-about-text-main);
}

.page-about__values-list {
  list-style: none;
  padding: 0;
  margin: 40px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-about__value-item {
  background-color: var(--page-about-card-bg);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--page-about-border);
}

.page-about__value-heading {
  font-size: 1.3em;
  color: var(--page-about-gold);
  margin-bottom: 10px;
}

.page-about__value-item p {
  color: var(--page-about-text-secondary);
}

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

/* Offerings Section */
.page-about__offerings {
  background-color: var(--page-about-bg);
}

.page-about__offerings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__offering-card {
  text-align: center;
  padding: 25px;
}

.page-about__offering-image {
  width: 100%;
  height: 180px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-about__offering-title {
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-about__offering-title a {
  color: var(--page-about-gold);
  text-decoration: none;
}

.page-about__offering-title a:hover {
  text-decoration: underline;
}

.page-about__offering-card p {
  color: var(--page-about-text-secondary);
}

/* Security & Fairness Section */
.page-about__security-fairness {
  background-color: var(--page-about-deep-green);
}

.page-about__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__security-item {
  background-color: var(--page-about-card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--page-about-border);
}

.page-about__security-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: none; /* Ensure no filter is applied */
}

.page-about__security-heading {
  font-size: 1.3em;
  color: var(--page-about-gold);
  margin-bottom: 10px;
}

.page-about__security-item p {
  color: var(--page-about-text-secondary);
}

/* Customer Support Section */
.page-about__customer-support {
  background-color: var(--page-about-bg);
}

.page-about__support-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__support-item {
  text-align: center;
}

.page-about__support-heading {
  font-size: 1.4em;
  color: var(--page-about-gold);
  margin-bottom: 15px;
}

/* Why Choose Us Section */
.page-about__why-choose {
  background-color: var(--page-about-deep-green);
}

.page-about__why-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 900px;
}

.page-about__why-list li {
  display: flex;
  align-items: center;
  background-color: var(--page-about-card-bg);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  gap: 20px;
  text-align: left;
  border: 1px solid var(--page-about-border);
}

.page-about__why-icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  object-fit: contain;
  filter: none; /* Ensure no filter is applied */
}

.page-about__why-heading {
  font-size: 1.3em;
  color: var(--page-about-gold);
  margin-bottom: 5px;
}

.page-about__why-text p {
  color: var(--page-about-text-secondary);
  margin-bottom: 0;
}


/* FAQ Section */
.page-about__faq-section {
  background-color: var(--page-about-bg);
}

.page-about__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
  text-align: left;
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  color: var(--page-about-text-main);
  background-color: var(--page-about-deep-green);
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for details/summary */
}

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

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

.page-about__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--page-about-gold);
}

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

.page-about__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--page-about-text-secondary);
  border-top: 1px solid var(--page-about-divider);
}

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

/* CTA Bottom Section */
.page-about__cta-bottom {
  background-color: var(--page-about-deep-green);
  padding-bottom: 80px; /* More padding for final CTA */
}

.page-about__cta-bottom .page-about__section-title {
  color: var(--page-about-text-main);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__hero-section {
    padding-top: 10px;
    padding-bottom: 40px;
  }
  .page-about__main-title {
    font-size: clamp(1.8em, 5vw, 2.5em);
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-about__section {
    padding: 40px 15px;
  }
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__section-description {
    font-size: 1em;
  }

  /* Hero section adjustments */
  .page-about__hero-image-wrapper {
    margin-bottom: 30px;
  }
  .page-about__main-title {
    font-size: clamp(1.5em, 6vw, 2em); /* Smaller H1 on mobile */
  }
  .page-about__hero-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  /* CTA buttons */
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Grid layouts */
  .page-about__content-grid,
  .page-about__values-list,
  .page-about__offerings-grid,
  .page-about__security-grid,
  .page-about__support-channels {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__why-list li {
    flex-direction: column;
    text-align: center;
    padding: 15px;
    gap: 10px;
  }

  .page-about__why-icon {
    width: 60px;
    height: 60px;
  }

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

  /* Global image/video/container responsiveness for mobile */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about video,
  .page-about__video { /* Assuming a video class if used */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__hero-image-wrapper,
  .page-about__video-section, /* If a video section were present */
  .page-about__video-container, /* If a video container were present */
  .page-about__video-wrapper, /* If a video wrapper were present */
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container,
  .page-about__faq-list,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-about__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-about__hero-image-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-about__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific padding for video section if it were here */
  .page-about__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

/* Color Contrast Fixes (if needed, though design should prevent) */
.page-about__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-about__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}