/* style/about.css */

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

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

.page-about__section-title {
  font-size: 36px;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__text-block {
  font-size: 18px;
  text-align: justify;
  margin-bottom: 20px;
  color: #333333;
}

.page-about__text-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

.page-about__text-link:hover {
  text-decoration: underline;
}

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-offset, 120px);
  padding-bottom: 60px;
  text-align: center;
  color: #ffffff;
  background-color: #26A9E0;
  position: relative;
  overflow: hidden;
}

.page-about__hero-content {
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.page-about__hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFFFF;
}

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

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

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

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  filter: grayscale(100%); /* Maintain original color, but apply grayscale for background */
}

/* 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: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  text-align: center;
}

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

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

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

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

/* Light Background Section */
.page-about__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

/* Dark Background Section */
.page-about__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Vision and Mission Section */
.page-about__vision-mission-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Core Values Section */
.page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-about__value-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__value-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
  object-fit: cover;
}

.page-about__value-title {
  font-size: 24px;
  color: #FFFFFF;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__value-item p {
  font-size: 16px;
  color: #f0f0f0;
}

/* History and Achievements Section */
.page-about__timeline {
  position: relative;
  max-width: 900px;
  margin: 60px auto;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background-color: #26A9E0;
  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: 18px;
  height: 18px;
  background-color: #26A9E0;
  border: 4px solid #FFFFFF;
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

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

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

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

.page-about__timeline-item p {
  font-size: 16px;
  color: #333333;
}

/* Security Commitment Section */
.page-about__security-commitment .page-about__container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-about__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-about__security-text,
.page-about__security-image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-about__security-text p {
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-about__security-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

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

.page-about__product-grid .page-about__card {
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  background-color: #FFFFFF;
  color: #333333;
}

.page-about__product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-about__product-grid .page-about__card-title {
  font-size: 20px;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-about__product-grid .page-about__card-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-about__product-grid .page-about__card-title a:hover {
  text-decoration: underline;
}

.page-about__product-grid .page-about__card p {
  font-size: 15px;
  color: #555555;
}

/* Social Responsibility Section */
.page-about__social-responsibility .page-about__container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-about__responsibility-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  flex-direction: row-reverse; /* Image on right, text on left for this section */
}

.page-about__responsibility-text,
.page-about__responsibility-image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-about__responsibility-text p {
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-about__responsibility-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

/* Team and Support Section */
.page-about__support-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-about__team-support .page-about__card {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  background-color: #FFFFFF;
  color: #333333;
}

.page-about__team-support .page-about__card-title {
  font-size: 22px;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__team-support .page-about__card p {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
}

.page-about__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s ease;
}

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

.page-about__faq-toggle {
  font-size: 24px;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #ffffff;
}

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

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  font-size: 16px;
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-about__faq-answer p {
  margin: 0;
  color: #f0f0f0;
}

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

.page-about__cta-section .page-about__btn-primary {
  margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 40px;
  }
  .page-about__hero-description {
    font-size: 18px;
  }
  .page-about__section-title {
    font-size: 30px;
  }
}

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

  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }

  .page-about__hero-title {
    font-size: 32px;
  }

  .page-about__hero-description {
    font-size: 16px;
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

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

  .page-about__container {
    padding: 20px 15px;
  }

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

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

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

  .page-about__security-content,
  .page-about__responsibility-content {
    flex-direction: column;
  }

  .page-about__security-content .page-about__security-image-wrapper,
  .page-about__responsibility-content .page-about__responsibility-image-wrapper {
    order: -1; /* Image appears first on mobile for social responsibility section */
  }

  .page-about__vision-mission-cards,
  .page-about__values-grid,
  .page-about__product-grid,
  .page-about__support-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Mobile image and container responsiveness */
  .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__vision-mission,
  .page-about__core-values,
  .page-about__history-achievements,
  .page-about__security-commitment,
  .page-about__products-services,
  .page-about__social-responsibility,
  .page-about__team-support,
  .page-about__faq-section,
  .page-about__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-about__faq-answer {
    padding: 10px 20px;
  }
}