/* style/about.css */

/* Biến CSS cho màu sắc */
:root {
  --primary-color: #FFD700; /* Vàng kim */
  --secondary-color: #DC143C; /* Đỏ thẫm */
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #121212;
  --card-background-dark: rgba(255, 255, 255, 0.08);
  --border-color-dark: rgba(255, 255, 255, 0.15);
}

/* Cấu trúc chung cho trang Giới thiệu */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Text màu sáng trên nền tối của body */
  background-color: var(--background-dark); /* Nền tối */
  padding-top: 120px; /* Đảm bảo nội dung không bị header cố định che khuất */
}

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

.page-about__section-title {
  font-size: 3em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-about__section-intro {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 60px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__hero-section {
  background: linear-gradient(135deg, var(--background-dark) 0%, rgba(20, 20, 20, 0.9) 100%), url('[GALLERY:about:hero_bg,clb88_nổ_hũ,banner]') no-repeat center center/cover;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--primary-color);
}

.page-about__main-title {
  font-size: 3.8em;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 900;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.page-about__hero-description {
  font-size: 1.3em;
  color: #e0e0e0;
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.8;
}

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

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__cta-button--primary {
  background: var(--primary-color);
  color: var(--background-dark);
}

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

.page-about__cta-button--secondary {
  background: var(--secondary-color);
  color: var(--text-light);
}

.page-about__cta-button--secondary:hover {
  background: #b21032;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-about__mission-vision-section,
.page-about__values-section,
.page-about__history-section,
.page-about__faq-section,
.page-about__contact-cta-section {
  padding: 80px 0;
  background-color: var(--background-dark);
}

.page-about__mission-vision-section {
  border-bottom: 1px solid var(--border-color-dark);
}

.page-about__mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.page-about__mission-card,
.page-about__vision-card {
  background: var(--card-background-dark);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color-dark);
}

.page-about__mission-card:hover,
.page-about__vision-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-about__card-image {
  width: 180px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__card-text {
  font-size: 1.1em;
  color: #e0e0e0;
  line-height: 1.7;
}

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

.page-about__value-item {
  background: var(--card-background-dark);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color-dark);
}

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

.page-about__value-icon {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-about__value-title {
  font-size: 1.6em;
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-about__value-description {
  font-size: 1em;
  color: #e0e0e0;
  line-height: 1.6;
}

.page-about__history-content {
  font-size: 1.1em;
  color: #e0e0e0;
  line-height: 1.7;
  margin-bottom: 40px;
  text-align: center;
}

.page-about__timeline {
  position: relative;
  max-width: 800px;
  margin: 60px auto;
  padding: 20px 0;
}

.page-about__timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--primary-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.page-about__timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
  box-sizing: border-box;
}

.page-about__timeline-item::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  right: -17px;
  background-color: var(--primary-color);
  border: 4px solid var(--secondary-color);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.page-about__timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.page-about__timeline-item:nth-child(even) {
  left: 50%;
}

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

.page-about__timeline-item h3 {
  font-size: 1.5em;
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 10px;
}

.page-about__timeline-item p {
  font-size: 1em;
  color: #ccc;
}

.page-about__history-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 12px;
  margin-top: 40px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color-dark);
  background: var(--card-background-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-about__faq-question:hover {
  background: rgba(255, 255, 255, 0.12);
}

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-light);
  pointer-events: none; /* Ngăn h3 chặn sự kiện click */
}

.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn icon chặn sự kiện click */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg); /* Biểu tượng xoay khi mở */
  color: var(--secondary-color);
}

.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;
  color: #ccc;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* Đủ lớn để chứa mọi nội dung */
  padding: 20px 25px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid var(--border-color-dark);
  border-radius: 0 0 8px 8px;
}

.page-about__faq-answer p {
  margin: 0;
  font-size: 1.05em;
  line-height: 1.7;
}

.page-about__contact-cta-section {
  text-align: center;
  background: linear-gradient(90deg, var(--background-dark) 0%, rgba(20, 20, 20, 0.9) 100%), url('[GALLERY:about:contact_bg,clb88_nổ_hũ,support]') no-repeat center center/cover;
  padding: 80px 0;
  border-top: 3px solid var(--primary-color);
}

.page-about__contact-text {
  font-size: 1.2em;
  color: #e0e0e0;
  max-width: 800px;
  margin: 0 auto 30px auto;
  line-height: 1.8;
}

.page-about__inline-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-about__inline-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.text-highlight {
  color: var(--primary-color);
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 3em;
  }

  .page-about__section-title {
    font-size: 2.5em;
  }

  .page-about__card-image {
    width: 150px;
  }

  .page-about__value-icon {
    width: 80px;
  }
}

@media (max-width: 768px) {
  .page-about {
    padding-top: 100px !important; /* Mobile padding-top */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-about__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-about__hero-section,
  .page-about__mission-vision-section,
  .page-about__values-section,
  .page-about__history-section,
  .page-about__faq-section,
  .page-about__contact-cta-section {
    padding: 60px 0;
  }

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

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

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
  }

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

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

  .page-about__section-intro {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

  .page-about__mission-vision-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-about__card-image {
    width: 120px;
  }

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

  .page-about__card-text {
    font-size: 0.95em;
  }

  .page-about__values-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-about__value-icon {
    width: 70px;
  }

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

  .page-about__value-description {
    font-size: 0.9em;
  }

  .page-about__history-content {
    font-size: 1em;
  }

  .page-about__timeline::before {
    left: 18px;
  }

  .page-about__timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 15px;
  }

  .page-about__timeline-item::after {
    left: 11px;
    margin-left: 0;
  }

  .page-about__timeline-item:nth-child(odd),
  .page-about__timeline-item:nth-child(even) {
    left: 0;
    text-align: left;
  }

  .page-about__history-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__faq-list {
    max-width: 100%;
  }

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

  .page-about__faq-question h3 {
    font-size: 1.05em;
  }

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

  .page-about__contact-text {
    font-size: 1em;
  }

  .page-about img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__mission-card,
  .page-about__vision-card,
  .page-about__value-item,
  .page-about__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 确保 các phần tử con bên trong container cũng được điều chỉnh */
  .page-about__hero-section .page-about__container,
  .page-about__mission-vision-section .page-about__container,
  .page-about__values-section .page-about__container,
  .page-about__history-section .page-about__container,
  .page-about__faq-section .page-about__container,
  .page-about__contact-cta-section .page-about__container {
    padding-left: 0;
    padding-right: 0;
  }

  /* Điều chỉnh lại padding cho các item bên trong grid/list */
  .page-about__mission-card,
  .page-about__vision-card,
  .page-about__value-item,
  .page-about__faq-item {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 2em;
  }

  .page-about__section-title {
    font-size: 1.8em;
  }

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

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

  .page-about__faq-question h3 {
    font-size: 1em;
  }
}