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

/* Container for main content */
.page-about__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, not var(--header-offset) */
  padding-bottom: 50px;
  background-color: #E53935; /* Main brand color for hero background */
  color: #ffffff; /* White text for hero section */
  text-align: center;
}

.page-about__hero-image {
  max-height: 500px; /* Limit hero image height */
  overflow: hidden;
  margin-bottom: 30px;
}

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

.page-about__hero-content {
  position: relative;
  z-index: 1; /* Ensure content is above image if any overlap */
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-about__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-about__description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Section Titles */
.page-about__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #E53935; /* Main brand color for section titles */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
}

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

.page-about__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  color: #E53935;
  margin-top: 30px;
  margin-bottom: 15px;
}

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

.page-about__paragraph--white {
  color: #ffffff;
}

/* Call to Action Buttons */
.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box; /* Include padding and border in element's total width and height */
  max-width: 100%; /* Ensure buttons don't exceed container width */
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-about__btn-secondary:hover {
  background-color: #E53935;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-about__btn-primary--small {
  padding: 10px 20px;
  font-size: 0.95rem;
}

/* Text Block styles */
.page-about__text-block {
  padding: 40px 0;
  background-color: #ffffff; /* Default background for text blocks */
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-about__text-block p {
  margin-bottom: 15px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.page-about__text-block ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-about__text-block li {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.page-about__introduction-section {
  padding-top: 60px;
  background-color: #F5F7FA; /* Light background for this section */
  box-shadow: none;
  border-radius: 0;
}

/* Advantages Section (Dark Background) */
.page-about__advantages-section {
  background-color: #E53935; /* Main brand color */
  color: #ffffff;
  padding: 60px 0;
}

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

.page-about__feature-card {
  background-color: #ffffff; /* Card background */
  color: #333333; /* Text color for cards */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.page-about__feature-card img {
  width: 100%;
  height: 200px; /* Fixed height for feature card images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-about__feature-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #E53935;
  margin-bottom: 15px;
}

.page-about__feature-card p {
  font-size: 1rem;
  margin-bottom: 20px;
  flex-grow: 1; /* Allow paragraph to take available space */
}

/* Team Section */
.page-about__team-section {
  background-color: #F5F7FA;
  padding: 60px 0;
}

.page-about__team-gallery {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-about__team-gallery img {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
}

/* Achievements Section */
.page-about__achievements-section {
  background-color: #ffffff;
  padding: 60px 0;
}

.page-about__award-gallery {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-about__award-gallery img {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
}

.page-about__partner-list {
  list-style-type: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 30px;
}

.page-about__partner-list li {
  background-color: #f0f0f0;
  padding: 10px 15px;
  border-radius: 5px;
  text-align: center;
  font-weight: 500;
  color: #333333;
}

/* Future Section (Dark Background) */
.page-about__future-section {
  background-color: #E53935; /* Main brand color */
  color: #ffffff;
  padding: 60px 0;
}

.page-about__future-image {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  margin-bottom: 40px;
}

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

/* Contact Section */
.page-about__contact-section {
  background-color: #F5F7FA;
  padding: 60px 0;
  text-align: center;
}

.page-about__contact-list,
.page-about__support-channels {
  list-style-type: none;
  padding: 0;
  margin-top: 20px;
  margin-bottom: 30px;
  text-align: left;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__contact-list li,
.page-about__support-channels li {
  margin-bottom: 10px;
  font-size: 1.05rem;
  color: #333333;
}

.page-about__contact-list a,
.page-about__support-channels a {
  color: #E53935;
  text-decoration: none;
  font-weight: 600;
}

.page-about__contact-list a:hover,
.page-about__support-channels a:hover {
  text-decoration: underline;
}

.page-about__final-cta {
  margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-about__container {
    padding: 0 15px;
  }

  .page-about__hero-image {
    max-height: 400px;
  }

  .page-about__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* HERO Chủ Đạo Khu Vực */
  .page-about__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
    padding-bottom: 40px;
  }

  .page-about__hero-image {
    max-height: 300px;
    margin-bottom: 20px;
  }

  .page-about__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-about__description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  /* Khu vực văn bản dài */
  .page-about__section-title {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
    margin-bottom: 30px;
    padding-top: 40px;
  }

  .page-about__sub-title {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-about__text-block {
    padding: 30px 15px; /* Adjust padding for mobile */
  }

  .page-about__text-block p,
  .page-about__text-block li {
    font-size: 0.95rem;
  }

  /* Hình ảnh và container chung */
  .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,
  .page-about__feature-card,
  .page-about__team-gallery,
  .page-about__award-gallery,
  .page-about__future-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Nút và container nút */
  .page-about__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    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: 12px 20px; /* Adjust button padding */
    font-size: 1rem;
  }

  /* Các khối đặc trưng */
  .page-about__features-grid {
    grid-template-columns: 1fr; /* Single column for features on mobile */
    gap: 25px;
  }

  .page-about__feature-card img {
     /* Adjust height for mobile */
  }

  .page-about__partner-list {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Smaller grid for partners */
  }
}