/* style/about.css */

/* Variables */
:root {
  --page-about-primary-color: #26A9E0;
  --page-about-secondary-color: #FFFFFF;
  --page-about-dark-text: #333333;
  --page-about-light-text: #ffffff;
  --page-about-background-light: #ffffff;
  --page-about-background-dark: #26A9E0; /* Using primary color for dark background sections */
  --page-about-button-login-color: #EA7C07; /* Specific color for login button if applicable */
}

/* Base styles for the About Us page content */
.page-about {
  font-family: 'Arial', sans-serif;
  color: var(--page-about-dark-text); /* Default text color for light body background */
  background-color: var(--page-about-background-light); /* Ensure content area uses light background */
  line-height: 1.6;
  padding-bottom: 60px; /* Space before footer */
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: var(--page-about-dark-text);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-about__section-title--white {
  color: var(--page-about-light-text);
}

.page-about__sub-title {
  font-size: 1.5em;
  color: var(--page-about-dark-text);
  margin-top: 20px;
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.page-about__text {
  font-size: 1em;
  margin-bottom: 1em;
  color: var(--page-about-dark-text);
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden; /* Ensure no overflow */
  background-color: var(--page-about-background-dark); /* Fallback background */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 400px; /* Ensure image is visible */
}

.page-about__hero-content {
  position: relative; /* Ensure content is above any potential background layers */
  z-index: 2;
  max-width: 900px;
  padding: 30px 20px 0;
  box-sizing: border-box;
  color: var(--page-about-light-text);
  background-color: var(--page-about-background-dark); /* Background for text area */
  width: 100%; /* Ensure content takes full width of its container */
}

.page-about__main-title {
  font-size: clamp(2.2em, 4vw, 3em); /* Responsive H1 font size */
  color: var(--page-about-light-text);
  margin-bottom: 15px;
  font-weight: 800;
  line-height: 1.1;
  max-width: 100%; /* Prevent overflow */
}

.page-about__subtitle {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--page-about-light-text);
  max-width: 100%; /* Prevent overflow */
}

.page-about__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%; /* Prevent overflow */
  box-sizing: border-box;
  padding: 0 15px; /* Add padding for small screens */
}

.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: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  max-width: 100%; /* Ensure button doesn't exceed container width */
  box-sizing: border-box;
  text-align: center;
}

.page-about__btn-primary {
  background-color: var(--page-about-button-login-color); /* Use login color for primary action */
  color: var(--page-about-light-text);
  border: 2px solid var(--page-about-button-login-color);
}

.page-about__btn-primary:hover {
  background-color: #D16F06; /* Darker shade of #EA7C07 */
  border-color: #D16F06; /* Darker shade of #EA7C07 */
}

.page-about__btn-secondary {
  background-color: transparent;
  color: var(--page-about-light-text);
  border: 2px solid var(--page-about-light-text);
}

.page-about__btn-secondary:hover {
  background-color: var(--page-about-light-text);
  color: var(--page-about-button-login-color); /* Use login color for hover text */
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  padding: 80px 0;
  background-color: var(--page-about-background-light); /* Light background */
}

.page-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  text-align: left;
}

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

.page-about__grid-item .page-about__sub-title {
  color: var(--page-about-primary-color);
}

/* Values Section */
.page-about__values-section {
  padding: 80px 0;
  background-color: var(--page-about-background-dark); /* Dark background */
  color: var(--page-about-light-text);
}

.page-about__values-section .page-about__sub-title,
.page-about__values-section .page-about__text {
  color: var(--page-about-light-text);
}

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

.page-about__value-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: 100%; /* Ensure equal height */
}

.page-about__value-title {
  font-size: 1.3em;
  color: var(--page-about-light-text);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.3;
}

/* Why Choose Section */
.page-about__why-choose-section {
  padding: 80px 0;
  background-color: var(--page-about-background-light); /* Light background */
}

.page-about__why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-about__why-choose-item {
  background-color: var(--page-about-secondary-color);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%; /* Ensure equal height */
}

.page-about__icon-image {
  width: 100%; /* Ensure image fills container */
  max-width: 300px; /* Max width for icon-like images */
  height: auto;
  display: block;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-height: 200px; /* Min image size */
}

.page-about__why-choose-item .page-about__sub-title {
  color: var(--page-about-primary-color);
  margin-top: 0;
}

.page-about__cta-bottom {
  text-align: center;
  margin-top: 50px;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background-color: var(--page-about-background-dark); /* Dark background */
  color: var(--page-about-light-text);
}

.page-about__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: var(--page-about-light-text);
}

.page-about__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
  color: var(--page-about-light-text);
}

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

.page-about__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-about__faq-qtext {
  flex-grow: 1;
  color: var(--page-about-light-text);
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-about-light-text);
}

.page-about__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--page-about-light-text);
}

.page-about__faq-answer p {
  margin-top: 10px;
  color: var(--page-about-light-text);
}

/* Ensure all links within content inherit dark text color on light backgrounds */
.page-about__light-bg a {
  color: var(--page-about-primary-color); /* Use brand color for links */
  text-decoration: underline;
}

.page-about__light-bg a:hover {
  color: #2299CC; /* Darker shade of #26A9E0 */
}

/* Ensure all links within content inherit light text color on dark backgrounds */
.page-about__dark-bg a {
  color: var(--page-about-light-text);
  text-decoration: underline;
}

.page-about__dark-bg a:hover {
  color: var(--page-about-primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }

  .page-about__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding-bottom: 40px;
  }

  .page-about__hero-image {
    min-height: 300px;
  }

  .page-about__hero-content {
    padding-top: 20px;
  }

  .page-about__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 10px;
  }

  .page-about__subtitle {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100%; /* Full width buttons on mobile */
    padding: 12px 20px;
    font-size: 1em;
  }

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

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

  .page-about__values-list,
  .page-about__why-choose-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-about__mission-vision-section,
  .page-about__values-section,
  .page-about__why-choose-section,
  .page-about__faq-section {
    padding: 50px 0;
  }

  .page-about__container {
    padding: 0 15px; /* Add padding for mobile */
  }

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

  /* Container responsiveness for mobile */
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__grid-item,
  .page-about__value-item,
  .page-about__why-choose-item,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Specific override for hero content padding if needed to be different from container */
  .page-about__hero-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Video responsiveness for mobile - No video in this page, but keeping the rule */
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Video container responsiveness for mobile */
  .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;
  }

  /* Button responsiveness for mobile */
  .page-about__cta-button,
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .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;
  }

  /* Button container responsiveness for mobile */
  .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;
    flex-direction: column; /* Ensure vertical stacking on mobile */
  }
}