/* style/about.css */

/* Căn chỉnh màu sắc dựa trên nền body tối màu #08160F */
.page-about {
  color: #F2FFF6; /* Text Main */
  background-color: transparent; /* Body đã có background từ shared.css */
}

.page-about__section-title {
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2;
}

.page-about__text-block {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
}

.page-about__image-content {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 40px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 40px;
}

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

.page-about__hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-about__main-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: #F2FFF6; /* Text Main */
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__description {
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.6;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-about__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

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

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

/* Card Styling */
.page-about__card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  color: #F2FFF6; /* Text Main */
}

.page-about__card:hover {
  transform: translateY(-5px);
}

.page-about__card-title {
  font-size: 24px;
  font-weight: 700;
  color: #57E38D; /* Glow */
  margin-bottom: 15px;
}

.page-about__card-text {
  font-size: 16px;
  line-height: 1.7;
  color: #A7D9B8; /* Text Secondary */
}

/* Mission & Vision Grid */
.page-about__grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

.page-about__feature-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__feature-title {
  font-size: 22px;
  font-weight: 700;
  color: #57E38D; /* Glow */
  margin-bottom: 15px;
}

.page-about__feature-item p {
  font-size: 15px;
  line-height: 1.7;
  color: #A7D9B8; /* Text Secondary */
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-about__btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  background: transparent;
  color: #57E38D; /* Glow */
  border: 2px solid #57E38D;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

.page-about__btn-secondary:hover {
  background: #57E38D;
  color: #08160F; /* Background color for contrast */
  box-shadow: 0 4px 10px rgba(87, 227, 141, 0.4);
}

/* Responsible Gaming List */
.page-about__responsible-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__responsible-list li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 16px;
}

.page-about__responsible-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2AD16F; /* Button gradient start color for accent */
  font-weight: bold;
  font-size: 20px;
  line-height: 1;
}

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  transition: background-color 0.3s ease;
  user-select: none;
}

.page-about__faq-question:hover {
  background-color: #0A4B2C; /* Deep Green */
}

.page-about__faq-qtext {
  flex-grow: 1;
}

.page-about__faq-toggle {
  font-size: 24px;
  line-height: 1;
  width: 24px;
  text-align: center;
  color: #57E38D; /* Glow */
}

.page-about__faq-answer {
  padding: 0 25px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: #A7D9B8; /* Text Secondary */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-about__faq-item.active .page-about__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding-top: 10px;
}

.page-about__faq-answer p {
  margin-bottom: 10px;
  color: #A7D9B8;
}

.page-about__faq-link {
  color: #57E38D; /* Glow */
  text-decoration: none;
  font-weight: 500;
}

.page-about__faq-link:hover {
  text-decoration: underline;
}

/* Details tag specific CSS for native functionality */
details.page-about__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

details.page-about__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  cursor: pointer;
  transition: background-color 0.3s ease;
  user-select: none;
}

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

details.page-about__faq-item summary:hover {
  background-color: #0A4B2C; /* Deep Green */
}

details.page-about__faq-item[open] .page-about__faq-answer {
  max-height: none; /* Let content define height */
  padding-top: 10px;
}

/* CTA Section */
.page-about__cta-section {
  text-align: center;
  padding: 80px 20px;
}

.page-about__cta-button {
  margin-top: 40px;
}

/* Color Utility Classes */
.page-about__dark-section {
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
}

.page-about__text-main {
  color: #F2FFF6;
}

.page-about__text-secondary {
  color: #A7D9B8;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__hero-section {
    padding: 40px 15px;
  }

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

  .page-about__grid-container,
  .page-about__features-grid {
    gap: 20px;
  }

  .page-about__main-title {
    font-size: clamp(28px, 4.5vw, 48px);
  }

  .page-about__description {
    font-size: clamp(16px, 2.2vw, 20px);
  }
}

@media (max-width: 768px) {
  /* Global mobile image/video/button rules */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper,
  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-about__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px !important;
  }

  .page-about__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-about__section-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 30px;
  }

  .page-about__main-title {
    font-size: clamp(28px, 7vw, 40px);
  }

  .page-about__description {
    font-size: 16px;
  }

  .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 15px;
    font-size: 16px;
  }
  
  .page-about__cta-buttons {
    flex-direction: column !important;
    gap: 15px;
  }

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

  .page-about__faq-answer {
    padding: 0 20px 15px;
    font-size: 14px;
  }
  
  .page-about__responsible-list li {
    padding-left: 25px;
  }

  .page-about__responsible-list li::before {
    font-size: 18px;
  }

  .page-about__card {
    padding: 25px;
  }
  
  .page-about__cta-section {
    padding: 60px 15px;
  }
}