/* style/about.css */
/* body đã padding-top: var(--header-offset) từ shared.css, không lặp lại ở đây */

:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --bg-dark: #08160F;
  --card-bg: #11271B;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Mặc định cho nền tối */
  background-color: var(--bg-dark);
}

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

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
  padding-top: 10px; /* Nhỏ gọn để không trùng với body padding-top */
  background-color: var(--bg-dark);
  color: var(--text-main);
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-about__hero-content {
  text-align: center;
  max-width: 900px;
}

.page-about__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* Sử dụng clamp cho responsive H1 */
  font-weight: 700;
  line-height: 1.2;
  color: var(--gold-color);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-about__description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.page-about__description-secondary {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

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

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Đảm bảo responsive */
  white-space: normal; /* Cho phép xuống dòng */
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: var(--btn-gradient);
  color: #ffffff; /* Luôn là màu trắng cho nút chính */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-about__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-about__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--bg-dark);
  transform: translateY(-3px);
}

/* Sections */
.page-about__mission-vision,
.page-about__products-overview,
.page-about__contact-faq {
  padding: 80px 0;
  background-color: #ffffff; /* Nền trắng cho các phần này */
  color: #333333; /* Chữ đen cho nền trắng */
}

.page-about__why-choose-us,
.page-about__responsible-gaming {
  padding: 80px 0;
  background-color: var(--bg-dark);
  color: var(--text-main);
}

.page-about__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--gold-color);
}

.page-about__mission-vision .page-about__section-title,
.page-about__products-overview .page-about__section-title,
.page-about__contact-faq .page-about__section-title {
  color: var(--primary-color); /* Màu xanh chính cho tiêu đề trên nền sáng */
}

.page-about__sub-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-about__mission-vision .page-about__text-block h3 {
  color: var(--primary-color);
}

.page-about__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-about__content-grid > div {
  flex: 1;
}

.page-about__image-block img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Why Choose Us */
.page-about__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-about__feature-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.page-about__feature-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  object-fit: contain;
}

.page-about__feature-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--gold-color);
}

.page-about__feature-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.page-about__cta-bottom {
  text-align: center;
  margin-top: 60px;
}

/* Products Overview */
.page-about__products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-about__product-card {
  background-color: #f8f8f8; /* Nền sáng cho card sản phẩm */
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
  color: #333333; /* Chữ đen cho nền sáng */
  text-align: center;
}

.page-about__product-card a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-about__product-card a:hover {
  text-decoration: underline;
}

.page-about__product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-about__product-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-about__product-text {
  font-size: 0.9rem;
  color: #555555;
}

/* Responsible Gaming */
.page-about__responsible-gaming .page-about__content-grid {
  flex-direction: row-reverse; /* Đảo ngược thứ tự cho phần này */
}

/* Contact & FAQ */
.page-about__contact-info {
  text-align: center;
  margin-bottom: 60px;
}

.page-about__contact-info .page-about__btn-primary,
.page-about__contact-info .page-about__btn-secondary {
  margin: 10px;
}

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

.page-about__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  background-color: #f5f5f5;
  color: var(--primary-color);
  transition: background-color 0.3s ease;
  list-style: none; /* For details summary */
}

.page-about__faq-item summary::-webkit-details-marker {
  display: none;
}

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

.page-about__faq-answer {
  padding: 15px 25px;
  font-size: 0.95rem;
  color: #555555;
  border-top: 1px solid #e0e0e0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-about__content-grid {
    flex-direction: column;
  }
  .page-about__responsible-gaming .page-about__content-grid {
    flex-direction: column;
  }
  .page-about__hero-image-wrapper {
    margin-left: 20px;
    margin-right: 20px;
  }
}

@media (max-width: 768px) {
  .page-about__container {
    padding: 0 15px;
  }
  .page-about__hero-section {
    padding: 40px 0;
    padding-top: 10px; /* Vẫn giữ 10px */
  }
  .page-about__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-left: 15px;
    margin-right: 15px;
  }
  .page-about__description {
    font-size: 1rem;
    margin-left: 15px;
    margin-right: 15px;
  }
  .page-about__section-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
    margin-left: 15px;
    margin-right: 15px;
  }
  .page-about__sub-title {
    font-size: 1.4rem;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-about__features-grid,
  .page-about__products-grid {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  .page-about__feature-card,
  .page-about__product-card {
    padding: 20px;
  }
  .page-about__image-block img,
  .page-about__hero-image,
  .page-about__feature-icon,
  .page-about__product-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-about__hero-image-wrapper,
  .page-about__mission-vision,
  .page-about__why-choose-us,
  .page-about__products-overview,
  .page-about__responsible-gaming,
  .page-about__contact-faq,
  .page-about__content-grid,
  .page-about__features-grid,
  .page-about__products-grid,
  .page-about__cta-bottom,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-about__faq-answer {
    padding: 10px 20px;
  }
}

/* Ensure no image filters */
.page-about img {
  filter: none !important;
}