/* style/about.css */
/* 
  CSS for the About Us page (about.html)
  All styles must be scoped within .page-about and use BEM naming convention.
  Body background is #121212 (dark), so main text color should be #ffffff.
*/

:root {
  --primary-color: #26A9E0; /* 淡蓝色 */
  --secondary-color: #FFFFFF;
  --text-color-dark-bg: #FFFFFF;
  --text-color-light-bg: #333333;
  --button-login-color: #EA7C07;
  --background-color: #121212; /* Inherited from shared.css */
  --border-color: #333333; /* For elements on dark background */
}

.page-about {
  color: var(--text-color-dark-bg); /* Main text color for dark body background */
  background-color: var(--background-color); /* Ensure consistency */
  line-height: 1.6;
  font-family: 'Arial', sans-serif;
  padding-bottom: 60px; /* Space before footer */
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 600px;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  overflow: hidden; /* Prevent image overflow */
}

.page-about__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability, not changing color hue */
}

.page-about__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for text readability */
  border-radius: 10px;
}

.page-about__main-heading {
  font-size: 3.5em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__intro-text {
  font-size: 1.3em;
  color: var(--secondary-color);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Ensure padding is included in width */
  max-width: 100%; /* Ensure button doesn't overflow */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-about__btn-primary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: 2px solid var(--primary-color);
}

.page-about__btn-primary:hover {
  background-color: #1f8ec4; /* A slightly darker shade */
  border-color: #1f8ec4;
}

.page-about__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

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

/* General Section Styling */
.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-about__section-heading {
  font-size: 2.8em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
}

.page-about__section-heading::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.page-about__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--text-color-dark-bg);
}

/* Dark Section */
.page-about__dark-section {
  background-color: #1a1a1a; /* Slightly lighter dark for contrast */
  color: var(--text-color-dark-bg);
}

/* Mission Vision Section */
.page-about__mission-vision-section .page-about__section-heading {
  color: var(--primary-color);
}

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

.page-about__card {
  background-color: var(--secondary-color);
  color: var(--text-color-light-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.page-about__card-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 15px;
  text-align: center;
}

.page-about__card-description,
.page-about__value-list {
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-color-light-bg);
  text-align: justify;
}

.page-about__value-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-about__value-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-about__value-list li::before {
  content: '✔';
  color: var(--primary-color);
  position: absolute;
  left: 0;
  top: 0;
}

/* History Section */
.page-about__history-section {
  background-color: var(--background-color);
  color: var(--text-color-dark-bg);
}

.page-about__timeline {
  position: relative;
  padding: 20px 0;
  margin: 0 20px 40px;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  background-color: var(--primary-color);
  transform: translateX(-50%);
}

.page-about__timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  margin-bottom: 20px;
}

.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::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  border-radius: 50%;
  top: 25px;
  z-index: 1;
  border: 4px solid var(--background-color);
}

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

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

.page-about__timeline-year {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 10px;
}

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

.page-about__history-image {
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  height: auto;
}

/* Why Choose Us Section */
.page-about__why-choose-us .page-about__section-heading {
  color: var(--primary-color);
}

.page-about__grid-2-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 30px;
}

.page-about__feature-card {
  background-color: var(--secondary-color);
  color: var(--text-color-light-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%; /* Make icons circular */
  background-color: var(--primary-color); /* Background for icons */
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}