/* style/about.css */
.page-about {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
  padding-top: var(--header-offset, 120px);
}

.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__section-title {
  font-size: 36px;
  color: #FFD700; /* Auxiliary color for titles */
  margin-bottom: 40px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.page-about__sub-title {
  font-size: 24px;
  color: #FFD700;
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__description,
.page-about p {
  font-size: 17px;
  color: #f0f0f0; /* Slightly off-white for body text */
  margin-bottom: 20px;
}

.page-about__dark-bg {
  background-color: #1A202C;
  color: #ffffff;
}

.page-about__hero-section {
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(rgba(26, 32, 44, 0.8), rgba(26, 32, 44, 0.8)); /* Overlay for image */
  background-size: cover;
  background-position: center;
  text-align: left;
}

.page-about__hero-section .page-about__container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-about__hero-content {
  flex: 1;
}

.page-about__main-title {
  font-size: 48px;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 900;
}

.page-about__hero-section .page-about__description {
  font-size: 19px;
  margin-bottom: 30px;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  box-sizing: border-box;
}

.page-about__btn-primary {
  background-color: #FFD700;
  color: #1A202C;
  border: 2px solid #FFD700;
}

.page-about__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.page-about__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-about__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-about__general-intro {
  background-color: #000000;
}

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

.page-about__content-grid .page-about__text-block {
  flex: 1;
}

.page-about__content-grid .page-about__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__content-grid .page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-about__card {
  background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #f0f0f0;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
}

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

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

.page-about__card p {
  font-size: 16px;
  color: #cccccc;
  flex-grow: 1;
}

.page-about__commitment {
  background-color: #1A202C;
}

.page-about__join-us .page-about__btn-spacing {
  margin-right: 20px;
}

.page-about__final-cta {
  padding: 80px 0;
  background-color: #1A202C;
}

.page-about__text-center {
  text-align: center;
}

.page-about__btn-large {
  padding: 18px 45px;
  font-size: 20px;
  margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-section .page-about__container {
    flex-direction: column;
    text-align: center;
  }
  .page-about__hero-content {
    order: 2;
  }
  .page-about__hero-image-wrapper {
    order: 1;
    margin-bottom: 30px;
  }
  .page-about__cta-buttons {
    justify-content: center;
  }
  .page-about__content-grid {
    flex-direction: column;
  }
  .page-about__content-grid.reverse-order-mobile {
    flex-direction: column-reverse;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
  }
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-about__sub-title {
    font-size: 20px;
  }
  .page-about__main-title {
    font-size: 36px;
  }
  .page-about__hero-section .page-about__description {
    font-size: 17px;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-large {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 25px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__hero-image,
  .page-about__content-grid .page-about__image {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
    min-width: 200px !important; /* Ensure minimum size */
    min-height: 200px !important;
    object-fit: cover;
  }
  .page-about__grid-cards {
    grid-template-columns: 1fr;
  }
  .page-about__card {
    padding: 25px;
  }
  .page-about__join-us .page-about__btn-spacing {
    margin-right: 0;
    margin-bottom: 15px; /* Add spacing between buttons when stacked */
  }
  .page-about__text-block .page-about__btn-primary {
    margin-bottom: 15px; /* Add spacing below the first button */
  }
}