/* style/about.css */

/* Custom Colors */
:root {
  --page-about-primary-color: #FF8C1A;
  --page-about-secondary-color: #FFA53A;
  --page-about-card-bg: #17191F;
  --page-about-background: #0D0E12;
  --page-about-text-main: #FFF3E6;
  --page-about-border-color: #A84F0C;
  --page-about-glow-color: #FFB04D;
  --page-about-deep-orange: #D96800;
  --page-about-button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
}

.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--page-about-text-main); /* Light text on dark body background */
  background-color: var(--page-about-background);
  line-height: 1.6;
  font-size: 16px;
}

.page-about__section {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--page-about-background);
}

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

.page-about__section-title {
  font-size: 2.8em;
  color: var(--page-about-primary-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-about__section-description {
  font-size: 1.1em;
  color: var(--page-about-text-main);
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.8;
}

.page-about__sub-title {
  font-size: 2em;
  color: var(--page-about-secondary-color);
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.3;
}

.page-about__paragraph {
  font-size: 1em;
  color: var(--page-about-text-main);
  margin-bottom: 20px;
  line-height: 1.7;
}

/* Hero Section */
.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;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
}

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

.page-about__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  text-align: center;
  padding: 40px 20px;
  box-sizing: border-box;
  margin-top: -100px; /* Pull content up over the image a bit for visual flow */
  background: var(--page-about-background); /* Ensure content has a solid background */
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-about__main-title {
  font-size: clamp(2.5em, 4vw, 3.5em); /* Responsive H1 font size */
  color: var(--page-about-primary-color);
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-shadow: 0 0 10px rgba(255, 140, 26, 0.5);
}

.page-about__intro-text {
  font-size: 1.2em;
  color: var(--page-about-text-main);
  margin-bottom: 30px;
  line-height: 1.8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Button */
.page-about__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  max-width: 100%; /* Ensure button adapts to mobile */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: var(--page-about-button-gradient);
  color: #ffffff;
  border: none;
}

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.4);
}

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

.page-about__btn-secondary:hover {
  background: var(--page-about-secondary-color);
  color: var(--page-about-background);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 165, 58, 0.3);
}

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

.page-about__card {
  background-color: var(--page-about-card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--page-about-text-main);
  min-height: 200px; /* Minimum card height */
}

.page-about__card-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum image width */
  min-height: 200px; /* Minimum image height */
}

.page-about__card-title {
  font-size: 1.5em;
  color: var(--page-about-primary-color);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.4;
}

.page-about__card-text {
  font-size: 0.95em;
  color: var(--page-about-text-main);
  line-height: 1.7;
  flex-grow: 1;
}

/* Content Flex */
.page-about__content-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  margin-top: 40px;
  flex-wrap: wrap;
}

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

.page-about__text-block {
  flex: 1;
  min-width: 300px;
}

.page-about__image-block {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Minimum image width */
  min-height: 200px; /* Minimum image height */
}

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

.page-about__milestone-item {
  background-color: var(--page-about-card-bg);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-left: 5px solid var(--page-about-primary-color);
  border-radius: 5px;
  color: var(--page-about-text-main);
  font-size: 1.05em;
}

.page-about__milestone-item strong {
  color: var(--page-about-secondary-color);
}

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

.page-about__value-item {
  background-color: var(--page-about-card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  text-align: center;
  color: var(--page-about-text-main);
  min-height: 250px; /* Minimum height for value items */
}

.page-about__value-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  min-width: 200px; /* Minimum image width */
  min-height: 200px; /* Minimum image height */
}

.page-about__value-title {
  font-size: 1.4em;
  color: var(--page-about-secondary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-about__value-text {
  font-size: 0.95em;
  color: var(--page-about-text-main);
  line-height: 1.7;
}

/* FAQ Section */
.page-about__faq-section {
  background-color: var(--page-about-background);
  padding-bottom: 80px;
}

.page-about__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

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

.page-about__faq-item summary {
  list-style: none;
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #1a1d24; /* Slightly lighter than card-bg for contrast */
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: var(--page-about-text-main);
  transition: background-color 0.3s ease;
}

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

.page-about__faq-qtext {
  flex-grow: 1;
  color: var(--page-about-text-main);
}

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

.page-about__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 0.95em;
  color: var(--page-about-text-main);
  line-height: 1.7;
}

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

  .page-about__main-title {
    font-size: clamp(2.2em, 5vw, 3em);
  }

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

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

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

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

@media (max-width: 768px) {
  .page-about {
    font-size: 15px; /* Slightly smaller base font for mobile */
  }

  .page-about__hero-section {
    padding-bottom: 40px;
  }

  .page-about__hero-content {
    margin-top: -30px;
    padding: 20px;
  }

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

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

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

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

  .page-about__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-about__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-bottom: 10px;
  }

  .page-about__content-grid,
  .page-about__values-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__card,
  .page-about__value-item {
    padding: 20px;
    min-height: unset; /* Allow height to adjust */
  }

  /* Mobile image responsiveness */
  .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__hero-image-wrapper,
  .page-about__hero-content,
  .page-about__content-flex,
  .page-about__text-block,
  .page-about__image-block,
  .page-about__values-grid,
  .page-about__value-item,
  .page-about__faq-section,
  .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;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }
  .page-about__hero-section { /* Override general padding to allow full width for hero image */
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-about__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .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;
  }
  .page-about__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-about__section-title {
    font-size: 1.8em;
  }

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

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

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