/* style/about.css */

:root {
  --primary-color: #0A246A;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #0d0d0d; /* Body background from shared.css */
  --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
  --border-color: #e0e0e0;
}

.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--background-dark);
}

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

.page-about__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-about__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 100px 20px 80px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below header */
  background: linear-gradient(135deg, var(--primary-color) 0%, #061742 100%);
  overflow: hidden;
  min-height: 600px;
  color: var(--text-light);
}

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

.page-about__hero-section .page-about__container {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-about__main-title {
  font-size: 52px;
  font-weight: 900;
  margin-bottom: 25px;
  line-height: 1.2;
  color: var(--text-light);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.page-about__description {
  font-size: 19px;
  margin-bottom: 40px;
  color: #e0e0e0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  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.15);
  border: none;
  cursor: pointer;
}

.page-about__btn-primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

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

.page-about__btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-about__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* General Content Sections */
.page-about__mission-vision-section,
.page-about__why-choose-section,
.page-about__commitment-section,
.page-about__team-section,
.page-about__contact-cta-section {
  padding: 80px 0;
}

.page-about__dark-bg {
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-about__light-bg {
  background-color: #1a1a1a; /* A slightly lighter dark background for contrast */
  color: var(--text-light);
}

.page-about__light-bg .page-about__section-title {
  color: var(--text-light);
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-about__content-wrapper p {
  margin-bottom: 15px;
  font-size: 17px;
  color: #e0e0e0;
}

.page-about__text-block p {
  margin-bottom: 15px;
  font-size: 17px;
  color: #e0e0e0;
}

.page-about__image-block img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

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

.page-about__feature-item {
  background-color: var(--card-bg-dark-mode);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-light);
}

.page-about__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.page-about__feature-item img {
  width: 100%;
  max-width: 400px;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-about__feature-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-about__feature-item p {
  font-size: 16px;
  color: #c0c0c0;
}

.page-about__contact-cta-section {
  text-align: center;
  padding: 100px 0;
}

.page-about__contact-cta-container .page-about__section-title {
  color: var(--text-light);
}

.page-about__contact-cta-container .page-about__description {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 44px;
  }
  .page-about__section-title {
    font-size: 30px;
  }
  .page-about__description {
    font-size: 17px;
  }
  .page-about__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-about__content-grid {
    grid-template-columns: 1fr;
  }
  .page-about__image-block:first-child {
    order: 2;
  }
  .page-about__text-block:first-child {
    order: 1;
  }
}

@media (max-width: 768px) {
  .page-about__hero-section {
    padding: 80px 15px 60px;
    padding-top: var(--header-offset, 120px) !important;
    min-height: 500px;
  }
  .page-about__main-title {
    font-size: 36px;
    margin-bottom: 20px;
  }
  .page-about__description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-about__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
  }
  .page-about__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-about__mission-vision-section,
  .page-about__why-choose-section,
  .page-about__commitment-section,
  .page-about__team-section,
  .page-about__contact-cta-section {
    padding: 60px 0;
  }
  .page-about__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-about__content-grid {
    gap: 30px;
  }
  .page-about__content-wrapper p,
  .page-about__text-block p {
    font-size: 15px;
  }
  .page-about__feature-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-about__feature-item {
    padding: 25px;
  }
  .page-about__feature-title {
    font-size: 20px;
  }
  .page-about__feature-item p {
    font-size: 15px;
  }
  .page-about__feature-item img {
    height: 200px;
    max-width: 100% !important;
    width: 100% !important;
  }
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 28px;
  }
  .page-about__section-title {
    font-size: 22px;
  }
}