/* style/about.css */

/* General styling for the about page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #f4f7f6; /* Inherited from body, but explicitly stated for clarity */
}

/* Sections */
.page-about__section {
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, text below */
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding for first section */
  text-align: center;
  background-color: #08160F; /* Dark background for hero */
}

.page-about__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  color: #F2FFF6; /* Light text for dark background */
  padding: 20px;
  max-width: 800px;
}

.page-about__main-title {
  font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #F2C14E; /* Gold for main title */
}

.page-about__description-text {
  font-size: clamp(1em, 2vw, 1.2em);
  color: #A7D9B8; /* Secondary light green text */
  margin-bottom: 30px;
}

/* Section Titles */
.page-about__section-title {
  font-size: clamp(1.8em, 4vw, 2.8em);
  font-weight: 700;
  color: #11A84E; /* Main brand green for titles */
  text-align: center;
  margin-bottom: 40px;
}

.page-about__sub-title {
  font-size: clamp(1.4em, 3vw, 2em);
  font-weight: 600;
  color: #22C768; /* Auxiliary green for sub-titles */
  margin-top: 30px;
  margin-bottom: 15px;
}

/* Text Blocks */
.page-about__text-block {
  margin-bottom: 20px;
  color: #333333; /* Default text color for light background */
}

/* Dark Background Sections */
.page-about__dark-section {
  background-color: #08160F; /* Very dark green background */
  color: #F2FFF6; /* Light text for dark background */
}

.page-about__dark-section .page-about__section-title {
  color: #F2C14E; /* Gold for titles in dark sections */
}

.page-about__dark-section .page-about__text-block {
  color: #A7D9B8; /* Secondary light green text */
}

/* Mission Vision Section */
.page-about__mission-vision-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.page-about__mission-vision-text,
.page-about__mission-vision-image {
  flex: 1;
  min-width: 300px;
}

.page-about__mission-vision-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
}

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

.page-about__service-card {
  background-color: #11271B; /* Card BG */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  color: #F2FFF6; /* Light text for dark card */
}

.page-about__service-card .page-about__card-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #2AD16F; /* Button top gradient color for title */
  margin-bottom: 15px;
}

.page-about__service-card .page-about__card-text {
  flex-grow: 1;
  color: #A7D9B8; /* Secondary light green text */
  margin-bottom: 20px;
}

.page-about__service-card .page-about__card-link {
  display: inline-block;
  color: #F2C14E; /* Gold for links */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-about__service-card .page-about__card-link:hover {
  color: #57E38D; /* Glow color on hover */
}

.page-about__image-container img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 20px;
  display: block;
}

/* Security Section */
.page-about__security-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.page-about__security-image,
.page-about__security-text {
  flex: 1;
  min-width: 300px;
}

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

.page-about__security-text .page-about__text-block {
  color: #333333; /* Dark text for light background */
}

.page-about__security-list {
  list-style: disc;
  padding-left: 20px;
  margin-top: 20px;
  color: #333333; /* Dark text for light background */
}

.page-about__security-list li {
  margin-bottom: 10px;
}

/* Promotions Section */
.page-about__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-about__promo-card {
  background-color: #11271B; /* Card BG */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  color: #F2FFF6; /* Light text for dark card */
}

.page-about__promo-card .page-about__card-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #2AD16F; /* Button top gradient color for title */
  margin-bottom: 15px;
}

.page-about__promo-card .page-about__card-text {
  flex-grow: 1;
  color: #A7D9B8; /* Secondary light green text */
  margin-bottom: 20px;
}

.page-about__promo-card .page-about__card-link {
  display: inline-block;
  color: #F2C14E; /* Gold for links */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-about__promo-card .page-about__card-link:hover {
  color: #57E38D; /* Glow color on hover */
}

/* Support Section */
.page-about__support-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
}

.page-about__support-text,
.page-about__support-image {
  flex: 1;
  min-width: 300px;
}

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

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

.page-about__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  max-width: 100%; /* Ensure button doesn't overflow */
}

.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%);
  box-shadow: 0 0 15px #57E38D; /* Glow effect */
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #F2C14E; /* Gold text */
  border: 2px solid #F2C14E; /* Gold border */
}

.page-about__btn-secondary:hover {
  background-color: #F2C14E; /* Gold background on hover */
  color: #08160F; /* Dark text on gold background */
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.5); /* Gold glow */
}

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

.page-about__faq-item {
  background-color: #11271B; /* Card BG */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6; /* Light text for dark FAQ item */
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  color: #2AD16F; /* Green for question */
  position: relative;
  list-style: none; /* For details/summary */
}

.page-about__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for Chrome */
}

.page-about__faq-item summary {
  list-style: none; /* Hide default marker for Firefox/Safari */
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #F2C14E; /* Gold for toggle */
  transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-about__faq-answer {
  padding: 0 25px 20px;
  color: #A7D9B8; /* Secondary light green text */
}

/* Responsive Images, Videos, Buttons - Global for .page-about */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-about video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* Ensure containers with images/videos don't overflow on desktop */
.page-about__container,
.page-about__mission-vision-wrapper,
.page-about__security-wrapper,
.page-about__support-wrapper,
.page-about__services-grid,
.page-about__promotions-grid,
.page-about__cta-buttons,
.page-about__faq-list {
  box-sizing: border-box;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Media Queries for Mobile */
@media (max-width: 768px) {
  .page-about__section {
    padding: 30px 15px;
  }

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

  .page-about__main-title {
    font-size: 2.2em;
  }

  .page-about__description-text {
    font-size: 1em;
  }

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

  .page-about__sub-title {
    font-size: 1.2em;
  }

  /* Responsive images */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Responsive videos */
  .page-about video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Ensure containers with images/videos don't overflow */
  .page-about__container,
  .page-about__mission-vision-wrapper,
  .page-about__security-wrapper,
  .page-about__support-wrapper,
  .page-about__services-grid,
  .page-about__promotions-grid,
  .page-about__cta-buttons,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  /* Responsive buttons */
  .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;
  }

  /* Multiple buttons in mobile */
  .page-about__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

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

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