/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Ensure consistency with body background */
}

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

.page-about__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FF0000; /* Brand red for titles */
}

.page-about__text-block {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: #FF0000;
  color: #ffffff;
  border: 2px solid #FF0000;
}

.page-about__btn-primary:hover {
  background: #cc0000;
  border-color: #cc0000;
}

.page-about__btn-secondary {
  background: transparent;
  color: #FF0000;
  border: 2px solid #FF0000;
}

.page-about__btn-secondary:hover {
  background: #FF0000;
  color: #ffffff;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  padding-top: 0; /* Assuming shared.css handles body padding-top */
  padding-bottom: 80px;
  overflow: hidden;
}

.page-about__hero-container {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1400px; /* Wider container for hero */
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.page-about__hero-image {
  flex: 1;
  max-width: 60%;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-about__hero-content {
  flex: 1;
  max-width: 40%;
  text-align: left;
}

.page-about__hero-title {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-about__hero-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Intro Section */
.page-about__intro-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Lighter dark background for contrast */
}

.page-about__intro-section .page-about__btn-secondary {
  margin-top: 20px;
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  padding: 80px 0;
  background-color: #000000;
}

.page-about__mission-vision-layout {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-about__mission-vision-content {
  flex: 1;
}

.page-about__mission-vision-image {
  flex: 1;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

/* Values Section */
.page-about__values-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Lighter dark background */
}

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

.page-about__value-card {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-about__value-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.15);
}

.page-about__value-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

.page-about__value-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.page-about__value-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FF0000;
}

.page-about__value-description {
  font-size: 15px;
  line-height: 1.7;
  color: #cccccc;
}

/* Security & Fairness Section */
.page-about__security-fairness-section {
  padding: 80px 0;
  background-color: #000000;
}

.page-about__security-fairness-layout {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-about__security-fairness-image {
  flex: 1;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-about__security-fairness-content {
  flex: 1;
}

.page-about__security-fairness-section .page-about__btn-primary {
  margin-top: 20px;
}

/* Team Section */
.page-about__team-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Lighter dark background */
}

.page-about__team-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-about__team-image {
  flex: 1;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-about__team-text {
  flex: 1;
}

.page-about__team-section .page-about__btn-secondary {
  margin-top: 20px;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: #000000;
}

.page-about__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-about__faq-question:hover {
  background: #2a2a2a;
  border-color: rgba(255, 255, 255, 0.2);
}

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none;
}

.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FF0000;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg);
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #0a0a0a;
  border-radius: 0 0 8px 8px;
  color: #cccccc;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
}

/* --- Responsive Styles --- */

/* Universal image responsiveness for content area */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

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

  .page-about__text-block {
    font-size: 15px;
  }

  /* Hero Section */
  .page-about__hero-section {
    padding-top: 0 !important;
    padding-bottom: 50px;
  }

  .page-about__hero-container {
    flex-direction: column;
    gap: 30px;
  }

  .page-about__hero-image {
    max-width: 100%;
  }

  .page-about__hero-content {
    max-width: 100%;
    text-align: center;
  }

  .page-about__hero-title {
    font-size: 36px;
  }

  .page-about__hero-description {
    font-size: 16px;
  }

  .page-about__btn-primary, .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Intro Section */
  .page-about__intro-section {
    padding: 50px 0;
  }

  /* Mission & Vision Section */
  .page-about__mission-vision-section {
    padding: 50px 0;
  }

  .page-about__mission-vision-layout {
    flex-direction: column-reverse; /* Image below text on mobile */
    gap: 30px;
  }

  /* Values Section */
  .page-about__values-section {
    padding: 50px 0;
  }

  .page-about__values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-about__value-card {
    padding: 25px;
  }

  .page-about__value-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }

  .page-about__value-title {
    font-size: 20px;
  }

  /* Security & Fairness Section */
  .page-about__security-fairness-section {
    padding: 50px 0;
  }

  .page-about__security-fairness-layout {
    flex-direction: column;
    gap: 30px;
  }

  /* Team Section */
  .page-about__team-section {
    padding: 50px 0;
  }

  .page-about__team-content {
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
  }

  /* FAQ Section */
  .page-about__faq-section {
    padding: 50px 0;
  }

  .page-about__faq-list {
    margin-top: 30px;
  }

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

  .page-about__faq-question h3 {
    font-size: 16px;
  }

  .page-about__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
    margin-left: 15px;
  }

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

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 20px !important;
  }

  /* Ensure all content images are responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Ensure all containers are responsive */
  .page-about__section,
  .page-about__card,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Tablet responsive (max-width: 1024px) */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 42px;
  }

  .page-about__hero-description {
    font-size: 17px;
  }

  .page-about__hero-container {
    gap: 30px;
  }

  .page-about__mission-vision-layout,
  .page-about__security-fairness-layout,
  .page-about__team-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-about__mission-vision-image,
  .page-about__security-fairness-image,
  .page-about__team-image {
    max-width: 80%;
    margin: 0 auto;
  }

  .page-about__hero-image,
  .page-about__hero-content {
    max-width: 100%;
  }

  .page-about__values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}