/* style/about.css */

/* Base styles for page-about, ensuring light text on dark body background */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, header offset handled by body */
  background-color: #0d0d0d; /* Explicit dark background for the section */
  color: #ffffff;
}

.page-about__hero-image-container {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-about__hero-content {
  max-width: 900px;
  margin-top: 20px;
}

.page-about__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em); /* Responsive font size for H1 */
  font-weight: 700;
  color: #26A9E0; /* Brand color for emphasis */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-about__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__register-link {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Ensure long words break */
  text-align: center;
  box-sizing: border-box;
}

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

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

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

.page-about__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #1e87c0;
  border-color: #1e87c0;
}

.page-about__register-link {
  color: #26A9E0;
  text-decoration: underline;
}

.page-about__register-link:hover {
  color: #1e87c0;
}

/* Section Titles */
.page-about__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: #26A9E0;
  padding-top: 40px;
}

.page-about__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 20px;
  color: #26A9E0;
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text for light background */
}

.page-about__mission-vision-section .page-about__section-title,
.page-about__mission-vision-section .page-about__card-title,
.page-about__mission-vision-section .page-about__card-text {
  color: #333333;
}

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

.page-about__card {
  background-color: #f8f8f8;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__card-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

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

.page-about__card-text {
  font-size: 1em;
  color: #333333;
  text-align: left;
}

/* History Section */
.page-about__history-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Dark background */
  color: #ffffff; /* Light text */
}

.page-about__history-section .page-about__section-title,
.page-about__history-section .page-about__sub-title {
  color: #26A9E0;
}

.page-about__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-about__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-about__text-block {
  flex: 1;
}

.page-about__content-image {
  flex: 1;
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: block;
}

/* Why Choose Us Section */
.page-about__why-choose-us-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text */
}

.page-about__why-choose-us-section .page-about__section-title {
  color: #26A9E0;
}

.page-about__why-choose-us-section .page-about__card-title {
  color: #26A9E0;
}

.page-about__why-choose-us-section .page-about__card-text {
  color: #333333;
}

.page-about__why-choose-us-section .page-about__card {
  background-color: #f8f8f8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

/* Social Responsibility Section */
.page-about__social-responsibility-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Dark background */
  color: #ffffff; /* Light text */
}

.page-about__social-responsibility-section .page-about__section-title {
  color: #26A9E0;
}

.page-about__social-responsibility-section .page-about__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white card for dark section */
  color: #ffffff; /* Light text for dark card */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-about__social-responsibility-section .page-about__card-title {
  color: #26A9E0;
}

.page-about__social-responsibility-section .page-about__card-text {
  color: #f0f0f0;
}

/* Contact Section */
.page-about__contact-section {
  padding: 80px 0;
  text-align: center;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text */
}

.page-about__contact-section .page-about__section-title {
  color: #26A9E0;
}

.page-about__contact-section .page-about__text-center {
  color: #333333;
  margin-bottom: 30px;
}

.page-about__cta-buttons--center {
  justify-content: center;
  margin-bottom: 30px;
}

.page-about__register-prompt {
  font-size: 1.1em;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-about__grid-container {
    grid-template-columns: 1fr;
  }

  .page-about__content-wrapper,
  .page-about__content-wrapper--reverse {
    flex-direction: column;
  }
  
  .page-about__hero-image-container {
    margin-bottom: 20px;
  }
}

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

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

  /* Section and card containers responsiveness */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__mission-vision-section,
  .page-about__history-section,
  .page-about__why-choose-us-section,
  .page-about__social-responsibility-section,
  .page-about__contact-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important;
  }

  /* Hero section adjustments */
  .page-about__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-about__main-title {
    font-size: 2em; /* Adjust H1 size for mobile */
  }

  .page-about__description {
    font-size: 1em;
  }

  /* Button responsiveness */
  .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 !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-about__sub-title {
    font-size: 1.5em;
  }

  .page-about__card-title {
    font-size: 1.3em;
  }

  .page-about__card {
    padding: 20px;
  }

  .page-about__content-wrapper {
    gap: 20px;
    margin-bottom: 40px;
  }
}