/* style/about.css */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--dark-bg-1);
}

.page-about__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Fixed navbar spacing */
  padding-bottom: 60px;
  margin-top: 0;
  background: linear-gradient(135deg, #1A2E4E, #3A5C8E);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-about__hero-title {
  font-size: 48px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-about__hero-button {
  display: inline-block;
  background: #FFD700;
  color: #1A2E4E;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
}

.page-about__hero-button:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-about__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.2;
}

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

.page-about__section {
  padding: 80px 20px;
  text-align: center;
}

.page-about__dark-section {
  background-color: #1A2E4E;
  color: #ffffff;
}

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

.page-about__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 40px;
  color: #ffffff;
}

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

.page-about__highlight {
  color: #FFD700;
}

.page-about__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

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

.page-about__text-block {
  flex: 1;
}

.page-about__text-block p {
  font-size: 17px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-about__text-block strong {
  color: #FFD700;
}

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

.page-about__image-block img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
}

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

.page-about__value-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-about__value-card img {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__value-card .page-about__card-title {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-about__value-card p {
  font-size: 16px;
  color: #e0e0e0;
}

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

.page-about__why-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__why-item:hover {
  transform: translateY(-8px);
  background-color: rgba(255, 255, 255, 0.1);
}

.page-about__why-item img {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  display: block;
}

.page-about__why-item h3 {
  font-size: 22px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-about__why-item p {
  font-size: 16px;
  color: #e0e0e0;
}

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

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

.page-about__btn-primary {
  background: #FFD700;
  color: #1A2E4E;
  border: 2px solid #FFD700;
}

.page-about__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
  border-color: #e6c200;
}

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

.page-about__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A2E4E;
  transform: translateY(-3px);
}

/* FAQ Section */
.page-about__faq-section {
  padding-bottom: 100px;
}

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

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.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;
  color: #e0e0e0;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* Use !important to ensure priority */
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 0 0 8px 8px;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-about__faq-item.active .page-about__faq-question {
  background: rgba(255, 255, 255, 0.06);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-about__faq-question:hover {
  background: rgba(255, 255, 255, 0.06);
}

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

.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  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: 30px;
  height: 30px;
}

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

/* General image styling to prevent filter */
.page-about img {
  filter: none; /* Ensure no CSS filter is applied */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 40px;
  }
  .page-about__hero-description {
    font-size: 18px;
  }
  .page-about__section-title {
    font-size: 30px;
  }
  .page-about__content-wrapper {
    flex-direction: column;
  }
  .page-about__content-wrapper--reverse {
    flex-direction: column;
  }
  .page-about__values-grid,
  .page-about__why-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-about__image-block {
    order: -1; /* Move image above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px !important;
    line-height: 1.6 !important;
  }
  .page-about__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }
  .page-about__hero-content {
    padding: 20px;
  }
  .page-about__hero-title {
    font-size: 32px !important;
    margin-bottom: 15px;
  }
  .page-about__hero-description {
    font-size: 16px !important;
    margin-bottom: 25px;
  }
  .page-about__hero-button {
    padding: 12px 25px !important;
    font-size: 16px !important;
  }
  .page-about__section {
    padding: 50px 15px;
  }
  .page-about__section-title {
    font-size: 26px !important;
    margin-bottom: 30px;
  }
  .page-about__text-block p {
    font-size: 15px !important;
  }
  .page-about__values-grid,
  .page-about__why-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
  .page-about__value-card,
  .page-about__why-item {
    padding: 25px;
  }
  .page-about__value-card .page-about__card-title {
    font-size: 20px !important;
  }
  .page-about__value-card img,
  .page-about__why-item img {
    width: 70px;
    height: 70px;
    margin-bottom: 15px;
  }
  .page-about__why-item h3 {
    font-size: 18px !important;
  }
  .page-about__cta-buttons {
    flex-direction: column !important;
    gap: 15px;
    margin-top: 40px;
    padding: 0 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-about__faq-list {
    margin-top: 30px;
  }
  .page-about__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-about__faq-question h3 {
    font-size: 16px !important;
    width: calc(100% - 40px);
  }
  .page-about__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 22px !important;
  }
  .page-about__faq-answer {
    padding: 0 15px;
  }
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }
  
  /* Responsive image rules for all images and their containers */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-about__container,
  .page-about__section,
  .page-about__content-wrapper,
  .page-about__text-block,
  .page-about__image-block,
  .page-about__value-card,
  .page-about__why-item,
  .page-about__faq-item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Specific overrides for elements that should NOT have 100% width */
  .page-about__value-card img,
  .page-about__why-item img {
    width: auto !important; /* Keep original size or auto */
    max-width: 100px !important; /* Adjust as needed, but not 100% */
    height: auto !important;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
  }
  .page-about__hero-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}