/* Màu sắc cơ bản */
:root {
  --tc88-primary-red: #C91F17;
  --tc88-secondary-red: #E53935;
  --tc88-card-bg: #D32F2F;
  --tc88-background: #B71C1C;
  --tc88-text-main: #FFF5E1;
  --tc88-border: #F2B544;
  --tc88-glow: #FFCC66;
  --tc88-gold: #F4D34D;
  --tc88-deep-red: #7A0E0E;
  --tc88-button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
}

/* Body background color from shared.css is #f0f2f5 (light), so text should be dark */
.page-about {
  color: #333333; /* Default text color for light background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 10px; /* Small top padding for first section */
}

.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-bottom: 30px;
  background-color: #fff;
  box-sizing: border-box;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.8); /* Slightly dim the image for text readability */
}

.page-about__hero-content {
  max-width: 900px;
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin-top: -80px; /* Overlap with image slightly */
  position: relative;
  z-index: 2;
}

.page-about__main-title {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--tc88-deep-red);
  max-width: 100%;
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
}

.page-about__subtitle {
  font-size: 18px;
  margin-bottom: 30px;
  color: #555;
}

.page-about__cta-button {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: var(--tc88-button-gradient);
  color: #ffffff; /* White text for gold button */
  border: 2px solid var(--tc88-gold);
  box-shadow: 0 4px 15px rgba(244, 211, 77, 0.4);
}

.page-about__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 211, 77, 0.6);
}

.page-about__btn-secondary {
  background: #ffffff;
  color: var(--tc88-primary-red);
  border: 2px solid var(--tc88-primary-red);
  margin-left: 15px;
}

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

.page-about__btn-text-link {
  color: var(--tc88-primary-red);
  text-decoration: underline;
  font-weight: 600;
  font-size: 15px;
  display: inline-block;
  margin-top: 10px;
}

.page-about__btn-text-link:hover {
  color: var(--tc88-deep-red);
}

.page-about__section {
  padding: 60px 0;
  margin-bottom: 20px;
}

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

.page-about__section-title {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--tc88-primary-red);
}

.page-about__section-title--light {
  color: var(--tc88-text-main);
}

.page-about__content-wrapper {
  font-size: 16px;
  line-height: 1.7;
  text-align: justify;
}

.page-about__content-wrapper p {
  margin-bottom: 15px;
  color: #444;
}

.page-about__value-list {
  list-style: none;
  padding: 0;
  margin-top: 25px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.page-about__value-list li {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 5px solid var(--tc88-primary-red);
  color: #333;
}

.page-about__value-list li strong {
  color: var(--tc88-primary-red);
}

.page-about__dark-section {
  background: var(--tc88-background);
  color: var(--tc88-text-main);
}

.page-about__dark-section .page-about__content-wrapper p {
  color: var(--tc88-text-main);
}

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

.page-about__card {
  background: var(--tc88-card-bg);
  color: var(--tc88-text-main);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-about__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-about__card-title {
  font-size: 22px;
  font-weight: 700;
  padding: 20px 20px 10px;
  color: var(--tc88-gold);
}

.page-about__card-text {
  font-size: 15px;
  padding: 0 20px 20px;
  flex-grow: 1;
  color: var(--tc88-text-main);
}

.page-about__button-group {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
  gap: 15px;
}

.page-about__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin-bottom: 30px;
}

.page-about__light-bg {
  background: #f8f9fa;
}

/* FAQ styles */
details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-about__faq-item summary.page-about__faq-question::-webkit-details-marker {
  display: none;
}
details.page-about__faq-item summary.page-about__faq-question:hover {
  background: #f5f5f5;
}
.page-about__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333;
}
.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-about__faq-item .page-about__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #444;
}
details.page-about__faq-item .page-about__faq-answer p {
  margin-bottom: 10px;
}

/* Responsive styles */
@media (max-width: 1023px) {
  .page-about__hero-content {
    margin-top: -50px;
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
    padding-top: 8px; /* Slightly less padding on mobile */
  }
  
  .page-about__hero-section {
    padding-bottom: 20px;
  }

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

  .page-about__hero-content {
    padding: 25px 15px;
    margin-top: -60px;
    max-width: calc(100% - 30px);
  }

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

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

  .page-about__cta-button,
  .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;
    font-size: 16px;
    margin-left: 0 !important;
    margin-top: 10px;
  }
  
  .page-about__button-group {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }

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

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

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

  .page-about__content-wrapper {
    font-size: 15px;
  }

  .page-about__value-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-about__value-list li {
    padding: 15px;
  }

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

  .page-about__card-image {
    height: 200px;
  }

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

  .page-about__card-text {
    font-size: 14px;
    padding: 0 15px 15px;
  }

  .page-about__image-full-width {
    margin-bottom: 20px;
  }

  details.page-about__faq-item summary.page-about__faq-question {
    padding: 15px;
  }
  .page-about__faq-qtext {
    font-size: 15px;
  }
  .page-about__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  details.page-about__faq-item .page-about__faq-answer {
    padding: 0 15px 15px;
  }

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