/* style/resources-jj88-platform-advantages.css */

:root {
  --primary-color: #0A2239;
  --secondary-color: #E0B04C;
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --background-dark: #000;
  --card-bg-dark: rgba(255, 255, 255, 0.08);
  --border-color-dark: rgba(255, 255, 255, 0.15);
}

.page-resources-jj88-platform-advantages {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-light); /* Body background is dark, so text should be light */
  background-color: var(--background-dark);
}

/* Ensure all images are responsive by default */
.page-resources-jj88-platform-advantages img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.page-resources-jj88-platform-advantages__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 0 60px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background: linear-gradient(135deg, var(--primary-color) 0%, rgba(10, 34, 57, 0.8) 100%);
  overflow: hidden;
}

.page-resources-jj88-platform-advantages__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3;
}

.page-resources-jj88-platform-advantages__main-title {
  font-size: 3.5em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-resources-jj88-platform-advantages__hero-description {
  font-size: 1.3em;
  color: var(--text-color-light);
  margin-bottom: 40px;
  max-width: 800px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.page-resources-jj88-platform-advantages__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  border: none;
  cursor: pointer;
}

.page-resources-jj88-platform-advantages__cta-button:hover {
  background: darken(var(--secondary-color), 10%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.page-resources-jj88-platform-advantages__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-resources-jj88-platform-advantages__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
  color: var(--text-color-light);
}

.page-resources-jj88-platform-advantages__section-text {
  font-size: 1em;
  max-width: 900px;
  margin: 0 auto 20px;
  color: var(--text-color-light);
}

.page-resources-jj88-platform-advantages__advantages-section {
  padding: 80px 0;
  background-color: var(--primary-color);
}

.page-resources-jj88-platform-advantages__dark-section {
  background-color: var(--primary-color);
  color: var(--text-color-light);
}

.page-resources-jj88-platform-advantages__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources-jj88-platform-advantages__advantage-card {
  background: var(--card-bg-dark);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color-dark);
  display: flex;
  flex-direction: column;
}

.page-resources-jj88-platform-advantages__advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

.page-resources-jj88-platform-advantages__card-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  flex-grow: 0;
}

.page-resources-jj88-platform-advantages__card-text {
  font-size: 1em;
  color: var(--text-color-light);
  flex-grow: 1;
}

.page-resources-jj88-platform-advantages__card-text a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-resources-jj88-platform-advantages__card-text a:hover {
  text-decoration: underline;
}

.page-resources-jj88-platform-advantages__responsible-gaming-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

.page-resources-jj88-platform-advantages__responsible-gaming-section .page-resources-jj88-platform-advantages__section-title {
  color: var(--secondary-color);
}

.page-resources-jj88-platform-advantages__responsible-gaming-section .page-resources-jj88-platform-advantages__section-intro,
.page-resources-jj88-platform-advantages__responsible-gaming-section .page-resources-jj88-platform-advantages__section-text {
  color: #f0f0f0;
}

.page-resources-jj88-platform-advantages__responsible-gaming-section a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-resources-jj88-platform-advantages__responsible-gaming-section a:hover {
  text-decoration: underline;
}

.page-resources-jj88-platform-advantages__faq-section {
  padding: 80px 0;
  background-color: var(--primary-color);
}

.page-resources-jj88-platform-advantages__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources-jj88-platform-advantages__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid var(--border-color-dark);
}

.page-resources-jj88-platform-advantages__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-bg-dark);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources-jj88-platform-advantages__faq-question:hover {
  background: rgba(255, 255, 255, 0.12);
}

.page-resources-jj88-platform-advantages__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-color-light);
  pointer-events: none;
}

.page-resources-jj88-platform-advantages__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-resources-jj88-platform-advantages__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-color-light);
}

.page-resources-jj88-platform-advantages__faq-item.active .page-resources-jj88-platform-advantages__faq-answer {
  max-height: 2000px !important; 
  padding: 20px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

.page-resources-jj88-platform-advantages__faq-item.active .page-resources-jj88-platform-advantages__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg);
}

.page-resources-jj88-platform-advantages__faq-answer p {
  margin: 0;
  color: var(--text-color-light);
}

.page-resources-jj88-platform-advantages__faq-answer a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-resources-jj88-platform-advantages__faq-answer a:hover {
  text-decoration: underline;
}

.page-resources-jj88-platform-advantages__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
  background-color: #1a1a1a;
}

.page-resources-jj88-platform-advantages__cta-bottom-section .page-resources-jj88-platform-advantages__section-title {
  color: var(--secondary-color);
}

.page-resources-jj88-platform-advantages__cta-bottom-section .page-resources-jj88-platform-advantages__section-intro {
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-resources-jj88-platform-advantages__cta-bottom-section a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-resources-jj88-platform-advantages__cta-bottom-section a:hover {
  text-decoration: underline;
}

.page-resources-jj88-platform-advantages__cta-button--large {
  padding: 18px 50px;
  font-size: 1.3em;
  border-radius: 10px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-resources-jj88-platform-advantages {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-resources-jj88-platform-advantages__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-resources-jj88-platform-advantages__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-resources-jj88-platform-advantages__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-resources-jj88-platform-advantages__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources-jj88-platform-advantages__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-resources-jj88-platform-advantages__section-intro {
    font-size: 1em;
    margin-bottom: 40px;
  }

  .page-resources-jj88-platform-advantages__advantages-section,
  .page-resources-jj88-platform-advantages__responsible-gaming-section,
  .page-resources-jj88-platform-advantages__faq-section,
  .page-resources-jj88-platform-advantages__cta-bottom-section {
    padding: 40px 0;
  }

  .page-resources-jj88-platform-advantages__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-resources-jj88-platform-advantages__advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources-jj88-platform-advantages__advantage-card {
    padding: 20px;
  }

  .page-resources-jj88-platform-advantages__card-image {
    height: 180px;
  }

  .page-resources-jj88-platform-advantages__card-title {
    font-size: 1.3em;
  }

  .page-resources-jj88-platform-advantages__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-resources-jj88-platform-advantages__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-resources-jj88-platform-advantages__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-resources-jj88-platform-advantages__faq-answer {
    padding: 0 15px;
  }
  
  .page-resources-jj88-platform-advantages__faq-item.active .page-resources-jj88-platform-advantages__faq-answer {
    padding: 15px !important;
  }

  .page-resources-jj88-platform-advantages__cta-button--large {
    padding: 15px 30px;
    font-size: 1.1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Ensure all content containers and images do not cause horizontal scroll */
  .page-resources-jj88-platform-advantages__hero-image,
  .page-resources-jj88-platform-advantages__card-image,
  .page-resources-jj88-platform-advantages img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
}