/* style/index-our-advantages.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-index-our-advantages {
  font-family: 'Arial', sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  line-height: 1.6;
}

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

.page-index-our-advantages__section {
  padding: 60px 0;
}

.page-index-our-advantages__section--intro .page-index-our-advantages__container,
.page-index-our-advantages__section--cta .page-index-our-advantages__container,
.page-index-our-advantages__section--faq .page-index-our-advantages__container {
  background-color: #11271B; /* Card BG */
  padding: 40px;
  border-radius: 10px;
}

.page-index-our-advantages__section--final-cta .page-index-our-advantages__container {
  background-color: #0A4B2C; /* Deep Green */
  padding: 50px 40px;
  border-radius: 10px;
  text-align: center;
}

.page-index-our-advantages__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #F2C14E; /* Gold */
  line-height: 1.2;
}

.page-index-our-advantages__sub-title {
  font-size: 1.8em;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-index-our-advantages__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
}

.page-index-our-advantages__highlight-text {
  color: #57E38D; /* Glow */
  font-weight: bold;
}

.page-index-our-advantages__inline-link {
  color: #2AD16F; /* Lighter green for links */
  text-decoration: underline;
}

.page-index-our-advantages__inline-link:hover {
  color: #57E38D; /* Glow */
}

/* Hero Section */
.page-index-our-advantages__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: #0A4B2C; /* Deep Green */
  overflow: hidden;
}

.page-index-our-advantages__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 20px;
}

.page-index-our-advantages__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
  max-width: 1200px; /* Constrain image width */
  margin: 0 auto;
}

.page-index-our-advantages__hero-content {
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-index-our-advantages__hero-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  font-weight: 700;
  color: #F2C14E; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index-our-advantages__hero-description {
  font-size: 1.2em;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-index-our-advantages__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.page-index-our-advantages__btn-primary,
.page-index-our-advantages__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.page-index-our-advantages__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button */
  color: #F2FFF6; /* Text Main */
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-index-our-advantages__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-index-our-advantages__btn-secondary {
  background-color: transparent;
  color: #2AD16F; /* Lighter green */
  border: 2px solid #2AD16F; /* Lighter green */
}

.page-index-our-advantages__btn-secondary:hover {
  background-color: #2AD16F;
  color: #08160F; /* Background */
}

.page-index-our-advantages__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-index-our-advantages__cta-buttons--center {
  justify-content: center;
  margin-top: 40px;
}

/* Feature Grid / Cards */
.page-index-our-advantages__feature-grid,
.page-index-our-advantages__game-categories,
.page-index-our-advantages__support-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index-our-advantages__card,
.page-index-our-advantages__game-card,
.page-index-our-advantages__support-card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #F2FFF6; /* Text Main */
}

.page-index-our-advantages__card:hover,
.page-index-our-advantages__game-card:hover,
.page-index-our-advantages__support-card:hover {
  transform: translateY(-10px);
}

.page-index-our-advantages__card-image,
.page-index-our-advantages__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-index-our-advantages__support-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 20px auto;
  display: block;
}

.page-index-our-advantages__card-title,
.page-index-our-advantages__game-title,
.page-index-our-advantages__support-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-index-our-advantages__game-title a {
  color: #F2C14E; /* Gold */
  text-decoration: none;
}

.page-index-our-advantages__game-title a:hover {
  color: #57E38D; /* Glow */
  text-decoration: underline;
}

.page-index-our-advantages__card-text,
.page-index-our-advantages__game-description,
.page-index-our-advantages__support-text {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
}

/* Promotion List */
.page-index-our-advantages__promotion-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-index-our-advantages__promotion-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  color: #F2FFF6; /* Text Main */
}

.page-index-our-advantages__promotion-title {
  font-size: 1.6em;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
}

.page-index-our-advantages__promotion-description {
  font-size: 1.05em;
  color: #A7D9B8; /* Text Secondary */
}

/* Content Grid (Image & Text) */
.page-index-our-advantages__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-index-our-advantages__image-block {
  flex: 1;
}

.page-index-our-advantages__content-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.page-index-our-advantages__text-content {
  flex: 1;
}

/* Step List */
.page-index-our-advantages__step-list {
  list-style: none;
  padding: 0;
  counter-reset: step-counter;
  margin-top: 40px;
}

.page-index-our-advantages__step-item {
  background-color: #0A4B2C; /* Deep Green */
  border: 1px solid #2E7A4E; /* Border */
  border-left: 5px solid #F2C14E; /* Gold */
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 15px;
  position: relative;
  color: #F2FFF6; /* Text Main */
}

.page-index-our-advantages__step-item::before {
  counter-increment: step-counter;
  content: "Bước " counter(step-counter) ":";
  position: absolute;
  left: -20px;
  top: -15px;
  background-color: #F2C14E; /* Gold */
  color: #08160F; /* Background */
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.9em;
}

.page-index-our-advantages__step-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  margin-bottom: 10px;
  margin-left: 60px; /* Offset for step number */
}

