/* style/about.css */

/* Body background is #0a0a0a (dark), so text should be light */
.page-about {
  color: #ffffff; /* Default text color for the page */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-about__section {
  padding: 60px 0;
  text-align: center;
}

.page-about__section-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__subtitle {
  font-size: 1.2rem;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* HERO Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  overflow: hidden;
  color: #ffffff;
  background-color: #0a0a0a; /* Ensure dark background for contrast */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 30px;
}

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

.page-about__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-about__main-title {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

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

.page-about__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

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

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

.page-about__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

/* Intro Section */
.page-about__intro-section p {
  max-width: 900px;
  margin: 20px auto;
  font-size: 1.05rem;
  color: #f0f0f0;
  text-align: left;
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  background-color: #1a1a1a; /* Lighter dark background */
  color: #ffffff;
}

.page-about__grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-about__grid-two-columns--reversed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
  flex-direction: row-reverse;
}

.page-about__image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.page-about__mission-vision-section p {
  margin-bottom: 15px;
  font-size: 1.05rem;
}

.page-about__mission-vision-section strong {
  color: #26A9E0;
}

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

.page-about__value-card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark bg */
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__value-title {
  font-size: 1.5rem;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__value-card p {
  color: #e0e0e0;
  font-size: 1rem;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
  background-color: #0d0d0d;
  color: #ffffff;
}

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

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.page-about__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-about__feature-title {
  font-size: 1.4rem;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-about__feature-card p {
  color: #e0e0e0;
  font-size: 0.95rem;
}

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

.page-about__product-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}

.page-about__product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-about__product-card h3 {
  padding: 15px 20px 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: #26A9E0;
}

.page-about__product-card h3 a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about__product-card h3 a:hover {
  color: #FFFFFF;
}

.page-about__product-card p {
  padding: 10px 20px;
  color: #e0e0e0;
  font-size: 0.95rem;
  flex-grow: 1;
}

.page-about__btn-text {
  display: inline-block;
  padding: 10px 20px 15px;
  color: #EA7C07;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  text-align: left;
}

.page-about__btn-text:hover {
  color: #FFFFFF;
}

/* Security & Fairness Section */
.page-about__security-fairness-section {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-about__security-fairness-section p {
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: #f0f0f0;
}

.page-about__security-fairness-section .page-about__btn-primary {
  margin-top: 20px;
  background-color: #26A9E0;
  border-color: #26A9E0;
}

.page-about__security-fairness-section .page-about__btn-primary:hover {
  background-color: #1c88bb;
  border-color: #1c88bb;
}

/* Team Section */
.page-about__team-description {
  max-width: 900px;
  margin: 20px auto 40px;
  text-align: left;
}

.page-about__team-description p {
  font-size: 1.05rem;
  color: #f0f0f0;
  margin-bottom: 15px;
}

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

/* Contact CTA Section */
.page-about__contact-cta-section {
  background-color: #0d0d0d;
  color: #ffffff;
}

.page-about__text-center {
  text-align: center;
}

.page-about__contact-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  font-size: 1.1rem;
  color: #e0e0e0;
}

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

.page-about__contact-list strong {
  color: #26A9E0;
}

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

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-about__faq-qtext {
  flex-grow: 1;
  color: #26A9E0;
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  margin-left: 15px;
  color: #FFFFFF;
}

.page-about__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: #e0e0e0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding: 10px 20px 20px;
  transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

/* For <details> tag, native behavior is handled by browser */
.page-about__faq-item[open] .page-about__faq-answer {
  max-height: none; /* Let content dictate height */
  padding: 10px 20px 20px;
}

.page-about__faq-item summary {
  list-style: none;
}

.page-about__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-about__btn-inline {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background-color: #26A9E0;
  color: #FFFFFF;
  border-radius: 5px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.page-about__btn-inline:hover {
  background-color: #1c88bb;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-about__grid-two-columns,
  .page-about__grid-two-columns--reversed {
    grid-template-columns: 1fr;
  }
  .page-about__grid-two-columns--reversed .page-about__image-block {
    order: -1; /* Image appears before text on smaller screens */
  }
}

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

  .page-about__section-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }

  .page-about__subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-about__main-title {
    font-size: clamp(2rem, 7vw, 3.5rem);
  }

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

  .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: 1rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Mobile specific image, video, and container rules */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about video,
  .page-about__video {
    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,
  .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;
  }

  .page-about__hero-section {
    padding-top: 10px !important;
  }

  .page-about__hero-content {
    padding: 0 15px;
  }

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

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

  .page-about__value-card,
  .page-about__feature-card,
  .page-about__product-card {
    padding: 20px;
  }

  .page-about__intro-section p,
  .page-about__mission-vision-section p,
  .page-about__security-fairness-section p,
  .page-about__team-description p {
    font-size: 0.95rem;
    text-align: left;
  }

  .page-about__contact-list {
    font-size: 1rem;
  }

  .page-about__btn-inline {
    font-size: 0.85rem;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  .page-about__section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  .page-about__main-title {
    font-size: clamp(1.8rem, 8vw, 3rem);
  }
  .page-about__hero-section {
    padding-bottom: 40px;
  }
  .page-about__hero-image-wrapper {
    margin-bottom: 20px;
  }
}