/* style/about.css */

/* Custom Colors */
:root {
  --p88-bg-dark: #08160F;
  --p88-card-bg: #11271B;
  --p88-text-main: #F2FFF6;
  --p88-text-secondary: #A7D9B8;
  --p88-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --p88-border: #2E7A4E;
  --p88-glow: #57E38D;
  --p88-gold: #F2C14E;
  --p88-divider: #1E3A2A;
  --p88-deep-green: #0A4B2C;
}

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

.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
  background-color: var(--p88-card-bg);
  overflow: hidden;
}

.page-about__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  width: 1200px; /* Display size */
  height: 675px; /* Display size */
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about__hero-content {
  max-width: 900px;
  margin: 0 auto;
  color: var(--p88-text-main);
  z-index: 1; /* Ensure content is above any background elements if layered */
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--p88-gold);
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-about__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--p88-text-secondary);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1.05em;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: var(--p88-btn-gradient);
  color: var(--p88-text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-about__btn-secondary {
  background: var(--p88-card-bg);
  color: var(--p88-text-main);
  border: 2px solid var(--p88-deep-green);
  margin-left: 15px;
}

.page-about__btn-secondary:hover {
  background: var(--p88-deep-green);
  color: var(--p88-text-main);
  transform: translateY(-3px);
}

.page-about__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-about__section {
  padding: 80px 20px;
  position: relative;
}

.page-about__dark-section {
  background-color: var(--p88-bg-dark);
  color: var(--p88-text-main);
}

.page-about__light-section {
  background-color: var(--p88-card-bg);
  color: var(--p88-text-main);
}

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

.page-about__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  color: var(--p88-gold);
  position: relative;
  padding-bottom: 15px;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--p88-btn-gradient);
  border-radius: 2px;
}

.page-about__sub-title {
  font-size: clamp(1.4em, 2.5vw, 2em);
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--p88-text-main);
}

.page-about__paragraph {
  font-size: 1.05em;
  margin-bottom: 15px;
  color: var(--p88-text-secondary);
  text-align: justify;
}

.page-about__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-about__list-item {
  font-size: 1.05em;
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: var(--p88-text-secondary);
}

.page-about__list-item::before {
  content: '✅';
  position: absolute;
  left: 0;
  color: var(--p88-glow);
}

.page-about__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-about__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-about__text-block {
  flex: 1;
}

.page-about__image-content {
  flex: 1;
  max-width: 600px;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

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

.page-about__faq-item {
  background-color: var(--p88-card-bg);
  border: 1px solid var(--p88-divider);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--p88-text-main);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-about__faq-item[open] > .page-about__faq-question {
  background-color: var(--p88-deep-green);
}

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

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--p88-glow);
}

.page-about__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: var(--p88-text-secondary);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-out, padding 0.5s ease-out;
}

.page-about__faq-item[open] .page-about__faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding: 0 20px 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__content-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .page-about__content-wrapper--reverse {
    flex-direction: column;
  }

  .page-about__image-content {
    max-width: 100%;
    margin-bottom: 30px;
  }

  .page-about__hero-content {
    padding: 0 10px;
  }

  .page-about__btn-secondary {
    margin-left: 0;
    margin-top: 15px;
  }
}

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

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

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

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

  .page-about__section {
    padding: 50px 15px;
  }

  .page-about__section-title {
    font-size: clamp(1.5em, 6vw, 2.2em);
    margin-bottom: 40px;
  }

  .page-about__sub-title {
    font-size: clamp(1.2em, 5vw, 1.8em);
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-about__paragraph,
  .page-about__list-item,
  .page-about__faq-question,
  .page-about__faq-answer p {
    font-size: 0.95em;
  }

  .page-about__cta-button,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column;
  }

  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__content-wrapper,
  .page-about__faq-list,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__image-content {
    padding-left: 0;
    padding-right: 0;
  }

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

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