/* style/about.css */

/* Base styles for the about page */
.page-about {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Dark text for light background */
  line-height: 1.6;
}

.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: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-about__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

.page-about__sub-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about__text-block p, .page-about__feature-card p, .page-about__responsibility-item p, .page-about__team-member-card p, .page-about__faq-answer p {
  font-size: 1em;
  color: #333333;
  margin-bottom: 15px;
}

/* Color scheme application */
.page-about__dark-bg {
  background: #26A9E0;
  color: #ffffff;
}

.page-about__dark-bg .page-about__section-title,
.page-about__dark-bg .page-about__sub-title,
.page-about__dark-bg .page-about__feature-title,
.page-about__dark-bg .page-about__faq-title {
  color: #ffffff;
}

.page-about__dark-bg .page-about__section-intro,
.page-about__dark-bg .page-about__text-block p,
.page-about__dark-bg .page-about__feature-card p,
.page-about__dark-bg .page-about__responsibility-item p,
.page-about__dark-bg .page-about__team-member-card p,
.page-about__dark-bg .page-about__faq-answer p {
  color: #f0f0f0;
}

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

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 500px;
}

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

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-about__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-about__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  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;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-about__dark-bg .page-about__btn-secondary {
  color: #ffffff;
  border-color: #ffffff;
}

.page-about__light-bg .page-about__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border-color: #26A9E0;
}

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

.page-about__light-bg .page-about__btn-secondary:hover {
  background: #26A9E0;
  color: #ffffff;
}

.page-about__btn-center {
  display: block;
  margin: 40px auto 0 auto;
  width: fit-content;
}

.page-about__btn-large {
  padding: 18px 35px;
  font-size: 1.1em;
}

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

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__image-block {
  text-align: center;
}

.page-about__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

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

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

.page-about__feature-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
}

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

.page-about__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.page-about__feature-list li {
  margin-bottom: 8px;
  padding-left: 25px;
  position: relative;
}

.page-about__feature-list li::before {
  content: '✔';
  color: #ffffff;
  position: absolute;
  left: 0;
  top: 0;
}

.page-about__dark-bg .page-about__feature-list li::before {
  color: #ffffff;
}

.page-about__feature-list a {
  color: #f0f0f0;
  text-decoration: none;
}

.page-about__feature-list a:hover {
  text-decoration: underline;
}

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

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

.page-about__history-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-top: 40px;
}

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

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

.page-about__timeline-item:nth-child(odd) {
  padding-right: 40px;
  text-align: right;
  align-self: flex-start;
}

.page-about__timeline-item:nth-child(even) {
  padding-left: 40px;
  text-align: left;
  align-self: flex-end;
}

.page-about__timeline-item::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  background: #26A9E0;
  border-radius: 50%;
  border: 2px solid #ffffff;
  transform: translateY(-50%);
  z-index: 1;
}

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

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

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

.page-about__history-image {
  margin-top: 60px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Responsibility Section */
.page-about__responsibility-section {
  padding: 80px 0;
}

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

.page-about__responsibility-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__responsibility-item .page-about__sub-title {
  color: #ffffff;
}

/* Team Section */
.page-about__team-section {
  padding: 80px 0;
}

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

.page-about__team-member-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
}

.page-about__team-member-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
  border: 4px solid #26A9E0;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-about__team-member-name {
  font-size: 1.4em;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-about__team-member-role {
  font-size: 1em;
  color: #555555;
}

.page-about__team-outro {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
  color: #555555;
}

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

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

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

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
}

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

.page-about__faq-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  margin: 0;
}

.page-about__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #ffffff;
  transition: transform 0.3s ease;
}

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

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

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

/* CTA Section */
.page-about__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-about__cta-content {
  max-width: 900px;
}

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

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

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

  .page-about__content-grid {
    grid-template-columns: 1fr;
  }

  .page-about__timeline-item {
    width: 100%;
    padding-left: 40px;
    text-align: left;
  }

  .page-about__history-timeline::before {
    left: 20px;
    transform: translateX(0);
  }

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

  .page-about__timeline-item:nth-child(odd)::before {
    right: auto;
    left: 14px;
  }

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

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

  .page-about__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }

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

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

  .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;
  }
  
  .page-about__hero-cta-buttons,
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
    overflow: hidden !important;
  }

  .page-about__container,
  .page-about__section,
  .page-about__card,
  .page-about__content-grid,
  .page-about__feature-grid,
  .page-about__responsibility-grid,
  .page-about__team-grid,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

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

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

  .page-about__timeline-item {
    padding-left: 30px;
  }

  .page-about__history-timeline::before {
    left: 15px;
  }

  .page-about__timeline-item::before {
    left: 9px;
  }

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

  .page-about__faq-answer {
    padding: 0 20px;
  }

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 20px;
  }
}

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

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

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    font-size: 0.9em;
    padding: 12px 20px;
  }
}