.page-resources-j88-newest-games {
  font-family: 'Arial', sans-serif;
  color: #333;
  line-height: 1.6;
}

.page-resources-j88-newest-games .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-resources-j88-newest-games .section-title {
  font-size: 2.5em;
  color: #4B0082; /* Main color */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 10px;
}

.page-resources-j88-newest-games .section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFC107; /* Auxiliary color */
  border-radius: 2px;
}

.page-resources-j88-newest-games p {
  margin-bottom: 15px;
  color: #444;
}

.page-resources-j88-newest-games .btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  white-space: nowrap;
}

.page-resources-j88-newest-games .btn-primary {
  background-color: #4B0082; /* Main color */
  color: #fff;
  border: 2px solid #4B0082;
}

.page-resources-j88-newest-games .btn-primary:hover {
  background-color: #5d00a3;
  border-color: #5d00a3;
  transform: translateY(-2px);
}

.page-resources-j88-newest-games .btn-secondary {
  background-color: #FFC107; /* Auxiliary color */
  color: #4B0082;
  border: 2px solid #FFC107;
}

.page-resources-j88-newest-games .btn-secondary:hover {
  background-color: #e6b000;
  border-color: #e6b000;
  transform: translateY(-2px);
}

.page-resources-j88-newest-games .btn-tertiary {
  background-color: transparent;
  color: #4B0082;
  border: 2px solid #4B0082;
}

.page-resources-j88-newest-games .btn-tertiary:hover {
  background-color: #4B0082;
  color: #fff;
}

.page-resources-j88-newest-games .btn-small {
  padding: 8px 18px;
  font-size: 0.9em;
}

.page-resources-j88-newest-games .btn-large {
  padding: 15px 35px;
  font-size: 1.1em;
}

.page-resources-j88-newest-games .inline-link {
  color: #4B0082;
  text-decoration: underline;
}

.page-resources-j88-newest-games .inline-link:hover {
  color: #FFC107;
}

/* Hero Section */
.page-resources-j88-newest-games .hero-section {
  background: linear-gradient(135deg, #4B0082, #6a0dad);
  color: #fff;
  padding: 100px 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-resources-j88-newest-games .hero-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-resources-j88-newest-games .hero-content {
  max-width: 800px;
}

.page-resources-j88-newest-games .hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFC107; /* Auxiliary color for highlight */
}

.page-resources-j88-newest-games .hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #e0e0e0;
}

.page-resources-j88-newest-games .hero-buttons .btn {
  margin: 0 10px;
}

.page-resources-j88-newest-games .hero-image-wrapper {
  margin-top: 40px;
}

.page-resources-j88-newest-games .hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* About J88 Slots Section */
.page-resources-j88-newest-games .about-j88-slots-section {
  padding: 60px 0;
  background-color: #f9f9f9;
  text-align: center;
}

.page-resources-j88-newest-games .about-j88-slots-section p {
  max-width: 800px;
  margin: 0 auto 20px auto;
  font-size: 1.1em;
}

/* Newest Games Showcase Section */
.page-resources-j88-newest-games .newest-games-showcase-section {
  padding: 60px 0;
  background-color: #fff;
}

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

.page-resources-j88-newest-games .game-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-j88-newest-games .game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-resources-j88-newest-games .game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-resources-j88-newest-games .game-title {
  font-size: 1.5em;
  color: #4B0082;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-resources-j88-newest-games .game-description {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 20px;
  padding: 0 15px;
}

/* J88 Advantages Section */
.page-resources-j88-newest-games .j88-advantages-section {
  padding: 60px 0;
  background-color: #f0f0f0;
}

