/* style/about.css */
/* Base styles for the About Us page, scoped to .page-about */

.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Using custom text color #FFF6D6 */
  background-color: var(--bg-color); /* Using custom background color #0A0A0A */
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Desktop: ensures content is below fixed header */
  background-color: var(--bg-color); /* Fallback */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Max height for 16:9 aspect ratio at 1200px width */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 300px; /* Ensure image is not too small */
}

.page-about__hero-content {
  text-align: center;
  padding: 40px 20px 80px;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.5) 0%, var(--bg-color) 50%); /* Gradient over dark bg */
  width: 100%;
  box-sizing: border-box;
}

.page-about__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--text-main);
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.25rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main);
}

/* General Section Styles */
.page-about__section {
  padding: 80px 0;
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
}

.page-about__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: bold;
  text-align: center;
  margin-bottom: 50px;
  color: var(--text-main);
  line-height: 1.3;
}

/* Grid Layout for content and image */
.page-about__grid-layout {
  display: flex;
  align-items: center;
  gap: 60px;
}

.page-about__grid-layout--reversed {
  flex-direction: row-reverse;
}

.page-about__text-block {
  flex: 1;
  color: var(--text-main);
}

.page-about__text-block p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.page-about__text-block h3 {
  color: var(--text-main);
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.page-about__text-block a {
  color: var(--glow-color);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-about__text-block a:hover {
  color: #ffffff;
}

.page-about__image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__image-wrapper--center {
  margin-top: 40px;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

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

.page-about__feature-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.page-about__feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-about__card-title {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-about__card-title a {
  color: var(--text-main);
  text-decoration: none;
}

.page-about__card-title a:hover {
  color: var(--glow-color);
}

.page-about__feature-card p {
  font-size: 1rem;
  margin-bottom: 20px;
}

.page-about__card-link {
  display: inline-block;
  color: var(--glow-color);
  text-decoration: none;
  font-weight: bold;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.page-about__card-link:hover {
  border-color: var(--glow-color);
  color: #ffffff;
}

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

.page-about__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  opacity: 0.9;
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--glow-color);
  border: 2px solid var(--glow-color);
  margin-left: 20px;
}

.page-about__btn-secondary:hover {
  background: rgba(255, 211, 107, 0.1);
  color: #ffffff;
}

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

.page-about__btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

/* CTA Section */
.page-about__cta-section {
  text-align: center;
  padding: 80px 0;
  background-color: var(--card-bg);
}

.page-about__cta-container {
  max-width: 900px;
}

.page-about__cta-description {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: var(--text-main);
}

/* FAQ Section */
.page-about__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: var(--card-bg);
  color: var(--text-main);
  font-weight: bold;
  font-size: 1.2rem;
  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: var(--text-main);
}

.page-about__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  color: var(--glow-color);
}

.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 for collapsed state */
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: var(--card-bg);
  color: var(--text-main);
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important;
  padding: 20px !important;
}

.page-about__faq-answer p {
  margin-bottom: 0;
  font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__grid-layout {
    flex-direction: column;
    gap: 40px;
  }

  .page-about__grid-layout--reversed {
    flex-direction: column; /* Keep column for reversed layout on mobile */
  }

  .page-about__btn-secondary {
    margin-left: 0;
    margin-top: 15px;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

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

  .page-about__main-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .page-about__hero-description {
    font-size: 1.1rem;
  }

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

  .page-about__section-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
    margin-bottom: 30px;
  }

  .page-about__text-block p {
    font-size: 1rem;
  }

  .page-about__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-about__card-title {
    font-size: 1.4rem;
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__cta-section {
    padding: 60px 0;
  }

  .page-about__cta-description {
    font-size: 1.1rem;
    padding: 0 15px;
  }

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

  .page-about__faq-toggle {
    font-size: 1.5rem;
    width: 25px;
  }

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

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

  /* Mobile image overflow prevention */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__hero-content,
  .page-about__grid-layout,
  .page-about__features-grid,
  .page-about__cta-section,
  .page-about__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure no content area images display smaller than 200px */
.page-about__image,
.page-about__hero-image {
  min-width: 200px;
  min-height: 200px;
}