/* Base styles for the About Us page */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff;
}

.page-about__section {
  padding: 40px 0;
  margin-bottom: 20px;
  text-align: center;
}

.page-about__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #26A9E0; /* Brand color for titles */
  margin-bottom: 20px;
  text-align: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 15px;
}

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

.page-about__text-block {
  max-width: 900px;
  margin: 0 auto 15px auto;
  padding: 0 15px;
  font-size: 1.1em;
}

.page-about__text-block--white {
  color: #ffffff;
}

/* Hero Section */
.page-about__hero-section {
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  max-width: 1200px;
  margin: 0 auto 40px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

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

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

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

.page-about__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  font-weight: 700;
  color: #26A9E0;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-about__description {
  font-size: 1.2em;
  color: #555555;
  margin-bottom: 30px;
}

.page-about__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0 15px; /* Add padding to prevent overflow */
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Include padding in element's total width and height */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  max-width: 100%; /* Ensure button doesn't exceed container */
}

.page-about__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-about__btn-primary:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

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

.page-about__btn-secondary:hover {
  background-color: #e0f2f7;
  color: #1e87b7;
}

/* Values Section */
.page-about__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-about__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-about__value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 15px;
}

.page-about__value-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__value-item img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-about__value-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: 600;
  text-align: center;
}

.page-about__value-description {
  font-size: 1em;
  color: #555555;
  text-align: center;
}

/* Offerings Section */
.page-about__product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 15px;
}

.page-about__product-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-about__product-item:hover {
  transform: translateY(-5px);
}

.page-about__product-item img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-about__product-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-about__product-description {
  font-size: 0.95em;
  color: #666666;
}

/* Security Section */
.page-about__security-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 15px;
  text-align: left;
}

.page-about__security-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.page-about__security-text {
  flex: 1;
  max-width: 50%;
}

/* Vision Section - similar structure to Security */
.page-about__vision-content {
  display: flex;
  flex-direction: row-reverse; /* Image on right */
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 15px;
  text-align: left;
}

.page-about__vision-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.page-about__vision-text {
  flex: 1;
  max-width: 50%;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__section-title {
    font-size: 2em;
  }
  .page-about__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }
  .page-about__description {
    font-size: 1.1em;
  }
  .page-about__value-grid,
  .page-about__product-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-about__security-content,
  .page-about__vision-content {
    flex-direction: column;
    text-align: center;
  }
  .page-about__security-image,
  .page-about__security-text,
  .page-about__vision-image,
  .page-about__vision-text {
    max-width: 100%;
    flex: none;
  }
  .page-about__security-image,
  .page-about__vision-image {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-about__hero-section {
    padding-top: 10px;
    margin-bottom: 30px;
  }
  .page-about__main-title {
    font-size: clamp(1.6em, 6vw, 2.5em) !important;
  }
  .page-about__description {
    font-size: 1em;
  }
  .page-about__cta-buttons {
    flex-direction: column; /* Buttons stack vertically */
    gap: 10px;
    padding-left: 15px;
    padding-right: 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 {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__section,
  .page-about__card,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-about__value-item img,
  .page-about__product-item img {
    height: auto; /* Allow height to be auto for mobile */
  }

  /* Long text sections */
  .page-about__text-block {
    font-size: 1em;
    padding: 0 15px;
  }
  .page-about__section-title {
    font-size: 1.8em;
    padding: 0 15px;
  }

  /* service four-grid - (Value grid acts as service grid here) */
  .page-about__value-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important; /* Single column on mobile */
    padding: 0 15px;
  }
  .page-about__product-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    padding: 0 15px;
  }

  /* Security and Vision sections */
  .page-about__security-content,
  .page-about__vision-content {
    flex-direction: column;
    padding: 0 15px;
  }
  .page-about__security-image,
  .page-about__vision-image {
    margin-bottom: 20px;
  }
  .page-about__security-text,
  .page-about__vision-text {
    max-width: 100%;
  }
}