/* style/about.css */

/* Base Styles for .page-about scope */
.page-about {
  background-color: var(--background-color, #0A0A0A); /* Inherit from shared or use default dark */
  color: var(--text-main-color, #FFF6D6); /* Main text color for dark background */
  font-family: 'Arial', sans-serif; /* Example font, adjust if specific font needed */
  line-height: 1.6;
  padding-bottom: 60px; /* Ensure space above footer */
}

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

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

.page-about__dark-section {
  background-color: var(--card-bg-color, #111111); /* Darker background for contrast sections */
  color: var(--text-main-color, #FFF6D6);
}

.page-about__section-title,
.page-about__feature-title,
.page-about__faq-title {
  color: var(--primary-color, #F2C14E); /* Use primary color for titles */
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.page-about__section-title {
  font-size: 2.8em; /* Adjusted for larger screens */
}

.page-about__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  text-align: justify;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image first, then content */
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Minimum height for hero */
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: 600px; /* Limit hero image height */
  overflow: hidden;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-about__hero-content {
  position: relative; /* Not absolute, to flow below image */
  text-align: center;
  max-width: 900px;
  padding: 0 20px 60px; /* Padding for content below image */
  box-sizing: border-box;
  z-index: 2; /* Ensure content is above any background elements */
}

.page-about__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 900;
  color: var(--secondary-color, #FFD36B); /* Use secondary color for H1 */
  margin-bottom: 15px;
  line-height: 1.1;
}

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

/* Call to Action Buttons */
.page-about__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button gradient */
  color: #ffffff; /* White text for contrast */
  border: 2px solid transparent;
}

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

.page-about__btn-secondary {
  background: transparent;
  color: var(--primary-color, #F2C14E); /* Primary color text */
  border: 2px solid var(--primary-color, #F2C14E);
}

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

/* Image Content */
.page-about__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 30px auto; /* Center images and add vertical spacing */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Minimum size for content images */
  min-height: 200px; /* Minimum size for content images */
}

.page-about__image-content--center {
  margin-left: auto;
  margin-right: auto;
}

/* Features Grid */
.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: var(--card-bg-color, #111111);
  color: var(--text-main-color, #FFF6D6);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-color, #3A2A12);
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--secondary-color, #FFD36B);
}

.page-about__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--secondary-color, #FFD36B);
  text-align: left;
}

.page-about__feature-description {
  font-size: 1em;
  line-height: 1.6;
  text-align: justify;
}

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

.page-about__faq-item {
  background-color: var(--card-bg-color, #111111);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color, #3A2A12);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #1a1a1a; /* Slightly lighter for question */
  color: var(--secondary-color, #FFD36B);
  font-weight: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

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

.page-about__faq-title {
  margin: 0;
  text-align: left;
  color: var(--secondary-color, #FFD36B);
  font-size: 1.1em; /* Adjust to match parent font size */
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--primary-color, #F2C14E);
}

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

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px; /* Initial padding is 0 */
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-main-color, #FFF6D6);
  font-size: 1em;
}

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

.page-about__faq-answer p {
  margin: 0;
  text-align: justify;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2.5em;
  }
  .page-about__hero-section {
    min-height: 500px;
  }
  .page-about__hero-image-wrapper {
    max-height: 500px;
  }
}

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

  .page-about__hero-section {
    min-height: auto;
    padding-bottom: 40px;
  }
  .page-about__hero-image-wrapper {
    max-height: 400px;
    margin-bottom: 20px;
  }
  .page-about__hero-content {
    padding: 0 15px 40px;
  }

  .page-about__main-title {
    font-size: clamp(2em, 8vw, 2.8em);
    margin-bottom: 10px;
  }

  .page-about__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-about__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add padding to container */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    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__section {
    padding: 40px 0;
  }

  .page-about__section-title {
    font-size: 2em;
    margin-bottom: 20px;
  }

  .page-about__text-block {
    font-size: 1em;
    margin-bottom: 20px;
    padding: 0 15px;
  }

  /* Images responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  .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__image-content {
    margin: 20px auto;
    min-width: 200px; /* Ensure minimum size is respected */
    min-height: 200px;
  }

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

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

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

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

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

@media (max-width: 480px) {
  .page-about__section-title {
    font-size: 1.8em;
  }
  .page-about__main-title {
    font-size: clamp(1.8em, 9vw, 2.5em);
  }
  .page-about__hero-image-wrapper {
    max-height: 300px;
  }
  .page-about__faq-title {
    font-size: 0.95em;
  }
}