/* style/about.css */

/* Biến CSS cho màu sắc */
:root {
  --primary-color: #1A202C;
  --secondary-color: #FFD700;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light: #f4f4f4;
  --border-color: #e0e0e0;
}

/* General Page Styles */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark); /* Default text color for light body background */
  background-color: var(--background-light);
}

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

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

.page-about__section-title {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 40px;
  font-weight: bold;
}

.page-about__dark-section {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

.page-about__dark-section .page-about__section-title {
  color: var(--secondary-color);
}

.page-about__light-bg {
  background-color: var(--background-light);
  color: var(--text-color-dark);
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
  background: linear-gradient(135deg, var(--primary-color), #343a40);
  overflow: hidden;
}

.page-about__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-about__hero-image-main {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 40px;
}

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

.page-about__main-heading {
  font-size: 48px;
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

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

.page-about__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-about__cta-button:hover {
  background: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Grid Layouts */
.page-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
  margin-top: 40px;
}

.page-about__grid--reverse {
  grid-template-columns: 1fr 1fr;
}

.page-about__grid--reverse .page-about__card--image {
  order: 2;
}

.page-about__grid--reverse .page-about__card--text {
  order: 1;
}

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

/* Card Styles */
.page-about__card {
  background: var(--text-color-light);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  border: 1px solid var(--border-color);
}

.page-about__dark-section .page-about__card {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-color-light);
  border-color: rgba(255, 255, 255, 0.15);
}

.page-about__dark-section .page-about__card-title {
  color: var(--secondary-color);
}

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

.page-about__card-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__card p {
  font-size: 16px;
  color: var(--text-color-dark);
}

.page-about__dark-section .page-about__card p {
  color: var(--text-color-light);
}

.page-about__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-about__image--small {
  max-width: 100%;
  margin-top: 20px;
}

/* Value List */
.page-about__value-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  width: 100%;
}

.page-about__value-item {
  font-size: 17px;
  margin-bottom: 12px;
  padding-left: 30px;
  position: relative;
  color: var(--text-color-dark);
}

.page-about__dark-section .page-about__value-item {
  color: var(--text-color-light);
}

.page-about__value-item::before {
  content: '✓';
  color: var(--secondary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/* Advantage Section */
.page-about__advantage-item {
  background: var(--text-color-light);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: left;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}

.page-about__dark-section .page-about__advantage-item {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-color-light);
  border-color: rgba(255, 255, 255, 0.15);
}

.page-about__advantage-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__dark-section .page-about__advantage-title {
  color: var(--secondary-color);
}

.page-about__advantage-item p {
  font-size: 16px;
  color: var(--text-color-dark);
  flex-grow: 1;
}

.page-about__dark-section .page-about__advantage-item p {
  color: var(--text-color-light);
}

/* CTA Section */
.page-about__section--cta {
  background: linear-gradient(90deg, var(--primary-color) 0%, #343a40 100%);
  color: var(--text-color-light);
  padding: 80px 0;
}

.page-about__container--cta-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-about__section-title--cta {
  color: var(--secondary-color);
  font-size: 40px;
  margin-bottom: 20px;
}

.page-about__cta-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 700px;
  color: var(--text-color-light);
}

.page-about__cta-button--large {
  padding: 20px 60px;
  font-size: 22px;
}

/* FAQ Section */
.page-about__section--faq {
  background-color: var(--background-light);
  padding: 80px 0;
}

.page-about__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--text-color-light);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--text-color-light);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-about__faq-question:hover {
  background: #f9f9f9;
}

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none;
}

.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #fdfdfd;
  color: var(--text-color-dark);
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid var(--border-color);
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(180deg);
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-about__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-about__grid--reverse .page-about__card--image {
    order: initial;
  }

  .page-about__grid--reverse .page-about__card--text {
    order: initial;
  }

  .page-about__hero-image-main {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  /* Fixed Header Spacing for Mobile */
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__main-heading {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-about__intro-text {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-about__cta-button {
    padding: 15px 35px;
    font-size: 18px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-about__container {
    padding: 0 15px;
  }

  .page-about__card {
    padding: 25px;
  }

  .page-about__card-title {
    font-size: 20px;
  }

  .page-about__advantage-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__advantage-item {
    padding: 25px;
  }

  .page-about__advantage-title {
    font-size: 20px;
  }

  .page-about__cta-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-about__cta-button--large {
    padding: 18px 40px;
    font-size: 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__faq-question {
    padding: 15px 20px;
  }

  .page-about__faq-question h3 {
    font-size: 16px;
  }

  .page-about__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

  .page-about__faq-answer {
    padding: 0 20px;
  }

  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px 20px !important;
  }

  /* Image Responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__advantage-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-about__main-heading {
    font-size: 28px;
  }

  .page-about__section-title {
    font-size: 24px;
  }

  .page-about__cta-button {
    font-size: 16px;
    padding: 12px 25px;
  }

  .page-about__card-title {
    font-size: 18px;
  }

  .page-about__advantage-title {
    font-size: 18px;
  }

  .page-about__section-title--cta {
    font-size: 30px;
  }

  .page-about__cta-button--large {
    font-size: 18px;
    padding: 15px 30px;
  }

  .page-about__faq-question h3 {
    font-size: 15px;
  }
}