.page-resources-j88-newest-games .advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-resources-j88-newest-games .advantage-item {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.page-resources-j88-newest-games .advantage-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-resources-j88-newest-games .advantage-item h3 {
  font-size: 1.3em;
  color: #4B0082;
  margin-bottom: 10px;
}

.page-resources-j88-newest-games .advantage-item p {
  color: #555;
}

/* J88 Promotions Section */
.page-resources-j88-newest-games .j88-promotions-section {
  padding: 60px 0;
  background-color: #fff;
}

.page-resources-j88-newest-games .promotion-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources-j88-newest-games .promotion-item {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
}

.page-resources-j88-newest-games .promotion-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-resources-j88-newest-games .promotion-item h3 {
  font-size: 1.4em;
  color: #4B0082;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-resources-j88-newest-games .promotion-item p {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 20px;
  padding: 0 15px;
}

/* How To Play J88 Section */
.page-resources-j88-newest-games .how-to-play-j88-section {
  padding: 60px 0;
  background-color: #f0f0f0;
}

.page-resources-j88-newest-games .steps-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-resources-j88-newest-games .steps-list li {
  background-color: #fff;
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.page-resources-j88-newest-games .step-icon-wrapper {
  background-color: #FFC107; /* Auxiliary color */
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.page-resources-j88-newest-games .step-icon {
  width: 40px;
  height: 40px;
  filter: invert(20%) sepia(80%) saturate(2000%) hue-rotate(240deg) brightness(60%) contrast(120%); /* Make icons dark purple */
}

.page-resources-j88-newest-games .steps-list h3 {
  font-size: 1.4em;
  color: #4B0082;
  margin-bottom: 10px;
}

.page-resources-j88-newest-games .steps-list p {
  color: #555;
}

/* J88 Tips Section */
.page-resources-j88-newest-games .j88-tips-section {
  padding: 60px 0;
  background-color: #fff;
}

.page-resources-j88-newest-games .tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-resources-j88-newest-games .tip-item {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.page-resources-j88-newest-games .tip-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: invert(20%) sepia(80%) saturate(2000%) hue-rotate(240deg) brightness(60%) contrast(120%); /* Make icons dark purple */
}

.page-resources-j88-newest-games .tip-item h3 {
  font-size: 1.3em;
  color: #4B0082;
  margin-bottom: 10px;
}

.page-resources-j88-newest-games .tip-item p {
  color: #555;
}

/* FAQ Section */
.page-resources-j88-newest-games .faq-section {
  padding: 60px 0;
  background-color: #f0f0f0;
}

.page-resources-j88-newest-games .faq-accordion {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

.page-resources-j88-newest-games .accordion-item {
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.page-resources-j88-newest-games .accordion-header {
  background-color: #fff;
  color: #4B0082;
  padding: 18px 25px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-resources-j88-newest-games .accordion-header::after {
  content: '+';
  font-size: 1.5em;
  color: #FFC107;
}

.page-resources-j88-newest-games .accordion-header.active {
  background-color: #f5f5f5;
}

.page-resources-j88-newest-games .accordion-header.active::after {
  content: '-';
}

.page-resources-j88-newest-games .accordion-content {
  padding: 0 25px;
  background-color: #fff;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-resources-j88-newest-games .accordion-content.active {
  max-height: 200px; /* Adjust based on content */
  padding: 15px 25px 25px 25px;
}

.page-resources-j88-newest-games .accordion-content p {
  color: #555;
}

/* CTA Section */
.page-resources-j88-newest-games .cta-section {
  background: linear-gradient(45deg, #4B0082, #6a0dad);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}

.page-resources-j88-newest-games .cta-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FFC107;
}

.page-resources-j88-newest-games .cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-j88-newest-games .cta-section .btn {
  margin: 0 15px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources-j88-newest-games .hero-title {
    font-size: 3em;
  }
  .page-resources-j88-newest-games .section-title {
    font-size: 2em;
  }
  .page-resources-j88-newest-games .game-grid, .page-resources-j88-newest-games .advantages-grid, .page-resources-j88-newest-games .promotion-list, .page-resources-j88-newest-games .steps-list, .page-resources-j88-newest-games .tips-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources-j88-newest-games .hero-section .container {
    flex-direction: column;
  }
  .page-resources-j88-newest-games .hero-title {
    font-size: 2.5em;
  }
  .page-resources-j88-newest-games .hero-description {
    font-size: 1em;
  }
  .page-resources-j88-newest-games .hero-buttons .btn {
    margin: 10px 0;
    display: block;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
  .page-resources-j88-newest-games .cta-title {
    font-size: 2.2em;
  }
  .page-resources-j88-newest-games .cta-section .btn {
    margin: 10px 0;
    display: block;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
  .page-resources-j88-newest-games .game-grid, .page-resources-j88-newest-games .advantages-grid, .page-resources-j88-newest-games .promotion-list, .page-resources-j88-newest-games .steps-list, .page-resources-j88-newest-games .tips-grid {
    grid-template-columns: 1fr;
  }
  .page-resources-j88-newest-games .accordion-header {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-resources-j88-newest-games .accordion-content {
    padding: 0 20px;
  }
  .page-resources-j88-newest-games .accordion-content.active {
    padding: 10px 20px 20px 20px;
  }
}