/* style/about.css */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main color on dark background */
  background-color: #0A0A0A; /* Body Background color */
}

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

/* Section Styles */
.page-about__hero-section {
  background: linear-gradient(135deg, #F2C14E, #FFD36B);
  padding-top: var(--header-offset, 120px); /* For fixed header */
  padding-bottom: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #000000; /* Dark text on light gradient background */
}

.page-about__hero-section .page-about__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.page-about__hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1000px; /* Adjust based on hero image size */
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: #000000; /* Dark text on light gradient background */
}

.page-about__hero-description {
  font-size: 1.15em;
  margin-bottom: 30px;
  color: #333333; /* Dark text on light gradient background */
}

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

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 30px;
  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;
  text-align: center;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
  color: #111111; /* Dark text on light button */
  border: 2px solid transparent;
}

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

.page-about__btn-secondary {
  background: #111111; /* Card BG */
  color: #F2C14E; /* Main color */
  border: 2px solid #F2C14E;
}

.page-about__btn-secondary:hover {
  background: #F2C14E;
  color: #111111;
}

.page-about__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #FFF6D6;
}

.page-about__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  color: #FFF6D6;
}

.page-about__sub-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-top: 25px;
  margin-bottom: 15px;
  color: #F2C14E;
}

.page-about__dark-section {
  background-color: #0A0A0A;
  padding: 80px 0;
  color: #FFF6D6;
}

.page-about__light-bg {
  background-color: #111111; /* Card BG */
  padding: 80px 0;
  color: #FFF6D6;
}

.page-about__mission-vision .page-about__content-grid,
.page-about__promotions-support .page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.page-about__text-block p {
  margin-bottom: 15px;
}

.page-about__text-link {
  color: #F2C14E;
  text-decoration: none;
  font-weight: bold;
}

.page-about__text-link:hover {
  text-decoration: underline;
}

.page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__feature-card {
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12; /* Border */
}

.page-about__feature-icon {
  width: 200px; /* Minimum size for feature icons */
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-about__card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFD36B;
}

.page-about__portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__portfolio-item {
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12; /* Border */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__portfolio-item .page-about__btn-link {
  margin-top: 20px;
  align-self: flex-start;
  background: #F2C14E;
  color: #111111;
  padding: 8px 18px;
  border-radius: 20px;
}

.page-about__portfolio-item .page-about__btn-link:hover {
  background: #FFD36B;
}

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

.page-about__info-block {
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  border: 1px solid #3A2A12; /* Border */
}

.page-about__cta-section {
  text-align: center;
  margin-top: 60px;
  font-size: 1.2em;
}

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

.page-about__faq-item {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #FFF6D6;
  background-color: #111111;
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: #1A1A1A;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #FFF6D6;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px 25px;
}

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

.page-about__join-niceph {
  text-align: center;
  padding: 80px 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__mission-vision .page-about__content-grid,
  .page-about__promotions-support .page-about__content-grid {
    grid-template-columns: 1fr;
  }
}

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

  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile: controlled by shared's media */
    padding-bottom: 40px;
  }

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

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

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

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

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

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-link {
    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__features-grid,
  .page-about__portfolio-grid,
  .page-about__info-grid {
    grid-template-columns: 1fr;
  }

  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-about__feature-icon {
    width: 200px !important; /* Ensure min 200px even on mobile for feature icons */
    height: 200px !important;
  }
}

/* Ensure content area images are not too small (excluding explicitly allowed exceptions) */
.page-about img:not(.page-about__feature-icon) {
  min-width: 200px;
  min-height: 200px;
}