/* style/about.css */
/* 
  Global styles for .page-about are handled here.
  Color contrast: Body background is #000000 (dark), so default text is #ffffff.
  Card/section backgrounds will use a light color or semi-transparent white on dark for contrast.
*/

.page-about {
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-about__heading {
  font-size: 38px;
  font-weight: 700;
  color: #FFD700; /* Gold for main headings */
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.page-about__heading--white {
  color: #ffffff;
}

.page-about__sub-heading {
  font-size: 24px;
  font-weight: 600;
  color: #FFD700; /* Gold for sub-headings */
  margin-top: 30px;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-about__sub-heading--white {
  color: #ffffff;
}

.page-about__paragraph {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #f0f0f0; /* Light grey for paragraphs on dark background */
}

.page-about__paragraph--white {
  color: #ffffff;
}

.page-about__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-about__list li {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: #f0f0f0;
}

.page-about__list li::before {
  content: '★'; /* Star icon for list items */
  color: #FFD700;
  position: absolute;
  left: 0;
  font-size: 18px;
  top: 0;
}

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%; /* For mobile responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text break */
}

.page-about__btn-primary {
  background-color: #FFD700; /* Gold */
  color: #1A237E; /* Dark blue text on gold */
  border: 2px solid #FFD700;
}

.page-about__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
}

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

.page-about__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A237E;
  transform: translateY(-2px);
}

.page-about__btn-link {
  color: #FFD700;
  text-decoration: underline;
  padding: 0;
  border: none;
  background: none;
  font-size: 16px;
  font-weight: 500;
  display: inline;
}

.page-about__btn-link:hover {
  color: #e6c200;
  text-decoration: none;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  overflow: hidden;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  margin-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 600px;
}

.page-about__hero-container {
  position: relative;
  z-index: 2;
  padding: 20px;
  max-width: 900px;
  margin-bottom: 30px;
}

.page-about__hero-title {
  font-size: 56px;
  color: #FFD700; /* Gold title */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 800;
}

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

.page-about__hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-about__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-about__hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

/* Introduction Section */
.page-about__introduction-section {
  background-color: #0d0d0d; /* Slightly lighter black for contrast */
  padding: 60px 0;
}

.page-about__content-block {
  background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent white on dark */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-about__content-block img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 25px;
  margin-bottom: 25px;
  object-fit: cover;
}

/* Why Choose Section */
.page-about__why-choose-section {
  background-color: #1A237E; /* Dark blue background */
  padding: 80px 0;
}

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

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.page-about__feature-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 15px;
  object-fit: cover;
}

.page-about__feature-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-about__feature-description {
  font-size: 16px;
  line-height: 1.7;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Commitment Section */
.page-about__commitment-section {
  background-color: #0d0d0d; /* Slightly lighter black */
  padding: 80px 0;
}

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

.page-about__commitment-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Team Section */
.page-about__team-section {
  background-color: #1A237E; /* Dark blue background */
  padding: 80px 0;
  text-align: center;
}

.page-about__team-image-wrapper {
  margin: 40px auto;
  max-width: 800px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

/* Achievements Section */
.page-about__achievements-section {
  background-color: #0d0d0d;
  padding: 80px 0;
}

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

.page-about__award-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* CTA Section */
.page-about__cta-section {
  background-color: #1A237E; /* Dark blue background */
  padding: 80px 0;
  text-align: center;
}

.page-about__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow buttons to wrap */
  width: 100%; /* For mobile responsiveness */
  max-width: 500px; /* Limit width on desktop */
  box-sizing: border-box;
  overflow: hidden;
}

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

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

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

.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, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* Use !important and large value */
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05); /* Semi-transparent white */
  border-radius: 0 0 5px 5px;
  color: #f0f0f0; /* Light text for answer */
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1A237E; /* Dark blue background for question */
  border: 1px solid #FFD700; /* Gold border */
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-about__faq-question:hover {
  background: #2b3597; /* Slightly lighter dark blue on hover */
  border-color: #e6c200;
}

.page-about__faq-question:active {
  background: #3c48a7;
}

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

.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: #ffffff; /* White toggle when active */
  transform: rotate(45deg); /* Optional: rotate for 'X' effect */
}


/* Responsive styles */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 48px;
  }
  .page-about__heading {
    font-size: 32px;
  }
  .page-about__sub-heading {
    font-size: 22px;
  }
  .page-about__paragraph,
  .page-about__list li,
  .page-about__feature-description {
    font-size: 16px;
  }
  .page-about__container {
    padding: 30px 20px;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Images responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__hero-image-wrapper img {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important; /* Keep cover for hero */
  }

  /* Button responsive */
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-link,
  .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;
  }
  .page-about__hero-cta,
  .page-about__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-about__hero-title {
    font-size: 36px;
  }
  .page-about__hero-description {
    font-size: 18px;
  }
  .page-about__heading {
    font-size: 28px;
  }
  .page-about__sub-heading {
    font-size: 20px;
  }
  .page-about__content-block,
  .page-about__feature-card,
  .page-about__commitment-item,
  .page-about__award-item {
    padding: 25px;
  }

  /* FAQ responsive */
  .page-about__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-about__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-about__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-about__faq-answer {
    padding: 0 15px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 30px;
  }
  .page-about__hero-description {
    font-size: 16px;
  }
  .page-about__heading {
    font-size: 24px;
  }
  .page-about__paragraph,
  .page-about__list li,
  .page-about__feature-description {
    font-size: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    padding: 12px 20px;
    font-size: 16px;
  }
}