/* style/about.css */

:root {
  --niceph-primary: #F2C14E;
  --niceph-secondary: #FFD36B;
  --niceph-button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --niceph-card-bg: #111111;
  --niceph-background: #0A0A0A;
  --niceph-text-main: #FFF6D6;
  --niceph-border: #3A2A12;
  --niceph-glow: #FFD36B;
  --header-offset: 120px; /* Default for desktop */
}

/* Base styles for the About page */
.page-about {
  font-family: Arial, sans-serif;
  color: var(--niceph-text-main); /* Light text for dark background */
  background-color: var(--niceph-background);
  line-height: 1.6;
}

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

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

.page-about__section-title {
  font-size: clamp(2em, 4vw, 3.5em); /* H1 font size rule applied to H2s */
  color: var(--niceph-primary);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--niceph-text-main);
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: var(--header-offset); /* Fixed header spacing */
  background: var(--niceph-background);
  position: relative;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Max height for the hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-about__hero-content-wrapper {
  position: relative;
  z-index: 2;
  padding: 40px 0 80px;
  text-align: center;
  background: var(--niceph-background); /* Ensure contrast with text */
  width: 100%;
}

.page-about__main-title {
  font-size: clamp(2.5em, 5vw, 4.5em); /* H1 font size rule */
  color: var(--niceph-primary);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.1;
}

.page-about__hero-description {
  font-size: 1.2em;
  color: var(--niceph-text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-about__btn-primary {
  background: var(--niceph-button-gradient);
  color: var(--niceph-background); /* Dark text for contrast on bright gradient */
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

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

.page-about__btn-secondary:hover {
  background: var(--niceph-primary);
  color: var(--niceph-background);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

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

.page-about__btn-tertiary:hover {
  background: var(--niceph-primary);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

/* General content styles */
.page-about__image-content {
  display: block;
  margin: 40px auto;
  border-radius: 12px;
  max-width: 100%;
  height: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-about__image-content--large {
  max-width: 1000px;
}

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

/* Why Choose Section */
.page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-about__feature-item {
  background-color: var(--niceph-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--niceph-border);
}

.page-about__feature-title {
  font-size: 1.8em;
  color: var(--niceph-secondary);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-about__feature-description {
  color: var(--niceph-text-main);
  font-size: 1em;
  margin-bottom: 20px;
}

.page-about__feature-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-about__feature-links li {
  margin-bottom: 10px;
}

.page-about__feature-links a {
  color: var(--niceph-primary);
  text-decoration: none;
  font-weight: bold;
}

.page-about__feature-links a:hover {
  text-decoration: underline;
  color: var(--niceph-secondary);
}

/* Commitment Section */
.page-about__commitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__commitment-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter card background */
  padding: 30px;
  border-radius: 12px;
  border: 1px solid var(--niceph-border);
}

.page-about__commitment-title {
  font-size: 1.6em;
  color: var(--niceph-secondary);
  margin-bottom: 15px;
}

.page-about__commitment-description {
  color: var(--niceph-text-main);
  font-size: 1em;
}

/* Values Section */
.page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__value-item {
  background-color: var(--niceph-card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--niceph-border);
}

.page-about__value-title {
  font-size: 1.6em;
  color: var(--niceph-primary);
  margin-bottom: 15px;
}

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

/* CTA Section */
.page-about__cta-buttons--centered {
  margin-top: 40px;
}

/* Partners Section */
.page-about__partner-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.page-about__partner-logo {
  width: 167px;
  height: 127px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.page-about__partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* 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(--niceph-card-bg);
  border: 1px solid var(--niceph-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

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

.page-about__faq-question h3 {
  margin: 0;
  color: inherit;
  font-size: 1em;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-answer {
  max-height: 0; /* Initial state: collapsed */
  overflow: hidden;
  padding: 0 25px; /* Adjust padding for collapsed state */
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--niceph-text-main);
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Ensure it expands fully */
  padding: 15px 25px 25px; /* Padding for expanded state */
}

.page-about__faq-answer p {
  margin: 0;
  color: inherit;
  font-size: 1em;
}

/* Contact Section */
.page-about__contact-section .page-about__text-block {
  margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__section-padding {
    padding: 60px 0;
  }

  .page-about__main-title {
    font-size: clamp(2em, 4.5vw, 4em);
  }
}

@media (max-width: 768px) {
  :root {
    --header-offset: 100px; /* Adjust for mobile header */
  }

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

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

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

  .page-about__hero-content-wrapper {
    padding: 30px 0 60px;
  }

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