/* style/about.css */

/* --- General Page Styling --- */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main color */
  background-color: #0D0E12; /* Background color */
}

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

.page-about__section {
  padding: 60px 0;
  border-bottom: 1px solid rgba(168, 79, 12, 0.3); /* Border color with transparency */
}

.page-about__section:last-of-type {
  border-bottom: none;
}

.page-about__section-title {
  font-size: 38px;
  font-weight: 700;
  color: #FFB04D; /* Glow color for titles */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-about__main-title {
  font-size: clamp(28px, 5vw, 48px); /* Responsive font size */
  font-weight: 700;
  color: #FFB04D; /* Glow color */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: #FFF3E6;
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about a {
  color: #FFA53A; /* Auxiliary color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about a:hover {
  color: #FF8C1A; /* Primary color on hover */
  text-decoration: underline;
}

/* --- 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, body handles header offset */
  background-color: #0D0E12;
  overflow: hidden; /* Ensure content doesn't spill */
}

.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%; /* Ensure flex item takes full width */
}

.page-about__hero-image {
  width: 100%;
  margin-bottom: 30px;
  position: relative;
  z-index: 1; /* Image below text content in stacking order if any overlap */
}

.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.5);
  min-height: 200px; /* Minimum image size */
}

.page-about__hero-content {
  position: relative;
  z-index: 2; /* Text content above image in stacking order if any overlap */
  text-align: center;
  width: 100%;
  padding: 0 15px; /* Add some padding to text content */
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%; /* Button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__cta-button:hover {
  background: linear-gradient(180deg, #FF8C1A 0%, #D96800 100%); /* Slightly darker on hover */
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-about__cta-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-about__cta-button--large {
  padding: 18px 50px;
  font-size: 20px;
}

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

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

.page-about__content-text {
  flex: 1;
  min-width: 0; /* Allow text to shrink */
}

.page-about__content-text p {
  margin-bottom: 15px;
  color: #FFF3E6; /* Text Main */
}

.page-about__content-text strong {
  color: #FFB04D; /* Highlight important text */
}

.page-about__content-image {
  flex: 1;
  min-width: 300px; /* Minimum width for image column */
  text-align: center;
}

.page-about__content-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
}

/* --- Mission Section --- */
.page-about__section--mission .page-about__content-wrapper {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.page-about__mission-item {
  flex: 1;
  min-width: 300px;
  background-color: #17191F; /* Card BG */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C; /* Border color */
}

.page-about__mission-title {
  font-size: 24px;
  color: #FFA53A; /* Auxiliary color */
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 600;
}

/* --- Values Section --- */
.page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-about__value-card {
  background-color: #17191F; /* Card BG */
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C; /* Border color */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__value-card img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
  border-radius: 4px;
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
}

.page-about__value-title {
  font-size: 22px;
  color: #FFA53A; /* Auxiliary color */
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 600;
}

/* --- Why Choose Section --- */
.page-about__why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-about__why-choose-item {
  background-color: #17191F; /* Card BG */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C; /* Border color */
}

.page-about__why-choose-heading {
  font-size: 24px;
  color: #FFB04D; /* Glow color */
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 600;
}

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

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #A84F0C; /* Border color */
  overflow: hidden;
  background: #17191F; /* Card BG */
}

details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFF3E6; /* Text Main */
}

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

details.page-about__faq-item summary.page-about__faq-question:hover {
  background: rgba(255, 165, 58, 0.1); /* Lighter version of auxiliary color */
}

.page-about__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFB04D; /* Glow color for question text */
}

.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFA53A; /* Auxiliary color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-about__faq-item .page-about__faq-answer {
  padding: 0 20px 20px;
  background: rgba(23, 25, 31, 0.8); /* Slightly transparent Card BG */
  border-radius: 0 0 5px 5px;
  color: #FFF3E6; /* Text Main */
}

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

.page-about__faq-button {
  display: inline-block;
  padding: 8px 15px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 14px;
  margin-top: 10px;
  transition: background 0.3s ease;
}

.page-about__faq-button:hover {
  background: linear-gradient(180deg, #FF8C1A 0%, #D96800 100%);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 32px;
  }
  .page-about__main-title {
    font-size: clamp(26px, 4.5vw, 42px);
  }
  .page-about__subtitle {
    font-size: clamp(15px, 2.2vw, 18px);
  }
  .page-about__content-grid {
    flex-direction: column;
    gap: 30px;
  }
  .page-about__content-grid--reverse {
    flex-direction: column;
  }
  .page-about__content-image {
    min-width: unset;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-top: 10px !important; /* body handles header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__hero-image img {
    border-radius: 4px;
  }
  .page-about__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    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: 28px;
    margin-bottom: 30px;
  }
  .page-about__main-title {
    font-size: clamp(24px, 6vw, 36px);
  }
  .page-about__subtitle {
    font-size: clamp(14px, 3vw, 16px);
  }
  .page-about__mission-item,
  .page-about__value-card,
  .page-about__why-choose-item {
    padding: 25px;
  }
  .page-about__mission-title,
  .page-about__value-title,
  .page-about__why-choose-heading {
    font-size: 20px;
  }
  details.page-about__faq-item summary.page-about__faq-question {
    padding: 15px;
  }
  .page-about__faq-qtext {
    font-size: 16px;
  }
  details.page-about__faq-item .page-about__faq-answer {
    padding: 0 15px 15px;
  }

  /* Mobile image adaptation */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__content-grid,
  .page-about__content-text,
  .page-about__content-image,
  .page-about__values-grid,
  .page-about__why-choose-grid,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__hero-content {
    padding: 0; /* Remove extra padding for smaller screens */
  }

  /* Button container adaptation for multiple buttons */
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* If buttons are in a flex container, ensure they stack */
  .page-about__cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* Ensure no CSS filters on images */
.page-about img {
  filter: none !important;
}