.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--black-color); /* From shared.css */
}

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

.page-about__dark-section {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
  padding: 80px 0;
}

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 80px 0;
}

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  padding-bottom: 40px;
}

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

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

.page-about__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-about__section-title {
  font-size: 2.8em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from parent section */
}

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

.page-about__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-about__text-block {
  flex: 1;
  text-align: justify;
}

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

.page-about__image-large {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-about__timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 20px 0;
  margin-top: 40px;
}

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

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

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

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

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

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

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

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

.page-about__timeline-description {
  font-size: 1em;
  color: #f0f0f0;
}

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

.page-about__card {
  background: #f8f8f8;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-about__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-about__card-content {
  padding: 25px;
  flex-grow: 1;
  color: #333333;
}

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

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

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

.page-about__card-content p {
  margin-bottom: 20px;
  color: #555555;
}

.page-about__btn-primary {
  display: inline-block;
  background: #26A9E0;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary:hover {
  background-color: #1e87b7;
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  display: inline-block;
  background: #ffffff;
  color: #26A9E0;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #26A9E0;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

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

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

.page-about__feature-title {
  font-size: 1.6em;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-about__feature-item p {
  color: #f0f0f0;
}

.page-about__image-medium {
  display: block;
  margin: 60px auto 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-about__responsibility-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-about__responsibility-list li {
  background: #f0f0f0;
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
  line-height: 1.8;
}

.page-about__responsibility-list li strong {
  color: #26A9E0;
}

.page-about__image-hero {
  display: block;
  margin: 60px auto 0 auto;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

.page-about__value-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
}

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

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

.page-about__advantages-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-about__advantages-list li {
  background: #f0f0f0;
  margin-bottom: 15px;
  padding: 20px;
  border-left: 5px solid #26A9E0;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
  line-height: 1.8;
}

.page-about__advantages-list li strong {
  color: #26A9E0;
}

.page-about__faq-section {
  padding: 80px 0;
}

.page-about__faq-list {
  max-width: 900px;
  margin: 40px 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 25px;
  background: #26A9E0;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
  background-color: #1e87b7;
}

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

.page-about__faq-item.active .page-about__faq-question {
  background-color: #1e87b7;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg); /* Change + to X or rotate */
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  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__cta-section {
  text-align: center;
  padding: 80px 0;
}

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

.page-about__cta-buttons a {
  flex-shrink: 0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 2.8em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__section-title {
    font-size: 2.2em;
  }
  .page-about__content-grid {
    flex-direction: column;
  }
  .page-about__image-large {
    max-width: 100%;
  }
  .page-about__timeline::before {
    left: 15px;
  }
  .page-about__timeline-item {
    width: 100%;
    padding-left: 40px;
    padding-right: 20px;
    text-align: left !important;
  }
  .page-about__timeline-item:nth-child(odd) {
    padding-right: 20px;
  }
  .page-about__timeline-item:nth-child(odd)::before {
    left: 8px;
    right: auto;
  }
  .page-about__timeline-item:nth-child(even)::before {
    left: 8px;
  }
  .page-about__timeline-item::before {
    left: 0px;
  }
  .page-about__cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-about__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-about__hero-content {
    padding: 15px;
  }
  .page-about__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-about__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-about__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
    padding: 0 15px;
  }
  .page-about__dark-section, .page-about__light-bg {
    padding: 60px 0;
  }
  .page-about__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Images responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__image-large, .page-about__image-medium, .page-about__image-hero, .page-about__card-image {
    min-width: 200px !important;
    min-height: 200px !important;
    height: auto !important;
  }
  .page-about__content-grid,
  .page-about__cards-grid,
  .page-about__features-grid,
  .page-about__values-grid {
    gap: 20px;
  }
  .page-about__timeline::before {
    left: 15px;
  }
  .page-about__timeline-item {
    padding-left: 40px;
    padding-right: 15px;
  }
  .page-about__timeline-item:nth-child(odd)::before,
  .page-about__timeline-item:nth-child(even)::before {
    left: 8px;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .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__faq-question,
  .page-about__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}