/* General Styles */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
}

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

.page-about__section-padding {
  padding: 60px 0;
}

.page-about__section-title {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #1F2D3D; /* Text Main */
}

.page-about__sub-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 25px;
  color: #1F2D3D; /* Text Main */
}

.page-about__paragraph {
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.8;
  color: #1F2D3D; /* Text Main */
}

.page-about__bg-light {
  background-color: #F4F7FB; /* Background */
}

.page-about__dark-bg {
  background-color: #2F6BFF; /* Primary Color */
  color: #ffffff; /* Light text for dark background */
}

.page-about__light-text {
  color: #ffffff;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff; /* White text for primary button */
  border: none;
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-about__btn-secondary {
  background: #ffffff; /* Card BG */
  color: #2F6BFF; /* Primary Color */
  border: 2px solid #2F6BFF; /* Primary Color for border */
}

.page-about__btn-secondary:hover {
  background: #2F6BFF;
  color: #ffffff;
  border-color: #2F6BFF;
}

/* Cards */
.page-about__card {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  color: #1F2D3D; /* Text Main */
  border: 1px solid #D6E2FF; /* Border */
}

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, relying on body for main offset */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 550px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-about__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px 60px;
  max-width: 900px;
  margin-top: -100px; /* Adjust to bring content slightly over image bottom */
  background: rgba(47, 107, 255, 0.9); /* Semi-transparent background for text */
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-about__main-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-about__intro-text {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Introduction Section */
.page-about__introduction-section .page-about__btn-secondary {
  margin-top: 20px;
}

/* Mission & Vision Section */
.page-about__grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

.page-about__grid-two-columns:last-child {
  margin-bottom: 0;
}

.page-about__grid-reverse {
  direction: rtl;
}

.page-about__grid-reverse > div {
  direction: ltr;
}

.page-about__image-block img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.page-about__value-card {
  text-align: center;
}

.page-about__value-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #2F6BFF; /* Primary Color */
}

.page-about__value-description {
  font-size: 15px;
  line-height: 1.7;
  color: #1F2D3D; /* Text Main */
}

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

.page-about__team-member {
  text-align: center;
  padding: 20px;
}

.page-about__team-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid #6FA3FF; /* Accent color border */
}

.page-about__member-name {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #1F2D3D; /* Text Main */
}

.page-about__member-role {
  font-size: 15px;
  color: #666;
}

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

.page-about__feature-item {
  text-align: center;
}

.page-about__feature-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #2F6BFF; /* Primary Color */
}

.page-about__feature-description {
  font-size: 15px;
  line-height: 1.7;
  color: #1F2D3D; /* Text Main */
}

/* CTA Section */
.page-about__cta-content {
  text-align: center;
}

.page-about__cta-content .page-about__section-title,
.page-about__cta-content .page-about__paragraph {
  margin-bottom: 25px;
}

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* FAQ Section */
details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF; /* Border */
  overflow: hidden;
  background: #FFFFFF; /* 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;
}

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: #f5f5f5;
}

.page-about__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D; /* Text Main */
}

.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF; /* Primary 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: #F4F7FB; /* Background */
  border-radius: 0 0 5px 5px;
  color: #1F2D3D; /* Text Main */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__hero-content {
    margin-top: -80px;
  }
  .page-about__section-title {
    font-size: 32px;
  }
  .page-about__sub-title {
    font-size: 24px;
  }
  .page-about__values-grid,
  .page-about__team-grid,
  .page-about__features-grid {
    gap: 20px;
  }
  .page-about__value-card, .page-about__team-member, .page-about__feature-item {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__container {
    padding: 0 15px !important;
  }
  .page-about__section-padding {
    padding: 40px 0;
  }
  .page-about__hero-image-wrapper {
    max-height: 350px;
  }
  .page-about__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important; /* Ensure image fits */
  }
  .page-about__hero-content {
    margin-top: -60px; /* Adjust for smaller screens */
    padding: 30px 15px 40px;
  }
  .page-about__main-title {
    font-size: 28px;
  }
  .page-about__intro-text {
    font-size: 16px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }
  .page-about__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-about__sub-title {
    font-size: 22px;
    margin-bottom: 20px;
  }
  .page-about__paragraph {
    font-size: 15px;
  }
  .page-about__grid-two-columns {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
  }
  .page-about__grid-reverse {
    direction: ltr; /* Reset direction for mobile stacking */
  }
  .page-about__values-grid,
  .page-about__team-grid,
  .page-about__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-about__value-card, .page-about__feature-item {
    padding: 20px;
  }
  .page-about__team-avatar {
    width: 120px;
    height: 120px;
  }
  details.page-about__faq-item summary.page-about__faq-question {
    padding: 15px;
  }
  .page-about__faq-qtext {
    font-size: 15px;
  }
  .page-about__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-about__faq-item .page-about__faq-answer {
    padding: 0 15px 15px;
  }
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
}