/* style/about.css */

/* Base styles for the page-about scope */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text on dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-about__text-center {
  text-align: center;
}

.page-about__mt-20 {
  margin-top: 20px;
}

.page-about__mt-40 {
  margin-top: 40px;
}

/* Section titles */
.page-about__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.page-about__sub-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-about__text-block {
  font-size: 17px;
  margin-bottom: 15px;
  color: #f0f0f0;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  position: relative;
  /* Ensure image is above content only by DOM order, not z-index */
  margin-bottom: 30px; /* Space between image and text content */
}

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

.page-about__hero-content {
  position: relative; /* Ensure content is in normal flow below image */
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-about__main-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: 1px;
}

.page-about__description {
  font-size: clamp(18px, 2.5vw, 22px);
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
}

.page-about__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-about__btn-primary:hover {
  background-color: #1e87b0;
  border-color: #1e87b0;
}

.page-about__btn-secondary {
  background-color: #EA7C07; /* Login button color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-about__btn-secondary:hover {
  background-color: #b56006;
  border-color: #b56006;
}

/* Common Section Styles */
.page-about__intro-section,
.page-about__history-achievements-section,
.page-about__commitment-section,
.page-about__contact-section {
  padding: 80px 0;
}

.page-about__vision-mission-section,
.page-about__why-choose-us-section,
.page-about__team-section,
.page-about__faq-section {
  padding: 80px 0;
}

.page-about__light-bg {
  background-color: #1a1a1a; /* Darker background for light text contrast */
  color: #f0f0f0;
}

.page-about__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

/* Grid Layout for content and image columns */
.page-about__grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 768px) {
  .page-about__grid-layout {
    grid-template-columns: 1fr 1fr;
  }
  .page-about__grid-layout:nth-child(odd) .page-about__image-column {
    order: 2;
  }
  .page-about__grid-layout:nth-child(odd) .page-about__content-column {
    order: 1;
  }
}

.page-about__image-column img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  min-height: 200px; /* Enforce min image size */
  object-fit: cover;
}

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

.page-about__feature-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__feature-card .page-about__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-height: 200px; /* Enforce min image size */
}

.page-about__feature-title {
  font-size: 24px;
  font-weight: 600;
  color: #26A9E0;
  margin-bottom: 15px;
}

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

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-about__faq-item details > summary {
  list-style: none;
}

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 19px;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  background-color: #26A9E0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__faq-toggle {
  font-size: 24px;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.05);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: clamp(26px, 3.5vw, 38px);
  }
  .page-about__sub-title {
    font-size: clamp(20px, 2.5vw, 28px);
  }
}

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

  .page-about__container {
    padding: 0 15px;
  }

  .page-about__hero-section {
    padding: 10px 0 40px 0;
  }

  .page-about__main-title {
    font-size: clamp(28px, 7vw, 48px);
  }

  .page-about__description {
    font-size: clamp(16px, 4vw, 20px);
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-about__intro-section,
  .page-about__history-achievements-section,
  .page-about__commitment-section,
  .page-about__contact-section,
  .page-about__vision-mission-section,
  .page-about__why-choose-us-section,
  .page-about__team-section,
  .page-about__faq-section {
    padding: 40px 0;
  }

  .page-about__grid-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-about__grid-layout:nth-child(odd) .page-about__image-column {
    order: initial; /* Reset order for mobile */
  }
  .page-about__grid-layout:nth-child(odd) .page-about__content-column {
    order: initial; /* Reset order for mobile */
  }

  .page-about__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-height: 200px; /* Ensure min height for images */
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-image-wrapper,
  .page-about__image-column,
  .page-about__content-column,
  .page-about__cta-buttons,
  .page-about__features-grid,
  .page-about__faq-list,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-about__faq-question {
    font-size: 17px;
    padding: 15px 20px;
  }

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

/* Ensure content area images are at least 200px */
.page-about img:not(.page-about__hero-image) {
    min-width: 200px; /* Apply to all content images */
    min-height: 200px; /* Apply to all content images */
}