/* style/about.css */

/* Body background is var(--deep-navy) which is #08162B (dark), so default text color should be light */
.page-about {
  color: #F3F8FF; /* Text Main */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  background: rgba(8, 22, 43, 0.7); /* Deep Navy with transparency */
  border-radius: 8px;
  margin-top: -80px; /* Pull content up slightly over the image for better visual flow */
}

.page-about__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  color: #F2C14E; /* Gold */
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-about__intro-text {
  font-size: 1.1rem;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-about__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: #F2C14E; /* Gold */
  font-weight: 600;
  margin-bottom: 30px;
  text-align: center;
}

.page-about__paragraph {
  font-size: 1rem;
  color: #F3F8FF; /* Text Main */
  margin-bottom: 20px;
}

.page-about__light-bg {
  background: #f5f5f5; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
  padding: 60px 0;
}

.page-about__light-bg .page-about__section-title {
  color: #113B7A; /* Main color for titles on light background */
}

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

.page-about__dark-bg {
  background: #08162B; /* Deep Navy */
  color: #F3F8FF; /* Text Main */
  padding: 60px 0;
}

.page-about__dark-section {
  background: #10233F; /* Card BG, slightly lighter dark */
  color: #F3F8FF; /* Text Main */
  padding: 60px 0;
}

.page-about__dark-section .page-about__section-title {
  color: #F2C14E; /* Gold for titles on dark background */
}

.page-about__dark-section .page-about__paragraph {
  color: #AFC4E8; /* Text Secondary for paragraphs on dark background */
}

.page-about__image-inline {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-about__image-center {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  max-width: 800px; /* Limit width for content images */
}

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

.page-about__feature-card {
  background: #10233F; /* Card BG */
  border: 1px solid #244D84; /* Border */
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-about__card-title {
  font-size: 1.4rem;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-about__card-text {
  font-size: 0.95rem;
  color: #AFC4E8; /* Text Secondary */
}

.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__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button gradient */
  color: #F3F8FF; /* Text Main for button text */
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-about__btn-secondary {
  background: transparent;
  color: #2B73F6; /* Blue from button gradient */
  border: 2px solid #2B73F6;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-about__btn-secondary:hover {
  background: #2B73F6;
  color: #F3F8FF;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

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

  .page-about__hero-content {
    margin-top: -40px; /* Adjust for mobile */
    padding: 15px;
  }

  .page-about__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .page-about__intro-text {
    font-size: 1rem;
  }

  .page-about__section-title {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }

  .page-about__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__feature-card {
    padding: 25px;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__container,
  .page-about__mission-section,
  .page-about__why-choose-us-section,
  .page-about__cta-section,
  .page-about__team-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Mobile image responsiveness */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__image-inline,
  .page-about__image-center {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Ensure all content area images respect minimum size and no filter */
.page-about img {
  min-width: 200px;
  min-height: 200px;
  filter: none; /* No CSS filter allowed */
}

/* Contrast fixes for specific elements if needed */
.page-about__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}