.page-index-our-advantages__step-description {
  font-size: 1em;
  color: #A7D9B8; /* Text Secondary */
  margin-left: 60px; /* Offset for step number */
}

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

.page-index-our-advantages__faq-item {
  background-color: #0A4B2C; /* Deep Green */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6; /* Text Main */
}

.page-index-our-advantages__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  background-color: #11A84E; /* Main color */
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.page-index-our-advantages__faq-question:hover {
  background-color: #22C768; /* Auxiliary color */
}

.page-index-our-advantages__faq-qtext {
  flex-grow: 1;
}

.page-index-our-advantages__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-index-our-advantages__faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  color: #A7D9B8; /* Text Secondary */
}

.page-index-our-advantages__faq-answer p {
  margin-top: 15px;
  margin-bottom: 15px;
}

.page-index-our-advantages__faq-item[open] .page-index-our-advantages__faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding-bottom: 25px;
  transition: max-height 0.5s ease-in, padding 0.5s ease-in;
}

.page-index-our-advantages__faq-item[open] .page-index-our-advantages__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-our-advantages__hero-title {
    font-size: 3em;
  }

  .page-index-our-advantages__section-title {
    font-size: 2em;
  }

  .page-index-our-advantages__content-grid {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-index-our-advantages__hero-section {
    padding-bottom: 40px;
  }

  .page-index-our-advantages__hero-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    line-height: 1.3;
  }

  .page-index-our-advantages__hero-description {
    font-size: 1em;
  }

  .page-index-our-advantages__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index-our-advantages__btn-primary,
  .page-index-our-advantages__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
  }

  .page-index-our-advantages__section {
    padding: 40px 0;
  }

  .page-index-our-advantages__section--intro .page-index-our-advantages__container,
  .page-index-our-advantages__section--cta .page-index-our-advantages__container,
  .page-index-our-advantages__section--faq .page-index-our-advantages__container,
  .page-index-our-advantages__section--final-cta .page-index-our-advantages__container {
    padding: 25px;
  }

  .page-index-our-advantages__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-index-our-advantages__sub-title {
    font-size: 1.5em;
  }

  .page-index-our-advantages__text-block {
    font-size: 1em;
  }

  .page-index-our-advantages__feature-grid,
  .page-index-our-advantages__game-categories,
  .page-index-our-advantages__support-channels {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index-our-advantages__card,
  .page-index-our-advantages__game-card,
  .page-index-our-advantages__support-card {
    padding: 20px;
  }

  .page-index-our-advantages__card-image,
  .page-index-our-advantages__game-image {
    height: 180px;
  }

  .page-index-our-advantages__support-icon {
    width: 80px;
    height: 80px;
  }

  .page-index-our-advantages__card-title,
  .page-index-our-advantages__game-title,
  .page-index-our-advantages__support-title {
    font-size: 1.3em;
  }

  .page-index-our-advantages__promotion-item {
    padding: 20px;
  }

  .page-index-our-advantages__promotion-title {
    font-size: 1.4em;
  }

  .page-index-our-advantages__step-item {
    padding: 15px 20px;
    border-left-width: 3px;
  }

  .page-index-our-advantages__step-item::before {
    left: -15px;
    top: -10px;
    font-size: 0.8em;
    padding: 3px 8px;
  }

  .page-index-our-advantages__step-title {
    font-size: 1.2em;
    margin-left: 45px;
  }

  .page-index-our-advantages__step-description {
    margin-left: 45px;
  }

  .page-index-our-advantages__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  /* Mobile image responsiveness */
  .page-index-our-advantages img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-index-our-advantages__hero-image-wrapper,
  .page-index-our-advantages__image-block,
  .page-index-our-advantages__card,
  .page-index-our-advantages__game-card,
  .page-index-our-advantages__support-card,
  .page-index-our-advantages__promotion-item,
  .page-index-our-advantages__step-item,
  .page-index-our-advantages__faq-item,
  .page-index-our-advantages__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Specific padding adjustment for containers that have background */
  .page-index-our-advantages__section--intro .page-index-our-advantages__container,
  .page-index-our-advantages__section--cta .page-index-our-advantages__container,
  .page-index-our-advantages__section--faq .page-index-our-advantages__container,
  .page-index-our-advantages__section--final-cta .page-index-our-advantages__container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .page-index-our-advantages__hero-content {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-index-our-advantages__hero-cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
}

/* Ensure content section images are not smaller than 200px (desktop) */
.page-index-our-advantages__card-image,
.page-index-our-advantages__game-image,
.page-index-our-advantages__content-image {
  min-width: 200px;
  min-height: 200px;
}

.page-index-our-advantages__support-icon {
  min-width: 100px;
  min-height: 100px;
}

@media (max-width: 768px) {
  .page-index-our-advantages__card-image,
  .page-index-our-advantages__game-image,
  .page-index-our-advantages__content-image {
    min-width: unset;
    min-height: unset;
  }
  .page-index-our-advantages__support-icon {
    min-width: unset;
    min-height: unset;
  }
}