/* style/about.css */

/* Base styles for the About Us page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light 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;
  box-sizing: border-box;
}

.page-about__section {
  padding: 60px 0;
  text-align: center;
}

.page-about__dark-section {
  background-color: #26A9E0; /* Brand primary color for dark sections */
  color: #ffffff;
}

.page-about__section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: bold;
  margin-bottom: 30px;
  color: #26A9E0;
}

.page-about__section-title--white {
  color: #ffffff;
}

.page-about__sub-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-about p {
  margin-bottom: 15px;
  font-size: 17px;
  color: #ffffff;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: 600px;
  object-fit: cover;
  position: relative;
  z-index: 1;
  display: block;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 30px 20px;
  margin-top: -150px; /* Pull content up over the image, but not overlap text */
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent background for readability */
  border-radius: 10px;
  box-sizing: border-box;
}

.page-about__main-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.page-about__intro-text {
  font-size: clamp(16px, 2vw, 20px);
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* Buttons */
.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

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

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

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

.page-about__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87b7;
  border-color: #1e87b7;
}

/* Grid Layouts */
.page-about__grid-layout {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-about__grid-layout--reversed {
  flex-direction: row-reverse;
}

.page-about__grid-layout .page-about__content-block,
.page-about__grid-layout .page-about__image-block {
  flex: 1;
}

.page-about__grid-layout .page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}

/* History Section */
.page-about__history {
  background-color: #0a0a0a; /* Dark background from body */
  color: #ffffff;
}

.page-about__history .page-about__section-title {
  color: #ffffff;
}

.page-about__timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  margin-top: 50px;
}

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

.page-about__timeline-item {
  display: flex;
  justify-content: center;
  padding: 20px 0;
  position: relative;
}

.page-about__timeline-item:nth-child(odd) {
  text-align: right;
  padding-right: 55%;
}

.page-about__timeline-item:nth-child(even) {
  text-align: left;
  padding-left: 55%;
}

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

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

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

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

.page-about__value-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

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

/* Team Section */
.page-about__team {
  background-color: #0a0a0a; /* Dark background from body */
  color: #ffffff;
}

.page-about__team .page-about__section-title {
  color: #ffffff;
}

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

.page-about__team-member-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-about__team-member-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 20px auto;
  display: block;
  border: 4px solid #26A9E0;
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
}

.page-about__team-member-name {
  font-size: 22px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 5px;
}

.page-about__team-member-position {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 15px;
}

.page-about__team-member-description {
  font-size: 15px;
  color: #f0f0f0;
}

/* Security Section */
.page-about__security-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  text-align: left;
}

.page-about__security-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="%23FFFFFF"><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 17px;
}

/* Social Responsibility Section */
.page-about__social-responsibility {
  background-color: #0a0a0a; /* Dark background from body */
  color: #ffffff;
}

.page-about__social-responsibility .page-about__section-title {
  color: #ffffff;
}

.page-about__social-responsibility p {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 25px;
}

/* Partners and Certifications Section */
.page-about__partners-grid,
.page-about__certifications-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-about__partner-logo,
.page-about__certification-logo {
  max-width: 200px;
  height: 100px;
  object-fit: contain;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: block;
  min-width: 200px; /* Minimum image size */
  min-height: 100px; /* Minimum image size */
}

/* Why Choose Us Section */
.page-about__why-choose {
  background-color: #0a0a0a; /* Dark background from body */
  color: #ffffff;
}

.page-about__why-choose .page-about__section-title {
  color: #ffffff;
}

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

.page-about__advantage-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

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

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

/* FAQ Section */
.page-about__faq-section {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
}

.page-about__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-about__faq-item {
  background-color: rgba(0, 0, 0, 0.2);
  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 25px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.3); /* Slightly darker for question */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* For details/summary */
}

.page-about__faq-question::-webkit-details-marker {
  display: none;
}

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

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

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

.page-about__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 16px;
  color: #f0f0f0;
}

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

/* Contact Section */
.page-about__contact {
  background-color: #0a0a0a; /* Dark background from body */
  color: #ffffff;
}

.page-about__contact .page-about__section-title {
  color: #ffffff;
}

.page-about__contact-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  margin-bottom: 30px;
  text-align: center;
}

.page-about__contact-list li {
  margin-bottom: 15px;
  font-size: 18px;
  color: #ffffff;
}

.page-about__contact-link {
  color: #EA7C07; /* Login color for links */
  text-decoration: none;
  font-weight: bold;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-image {
    height: 500px;
  }

  .page-about__hero-content {
    margin-top: -100px;
  }

  .page-about__grid-layout {
    flex-direction: column;
  }

  .page-about__grid-layout--reversed {
    flex-direction: column;
  }

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

  .page-about__timeline-item:nth-child(odd),
  .page-about__timeline-item:nth-child(even) {
    padding-left: 60px;
    padding-right: 20px;
    text-align: left;
  }

  .page-about__timeline-item::before {
    left: 20px;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 768px) {
  .page-about__hero-image {
    height: 400px;
  }

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

  .page-about__main-title {
    font-size: 28px;
  }

  .page-about__intro-text {
    font-size: 16px;
  }

  .page-about__section-title {
    font-size: 24px;
  }

  .page-about__sub-title {
    font-size: 20px;
  }

  .page-about p,
  .page-about li {
    font-size: 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-bottom: 10px; /* For stacked buttons */
  }

  .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;
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
  }

  .page-about__team-member-image,
  .page-about__image,
  .page-about__partner-logo,
  .page-about__certification-logo {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__hero-section {
    padding-top: 10px !important;
  }

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

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

  .page-about__contact-list li {
    font-size: 16px;
  }

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

  .page-about__timeline-item:nth-child(odd),
  .page-about__timeline-item:nth-child(even) {
    padding-left: 60px;
    padding-right: 15px;
    text-align: left;
  }

  .page-about__timeline-item::before {
    left: 20px;
    transform: translate(-50%, -50%);
  }
}