/* style/about.css */
/* 
  Màu sắc chính: #0A1931 (Deep Blue)
  Màu sắc phụ: #E0B400 (Gold)
  Body background: #121212 (Dark) -> Text color should be light (#ffffff)
*/

.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default light text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

/* --- 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); /* Ensure content is below fixed header */
  background: linear-gradient(135deg, #0A1931, #1e3a5f); /* A darker gradient to complement gold */
  overflow: hidden; /* Prevent image overflow */
}

.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 {
  width: 100%;
  margin-bottom: 30px;
  position: relative;
  z-index: 1; /* Image behind text content */
}

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

.page-about__hero-content {
  position: absolute; /* Overlay content on image */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2; /* Text content above image */
  text-align: center;
  width: 90%; /* Adjust width for content */
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent dark background for text */
  border-radius: 10px;
}

.page-about__hero-title {
  font-size: 3.5em;
  color: #E0B400; /* Gold color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-about__hero-description {
  font-size: 1.2em;
  color: #f0f0f0; /* Light text for description */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-about__btn-primary {
  background: #E0B400; /* Gold background */
  color: #0A1931; /* Deep blue text */
  border: 2px solid #E0B400;
}

.page-about__btn-primary:hover {
  background: #f0c530;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary {
  background: transparent;
  color: #E0B400; /* Gold text */
  border: 2px solid #E0B400;
}

.page-about__btn-secondary:hover {
  background: #E0B400;
  color: #0A1931;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* --- General Section Styles --- */
.page-about__section {
  padding: 80px 20px;
  background-color: #1a1a1a; /* Slightly lighter dark background for sections */
  color: #ffffff;
}

.page-about__dark-section {
  background-color: #0A1931; /* Main brand color as background */
  color: #ffffff;
}

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

.page-about__container--flex {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.page-about__container--flex-reverse {
  display: flex;
  flex-direction: column-reverse; /* Image after text on desktop, before on mobile */
  gap: 40px;
}

.page-about__content-block {
  flex: 1;
}

.page-about__heading {
  font-size: 2.5em;
  color: #E0B400; /* Gold for main headings */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.3;
}

.page-about__sub-heading {
  font-size: 1.8em;
  color: #E0B400; /* Gold for subheadings */
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-about__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

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

.page-about__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-about__list li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-about__list li strong {
  color: #E0B400;
}

/* --- FAQ Section --- */
.page-about__faq-list {
  margin-top: 40px;
}

.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #1a1a1a; /* Darker background for FAQ items */
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #2a2a2a; /* Slightly lighter dark for question header */
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: #E0B400; /* Gold color for FAQ questions */
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #E0B400;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-about__faq-item.active .page-about__faq-question {
  background: #3a3a3a;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.page-about__faq-item.active .page-about__faq-toggle {
  transform: rotate(45deg); /* Rotate to form 'X' or '−' */
  color: #ffffff;
}

.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.3s ease;
  padding: 0 25px;
  opacity: 0;
  background-color: #1a1a1a;
  color: #f0f0f0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0 0 8px 8px;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* Ensure it expands fully */
  padding: 20px 25px !important;
  opacity: 1;
}

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-about__hero-title {
    font-size: 2.8em;
  }
  .page-about__hero-description {
    font-size: 1.1em;
  }
  .page-about__heading {
    font-size: 2em;
  }
  .page-about__sub-heading {
    font-size: 1.6em;
  }
  .page-about__paragraph, .page-about__list li {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Mobile Hero Section */
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-about__hero-image img {
    border-radius: 4px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__hero-content {
    position: relative; /* Make content flow below image on mobile */
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.6);
  }

  .page-about__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-about__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-about__hero-cta-group {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
  }
  .page-about__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General Sections Mobile */
  .page-about__section {
    padding: 40px 15px;
  }
  .page-about__container {
    padding: 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-about__heading {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-about__sub-heading {
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 15px;
  }
  .page-about__paragraph, .page-about__list li {
    font-size: 0.95em;
  }
  .page-about__image {
    margin: 20px auto;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-about__container--flex,
  .page-about__container--flex-reverse {
    flex-direction: column; /* Stack elements vertically */
    gap: 30px;
  }

  /* FAQ Mobile */
  .page-about__faq-question {
    padding: 15px 20px;
  }
  .page-about__faq-question h3 {
    font-size: 1em;
  }
  .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;
  }
}