/* style/about.css */

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

/* Sections */
.page-about__hero-section,
.page-about__story-section,
.page-about__why-choose-us,
.page-about__values-section,
.page-about__team-section,
.page-about__commitment-section,
.page-about__faq-section {
  padding: 60px 20px;
  text-align: center;
}

.page-about__dark-section {
  background-color: #0D0E12; /* Background */
  color: #FFF3E6; /* Text Main */
}

.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Added padding for smaller screens */
  box-sizing: border-box;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 70vh; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  min-height: 200px; /* Minimum image size */
}

.page-about__hero-content {
  position: relative;
  z-index: 10;
  padding: 30px 0;
  max-width: 800px;
  color: #FFF3E6;
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  color: #FFB04D; /* Glow */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__intro-text {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Section Titles */
.page-about__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #FF8C1A; /* Primary color */
  margin-bottom: 20px;
}

.page-about__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #FFF3E6;
}

/* Buttons */
.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: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #ffffff;
  border: none;
  margin: 10px;
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background: transparent;
  color: #FF8C1A; /* Primary color */
  border: 2px solid #FF8C1A; /* Border color */
  margin: 10px;
}

.page-about__btn-secondary:hover {
  background: #FF8C1A; /* Primary color */
  color: #ffffff;
}

/* Story Section */
.page-about__story-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.page-about__story-text {
  flex: 2;
  min-width: 300px;
  color: #FFF3E6;
}

.page-about__story-text p {
  margin-bottom: 15px;
}

.page-about__story-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__story-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Minimum image size */
}

/* Why Choose Us / Features Grid */
.page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-about__feature-card {
  background-color: #17191F; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #FFF3E6;
  border: 1px solid #A84F0C; /* Border */
}

.page-about__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: none; /* Ensure no color filters */
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}

.page-about__feature-title {
  font-size: 1.5em;
  color: #FFA53A; /* Secondary color */
  margin-bottom: 15px;
}

/* 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: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #FFF3E6;
  text-align: left;
  border: 1px solid #A84F0C; /* Border */
}

.page-about__value-title {
  font-size: 1.5em;
  color: #FFA53A; /* Secondary color */
  margin-bottom: 15px;
}

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

.page-about__team-member {
  background-color: #17191F; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #FFF3E6;
  border: 1px solid #A84F0C; /* Border */
}

.page-about__team-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 3px solid #FF8C1A; /* Primary color border */
  filter: none; /* Ensure no color filters */
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}

.page-about__member-name {
  font-size: 1.6em;
  color: #FFA53A; /* Secondary color */
  margin-bottom: 5px;
}

.page-about__member-position {
  font-size: 1.1em;
  color: #FFB04D; /* Glow */
  margin-bottom: 15px;
}

.page-about__member-description {
  font-size: 0.95em;
}

/* Commitment Section */
.page-about__commitment-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto 40px auto;
  text-align: left;
}

.page-about__commitment-list li {
  background-color: #17191F; /* Card BG */
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  color: #FFF3E6;
  border-left: 5px solid #FF8C1A; /* Primary color */
  font-size: 1.05em;
}

.page-about__commitment-list li strong {
  color: #FFA53A; /* Secondary color */
}

.page-about__cta-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #FFF3E6;
}

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

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #17191F; /* Card BG */
  color: #FFF3E6;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.1em;
}

.page-about__faq-question:hover {
  background-color: rgba(255, 165, 58, 0.1);
}

.page-about__faq-qtext {
  flex-grow: 1;
  color: #FFA53A; /* Secondary color */
}

.page-about__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #FF8C1A; /* Primary color */
  transition: transform 0.3s ease;
}

.page-about__faq-item[open] .page-about__faq-toggle {
  transform: rotate(45deg);
}

.page-about__faq-item[open] > summary {
  border-bottom: 1px solid #A84F0C;
}

.page-about__faq-answer {
  padding: 15px 20px 20px;
  color: #FFF3E6;
  font-size: 0.95em;
}

/* Details/Summary specific styles for cross-browser consistency */
.page-about__faq-item summary {
  list-style: none;
}

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

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__story-grid {
    flex-direction: column;
  }
  .page-about__story-text,
  .page-about__story-image-wrapper {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about__hero-section,
  .page-about__story-section,
  .page-about__why-choose-us,
  .page-about__values-section,
  .page-about__team-section,
  .page-about__commitment-section,
  .page-about__faq-section {
    padding: 40px 15px;
  }

  .page-about__hero-content {
    padding: 20px 0;
  }

  .page-about__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important;
  }

  .page-about__section-title {
    font-size: 1.8em;
  }

  .page-about__intro-text,
  .page-about__section-description,
  .page-about__cta-text {
    font-size: 1em;
  }

  .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__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-direction: column !important;
    gap: 10px;
  }

  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Ensure minimum size even on mobile */
    min-height: 200px !important;
  }

  .page-about__hero-image,
  .page-about__story-image,
  .page-about__feature-icon,
  .page-about__team-avatar {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  /* Containers for images/videos must also be responsive */
  .page-about__hero-image-wrapper,
  .page-about__story-image-wrapper,
  .page-about__features-grid,
  .page-about__values-grid,
  .page-about__team-grid,
  .page-about__faq-list,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }

  .page-about__feature-card,
  .page-about__value-card,
  .page-about__team-member,
  .page-about__faq-item {
    padding: 20px;
  }

  .page-about__team-avatar {
    width: 150px !important;
    height: 150px !important;
  }
}

/* Ensure no image filters are applied */
.page-about img {
  filter: none;
}