.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #F4F7FB; /* Custom background color */
}

.page-about__article-wrap {
  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-top: 10px; /* Small top padding */
  padding-bottom: 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  height: 500px; /* Fixed height for desktop hero image */
  overflow: hidden;
}

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

.page-about__hero-content {
  position: relative;
  z-index: 1;
  padding: 30px 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly with image for visual flow */
  background: rgba(255, 255, 255, 0.95); /* Semi-transparent white background */
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-about__main-title {
  font-size: 2.8em;
  font-weight: bold;
  line-height: 1.2;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__hero-description {
  font-size: 1.1em;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-about__section-title {
  font-size: 2.2em;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  line-height: 1.7;
  color: #1F2D3D; /* Text Main */
}

.page-about__figure {
  margin: 40px 0;
  text-align: center;
}

.page-about__figure-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__figure-caption {
  font-style: italic;
  font-size: 0.9em;
  color: #555;
  margin-top: 10px;
}

.page-about__figure--right {
  float: right;
  margin: 0 0 20px 40px;
  max-width: 50%;
}

.page-about__figure--left {
  float: left;
  margin: 0 40px 20px 0;
  max-width: 50%;
}

.page-about__section--mission .page-about__text-block,
.page-about__section--history .page-about__text-block,
.page-about__section--security .page-about__text-block,
.page-about__section--team .page-about__text-block,
.page-about__section--future .page-about__text-block {
  clear: both; /* Ensure text flows below floats */
}

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

.page-about__card {
  background: #FFFFFF; /* Card BG */
  color: #1F2D3D; /* Text Main */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #D6E2FF; /* Border */
}

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

.page-about__card-title {
  font-size: 1.5em;
  color: #2F6BFF; /* Main color for titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__card-title a {
  color: #2F6BFF;
  text-decoration: none;
}

.page-about__card-title a:hover {
  text-decoration: underline;
}

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

.page-about__promo-box {
  background: linear-gradient(135deg, #6FA3FF 0%, #2F6BFF 100%); /* Gradient background */
  color: #ffffff; /* White text for dark background */
  padding: 35px;
  text-align: center;
  border-radius: 12px;
  margin-top: 50px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-about__promo-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #ffffff;
}

.page-about__promo-box p {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #ffffff;
}

.page-about__warning-card {
  background: #fff3cd; /* Light warning yellow */
  color: #856404; /* Dark yellow text */
  border: 1px solid #ffeeba;
  padding: 25px;
  border-radius: 8px;
  margin-top: 40px;
}

.page-about__warning-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #856404;
}

.page-about__warning-card p {
  color: #856404;
}

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

.page-about__cta-block {
  text-align: center;
  padding: 50px 20px;
}

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

/* Button Styles */
.page-about__btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn--primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Custom Button Color */
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-about__btn--primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.6);
}

.page-about__btn--secondary {
  background: #FFFFFF; /* Card BG */
  color: #2F6BFF; /* Main color */
  border: 2px solid #2F6BFF;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.2);
}

.page-about__btn--secondary:hover {
  background: #F4F7FB; /* Background color */
  color: #2F6BFF;
  border-color: #2F6BFF;
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.3);
}

/* Section background colors */
.page-about__dark-section {
  background-color: #2F6BFF; /* Main color */
  color: #ffffff; /* White text for dark background */
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__text-block,
.page-about__dark-section .page-about__card-title,
.page-about__dark-section .page-about__card p,
.page-about__dark-section .page-about__figure-caption {
  color: #ffffff;
}

.page-about__dark-section .page-about__card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-about__dark-section .page-about__card-title a {
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #F4F7FB; /* Background */
  color: #1F2D3D; /* Text Main */
}

/* Clear floats for responsive layout */
.page-about__article-wrap::after {
  content: "";
  display: table;
  clear: both;
}

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

  /* 1. Top section with title and CTAs */
  .page-about__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 20px;
  }

  .page-about__hero-image-wrapper {
    height: 300px;
  }

  .page-about__hero-content {
    margin-top: -60px;
    padding: 20px 15px;
  }

  .page-about__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-about__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-about__hero-cta {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

  .page-about__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;
  }

  /* 2. Single column long text container */
  .page-about__article-wrap {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-about__text-block {
    font-size: 1em;
  }

  .page-about__figure--right,
  .page-about__figure--left {
    float: none;
    margin: 30px auto;
    max-width: 100%;
  }

  .page-about__values-grid,
  .page-about__product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__card {
    padding: 25px;
  }

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

  .page-about__promo-box {
    padding: 30px 20px;
    margin-top: 40px;
  }

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

  .page-about__warning-card {
    padding: 20px;
    margin-top: 30px;
  }

  .page-about__warning-title {
    font-size: 1.2em;
  }

  /* 3. Generic images and figures */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__promo-box,
  .page-about__warning-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 4. Buttons and button containers */
  .page-about__cta-button,
  .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;
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  /* 5. Registration tutorial and FAQ blocks - For this page, general content sections apply */
  .page-about__section--mission,
  .page-about__section--history,
  .page-about__section--values,
  .page-about__section--products,
  .page-about__section--security,
  .page-about__section--team,
  .page-about__section--future,
  .page-about__section--cta {
    padding: 40px 0;
  }
}