/* style/index-sc88-app-features.css */

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

/* Base styles for the page content, ensuring contrast with dark body background */
.page-index-sc88-app-features {
  background-color: var(--sc88-background);
  color: var(--sc88-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-index-sc88-app-features__section {
  padding: 60px 0;
  text-align: center;
}

.page-index-sc88-app-features__section-title {
  color: var(--sc88-text-main);
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 2.5vw, 2.8rem); /* H1/H2 font-size clamp */
  font-weight: bold;
  line-height: 1.2;
}

.page-index-sc88-app-features__section-text {
  color: var(--sc88-text-secondary);
  max-width: 900px;
  margin: 0 auto 30px auto;
  font-size: 1.1rem;
}

/* Hero Section */
.page-index-sc88-app-features__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* body handles padding-top, this is for decorative spacing */
  background-color: var(--sc88-deep-green);
  overflow: hidden;
}

.page-index-sc88-app-features__hero-image-wrapper {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-index-sc88-app-features__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-index-sc88-app-features__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
  text-align: center;
  color: var(--sc88-text-main);
}

.page-index-sc88-app-features__main-title {
  color: var(--sc88-gold-color);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-index-sc88-app-features__hero-description {
  color: var(--sc88-text-secondary);
  font-size: 1.2rem;
  margin-bottom: 40px;
}

.page-index-sc88-app-features__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-index-sc88-app-features__cta-buttons--centered {
  margin-top: 30px;
}

.page-index-sc88-app-features__btn-primary,
.page-index-sc88-app-features__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-index-sc88-app-features__btn-primary {
  background: var(--sc88-button-gradient);
  color: var(--sc88-text-main);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

.page-index-sc88-app-features__btn-secondary {
  background: transparent;
  color: var(--sc88-gold-color);
  border: 2px solid var(--sc88-gold-color);
}

.page-index-sc88-app-features__btn-secondary:hover {
  background: var(--sc88-gold-color);
  color: var(--sc88-background);
  transform: translateY(-3px);
}

/* Features Grid */
.page-index-sc88-app-features__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-index-sc88-app-features__feature-card {
  background-color: var(--sc88-card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--sc88-border-color);
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
}

.page-index-sc88-app-features__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-index-sc88-app-features__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-index-sc88-app-features__card-title {
  color: var(--sc88-gold-color);
  font-size: 1.5rem;
  margin-bottom: 15px;
  flex-grow: 0;
}

.page-index-sc88-app-features__card-text {
  color: var(--sc88-text-secondary);
  font-size: 1rem;
  flex-grow: 1;
}

/* Image Content */
.page-index-sc88-app-features__image-content {
  width: 100%;
  height: auto;
  max-width: 900px;
  margin: 40px auto 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
}

/* Benefits List */
.page-index-sc88-app-features__benefits-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 900px;
  text-align: left;
}

.page-index-sc88-app-features__list-item {
  background-color: var(--sc88-card-bg);
  border: 1px solid var(--sc88-border-color);
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 15px;
  color: var(--sc88-text-secondary);
  font-size: 1.1rem;
  line-height: 1.5;
  position: relative;
  padding-left: 45px;
}

.page-index-sc88-app-features__list-item::before {
  content: '✅'; /* Checkmark icon */
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
}

.page-index-sc88-app-features__list-item strong {
  color: var(--sc88-text-main);
}

/* Guide List (Ordered List) */
.page-index-sc88-app-features__guide-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 900px;
  counter-reset: guide-step;
  text-align: left;
}

.page-index-sc88-app-features__guide-list .page-index-sc88-app-features__list-item {
  background-color: var(--sc88-card-bg);
  border: 1px solid var(--sc88-border-color);
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 15px;
  color: var(--sc88-text-secondary);
  font-size: 1.1rem;
  line-height: 1.5;
  position: relative;
  padding-left: 60px; /* Adjust padding for number */
}

.page-index-sc88-app-features__guide-list .page-index-sc88-app-features__list-item::before {
  counter-increment: guide-step;
  content: counter(guide-step);
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--sc88-gold-color);
  color: var(--sc88-background);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1em;
}

/* FAQ Section */
.page-index-sc88-app-features__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-index-sc88-app-features__faq-item {
  background-color: var(--sc88-card-bg);
  border: 1px solid var(--sc88-border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-index-sc88-app-features__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  color: var(--sc88-text-main);
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.page-index-sc88-app-features__faq-question:hover {
  background-color: rgba(var(--sc88-border-color), 0.5);
}

.page-index-sc88-app-features__faq-qtext {
  flex-grow: 1;
}

.page-index-sc88-app-features__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--sc88-gold-color);
}

/* For details tag, hide default marker */
.page-index-sc88-app-features__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-index-sc88-app-features__faq-item summary {
  list-style: none;
}

.page-index-sc88-app-features__faq-answer {
  padding: 0 25px 20px 25px;
  color: var(--sc88-text-secondary);
  font-size: 1rem;
  line-height: 1.5;
}

.page-index-sc88-app-features__faq-answer p {
  margin: 0;
  color: var(--sc88-text-secondary);
}

/* Call to Action Section */
.page-index-sc88-app-features__call-to-action {
  padding: 80px 20px;
  background-color: var(--sc88-deep-green);
  border-radius: 15px;
  margin-top: 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-index-sc88-app-features__container,
  .page-index-sc88-app-features__hero-content,
  .page-index-sc88-app-features__cta-buttons,
  .page-index-sc88-app-features__features-grid,
  .page-index-sc88-app-features__benefits-list,
  .page-index-sc88-app-features__guide-list,
  .page-index-sc88-app-features__faq-list,
  .page-index-sc88-app-features__call-to-action {
    padding-left: 15px;
    padding-right: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index-sc88-app-features__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-index-sc88-app-features__hero-image-wrapper {
    max-height: 50vh;
  }

  .page-index-sc88-app-features__hero-image,
  .page-index-sc88-app-features__image-content,
  .page-index-sc88-app-features__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-index-sc88-app-features__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-index-sc88-app-features__hero-description {
    font-size: 1rem;
  }

  .page-index-sc88-app-features__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-index-sc88-app-features__btn-primary,
  .page-index-sc88-app-features__btn-secondary {
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

  .page-index-sc88-app-features__section {
    padding: 40px 0;
  }

  .page-index-sc88-app-features__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .page-index-sc88-app-features__section-text,
  .page-index-sc88-app-features__card-text,
  .page-index-sc88-app-features__list-item,
  .page-index-sc88-app-features__faq-answer p {
    font-size: 0.95rem;
  }

  .page-index-sc88-app-features__feature-card {
    padding: 20px;
  }

  .page-index-sc88-app-features__card-title {
    font-size: 1.3rem;
  }

  .page-index-sc88-app-features__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-index-sc88-app-features__main-title {
    font-size: clamp(1.8rem, 9vw, 2.2rem);
  }
  .page-index-sc88-app-features__hero-description {
    font-size: 0.9rem;
  }
  .page-index-sc88-app-features__section-title {
    font-size: clamp(1.4rem, 7vw, 1.8rem);
  }
}