.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Default text color for dark background */
  background-color: var(--dark-bg); /* Inherit from shared.css */
}

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

.page-about__hero-section {
  position: relative;
  background: linear-gradient(135deg, #1A73E8, #0F4C81);
  color: #ffffff;
  text-align: center;
  padding: 100px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #FFD700; /* Accent color for main title */
}

.page-about__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #FFD700; /* Accent color for section titles */
  font-weight: bold;
}

.page-about__text-block {
  max-width: 900px;
  margin: 0 auto 40px auto;
  text-align: left;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-about__text-block p {
  margin-bottom: 15px;
}

.page-about__dark-bg {
  background-color: #1A73E8;
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-about__light-bg .page-about__section-title {
  color: #1A73E8;
}

.page-about__light-bg .page-about__text-block {
  color: #333333;
}

.page-about__light-bg .page-about__card {
  background-color: #f8f9fa;
  color: #333333;
}

.page-about__light-bg .page-about__card-title {
  color: #1A73E8;
}

.page-about__light-bg .page-about__feature-title {
  color: #1A73E8;
}

.page-about__light-bg .page-about__faq-question span {
  color: #1A73E8;
}

.page-about__light-bg .page-about__faq-question {
  background-color: #e0e0e0;
}

.page-about__light-bg .page-about__faq-answer {
  background-color: #f0f0f0;
  color: #333333;
}

.page-about__light-bg .page-about__link-text {
  color: #1A73E8;
}

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

.page-about__card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__card-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #FFD700;
  font-weight: bold;
}

.page-about__feature-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

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

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

.page-about__btn-primary {
  display: inline-block;
  background-color: #FFD700;
  color: #1A73E8;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-about__btn--large {
  padding: 18px 40px;
  font-size: 1.3em;
  margin-top: 40px;
}

.page-about__link-text {
  color: #FFD700;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-about__link-text:hover {
  color: #e6c200;
}

.page-about__faq-section {
  padding: 80px 0;
  background-color: #f8f9fa; /* Lighter background for FAQ */
  color: #333333;
}

.page-about__faq-section .page-about__section-title {
  color: #1A73E8;
}

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

.page-about__faq-item {
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #e9ecef;
  cursor: pointer;
  font-weight: bold;
  color: #1A73E8;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: #dee2e6;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #1A73E8;
  transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #ffffff;
  color: #333333;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Ensure it expands */
  padding: 15px 25px;
}

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

.page-about .highlight {
  color: #1A73E8;
  font-weight: bold;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__text-block, .page-about__hero-description {
    font-size: 1em;
  }
  .page-about__card-title, .page-about__feature-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px) !important; /* Ensures content is below fixed header */
  }
  .page-about__hero-title {
    font-size: 2.2em;
  }
  .page-about__hero-description {
    font-size: 0.95em;
    padding: 0 15px;
  }
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }
  .page-about__text-block {
    font-size: 0.9em;
    padding: 0 15px;
  }
  .page-about__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }
  .page-about__card, .page-about__feature-item {
    padding: 20px;
  }
  .page-about__card-title, .page-about__feature-title {
    font-size: 1.3em;
  }
  .page-about__btn-primary {
    padding: 12px 25px;
    font-size: 1em;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__btn--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }
  .page-about__image-full {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-about__container {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__faq-list {
    padding: 0 15px;
  }
  .page-about__faq-question, .page-about__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__faq-question {
    font-size: 1em;
  }
  .page-about__faq-answer p {
    font-size: 0.9em;
  }
}