/* style/about.css */

:root {
  --page-about-primary-color: #26A9E0;
  --page-about-secondary-color: #FFFFFF;
  --page-about-dark-text: #333333;
  --page-about-light-text: #ffffff;
  --page-about-login-button: #EA7C07;
  --page-about-background-dark: #121212; /* Inherited from shared.css body */
}

.page-about {
  color: var(--page-about-light-text); /* Light text on dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  /* padding-top is handled by .page-about__hero-section to avoid double application */
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  height: 70vh; /* Adjust as needed */
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Apply header offset here */
}

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

.page-about__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-about__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
  color: var(--page-about-light-text);
}

.page-about__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: var(--page-about-light-text);
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  opacity: 0.9;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 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; /* Crucial for button responsiveness */
  text-align: center;
}

.page-about__btn-primary {
  background-color: var(--page-about-primary-color);
  color: var(--page-about-light-text);
  border: 2px solid var(--page-about-primary-color);
}

.page-about__btn-primary:hover {
  background-color: #1a8cc7; /* Slightly darker primary */
  border-color: #1a8cc7;
}

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

.page-about__btn-secondary:hover {
  background-color: var(--page-about-primary-color);
  color: var(--page-about-light-text);
}

/* General Section Styling */
.page-about__section {
  padding: 60px 0;
  text-align: center;
}

.page-about__section:nth-of-type(even) {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

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

.page-about__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: var(--page-about-primary-color);
}

.page-about__sub-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--page-about-light-text);
}

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--page-about-light-text);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-about__text-block a {
  color: var(--page-about-primary-color);
  text-decoration: none;
}

.page-about__text-block a:hover {
  text-decoration: underline;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 30px auto;
  display: block;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Grid Layout for content */
.page-about__grid-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-about__grid-item {
  background-color: rgba(255, 255, 255, 0.08); /* Card-like background for items */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__grid-item .page-about__sub-title {
  margin-top: 0;
  color: var(--page-about-primary-color);
}

.page-about__grid-item .page-about__text-block {
  font-size: 1em;
  margin-bottom: 0;
  max-width: none;
}

/* Feature Grid (Why Choose Section) */
.page-about__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-about__card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.page-about__card-title {
  font-size: 1.5em;
  color: var(--page-about-primary-color);
  margin-bottom: 15px;
}

.page-about__card-text {
  font-size: 1em;
  color: var(--page-about-light-text);
  margin-bottom: 15px;
  flex-grow: 1; /* Ensures cards have consistent height */
}

.page-about__card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-about__card-list li {
  margin-bottom: 8px;
  color: var(--page-about-light-text);
  position: relative;
  padding-left: 20px;
}

.page-about__card-list li::before {
  content: '✓';
  color: var(--page-about-primary-color);
  position: absolute;
  left: 0;
  top: 0;
}

.page-about__card-list li a {
  color: var(--page-about-primary-color);
  text-decoration: none;
}

.page-about__card-list li a:hover {
  text-decoration: underline;
}

/* Core Values Section */
.page-about__value-row {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-about__value-item {
  flex: 1;
  min-width: 280px;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__value-item .page-about__sub-title {
  margin-top: 0;
  color: var(--page-about-primary-color);
}

.page-about__value-item .page-about__text-block {
  font-size: 1em;
  margin-bottom: 0;
  max-width: none;
}

/* FAQ Section */
.page-about__faq-section {
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden; /* For smooth transition on details */
  color: var(--page-about-light-text);
}

.page-about__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  outline: none;
  list-style: none; /* Remove default marker */
  color: var(--page-about-primary-color);
}

.page-about__faq-item summary::-webkit-details-marker {
  display: none; /* Remove default marker for webkit browsers */
}

.page-about__faq-qtext {
  flex-grow: 1;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to cross */
}

.page-about__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1.1em;
  color: var(--page-about-light-text);
  line-height: 1.6;
}

.page-about__faq-answer p {
  margin: 0;
}

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

.page-about__faq-answer a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.5em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__sub-title {
    font-size: 1.6em;
  }
}

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

  /* Ensure padding-top for header offset is applied */
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Specific to hero if shared.css doesn't apply to body */
    height: auto;
    min-height: 300px;
  }

  .page-about__hero-title {
    font-size: 2em;
  }
  .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-about__sub-title {
    font-size: 1.4em;
  }
  .page-about__text-block {
    font-size: 1em;
  }

  .page-about__grid-row,
  .page-about__feature-grid,
  .page-about__value-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__card,
  .page-about__grid-item,
  .page-about__value-item {
    padding: 20px;
  }

  .page-about__card-title {
    font-size: 1.3em;
  }

  .page-about__faq-item summary {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-about__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 1em;
  }

  /* Mobile image and video responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Containers for images/videos/buttons */
  .page-about__section,
  .page-about__container,
  .page-about__card,
  .page-about__grid-item,
  .page-about__value-item,
  .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; /* Prevent horizontal scroll */
  }

  /* Specific override for section padding if needed to prevent double padding */
  .page-about__section {
      padding-left: 0;
      padding-right: 0;
  }
  .page-about__container {
      padding-left: 15px;
      padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__hero-description {
    font-size: 0.9em;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
  .page-about__sub-title {
    font-size: 1.2em;
  }
}