/* style/about.css */

/* Custom Colors */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --bg-dark: #08160F; /* Background */
  --bg-card: #11271B; /* Card BG */
  --text-main: #F2FFF6; /* Text Main */
  --text-secondary: #A7D9B8; /* Text Secondary */
  --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  --border-color: #2E7A4E; /* Border */
  --glow-color: #57E38D; /* Glow */
  --gold-color: #F2C14E; /* Gold */
  --divider-color: #1E3A2A; /* Divider */
  --deep-green: #0A4B2C; /* Deep Green */
}

/* Base styles for the page-about scope */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for dark background */
  background-color: var(--bg-dark); /* Explicitly set for content sections, body background handled by shared */
  padding-bottom: 60px; /* Ensure space above footer */
}

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

.page-about__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--gold-color); /* Use gold for main titles */
  line-height: 1.2;
}

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

.page-about__text-block,
.page-about__card-text,
.page-about__text-secondary {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.page-about__text-main {
  color: var(--text-main);
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent; /* Default transparent border */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.page-about__btn-primary {
  background: var(--btn-gradient);
  color: #ffffff; /* White text for contrast */
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-about__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

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

/* Section Backgrounds */
.page-about__intro-section,
.page-about__vision-mission-section,
.page-about__security-section,
.page-about__why-choose-us-section,
.page-about__cta-bottom-section {
  background-color: var(--bg-card);
  padding: 60px 0;
}

.page-about__video-section,
.page-about__values-section,
.page-about__team-section,
.page-about__faq-section {
  background-color: var(--deep-green);
  padding: 60px 0;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--bg-dark);
}

.page-about__hero-content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column; /* Default to column on mobile */
  align-items: center;
  gap: 30px;
  padding: 40px 20px;
}

.page-about__hero-image-container {
  width: 100%;
  max-width: 100%; /* Ensure image container is responsive */
  box-sizing: border-box;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-about__hero-text-content {
  text-align: center;
  max-width: 800px;
}

.page-about__main-title {
  /* H1 font size constraint: no fixed large font-size, use clamp or relative units */
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 800;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-about__lead-paragraph {
  font-size: 1.2em;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Video Section */
.page-about__video-section {
  text-align: center;
}

.page-about__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 12px;
  margin-top: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  width: 100%; /* Ensure video wrapper takes full width */
  box-sizing: border-box;
}

.page-about__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block; /* Ensure video is a block element */
  cursor: pointer;
}

/* Grid for Vision/Mission, Security, Why Choose Us */
.page-about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__card {
  background-color: var(--bg-dark);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.page-about__card-image {
  width: 100%;
  height: auto;
  max-width: 400px; /* Constrain card image width */
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-about__card-title {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.3;
}

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

.page-about__value-item {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.page-about__value-title {
  font-size: 1.4em;
  font-weight: 600;
  color: var(--gold-color);
  margin-bottom: 10px;
}

/* Security Section */
.page-about__grid--reverse {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

.page-about__image {
  width: 100%;
  height: auto;
  max-width: 800px; /* Max width for content images */
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  display: block;
}

/* Team Section */
.page-about__team-section {
  text-align: center;
}

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

.page-about__team-member {
  background-color: var(--bg-card);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  border: 1px solid var(--border-color);
}

.page-about__team-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 4px solid var(--primary-color);
  box-shadow: 0 0 15px rgba(17, 168, 78, 0.5);
  display: block; /* Ensure image is block */
  margin-left: auto;
  margin-right: auto;
}

.page-about__member-name {
  font-size: 1.3em;
  font-weight: 600;
  color: var(--gold-color);
  margin-bottom: 5px;
}

.page-about__member-role {
  font-size: 1em;
  color: var(--text-secondary);
}

/* FAQ Section */
.page-about__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--primary-color);
  background-color: var(--bg-dark); /* Darker background for question */
  border-bottom: 1px solid var(--border-color);
}

.page-about__faq-item[open] .page-about__faq-question {
  border-bottom: 1px solid var(--border-color);
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-about__faq-item[open] .page-about__faq-toggle {
  content: "−";
}

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

.page-about__faq-answer p {
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.page-about__faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-about__faq-answer a:hover {
  color: var(--gold-color);
}

/* Responsive design */
@media (min-width: 769px) {
  .page-about__hero-content-wrapper {
    flex-direction: row; /* Desktop: text next to image */
    text-align: left;
    align-items: center;
  }
  .page-about__hero-image-container {
    flex: 1;
    max-width: 50%;
  }
  .page-about__hero-text-content {
    flex: 1;
    max-width: 50%;
    text-align: left;
  }
  .page-about__main-title {
    text-align: left;
  }
  .page-about__lead-paragraph {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }
  .page-about__cta-buttons {
    justify-content: flex-start;
  }

  .page-about__grid--reverse {
    grid-template-columns: 1fr 1fr;
    grid-auto-flow: dense; /* Ensure reverse order on desktop */
  }
  .page-about__grid--reverse .page-about__text-content {
    grid-column: 2;
  }
  .page-about__grid--reverse .page-about__image-container {
    grid-column: 1;
  }
}

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

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

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

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

  /* Responsive image/video/button containers */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper,
  .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;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

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

  /* Responsive buttons */
  .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; /* Add padding for text inside button */
  }

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

  /* FAQ specific mobile adjustments */
  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-about__faq-answer {
    padding: 15px 20px;
    font-size: 1em;
  }
}