/* style/about.css */

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

.page-about {
  background-color: var(--phdream-background);
  color: var(--phdream-text-main);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

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

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  margin-top: -80px; /* Overlap slightly for visual flow */
  padding: 0 20px;
  max-width: 900px;
  background: rgba(17, 17, 17, 0.8);
  border-radius: 10px;
  padding: 30px;
}

.page-about__hero-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  color: var(--phdream-secondary);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-about__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--phdream-text-main);
}

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

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

.page-about__btn-primary {
  background: var(--phdream-button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

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

.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: var(--phdream-background);
  transform: translateY(-3px);
}

.page-about__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: var(--phdream-secondary);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.3);
}

.page-about__subsection-title {
  font-size: clamp(1.4em, 2.5vw, 2em);
  color: var(--phdream-primary);
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-about__paragraph {
  font-size: 1.05em;
  margin-bottom: 20px;
  color: var(--phdream-text-main);
}

.page-about__story-section,
.page-about__features-section,
.page-about__values-section,
.page-about__future-section,
.page-about__faq-section,
.page-about__cta-section {
  padding: 60px 0;
}

.page-about__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 40px 0;
  object-fit: cover;
}

.page-about__image-centered {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 40px auto;
  object-fit: cover;
  max-width: 800px;
}

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

.page-about__feature-card,
.page-about__value-card {
  background-color: var(--phdream-card-bg);
  border: 1px solid var(--phdream-border);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__feature-card:hover,
.page-about__value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(242, 193, 78, 0.3);
}

.page-about__feature-title,
.page-about__value-title {
  font-size: 1.4em;
  color: var(--phdream-primary);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__feature-description,
.page-about__value-description {
  font-size: 1em;
  color: var(--phdream-text-main);
}

/* FAQ Styles */
.page-about__faq-list {
  margin-top: 30px;
}

.page-about__faq-item {
  background-color: var(--phdream-card-bg);
  border: 1px solid var(--phdream-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--phdream-primary);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1);
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  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-out, padding 0.3s ease-out;
  color: var(--phdream-text-main);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-content {
    margin-top: -60px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-content {
    margin-top: -40px;
    padding: 20px;
  }

  .page-about__hero-title {
    font-size: 2em;
  }

  .page-about__hero-description {
    font-size: 1em;
  }

  .page-about__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
  }

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

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

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

  .page-about__paragraph {
    font-size: 0.95em;
  }

  .page-about__story-section,
  .page-about__features-section,
  .page-about__values-section,
  .page-about__future-section,
  .page-about__faq-section,
  .page-about__cta-section {
    padding: 40px 0;
  }

  .page-about__grid-features,
  .page-about__grid-values {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__feature-card,
  .page-about__value-card {
    padding: 20px;
  }

  .page-about__feature-title,
  .page-about__value-title {
    font-size: 1.2em;
  }

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

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

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }

  /* Image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__container,
  .page-about__hero-section,
  .page-about__story-section,
  .page-about__features-section,
  .page-about__values-section,
  .page-about__future-section,
  .page-about__faq-section,
  .page-about__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-content {
    margin-top: -30px;
  }
  .page-about__hero-title {
    font-size: 1.8em;
  }
  .page-about__section-title {
    font-size: 1.5em;
  }
}