:root {
  --main-color: #113B7A;
  --secondary-color: #1D5FD1;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg: #10233F;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy: #08162B;
}

/* Base styles for the page-about content */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Light text for dark body background */
  background-color: transparent; /* body handles the background color */
}

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

.page-about__section {
  padding: 60px 0;
}

.page-about__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-about__section-title--light {
  color: #ffffff;
}

.page-about__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-secondary);
  text-align: justify;
}

.page-about__paragraph--light {
  color: #f0f8ff;
  text-align: center;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  background: var(--deep-navy); /* Ensure hero section has a background */
  overflow: hidden;
}

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

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Ensure minimum size */
}

.page-about__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-about__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.page-about__description {
  font-size: 1.2em;
  color: var(--text-secondary);
  margin-bottom: 30px;
  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__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-about__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary {
  background: #ffffff;
  color: var(--main-color); /* Use main color for text on white background */
  border: 2px solid var(--main-color);
}

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

.page-about__btn-secondary:hover {
  background: var(--main-color);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary--light:hover {
  background: #ffffff;
  color: var(--main-color);
  border-color: #ffffff;
}

/* Section Layouts */
.page-about__section .page-about__container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-about__section--mission .page-about__container,
.page-about__section--commitment .page-about__container,
.page-about__section--support .page-about__container {
  flex-direction: row;
  justify-content: space-between;
}

.page-about__section--commitment .page-about__container--reverse {
  flex-direction: row-reverse;
}

.page-about__text-content {
  flex: 1;
  min-width: 300px;
}

.page-about__image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 250px;
}

.page-about__image-wrapper--full-width {
  flex: none;
  width: 100%;
  margin-top: 40px;
}

.page-about__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Minimum size for content images */
  min-height: 200px;
  object-fit: cover;
}

/* Services Section */
.page-about__section--services {
  background-color: var(--card-bg); /* Dark background for services section */
  padding: 80px 0;
}

.page-about__section--services .page-about__section-title {
  color: var(--text-main);
}

.page-about__section--services .page-about__paragraph {
  color: var(--text-secondary);
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-about__service-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__service-title {
  font-size: 1.5em;
  color: var(--gold);
  margin-bottom: 15px;
}

.page-about__service-description {
  font-size: 1em;
  color: var(--text-secondary);
  text-align: center;
}

/* CTA Section */
.page-about__section--cta {
  padding: 80px 0;
  text-align: center;
}

.page-about__dark-bg {
  background-color: var(--deep-navy); /* Custom color Deep Navy */
}

.page-about__container--center {
  max-width: 900px;
}

/* General image styling to ensure minimum size and no small icons */
.page-about img:not(.page-about__hero-image) {
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__section .page-about__container {
    flex-direction: column;
    text-align: center;
  }

  .page-about__section--commitment .page-about__container--reverse {
    flex-direction: column; /* Revert for small screens */
  }

  .page-about__text-content,
  .page-about__image-wrapper {
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  .page-about__image-wrapper {
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .page-about__service-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-about__section {
    padding: 40px 0;
  }

  .page-about__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

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

  .page-about__description {
    font-size: 1em;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 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__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-about img,
  .page-about__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__hero-image {
    max-height: 300px;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__hero-section,
  .page-about__image-wrapper,
  .page-about__text-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }
}

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