/* style/about.css */

:root {
  --phdream-primary: #F2C14E;
  --phdream-secondary: #FFD36B;
  --phdream-card-bg: #111111;
  --phdream-body-bg: #0A0A0A;
  --phdream-text-main: #FFF6D6;
  --phdream-border: #3A2A12;
  --phdream-glow: #FFD36B;
  --phdream-btn-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

/* Ensure main content text is visible on dark body background */
.page-about {
  color: var(--phdream-text-main); /* Light text for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  font-size: 1rem;
}

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

.page-about__section-title {
  font-size: 2.5rem;
  color: var(--phdream-primary);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-about__text-block {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: var(--phdream-text-main);
}

.page-about__image-content {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px 0;
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-about a {
  color: var(--phdream-secondary);
  text-decoration: none;
}

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

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

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 60px 20px;
  color: #ffffff;
}

.page-about__main-title {
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.page-about__description {
  font-size: 1.25rem;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #f0f0f0;
}

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

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

.page-about__btn-primary {
  background: var(--phdream-btn-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

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

.page-about__btn-secondary:hover {
  background: var(--phdream-primary);
  color: #ffffff;
  transform: translateY(-3px);
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  padding: 80px 0;
  background-color: var(--phdream-card-bg);
}

.page-about__mission-vision-section .page-about__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Story Section */
.page-about__story-section {
  padding: 80px 0;
}

.page-about__story-section .page-about__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Features Section */
.page-about__features-section {
  padding: 80px 0;
  background-color: var(--phdream-card-bg);
}

.page-about__features-section .page-about__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Security & Fair Play Section */
.page-about__security-fairplay-section {
  padding: 80px 0;
}

.page-about__security-fairplay-section .page-about__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Team & Culture Section */
.page-about__team-culture-section {
  padding: 80px 0;
  background-color: var(--phdream-card-bg);
}

.page-about__team-culture-section .page-about__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Community & CSR Section */
.page-about__community-csr-section {
  padding: 80px 0;
}

.page-about__community-csr-section .page-about__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Future Vision Section */
.page-about__future-vision-section {
  padding: 80px 0;
  background-color: var(--phdream-card-bg);
}

.page-about__future-vision-section .page-about__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* CTA Bottom Section */
.page-about__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
}

.page-about__cta-bottom-section .page-about__cta-buttons {
  margin-top: 40px;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: var(--phdream-card-bg);
}

.page-about__faq-list {
  margin-top: 40px;
}

.page-about__faq-item {
  background-color: var(--phdream-card-bg);
  border: 1px solid var(--phdream-border);
  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;
  background-color: #1a1a1a;
  transition: background-color 0.3s ease;
}

.page-about__faq-question h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--phdream-text-main);
  font-weight: 600;
}

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

.page-about__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--phdream-primary);
  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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--phdream-text-main);
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to accommodate content */
  padding: 20px;
  padding-top: 0;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2rem;
  }
  .page-about__main-title {
    font-size: clamp(1.8rem, 5vw, 3rem);
  }
  .page-about__description {
    font-size: 1.1rem;
  }
  .page-about__text-block {
    font-size: 1rem;
  }
}

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

  .page-about__hero-content {
    padding: 40px 15px;
  }

  .page-about__main-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .page-about__description {
    font-size: 1rem;
  }

  .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;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-about__cta-bottom-section .page-about__cta-buttons {
    padding: 0 15px;
  }

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

  .page-about__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-about__text-block {
    font-size: 0.95rem;
  }

  .page-about__image-content {
    margin: 20px 0;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px;
    min-height: 200px;
  }

  .page-about__faq-question h3 {
    font-size: 1.1rem;
  }

  .page-about__faq-question,
  .page-about__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__faq-item.active .page-about__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-about__mission-vision-section,
  .page-about__story-section,
  .page-about__features-section,
  .page-about__security-fairplay-section,
  .page-about__team-culture-section,
  .page-about__community-csr-section,
  .page-about__future-vision-section,
  .page-about__cta-bottom-section,
  .page-about__faq-section {
    padding: 40px 0;
  }
  
  /* Ensure all image containers are responsive */
  .page-about__container,
  .page-about__card,
  .page-about__section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* No specific padding-left/right here to avoid double padding if container already has it */
  }
}

@media (max-width: 480px) {
  .page-about__section-title {
    font-size: 1.5rem;
  }
  .page-about__main-title {
    font-size: clamp(1.2rem, 8vw, 2rem);
  }
  .page-about__description {
    font-size: 0.9rem;
  }
  .page-about__text-block {
    font-size: 0.9rem;
  }
  .page-about__faq-question h3 {
    font-size: 1rem;
  }
}