/* style/about.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-dark: var(--black-color, #0d0d0d); /* Assuming --black-color from shared.css is dark */
  --btn-login-color: #EA7C07;
}

/* Base styles for page-about, assuming dark body background */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Main text color for dark body background */
  background-color: transparent; /* Body handles the actual background */
}

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

.page-about__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit from section, which is set by dark/light bg classes */
}

.page-about__description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

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

.page-about__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Slightly dark overlay for text readability */
  border-radius: 8px;
}

.page-about__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.page-about__hero-content .page-about__description {
  color: var(--secondary-color);
  font-size: 1.2em;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-about__btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.page-about__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

.page-about__btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-about__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

/* Mission & Vision Section */
.page-about__mission-vision {
  padding: 80px 0;
}

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

/* Why Choose Us Section */
.page-about__why-choose-us {
  padding: 80px 0;
}

.page-about__grid-three-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-about__feature-item {
  text-align: center;
  padding: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1); /* Light background for dark sections */
  color: var(--text-light);
}

.page-about__feature-icon {
  width: 150px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

/* History & Achievements Section */
.page-about__history-achievements {
  padding: 80px 0;
}

.page-about__timeline {
  position: relative;
  max-width: 900px;
  margin: 40px auto;
  padding: 20px 0;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.page-about__timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.page-about__timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.page-about__timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.page-about__timeline-item::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: var(--primary-color);
  border: 4px solid var(--secondary-color);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.page-about__timeline-item:nth-child(even)::after {
  left: -16px;
}

.page-about__timeline-year {
  font-size: 1.3em;
  font-weight: bold;
  color: var(--primary-color);
}

.page-about__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 8px;
}

/* Commitment Section */
.page-about__commitment {
  padding: 80px 0;
}

.page-about__commitment-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto;
}

.page-about__commitment-list li {
  background: rgba(255, 255, 255, 0.1); /* Light background for dark sections */
  color: var(--text-light);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  border-left: 5px solid var(--primary-color);
}

.page-about__commitment-list li strong {
  color: var(--secondary-color);
}

.page-about__commitment-list li a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-about__commitment-list li a:hover {
  color: darken(var(--primary-color), 10%);
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
}

.page-about__faq-list {
  max-width: 900px;
  margin: 40px auto;
}

.page-about__faq-item {
  background: var(--secondary-color);
  color: var(--text-dark);
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-weight: bold;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  list-style: none; /* For details/summary */
}

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

.page-about__faq-item[open] .page-about__faq-question {
  border-bottom: 1px solid #ddd;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 10px;
}

.page-about__faq-answer {
  padding: 0 20px 20px 20px;
  color: var(--text-dark);
}

/* Call to Action Bottom */
.page-about__cta-bottom {
  padding: 80px 0;
  text-align: center;
}

/* Color Contrast Classes (applied to sections) */
.page-about__dark-bg {
  background: var(--bg-dark);
  color: var(--text-light);
}

.page-about__light-bg {
  background: var(--bg-light);
  color: var(--text-dark);
}

.page-about__light-bg .page-about__section-title,
.page-about__light-bg .page-about__card-title {
  color: var(--text-dark);
}

.page-about__light-bg .page-about__description {
  color: var(--text-dark);
}

.page-about__light-bg .page-about__card {
  background: var(--secondary-color); /* White card background */
  color: var(--text-dark);
  border: 1px solid #e0e0e0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 2.8em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
}

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

  .page-about__container,
  .page-about__hero-content,
  .page-about__grid-two-cols,
  .page-about__grid-three-cols,
  .page-about__timeline,
  .page-about__commitment-list,
  .page-about__faq-list,
  .page-about__cta-bottom .page-about__container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__hero-section {
    padding: 40px 0;
    padding-top: 10px !important; /* body handles --header-offset */
  }

  .page-about__main-title {
    font-size: 2em; /* Smaller font for mobile H1 */
    margin-bottom: 15px;
  }

  .page-about__hero-content .page-about__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

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

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

  .page-about__grid-two-cols,
  .page-about__grid-three-cols {
    grid-template-columns: 1fr;
  }

  .page-about__timeline::before {
    left: 18px;
  }

  .page-about__timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 15px;
  }

  .page-about__timeline-item:nth-child(odd),
  .page-about__timeline-item:nth-child(even) {
    left: 0;
    text-align: left;
  }

  .page-about__timeline-item::after {
    left: 11px;
  }

  .page-about__feature-item,
  .page-about__card {
    padding: 20px;
  }

  /* Image responsive rules */
  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__hero-image-wrapper,
  .page-about__image-full-width,
  .page-about__feature-icon {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Video responsive rules (if any, though none currently in HTML) */
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-about__faq-question {
    font-size: 1em;
  }

  .page-about__faq-toggle {
    font-size: 1.2em;
  }
}