/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--bg-color, #ffffff);
}

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

.page-about__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #555555;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  min-height: 550px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by sticky header */
  padding-bottom: 60px;
}

.page-about__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.page-about__hero-section .page-about__container {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.5;
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap; /* Prevent text wrapping on desktop */
  box-sizing: border-box;
}

.page-about__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

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

.page-about__btn-secondary:hover {
  background-color: #ffffff;
  color: #017439;
}

.page-about__btn-link {
  background-color: #017439;
  color: #ffffff;
  border: 1px solid #017439;
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-about__btn-link:hover {
  background-color: #005a2e;
}

/* General Section Styling */
.page-about__intro-section,
.page-about__history,
.page-about__our-team,
.page-about__contact-support,
.page-about__products-services {
  padding: 80px 0;
}

.page-about__vision-mission,
.page-about__core-values,
.page-about__safety-fairness,
.page-about__social-responsibility,
.page-about__faq-section {
  padding: 80px 0;
  color: #ffffff;
}

/* Background colors for sections */
.page-about__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-about__dark-bg .page-about__section-title,
.page-about__dark-bg .page-about__section-description,
.page-about__dark-bg .page-about__value-heading,
.page-about__dark-bg .page-about__value-title,
.page-about__dark-bg h3 {
  color: #ffffff;
}

/* Content Grid for text and image */
.page-about__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-about__content-grid:nth-child(even) {
  flex-direction: row-reverse;
}

.page-about__text-block {
  flex: 1;
  min-width: 300px;
}

.page-about__image-block {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

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

.page-about__image--centered {
  margin-top: 40px;
  margin-bottom: 40px;
}

/* Vision & Mission / Core Values */
.page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__value-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
}

.page-about__value-heading {
  font-size: 1.8em;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-about__value-card {
  background: rgba(255, 255, 255, 0.15);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-about__value-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

/* History Timeline */
.page-about__timeline {
  position: relative;
  max-width: 900px;
  margin: 50px auto;
  padding: 20px 0;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: #e0e0e0;
  transform: translateX(-50%);
}

.page-about__timeline-item {
  position: relative;
  margin-bottom: 40px;
  width: 50%;
  padding: 10px 40px;
  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: 12px;
  height: 12px;
  background: #017439;
  border-radius: 50%;
  top: 20px;
  z-index: 1;
}

.page-about__timeline-item:nth-child(odd)::after {
  right: -6px;
}

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

.page-about__timeline-year {
  font-size: 1.6em;
  font-weight: bold;
  color: #017439;
  margin-bottom: 10px;
}

/* Products & Services */
.page-about__service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__service-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #333333;
}

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

.page-about__service-title {
  font-size: 1.4em;
  margin: 20px 15px 10px 15px;
  font-weight: bold;
}

.page-about__service-title a {
  color: #017439;
  text-decoration: none;
}

.page-about__service-title a:hover {
  text-decoration: underline;
}

.page-about__service-card p {
  margin: 0 15px 20px 15px;
  flex-grow: 1;
}

/* Social Responsibility */
.page-about__responsibility-list {
  list-style-type: disc;
  padding-left: 25px;
  max-width: 800px;
  margin: 30px auto;
  color: #ffffff;
}

.page-about__responsibility-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

/* Contact Support */
.page-about__contact-methods {
  margin-top: 30px;
  text-align: center;
  font-size: 1.1em;
}

.page-about__contact-methods p {
  margin-bottom: 10px;
}

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-about__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #ffffff;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  transition: transform 0.3s ease;
}

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

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to contain content */
  padding: 20px;
  padding-top: 0;
}

.page-about__faq-answer p {
  margin-top: 0;
  margin-bottom: 10px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 3em;
  }

  .page-about__hero-description {
    font-size: 1.1em;
  }

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

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

  .page-about__timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 20px;
    left: 0 !important;
    text-align: left !important;
  }

  .page-about__timeline-item::after {
    left: 14px !important;
  }
}

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

  .page-about__hero-title {
    font-size: 2.5em;
  }

  .page-about__hero-description {
    font-size: 1em;
  }

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

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

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

  .page-about__intro-section,
  .page-about__vision-mission,
  .page-about__history,
  .page-about__core-values,
  .page-about__products-services,
  .page-about__safety-fairness,
  .page-about__our-team,
  .page-about__social-responsibility,
  .page-about__contact-support,
  .page-about__faq-section {
    padding: 50px 0;
  }

  .page-about__content-grid {
    flex-direction: column;
  }

  .page-about__content-grid:nth-child(even) {
    flex-direction: column;
  }

  .page-about__values-grid,
  .page-about__values-list,
  .page-about__service-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__timeline-item {
    padding-left: 50px;
    padding-right: 15px;
  }

  .page-about__timeline-year {
    font-size: 1.4em;
  }

  /* Mobile specific image handling */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__intro-section,
  .page-about__vision-mission,
  .page-about__history,
  .page-about__core-values,
  .page-about__products-services,
  .page-about__safety-fairness,
  .page-about__our-team,
  .page-about__social-responsibility,
  .page-about__contact-support,
  .page-about__faq-section,
  .page-about__hero-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;
    overflow-x: hidden;
  }

  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  
  .page-about__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-title {
    font-size: 2em;
  }

  .page-about__hero-description {
    font-size: 0.9em;
  }

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

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