/* style/about.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-about {
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Example font */
  line-height: 1.6;
}

/* Section padding and max-width for content areas */
.page-about__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding-top: 10px; /* Small top padding as body handles header offset */
  background-color: #08160F; /* Ensure background color for the section */
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%; /* Ensure image wrapper spans full width */
  overflow: hidden;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 400px; /* Ensure minimum height for hero image */
}

.page-about__hero-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
  box-sizing: border-box;
  z-index: 1; /* Ensure content is above any potential background effects */
  position: relative;
}

.page-about__main-title {
  color: #F2FFF6; /* Text Main */
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.page-about__intro-text {
  color: #A7D9B8; /* Text Secondary */
  font-size: 1.1rem;
  margin-bottom: 30px;
}

/* CTA Buttons */
.page-about__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-about__btn-primary,
.page-about__btn-secondary,
.page-about__btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  border: none;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
  transform: translateY(-2px);
}

.page-about__btn-secondary {
  background-color: transparent;
  color: #2AD16F; /* Green from primary button gradient */
  border: 2px solid #2AD16F;
}

.page-about__btn-secondary:hover {
  background-color: rgba(42, 209, 111, 0.1);
  color: #F2FFF6;
  border-color: #F2FFF6;
  transform: translateY(-2px);
}

.page-about__btn-link {
  background-color: #11A84E; /* Main color */
  color: #F2FFF6; /* Text Main */
  border: none;
  padding: 10px 20px;
  min-width: unset;
}

.page-about__btn-link:hover {
  background-color: #22C768; /* Auxiliary color */
}

/* General Section Titles */
.page-about__section-title {
  color: #F2FFF6; /* Text Main */
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-about__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #11A84E, #22C768);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-about__sub-title {
  color: #2AD16F; /* Highlight color */
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-about__text-block p {
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 15px;
}

.page-about__keyword {
  color: #57E38D; /* Glow color for keywords */
  font-weight: 600;
}

/* Core Values Grid */
.page-about__core-values {
  background-color: #11271B; /* Card BG */
  padding: 80px 20px;
}

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

.page-about__value-item {
  background-color: rgba(17, 168, 78, 0.1); /* Slightly transparent main color */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #2E7A4E; /* Border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__value-title {
  color: #F2FFF6; /* Text Main */
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.page-about__value-item p {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95rem;
}

/* Our Team Section */
.page-about__our-team {
  background-color: #08160F; /* Background */
}

.page-about__team-flex {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-about__team-text {
  flex: 1;
}

.page-about__team-image-wrapper {
  flex: 1;
  max-width: 50%; /* Limit image width in flex */
  overflow: hidden;
  border-radius: 12px;
}

.page-about__team-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

/* Products and Services */
.page-about__products-services {
  background-color: #11271B; /* Card BG */
  padding: 80px 20px;
}

.page-about__products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-about__product-card {
  background-color: rgba(17, 168, 78, 0.15); /* Slightly darker transparent main color */
  padding: 30px;
  border-radius: 12px;
  border: 1px solid #2E7A4E; /* Border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-about__product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(17, 168, 78, 0.4);
}

.page-about__product-title {
  color: #F2FFF6; /* Text Main */
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.page-about__product-card p {
  color: #A7D9B8; /* Text Secondary */
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-about__game-variety-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-top: 40px;
  border-radius: 12px;
}

.page-about__game-variety-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

/* Safety and Security */
.page-about__safety-security {
  background-color: #08160F; /* Background */
}

.page-about__safety-flex {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-about__safety-image-wrapper {
  flex: 1;
  max-width: 50%;
  overflow: hidden;
  border-radius: 12px;
}

.page-about__safety-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

.page-about__safety-text {
  flex: 1;
}

/* Social Responsibility */
.page-about__social-responsibility {
  background-color: #11271B; /* Card BG */
}

/* Why Choose Us */
.page-about__why-choose-us {
  background-color: #08160F; /* Background */
}

.page-about__advantage-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-about__advantage-item {
  background-color: rgba(34, 199, 104, 0.1); /* Auxiliary color transparent */
  border-left: 5px solid #22C768; /* Auxiliary color */
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  color: #A7D9B8; /* Text Secondary */
  font-size: 1.05rem;
  transition: background-color 0.3s ease;
}

.page-about__advantage-item:hover {
  background-color: rgba(34, 199, 104, 0.2);
}

.page-about__advantage-item strong {
  color: #F2FFF6; /* Text Main */
  font-weight: 700;
}

/* FAQ Section */
.page-about__faq-section {
  background-color: #11271B; /* Card BG */
  padding: 80px 20px;
}

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

.page-about__faq-item {
  background-color: rgba(17, 168, 78, 0.1); /* Transparent main color */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

.page-about__faq-question:hover {
  background-color: rgba(17, 168, 78, 0.2);
}

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

.page-about__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: #2AD16F; /* Highlight */
}

.page-about__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #A7D9B8; /* Text Secondary */
  max-height: 0; /* Default for div based FAQ */
  overflow: hidden; /* Default for div based FAQ */
  transition: max-height 0.3s ease-out; /* Default for div based FAQ */
}

/* For <details> tag, the answer will naturally expand */
.page-about__faq-item[open] .page-about__faq-answer {
    max-height: fit-content; /* Allow content to dictate height for details */
    padding-top: 10px;
    transition: none; /* No transition for details */
}

/* Contact Us Section */
.page-about__contact-us {
  background-color: #08160F; /* Background */
  text-align: center;
}

.page-about__contact-us .page-about__text-block p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-about__team-flex,
  .page-about__safety-flex {
    flex-direction: column;
    text-align: center;
  }

  .page-about__team-image-wrapper,
  .page-about__safety-image-wrapper {
    max-width: 80%; /* Adjust for smaller screens */
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-about__content-area {
    padding: 40px 15px;
  }

  .page-about__main-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .page-about__intro-text {
    font-size: 1rem;
  }

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

  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about__btn-link {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    font-size: 0.95rem;
  }

  .page-about__section-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-about__sub-title {
    font-size: clamp(1.3rem, 5vw, 1.8rem);
  }

  .page-about__values-grid,
  .page-about__products-grid {
    grid-template-columns: 1fr;
  }

  /* Images responsive */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__hero-image-wrapper,
  .page-about__team-image-wrapper,
  .page-about__game-variety-image-wrapper,
  .page-about__safety-image-wrapper,
  .page-about__section,
  .page-about__card,
  .page-about__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Important for preventing overflow */
  }

  /* Video responsive - though no video on this page, good to include if it were */
  .page-about video,
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-about__video-section,
  .page-about__video-container,
  .page-about__video-wrapper {
    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; /* body already handles header offset */
  }

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

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

/* Ensure content area images are not small */
.page-about__content-area img {
  min-width: 200px;
  min-height: 200px;
}

/* Specific image width/height for layout slots */
/* This is handled by HTML attributes width/height and max-width: 100%; height: auto; */
/* For example, if a slot is 800x600, HTML img will have width="800" height="600" */
/* CSS will ensure it scales down but doesn't get smaller than 200px */
.page-about img:not(.page-about__hero-image) {
  width: auto; /* Allow natural width or flexbox to determine */
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

/* Specific styling for keywords */
.page-about__keyword {
  color: #57E38D; /* Glow */
  font-weight: 600;
}