/* style/about.css */

/* Base styles for page-about */
.page-about {
  color: #ffffff; /* Default text color for dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

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

.page-about__dark-section {
  background-color: #0d0d0d; /* Slightly lighter dark for sections */
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #1a1a1a; /* Dark gray for light background simulation */
  color: #ffffff;
}

.page-about__heading {
  font-size: 2.8em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__sub-heading {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__description,
.page-about__text-block,
.page-about__value-text,
.page-about__feature-text {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
  color: #f0f0f0; /* Light gray for readability on dark backgrounds */
}

.page-about__text-block {
  text-align: left;
}

.page-about__grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;
}

.page-about__grid-item {
  text-align: left;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
}

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

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

.page-about__hero-content {
  text-align: center;
  max-width: 900px;
  z-index: 1;
}

.page-about__main-title {
  font-size: clamp(2.5em, 4vw, 3.5em); /* Responsive font size */
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.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,
.page-about__btn-link {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

.page-about__btn-link {
  background-color: #EA7C07; /* Login color for general links */
  color: #ffffff;
  border: 2px solid #EA7C07;
  padding: 10px 20px;
  font-size: 1em;
}

.page-about__btn-link:hover {
  background-color: #c96d06;
  border-color: #c96d06;
}

/* 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.1);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-about__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 40px;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-about__image--full-width {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__feature-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__feature-card .page-about__btn-link {
  margin-top: auto; /* Push button to bottom */
  display: inline-block;
  align-self: center;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.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.15);
}

.page-about__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

.page-about__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

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

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

.page-about__faq-toggle {
  font-size: 1.5em;
  margin-left: 10px;
  color: #ffffff;
}

.page-about__faq-answer {
  padding: 20px;
  font-size: 1.1em;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.03);
}

.page-about__faq-answer p {
  margin-bottom: 15px;
  text-align: left;
}

.page-about__faq-answer .page-about__btn-link {
  margin-top: 15px;
  display: inline-block;
}

/* Images responsiveness */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

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

  .page-about__sub-heading {
    font-size: 1.6em;
  }

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

  .page-about__hero-image {
    height: 450px;
  }
}

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

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

  .page-about__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles --header-offset, this is for visual spacing */
  }

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

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

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-link {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    margin-left: auto;
    margin-right: auto;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__hero-image-wrapper,
  .page-about__section,
  .page-about__container,
  .page-about__value-card,
  .page-about__feature-card,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-about__hero-image {
    height: auto;
    max-height: 300px;
  }
  
  .page-about__faq-item summary {
    font-size: 1.1em;
  }
  .page-about__faq-answer {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-about__heading {
    font-size: 1.8em;
  }

  .page-about__sub-heading {
    font-size: 1.4em;
  }

  .page-about__value-title,
  .page-about__feature-title {
    font-size: 1.3em;
  }
}