/* style/about.css */

/* Base styles for page-about, ensuring light text on dark body background */
.page-about {
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* Sections with light background for contrast */
.page-about__light-bg {
  background-color: #f8f9fa; /* A very light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-about__text-contrast-fix {
  color: #333333 !important; /* Ensure dark text on light background */
}

/* 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: 10px; /* Small top padding as body handles header offset */
  background-color: #0D0E12;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-about__hero-content {
  position: relative; /* Ensure content is above image if z-index is used, though not overlaying */
  z-index: 10;
  padding-top: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.page-about__main-title {
  font-weight: 700;
  color: #FFB04D; /* Glow */
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 176, 77, 0.5);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-about__intro-description {
  font-size: 1.15rem;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* General Section Styling */
.page-about__section {
  padding: 80px 20px;
  text-align: center;
}

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

.page-about__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 40px;
  color: #FF8C1A; /* Primary color */
  text-shadow: 0 0 8px rgba(255, 140, 26, 0.3);
}

.page-about__text-block {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #FFF3E6; /* Text Main */
  text-align: left;
}

/* Mission & Vision Grid */
.page-about__mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

.page-about__mission-card, .page-about__vision-card {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__mission-card:hover, .page-about__vision-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

.page-about__card-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #FFA53A; /* Auxiliary color */
  margin-bottom: 15px;
}

.page-about__card-text {
  font-size: 1rem;
  color: #FFF3E6; /* Text Main */
}

/* History Section */
.page-about__history-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  text-align: left;
}

.page-about__history-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Why Choose Section */
.page-about__why-choose .page-about__section-title {
  color: #FFB04D; /* Glow */
}

.page-about__why-choose .page-about__text-block {
  color: #FFF3E6;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50px;
}

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

.page-about__feature-item {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
}

.page-about__feature-icon {
  width: 100%;
  max-width: 250px; /* Adjust based on image content */
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
}

/* Commitment Section */
.page-about__commitment-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

.page-about__commitment-item {
  background-color: #ffffff; /* Light background for contrast */
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__commitment-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* FAQ Section */
.page-about__faq-section .page-about__section-title {
  color: #FFB04D; /* Glow */
}

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

.page-about__faq-item {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #FFF3E6; /* Text Main */
  cursor: pointer;
  background-color: #FF8C1A; /* Primary color for summary background */
  background-image: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  border-bottom: 1px solid #A84F0C;
  list-style: none;
}

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

.page-about__faq-qtext {
  flex-grow: 1;
  color: #FFF3E6;
}

.page-about__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 15px;
  color: #FFF3E6;
}

.page-about__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  color: #FFF3E6; /* Text Main */
  text-align: left;
}

.page-about__faq-item[open] .page-about__faq-question {
  border-bottom: 1px solid #A84F0C; /* Adjust border when open */
}

/* CTA Buttons */
.page-about__cta-wrapper {
  margin-top: 50px;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #FFF3E6; /* Text Main */
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary {
  background: #17191F; /* Card BG */
  color: #FFA53A; /* Auxiliary color */
  border: 2px solid #FFA53A;
}

.page-about__btn-secondary:hover {
  background: #FFA53A;
  color: #17191F;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-about__mission-vision-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-about__history-content {
    flex-direction: row;
    text-align: left;
  }
  .page-about__history-image {
    margin-left: 30px;
  }
  .page-about__commitment-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-about__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }
  .page-about__intro-description {
    font-size: 1rem;
  }
  .page-about__section {
    padding: 50px 15px;
  }
  .page-about__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }
  .page-about__text-block {
    font-size: 0.95rem;
  }
  .page-about__history-content {
    flex-direction: column;
  }
  .page-about__hero-image,
  .page-about__history-image,
  .page-about__feature-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__container,
  .page-about__hero-image-wrapper,
  .page-about__feature-item,
  .page-about__mission-card,
  .page-about__vision-card,
  .page-about__commitment-item,
  .page-about__faq-item,
  .page-about__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .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;
  }
  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-about__faq-answer {
    padding: 15px 20px;
    font-size: 0.95rem;
  }
}