/* General styles for the page */
.page-w7-jl {
  font-family: Arial, sans-serif;
  color: #eee;
  background-color: #1a1a2e; /* Dark background for casino theme */
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Section titles */
.page-w7-jl__section-title {
  font-size: 2.5rem;
  color: #ffcc00; /* Gold/yellow for highlights */
  text-align: center;
  margin-bottom: 20px;
  padding: 20px 15px 10px;
}

.page-w7-jl__section-subtitle {
  font-size: 1.1rem;
  color: #ccc;
  text-align: center;
  margin-bottom: 40px;
  padding: 0 15px;
}

/* Call to action buttons */
.page-w7-jl__cta-button {
  display: inline-block;
  background-color: #e44d26; /* Orange/red for action */
  color: #fff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.page-w7-jl__cta-button:hover {
  background-color: #f76c4a;
}

/* Hero Section */
.page-w7-jl__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  padding-top: 10px; /* Small padding, assuming body padding-top handles main offset */
}

.page-w7-jl__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-w7-jl__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability, not color change */
  max-width: 100%;
}

.page-w7-jl__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

.page-w7-jl__hero-title {
  font-size: 3.2rem;
  margin-bottom: 20px;
  color: #ffcc00;
  line-height: 1.2;
}

.page-w7-jl__hero-description {
  font-size: 1.3rem;
  margin-bottom: 30px;
  color: #ccc;
}

/* Game Categories Section */
.page-w7-jl__game-categories-section {
  padding: 60px 20px;
  background-color: #2a2a4a;
}

.page-w7-jl__game-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1200px;
}

.page-w7-jl__game-item {
  background-color: #333;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  box-sizing: border-box; /* For mobile responsiveness */
}

.page-w7-jl__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
  max-width: 100%;
  box-sizing: border-box; /* For mobile responsiveness */
}

.page-w7-jl__game-title {
  font-size: 1.8rem;
  color: #ffcc00;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-w7-jl__game-description {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
  word-wrap: break-word; /* Ensure text wraps */
  overflow-wrap: break-word;
}

.page-w7-jl__game-button {
  display: inline-block;
  background-color: #007bff;
  color: #fff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: auto; /* Push button to bottom */
}

.page-w7-jl__game-button:hover {
  background-color: #0056b3;
}

/* Download App Section */
.page-w7-jl__download-app-section {
  padding: 60px 20px;
  background-color: #1a1a2e;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-w7-jl__download-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-w7-jl__download-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-w7-jl__download-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  box-sizing: border-box; /* For mobile responsiveness */
}

.page-w7-jl__app-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-w7-jl__app-features li {
  color: #ccc;
  font-size: 1.1rem;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.page-w7-jl__app-features li::before {
  content: '✓';
  color: #ffcc00;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* About Section */
.page-w7-jl__about-section {
  padding: 60px 20px;
  background-color: #2a2a4a;
}

.page-w7-jl__about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-w7-jl__about-item {
  background-color: #333;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  box-sizing: border-box; /* For mobile responsiveness */
}

.page-w7-jl__about-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  max-width: 100%;
  box-sizing: border-box; /* For mobile responsiveness */
}

.page-w7-jl__about-heading {
  font-size: 1.5rem;
  color: #ffcc00;
  margin-bottom: 10px;
}

.page-w7-jl__about-text {
  font-size: 1rem;
  color: #ccc;
  word-wrap: break-word; /* Ensure text wraps */
  overflow-wrap: break-word;
}

/* FAQ Section */
.page-w7-jl__faq-section {
  padding: 60px 20px;
  background-color: #1a1a2e;
}

.page-w7-jl__faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-w7-jl__faq-item {
  background-color: #333;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-w7-jl__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #444;
  cursor: pointer;
  user-select: none;
  border-bottom: 1px solid #555;
}

.page-w7-jl__faq-question:hover {
  background-color: #555;
}

.page-w7-jl__faq-heading {
  font-size: 1.2rem;
  color: #ffcc00;
  margin: 0;
  flex-grow: 1;
}

.page-w7-jl__faq-toggle {
  font-size: 1.8rem;
  font-weight: bold;
  color: #ffcc00;
  margin-left: 20px;
  transition: transform 0.3s ease;
}

.page-w7-jl__faq-item.active .page-w7-jl__faq-toggle {
  transform: rotate(45deg); /* Change + to X visually */
}

.page-w7-jl__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px; /* Initial padding */
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
}

.page-w7-jl__faq-item.active .page-w7-jl__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px 25px !important;
  opacity: 1;
}

.page-w7-jl__faq-answer p {
  margin: 0;
  color: #ccc;
  font-size: 1rem;
  word-wrap: break-word; /* Ensure text wraps */
  overflow-wrap: break-word;
}

/* Floating Buttons */
.page-w7-jl__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.page-w7-jl__floating-button {
  background-color: #e44d26;
  color: #fff;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-w7-jl__floating-button:hover {
  background-color: #f76c4a;
  transform: translateY(-2px);
}

.page-w7-jl__floating-button--login {
  background-color: #007bff; /* Different color for distinction */
}

.page-w7-jl__floating-button--login:hover {
  background-color: #0056b3;
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-w7-jl__hero-title {
    font-size: 2.2rem;
  }

  .page-w7-jl__hero-description {
    font-size: 1.1rem;
  }

  .page-w7-jl__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
  }

  .page-w7-jl__section-title {
    font-size: 2rem;
    padding: 15px 10px 5px;
  }

  .page-w7-jl__section-subtitle {
    font-size: 1rem;
    margin-bottom: 20px;
    padding: 0 10px;
  }

  .page-w7-jl__game-list {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
    padding: 0 10px;
  }

  .page-w7-jl__game-item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 10px 20px; /* Adjust padding */
  }

  .page-w7-jl__game-image {
    height: 180px; /* Slightly smaller on mobile */
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-w7-jl__game-title {
    font-size: 1.5rem;
    padding: 0 10px;
  }

  .page-w7-jl__game-description {
    font-size: 0.95rem;
    padding: 0 10px;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }

  .page-w7-jl__download-app-section {
    flex-direction: column;
    padding: 40px 15px;
  }

  .page-w7-jl__download-content {
    text-align: center;
    margin-bottom: 30px;
  }

  .page-w7-jl__app-features {
    padding-left: 0;
  }

  .page-w7-jl__app-features li {
    text-align: left;
    padding-left: 25px;
  }

  .page-w7-jl__about-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
    padding: 0 10px;
  }

  .page-w7-jl__about-item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 20px; /* Adjust padding */
  }

  .page-w7-jl__about-icon {
    width: 150px; /* Smaller icons on mobile */
    height: 150px;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-w7-jl__faq-container {
    padding: 0 10px;
  }

  .page-w7-jl__faq-question {
    padding: 15px 20px;
  }

  .page-w7-jl__faq-heading {
    font-size: 1.1rem;
  }

  .page-w7-jl__faq-toggle {
    font-size: 1.5rem;
  }

  .page-w7-jl__faq-answer {
    padding: 0 20px;
  }

  .page-w7-jl__faq-item.active .page-w7-jl__faq-answer {
    padding: 15px 20px !important;
  }

  .page-w7-jl__floating-buttons {
    bottom: 15px;
    right: 15px;
    flex-direction: row; /* Horizontal on mobile to save vertical space */
    width: calc(100% - 30px);
    justify-content: space-around;
    gap: 5px;
  }

  .page-w7-jl__floating-button {
    flex: 1;
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}