/* style/about.css */

/* Global styles for .page-about scope */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #f8f8f8; /* Light background for the page */
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background: linear-gradient(135deg, #2C3E50, #E6B800); /* Brand colors gradient */
  color: #ffffff; /* White text for dark background */
}

.page-about__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-about__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-about__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-about__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #ffffff;
}

.page-about__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  opacity: 0.9;
  color: #f0f0f0;
}

/* General Section Styling */
.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-about__section-title {
  font-size: 2.5em;
  color: #2C3E50;
  text-align: center;
  margin-bottom: 50px;
  font-weight: bold;
  position: relative;
}

.page-about__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #E6B800;
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-about__dark-section .page-about__section-title {
  color: #ffffff;
}

.page-about__dark-section .page-about__section-title::after {
  background-color: #ffffff;
}

/* Content Grid Layout */
.page-about__content-grid {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-bottom: 60px;
}

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

.page-about__text-block {
  flex: 1;
  font-size: 1.1em;
}

.page-about__text-block h3 {
  color: #2C3E50;
  font-size: 1.8em;
  margin-bottom: 20px;
}

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

.page-about__text-block a {
  color: #E6B800;
  text-decoration: none;
  font-weight: bold;
}

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

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

.page-about__image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

/* Values Section */
.page-about__values-section {
  background-color: #2C3E50; /* Dark blue background */
  padding: 80px 0;
  color: #f0f0f0;
}

.page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-about__value-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-about__value-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
}

.page-about__value-card img {
  
  
  margin: 0 auto 20px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(230, 184, 0, 0.5)); /* Subtle glow for icons */
}

.page-about__value-card h3 {
  font-size: 1.5em;
  color: #E6B800;
  margin-bottom: 15px;
}

.page-about__value-card p {
  font-size: 1em;
  opacity: 0.8;
}

/* Commitment Section */
.page-about__commitment-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

.page-about__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-about__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-about__faq-question:active {
  background: #eeeeee;
}

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: #2C3E50;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: #E6B800;
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  background: #fefefe;
  border-top: none;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* Sufficiently large for content */
  padding: 20px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

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

.page-about__faq-answer a {
  color: #E6B800;
  text-decoration: none;
  font-weight: bold;
}

.page-about__faq-answer a:hover {
  text-decoration: underline;
}

/* Contact CTA Section */
.page-about__contact-cta {
  background-color: #2C3E50;
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
}

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

.page-about__contact-cta .page-about__section-title {
  color: #ffffff;
}

.page-about__contact-cta .page-about__section-title::after {
  background-color: #E6B800;
}

.page-about__contact-cta p {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Buttons */
.page-about__cta-button,
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Ensure padding is included in width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-about__cta-button {
  background: #E6B800;
  color: #2C3E50;
  border: 2px solid #E6B800;
  box-shadow: 0 4px 10px rgba(230, 184, 0, 0.3);
}

.page-about__cta-button:hover {
  background: #ffc81a;
  border-color: #ffc81a;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(230, 184, 0, 0.4);
}

.page-about__btn-primary {
  background: #2C3E50;
  color: #ffffff;
  border: 2px solid #2C3E50;
}

.page-about__btn-primary:hover {
  background: #1a2a38;
  border-color: #1a2a38;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__btn-secondary {
  background: transparent;
  color: #2C3E50;
  border: 2px solid #2C3E50;
}

.page-about__btn-secondary:hover {
  background: #2C3E50;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__content-grid {
    flex-direction: column;
  }
  .page-about__content-grid--reverse {
    flex-direction: column;
  }
  .page-about__values-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  /* Mobile padding for main content areas */
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-about__content-grid {
    gap: 30px;
  }

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

  .page-about__text-block h3 {
    font-size: 1.5em;
  }

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

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

  .page-about__value-card h3 {
    font-size: 1.3em;
  }

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

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

  .page-about__faq-list {
    max-width: 900px;
    margin: 0 auto;
  }

  .page-about__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  .page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
  }

  .page-about__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
  }

  .page-about__faq-question:active {
    background: #eeeeee;
  }

  .page-about__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    color: #2C3E50;
    pointer-events: none; /* Prevent h3 from blocking click event */
  }

  .page-about__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
  }

  .page-about__faq-item.active .page-about__faq-toggle {
    color: #E6B800;
    transform: rotate(45deg); /* Rotate for 'x' effect */
  }

  .page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px;
    opacity: 0;
    background: #fefefe;
    border-top: none;
  }

  .page-about__faq-item.active .page-about__faq-answer {
    max-height: 2000px !important; /* Sufficiently large for content */
    padding: 20px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
  }

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

  .page-about__faq-answer a {
    color: #E6B800;
    text-decoration: none;
    font-weight: bold;
  }

  .page-about__faq-answer a:hover {
    text-decoration: underline;
  }

  .page-about__contact-cta {
    padding: 60px 15px;
  }

  .page-about__contact-cta p {
    font-size: 1em;
  }

  /* Image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Container responsiveness for images */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-image,
  .page-about__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  /* Button responsiveness */
  .page-about__cta-button,
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    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;
    margin-bottom: 15px; /* Space out stacked buttons */
  }
  
  /* Button containers for stacking */
  .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;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}