/* style/about.css */

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

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

.page-about__section-spacing {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  position: relative;
  z-index: 0;
}

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

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-top: -150px; /* Overlap slightly for visual effect, ensuring text is below image */
  padding: 40px;
  background: rgba(13, 14, 18, 0.8); /* Semi-transparent dark background for readability */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

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

.page-about__hero-description {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: #FFF3E6;
  margin-bottom: 30px;
}

/* General Section Titles */
.page-about__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: #FF8C1A;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-about__section-title--light {
  color: #FFB04D;
}

.page-about__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: #FFA53A;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-about__text-block {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: #FFF3E6;
  margin-bottom: 15px;
}

.page-about__text-block--light {
  color: #FFF3E6;
}

/* Buttons */
.page-about__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff; /* White text for button */
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 139, 26, 0.4);
}

/* Introduction Section */
.page-about__introduction-section {
  background-color: #0D0E12;
}

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

.page-about__mission-vision-item {
  background-color: #17191F;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C;
}

/* Advantages Section */
.page-about__advantages-section {
  background-color: #17191F; /* Card BG color for this section */
}

.page-about__dark-section {
  background-color: #17191F;
}

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

.page-about__card {
  background-color: #0D0E12; /* Background color for cards */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C;
  display: flex;
  flex-direction: column;
  color: #FFF3E6;
}

.page-about__card--dark {
  background-color: #0D0E12;
  color: #FFF3E6;
}

.page-about__card-title {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  color: #FFA53A;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__card-title--light {
  color: #FFB04D;
}

.page-about__card-text {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  color: #FFF3E6;
}

.page-about__image-content,
.page-about__image-card {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 20px;
  object-fit: cover;
}

/* Responsibility Section */
.page-about__responsibility-section {
  background-color: #0D0E12;
}

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

.page-about__responsibility-item {
  background-color: #17191F;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #A84F0C;
}

/* Future Section */
.page-about__future-section {
  background-color: #17191F;
}

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

/* FAQ Section */
.page-about__faq-section {
  background-color: #0D0E12;
}

.page-about__faq-list {
  margin-top: 40px;
}

.page-about__faq-item {
  background-color: #17191F;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #A84F0C;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: #FFF3E6;
}

.page-about__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 600;
  color: #FFA53A;
  list-style: none; /* Hide default marker */
}

.page-about__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

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

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #FFB04D;
  transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  color: #FFF3E6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-about__container {
    padding: 0 15px;
  }

  .page-about__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-about__hero-content {
    margin-top: -80px; /* Adjust overlap for mobile */
    padding: 25px;
  }

  .page-about__main-title {
    font-size: 2rem; /* Fixed font size for mobile */
  }

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

  .page-about__section-spacing {
    padding-top: 40px;
    padding-bottom: 40px;
  }

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

  .page-about__sub-title {
    font-size: 1.3rem;
  }

  .page-about__text-block,
  .page-about__card-text,
  .page-about__faq-answer p {
    font-size: 0.95rem;
  }

  /* Images responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__hero-image-wrapper,
  .page-about__introduction-section,
  .page-about__advantages-section,
  .page-about__responsibility-section,
  .page-about__future-section,
  .page-about__faq-section,
  .page-about__card,
  .page-about__mission-vision-item,
  .page-about__responsibility-item,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Buttons responsive */
  .page-about__btn-primary,
  .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: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-about__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  /* Adjust grid layouts for mobile */
  .page-about__advantages-grid,
  .page-about__mission-vision,
  .page-about__responsibility-content,
  .page-about__future-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__faq-item summary {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-about__faq-answer {
    padding: 0 20px 15px 20px;
  }
}