/* style/about.css */

/* Base styles for the page-about scope */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
  /* body already handles padding-top from --header-offset */
}

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

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

.page-about__dark-section {
  background-color: #0D0E12; /* Background */
  color: #FFF3E6; /* Text Main */
}

.page-about__light-section {
  background-color: #17191F; /* Card BG */
  color: #FFF3E6; /* Text Main */
}

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom */
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  max-height: 675px; /* Max height for desktop hero */
  object-fit: cover;
  margin-bottom: 40px;
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
  margin-bottom: 40px;
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  color: #FFA53A; /* Auxiliary color */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.15rem;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 30px;
}

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

.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.05rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%; /* Ensure buttons adapt to smaller screens */
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #ffffff;
  border: none;
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #FFA53A; /* Auxiliary color */
  border: 2px solid #FFA53A; /* Auxiliary color for border */
}

.page-about__btn-secondary:hover {
  background-color: #FFA53A;
  color: #0D0E12; /* Background color for hover text */
  transform: translateY(-2px);
}

/* General Content Sections */
.page-about__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #FFA53A; /* Auxiliary color */
  margin-bottom: 30px;
  font-weight: bold;
}

.page-about__sub-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #FF8C1A; /* Primary color */
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-about__paragraph {
  font-size: 1.05rem;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 20px;
  text-align: left;
}

.page-about__content-image-wrapper {
  margin: 30px auto;
  max-width: 1000px;
  text-align: center;
}

.page-about__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
  min-width: 200px;
  min-height: 200px;
}

/* FAQ Section */
.page-about__faq-section {
  background-color: #17191F; /* Card BG */
  padding: 60px 0;
}

.page-about__faq-item {
  background-color: #0D0E12; /* Background */
  border: 1px solid #A84F0C; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  text-align: left;
  padding: 0;
  color: #FFF3E6; /* Text Main */
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  color: #FFA53A; /* Auxiliary color */
  transition: background-color 0.3s ease;
  list-style: none; /* Remove default marker for details summary */
}

.page-about__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-about__faq-question:hover {
  background-color: rgba(255, 165, 58, 0.1);
}

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

.page-about__faq-toggle {
  font-size: 1.5rem;
  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 25px;
  font-size: 1rem;
  color: #FFF3E6; /* Text Main */
  line-height: 1.7;
}

.page-about__faq-answer p {
  margin-bottom: 0; /* Remove default paragraph margin */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-about__hero-image {
    max-height: 500px;
  }
}

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

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

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

  .page-about__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-about__hero-content {
    margin-bottom: 30px;
    padding: 0 15px;
  }

  .page-about__main-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }

  .page-about__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-about__section-title {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .page-about__sub-title {
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-about__paragraph {
    font-size: 0.95rem;
    text-align: left;
  }

  .page-about__content-image,
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
    display: block !important;
  }
  
  .page-about__content-image-wrapper,
  .page-about__section,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-about__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 1.8rem;
  }

  .page-about__section-title {
    font-size: 1.6rem;
  }

  .page-about__sub-title {
    font-size: 1.2rem;
  }
}