/* style/about.css */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--deep-navy); /* Body background from shared.css is --deep-navy */
}

.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding as body handles --header-offset */
  padding-bottom: 60px;
  background-color: var(--deep-navy);
  overflow: hidden;
}

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

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

.page-about__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 0 20px;
  color: var(--text-main);
  z-index: 1;
}

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Using clamp for responsive H1 font-size */
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--gold);
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-about__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.page-about__section {
  padding: 60px 0;
  background-color: var(--deep-navy);
  color: var(--text-main);
}

.page-about__section--introduction {
  background-color: var(--card-bg);
}

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

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

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

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

.page-about__image-block {
  flex: 1;
  min-width: 200px; /* Ensure minimum size for image block */
}

.page-about__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce minimum image display size */
  min-height: 200px; /* Enforce minimum image display size */
}

.page-about__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.3;
}

.page-about__sub-title {
  font-size: 1.8em;
  font-weight: 600;
  color: var(--main-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

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

.page-about__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-about__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.05em;
  color: var(--text-secondary);
}

.page-about__list-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--glow);
  font-weight: bold;
}

.page-about__timeline {
  list-style: none;
  padding: 0;
  position: relative;
  margin: 50px 0;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--divider);
  transform: translateX(-50%);
}

.page-about__timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
}

.page-about__timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.page-about__timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.page-about__timeline-item::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--glow);
  border: 2px solid var(--main-color);
  top: 28px;
  border-radius: 50%;
  z-index: 1;
}

.page-about__timeline-item:nth-child(odd)::after {
  right: -6px;
}

.page-about__timeline-item:nth-child(even)::after {
  left: -6px;
}

.page-about__timeline-year {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--main-color);
  margin-bottom: 10px;
}

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

.page-about__section--cta {
  background: linear-gradient(180deg, var(--main-color) 0%, var(--deep-navy) 100%);
  text-align: center;
  padding: 80px 0;
}

.page-about__container--cta-center {
  max-width: 800px;
  margin: 0 auto;
}

.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: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-about__btn-secondary {
  background: #ffffff;
  color: var(--main-color);
  border: 2px solid var(--main-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

/* Variables from custom palette */
:root {
  --main-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: #4FA8FF;
  --gold: #F2C14E;
  --divider: #1B3357;
  --deep-navy: #08162B;
}

/* Mobile responsiveness */
@media (max-width: 992px) {
  .page-about__container--flex {
    flex-direction: column;
  }

  .page-about__timeline::before {
    left: 20px;
    transform: translateX(0);
  }

  .page-about__timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 20px;
  }

  .page-about__timeline-item:nth-child(odd),
  .page-about__timeline-item:nth-child(even) {
    left: 0;
    text-align: left;
  }

  .page-about__timeline-item:nth-child(odd)::after,
  .page-about__timeline-item:nth-child(even)::after {
    left: 14px;
    right: auto;
  }

  .page-about__section-title {
    font-size: 2em;
  }

  .page-about__sub-title {
    font-size: 1.5em;
  }
}

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

  .page-about__hero-section {
    padding-bottom: 40px;
  }

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

  .page-about__hero-description {
    font-size: 1em;
  }

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

  .page-about__container,
  .page-about__container--cta-center {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-about__image-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-about__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Buttons responsiveness */
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-about__btn-primary,
  .page-about__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__timeline-item {
    padding-left: 40px;
  }

  .page-about__timeline::before {
    left: 20px;
  }

  .page-about__timeline-item:nth-child(odd)::after,
  .page-about__timeline-item:nth-child(even)::after {
    left: 14px;
  }
}

@media (max-width: 480px) {
  .page-about__section-title {
    font-size: 1.8em;
  }

  .page-about__sub-title {
    font-size: 1.3em;
  }

  .page-about__hero-content {
    padding: 0 15px;
  }

  .page-about__hero-section {
    padding-bottom: 30px;
  }
}