/* style/about.css */

/* Base styles for the about page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-about__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

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

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

.page-about__section-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 40px;
  color: inherit;
  line-height: 1.2;
}

.page-about__sub-title {
  font-size: clamp(1.4em, 2.5vw, 2em); /* Responsive font size */
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 20px;
  color: inherit;
  line-height: 1.3;
}

.page-about__content-block {
  margin-bottom: 30px;
  text-align: left;
}

.page-about p {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: inherit;
}

.page-about__list {
  list-style-type: disc;
  margin-left: 20px;
  padding-left: 0;
  text-align: left;
  color: inherit;
}

.page-about__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: inherit;
}

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

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

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  padding: 30px;
  border-radius: 8px;
}

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

.page-about__intro-text {
  font-size: clamp(1.1em, 2vw, 1.4em);
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-about__cta-buttons--inline {
  justify-content: flex-start;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

.page-about__light-bg .page-about__btn-secondary {
  color: #26A9E0;
  border-color: #26A9E0;
}

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

.page-about__btn-primary--small,
.page-about__btn-secondary--small {
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 30px;
}

/* Image styling */
.page-about__image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-about__image--centered {
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-about__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.2em;
  color: #26A9E0;
  list-style: none;
  -webkit-touch-callout: none; /* Disable text selection on iOS */
  -webkit-user-select: none;   /* Disable text selection on Chrome/Safari */
  -moz-user-select: none;      /* Disable text selection on Firefox */
  -ms-user-select: none;       /* Disable text selection on IE/Edge */
  user-select: none;           /* Standard syntax */
}

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

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

.page-about__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05em;
  color: #555555;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-about__section {
    padding: 40px 15px;
  }

  .page-about__hero-section {
    min-height: 450px;
    padding: 40px 15px;
    padding-top: 10px;
  }

  .page-about__hero-content {
    padding: 20px;
  }

  .page-about__main-title {
    font-size: 2.2em;
  }

  .page-about__intro-text {
    font-size: 1em;
  }

  .page-about__section-title {
    font-size: 1.8em;
  }

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

  .page-about p,
  .page-about__list-item {
    font-size: 0.95em;
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__cta-buttons--inline {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .page-about__cta-buttons--inline .page-about__btn-primary--small,
  .page-about__cta-buttons--inline .page-about__btn-secondary--small {
    width: auto !important;
    flex: 1 1 auto;
    min-width: 120px;
    max-width: calc(50% - 10px) !important;
  }

  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset;
    min-height: unset;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .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-section {
    padding-top: 10px !important;
  }

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

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