/* style/about.css */

/* Base styles for the about page content */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

/* Section styling */
.page-about__hero-section,
.page-about__introduction-section,
.page-about__history-section,
.page-about__core-values-section,
.page-about__commitment-section,
.page-about__team-section,
.page-about__technology-section,
.page-about__csr-section,
.page-about__conclusion-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden; /* Ensure no overflow from sections */
}

/* Specific background colors based on section type */
.page-about__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter than body background for contrast */
  color: #ffffff;
}

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

/* Container for content within sections */
.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-about__hero-section {
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  position: relative;
  color: #ffffff;
}

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

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

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

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

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

.page-about__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Titles and descriptions */
.page-about__section-title {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  color: inherit; /* Inherit color from section background */
}

.page-about__sub-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: inherit;
  font-weight: bold;
}

.page-about__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  line-height: 1.8;
  color: inherit;
}

/* 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;
  font-size: 1.1em;
  text-align: center;
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: #A00000; /* Darker red for contrast */
  color: #FFFFFF; /* White text for contrast */
  border: 2px solid #A00000;
}

.page-about__btn-primary:hover {
  background-color: #C30808; /* Original red on hover */
  border-color: #C30808;
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #017439; /* Brand green for text */
  border: 2px solid #017439;
}

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

/* Content grid for two-column layouts */
.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
  align-items: start;
}

.page-about__text-block p {
  line-height: 1.7;
  color: inherit;
}

/* Images within content */
.page-about__image-full {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 50px auto 0 auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-about__image-center {
  display: block;
  max-width: 80%; /* Smaller for center image */
  height: auto;
  margin: 50px auto 0 auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

/* History Timeline */
.page-about__timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 40px 0;
  color: #333333; /* For light background */
}

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

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

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

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

.page-about__timeline-item::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  background-color: #017439;
  border-radius: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.page-about__timeline-item:nth-child(odd)::before {
  right: 0;
  transform: translate(50%, -50%);
}

.page-about__timeline-item:nth-child(even)::before {
  left: 0;
  transform: translate(-50%, -50%);
}

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

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

.page-about__value-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
}

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

.page-about__value-card p {
  color: #f0f0f0;
}

/* Commitment List */
.page-about__commitment-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.page-about__commitment-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-about__commitment-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439;
}

.page-about__commitment-item p {
  color: #555555;
}

/* Team Section */
.page-about__team-members {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-about__team-member-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
}

.page-about__team-member-photo {
  width: 100%;
  height: 250px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

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

.page-about__team-member-role {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* Technology Features */
.page-about__tech-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-about__tech-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-about__tech-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439;
}

.page-about__tech-item p {
  color: #555555;
}

/* CSR Section */
.page-about__csr-initiatives {
  margin-top: 50px;
  color: #ffffff;
}

.page-about__csr-initiatives h3 {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #ffffff;
  font-weight: bold;
}

.page-about__csr-initiatives p {
  line-height: 1.7;
  margin-bottom: 20px;
  color: #f0f0f0;
}

/* Conclusion CTA */
.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: 2.2em;
  }
}

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

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

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

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

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

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

  /* Images responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-about__image-center {
    max-width: 100% !important;
  }

  /* Containers responsive */
  .page-about__container,
  .page-about__hero-section,
  .page-about__introduction-section,
  .page-about__history-section,
  .page-about__core-values-section,
  .page-about__commitment-section,
  .page-about__team-section,
  .page-about__technology-section,
  .page-about__csr-section,
  .page-about__conclusion-section,
  .page-about__content-grid,
  .page-about__values-grid,
  .page-about__commitment-list,
  .page-about__team-members,
  .page-about__tech-features,
  .page-about__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Grid layouts to single column */
  .page-about__content-grid,
  .page-about__values-grid,
  .page-about__commitment-list,
  .page-about__team-members,
  .page-about__tech-features {
    grid-template-columns: 1fr;
  }

  /* Timeline adjustments */
  .page-about__timeline::before {
    left: 15px;
    transform: translateX(0);
  }

  .page-about__timeline-item {
    width: 100%;
    left: 0;
    padding-left: 45px; /* Adjust for new timeline line position */
    padding-right: 15px;
    text-align: left;
  }

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

  .page-about__timeline-item::before {
    left: 15px;
    transform: translate(-50%, -50%); /* Adjust to new line position */
  }
  .page-about__timeline-item:nth-child(odd)::before,
  .page-about__timeline-item:nth-child(even)::before {
    left: 15px;
    right: auto;
    transform: translate(-50%, -50%);
  }

  /* Buttons responsive */
  .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; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-about__team-member-photo {
    height: 200px; /* Adjust height for mobile */
  }
}

/* Ensure no filter on images */
.page-about img {
  filter: none !important;
}