/* style/about.css */

/* --- Base Styles --- */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main, #F2FFF6); /* Main text color for dark background */
  background-color: var(--background, #08160F); /* Body background color */
  padding-bottom: 60px; /* Add some padding at the bottom */
}

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

.page-about__section {
  padding: 60px 0;
  position: relative;
}

.page-about__section-title {
  font-size: 2.8em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main, #F2FFF6);
  line-height: 1.2;
}

.page-about__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--text-main, #F2FFF6);
}

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

.page-about p {
  margin-bottom: 1em;
  color: var(--text-main, #F2FFF6);
}

.page-about a {
  color: var(--primary-color, #11A84E); /* Default link color, ensure contrast */
  text-decoration: none;
}

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

/* --- Buttons --- */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box;
  max-width: 100%;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: var(--text-main, #F2FFF6);
  border: none;
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(87, 227, 141, 0.4); /* Glow color shadow */
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--primary-color, #11A84E);
  border: 2px solid var(--border-color, #2E7A4E);
}

.page-about__btn-secondary:hover {
  background: rgba(17, 168, 78, 0.1); /* Slight background on hover */
  transform: translateY(-2px);
  color: var(--glow-color, #57E38D);
  border-color: var(--glow-color, #57E38D);
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Card Styles --- */
.page-about__card {
  background-color: var(--card-bg, #11271B);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color, #2E7A4E);
  color: var(--text-main, #F2FFF6);
}

.page-about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(87, 227, 141, 0.3); /* Glow color shadow */
}

.page-about__card-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--gold-color, #F2C14E); /* Using gold for card titles */
}

/* --- Hero Section --- */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above, content below */
  align-items: center;
  padding: 10px 0 60px; /* Small top padding, more bottom padding */
  text-align: center;
  background-color: var(--background, #08160F);
}

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

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 0 0 15px 15px; /* Slightly rounded bottom corners */
}

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

.page-about__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 800;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__description {
  font-size: 1.2em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 30px;
}

/* --- Mission & Vision Section (Dark Background) --- */
.page-about__mission-vision .page-about__container {
  background-color: var(--card-bg, #11271B); /* Use card background for this dark section */
  padding: 50px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-about__mission-vision .page-about__section-title {
  color: var(--text-main, #F2FFF6);
}

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

.page-about__grid-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  width: 100%;
}

/* --- Core Values Section --- */
.page-about__core-values {
  background-color: var(--background, #08160F);
}

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

/* --- Expert Team Section (Dark Background) --- */
.page-about__expert-team .page-about__container {
  background-color: var(--card-bg, #11271B);
  padding: 50px;
  border-radius: 15px;
  text-align: center;
}

.page-about__expert-team .page-about__section-title {
  color: var(--text-main, #F2FFF6);
}

.page-about__expert-team .page-about__section-description {
  color: var(--text-secondary, #A7D9B8);
}

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

.page-about__team-member-card {
  text-align: center;
}

.page-about__team-member-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px;
  border: 3px solid var(--gold-color, #F2C14E);
}

/* --- Safety & Security Section --- */
.page-about__safety-security {
  background-color: var(--background, #08160F);
}

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

.page-about__safety-security .page-about__section-image {
  max-width: 800px;
  height: auto;
  display: block;
  margin: 60px auto 0;
  border-radius: 10px;
}

/* --- User Experience Section (Dark Background) --- */
.page-about__user-experience .page-about__container {
  background-color: var(--card-bg, #11271B);
  padding: 50px;
  border-radius: 15px;
  text-align: center;
}

.page-about__user-experience .page-about__section-title {
  color: var(--text-main, #F2FFF6);
}

.page-about__user-experience .page-about__section-description {
  color: var(--text-secondary, #A7D9B8);
}

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

.page-about__user-experience .page-about__section-image {
  max-width: 800px;
  height: auto;
  display: block;
  margin: 60px auto 0;
  border-radius: 10px;
}

/* --- Social Responsibility Section --- */
.page-about__social-responsibility {
  background-color: var(--background, #08160F);
}

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

.page-about__social-responsibility .page-about__section-image {
  max-width: 800px;
  height: auto;
  display: block;
  margin: 60px auto 0;
  border-radius: 10px;
}

/* --- FAQ Section (Dark Background) --- */
.page-about__faq-section .page-about__container {
  background-color: var(--card-bg, #11271B);
  padding: 50px;
  border-radius: 15px;
  text-align: center;
}

.page-about__faq-section .page-about__section-title {
  color: var(--text-main, #F2FFF6);
}

.page-about__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-about__faq-item {
  background-color: var(--background, #08160F); /* Slightly lighter background for FAQ item */
  border: 1px solid var(--divider-color, #1E3A2A);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-main, #F2FFF6);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  color: var(--gold-color, #F2C14E); /* Gold for FAQ questions */
  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; /* Remove default marker for summary */
}

.page-about__faq-item summary:hover {
  background-color: var(--deep-green-color, #0A4B2C); /* Darker green on hover */
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: 700;
  margin-left: 15px;
  color: var(--text-main, #F2FFF6);
}

.page-about__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  line-height: 1.5;
}

/* Ensure details open state styling */
.page-about__faq-item[open] .page-about__faq-question {
  background-color: var(--deep-green-color, #0A4B2C);
  border-bottom: 1px solid var(--divider-color, #1E3A2A);
}

/* --- CTA Bottom Section --- */
.page-about__cta-bottom {
  padding-top: 80px;
  padding-bottom: 80px;
  text-align: center;
  background-color: var(--background, #08160F);
}

/* --- Responsive Styles --- */
@media (max-width: 992px) {
  .page-about__section-title {
    font-size: 2.2em;
  }

  .page-about__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }

  .page-about__grid-two-cols {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-about__section {
    padding: 40px 0;
  }

  .page-about__section-title {
    font-size: 1.8em;
  }

  .page-about__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em) !important; /* Ensure H1 is responsive on mobile */
  }

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

  .page-about__hero-section {
    padding-bottom: 40px;
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-about__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to container of buttons */
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 10px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

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

  /* All images responsive on mobile */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All image and video containers responsive on mobile */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-image-wrapper,
  .page-about__team-member-card,
  .page-about__security-features,
  .page-about__experience-grid,
  .page-about__responsibility-points,
  .page-about__faq-list,
  .page-about__cta-bottom {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-about__mission-vision .page-about__container,
  .page-about__expert-team .page-about__container,
  .page-about__user-experience .page-about__container,
  .page-about__faq-section .page-about__container {
    padding: 30px 15px !important; /* Adjust padding for dark containers */
  }

  .page-about__values-grid,
  .page-about__team-members,
  .page-about__security-features,
  .page-about__experience-grid,
  .page-about__responsibility-points {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__team-member-image {
    width: 120px;
    height: 120px;
  }
}

/* Ensure no filter on images */
.page-about img {
  filter: none !important;
}

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

/* Smart contrast check for main content area */
.page-about p,
.page-about li,
.page-about__description {
  color: var(--text-main, #F2FFF6); /* Ensure light text on dark background */
}

/* Smart contrast check for card titles (using gold) */
.page-about__card-title {
  color: var(--gold-color, #F2C14E); /* Gold on dark green card background */
}

/* Smart contrast check for section titles */
.page-about__section-title,
.page-about__sub-title,
.page-about__main-title {
  color: var(--text-main, #F2FFF6); /* Light text on dark background */
}

/* Ensure button text is visible */
.page-about__btn-primary {
  color: #F2FFF6; /* Light text on green gradient button */
}
.page-about__btn-secondary {
  color: var(--primary-color, #11A84E); /* Green text on transparent/white background */
}
/* Ensure link text in FAQ is visible */
.page-about__faq-answer a {
  color: var(--glow-color, #57E38D); /* Using a brighter green for links in text */
}

/* Ensure details summary does not have pointer-events: none */
.page-about__faq-item summary .page-about__faq-qtext,
.page-about__faq-item summary .page-about__faq-toggle {
  pointer-events: auto; /* Re-enable pointer events for inner elements */
}