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

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

/* Hero Section */
.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-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-about__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-about__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 900px;
}

.page-about__main-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  color: var(--gold-color);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-about__intro-text {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 36px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: var(--btn-gradient);
  color: var(--text-main);
  border: 2px solid var(--glow-color);
  box-shadow: 0 4px 15px rgba(43, 115, 246, 0.4);
}

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

.page-about__btn-secondary {
  background: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.3);
}

.page-about__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.5);
  background: rgba(242, 193, 78, 0.1);
}

/* General Section Styling */
.page-about__section {
  padding: 80px 20px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.page-about__section--intro {
  background-color: var(--deep-navy);
}

.page-about__dark-bg {
  background-color: var(--deep-navy);
  color: var(--text-main);
}

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

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

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

.page-about__content-block {
  flex: 1;
  min-width: 0;
}

.page-about__image-block {
  flex: 1;
  min-width: 0;
}

.page-about__image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-about__section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 40px;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-about__section-title--light {
  color: var(--gold-color);
}

.page-about__text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-about__text--light {
  color: var(--text-secondary);
}

.page-about__btn-small {
  padding: 10px 25px;
  font-size: 16px;
  margin-top: 20px;
}

.page-about__btn-large {
  padding: 18px 40px;
  font-size: 20px;
}

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

.page-about__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-secondary);
}

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

.page-about__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gold-color);
  margin-bottom: 15px;
}

.page-about__card-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.page-about__full-width-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin-top: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
  text-align: left;
}

details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-about__faq-item summary.page-about__faq-question::-webkit-details-marker {
  display: none;
}
details.page-about__faq-item summary.page-about__faq-question:hover {
  background: rgba(var(--primary-color), 0.2);
}
.page-about__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}
.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}
details[open] .page-about__faq-toggle {
  transform: rotate(45deg);
}
details.page-about__faq-item .page-about__faq-answer {
  padding: 0 25px 20px;
  background: var(--card-bg);
  border-top: 1px solid var(--divider-color);
  border-radius: 0 0 10px 10px;
  color: var(--text-secondary);
}

.page-about__cta-section {
  padding: 80px 20px;
  text-align: center;
}

.page-about__cta-inner {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 50px 30px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  max-width: 900px;
}

.page-about__cta-buttons--center {
  margin-top: 40px;
}

/* Image & Button Responsive Adaptations */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-about__section, .page-about__container, .page-about__card, .page-about__hero-container, .page-about__cta-buttons {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

  .page-about__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-about__hero-image img {
    border-radius: 8px;
  }

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

  .page-about__intro-text {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

  .page-about__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 14px 25px;
    font-size: 16px;
  }

  .page-about__section {
    padding: 50px 15px;
  }

  .page-about__container--flex {
    flex-direction: column;
    gap: 30px;
  }

  .page-about__container--reverse {
    flex-direction: column;
  }

  .page-about__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-about__text {
    font-size: 0.95rem;
  }

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

  .page-about__card {
    padding: 25px;
    border-radius: 10px;
  }

  .page-about__card-title {
    font-size: 1.3rem;
  }

  details.page-about__faq-item summary.page-about__faq-question {
    padding: 15px 20px;
  }
  .page-about__faq-qtext {
    font-size: 1rem;
  }
  .page-about__faq-toggle {
    font-size: 24px;
    width: 25px;
  }
  details.page-about__faq-item .page-about__faq-answer {
    padding: 0 20px 15px;
  }

  .page-about__cta-section {
    padding: 50px 15px;
  }

  .page-about__cta-inner {
    padding: 40px 20px;
  }
}

/* Ensure images are never smaller than 200px in content areas */
.page-about__content-block img, 
.page-about__image-block img, 
.page-about__full-width-image {
  min-width: 200px;
  min-height: 200px;
}

/* Content area images CSS size lower limit */
.page-about img:not(.page-about__hero-image img) {
  /* This rule applies to all images within .page-about except the hero image */
  /* It ensures that no CSS rule accidentally makes them too small */
  /* If a specific image needs to be smaller for design, it must be explicitly exempted or handled */
}

/* WCAG AA contrast check for main text on deep-navy background */
.page-about p, .page-about li, .page-about__text {
  color: var(--text-secondary); /* AFC4E8 on 08162B has contrast ratio 9.87:1 (AA/AAA) */
}

.page-about__section-title, .page-about__main-title, .page-about__card-title {
  color: var(--gold-color); /* F2C14E on 08162B has contrast ratio 11.8:1 (AA/AAA) */
}

.page-about__cta-button.page-about__btn-primary {
  color: var(--text-main); /* F3F8FF on 1144A6 (darker part of gradient) has contrast 6.3:1 (AA/AAA) */
}

.page-about__cta-button.page-about__btn-secondary {
  color: var(--gold-color); /* F2C14E on transparent/deep-navy background. Border F2C14E. Text color is good. */
}