/* style/about.css */

:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg-color: #10233F;
  --text-main-color: #F3F8FF;
  --text-secondary-color: #AFC4E8;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy-color: #08162B; /* Assuming this is the body background from shared.css */
}

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

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

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

.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 40px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  position: relative;
}

.page-about__hero-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  display: block;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-about__main-title {
  font-size: 2.8em;
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
  font-size: 1.1em;
  color: var(--text-secondary-color);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-about__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.05em;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  min-width: 180px;
}

.page-about__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(43, 115, 246, 0.4);
}

.page-about__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(43, 115, 246, 0.6);
}

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

.page-about__btn-secondary:hover {
  background-color: var(--gold-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(242, 193, 78, 0.4);
}

.page-about__btn-text {
  background: none;
  color: var(--gold-color);
  border: 1px solid var(--gold-color);
  padding: 8px 20px;
  font-size: 0.95em;
}

.page-about__btn-text:hover {
  background-color: var(--gold-color);
  color: var(--primary-color);
}

.page-about__btn--center {
  margin-left: auto;
  margin-right: auto;
  display: block;
  max-width: 300px;
}

.page-about__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--divider-color);
}

.page-about__section:last-of-type {
  border-bottom: none;
}

.page-about__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.4);
}

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

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

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

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

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

.page-about__card p {
  color: var(--text-secondary-color);
  font-size: 0.95em;
}

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

.page-about__product-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__product-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__content-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin: 30px auto;
  display: block;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 2.4em;
  }
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__hero-image {
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  /* 1. Top section padding/spacing/stacking */
  .page-about__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 30px;
  }
  .page-about__hero-image {
    max-height: 300px;
    margin-bottom: 20px;
  }
  .page-about__main-title {
    font-size: 1.8em !important;
    margin-bottom: 15px;
  }
  .page-about__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-about__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    padding: 0 15px;
  }
  .page-about__btn {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__cta-buttons--center {
    padding: 0 15px !important;
  }

  /* 2. Single column long text container */
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__section {
    padding: 40px 0;
  }
  .page-about__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-about__text-block {
    font-size: 0.95em;
    margin-bottom: 15px;
  }
  .page-about__value-grid, .page-about__product-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }
  .page-about__card {
    padding: 20px;
  }
  .page-about__card-title {
    font-size: 1.2em;
  }

  /* 3. Generic images and figures */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-about__product-image, .page-about__content-image {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* 4. Buttons and button containers (covered in section 1 and general .page-about__btn) */
  .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__cta-buttons {
    flex-direction: column;
  }

  /* 5. Registration tutorial and FAQ blocks - N/A for this page, but general text readability covered */
  .page-about p, .page-about li {
    font-size: 15px;
    line-height: 1.5;
  }
}