.page-789casino {
  font-family: 'Arial', sans-serif;
  color: #f0f0f0;
  background-color: #1a1a2e; /* Dark background */
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
  padding-top: 10px; /* Small padding for the first section, assuming body has header offset */
}

/* General Section Styling */
.page-789casino__section-title {
  font-size: 2.2em;
  color: #e94560; /* Accent color */
  text-align: center;
  margin-bottom: 30px;
  padding: 0 15px;
  font-weight: bold;
}

.page-789casino__section-description {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 15px;
  font-size: 1.1em;
  color: #ccc;
}

/* Buttons */
.page-789casino__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  font-size: 1.1em;
  cursor: pointer;
  border: none;
  box-sizing: border-box; /* Ensure padding is included */
}

.page-789casino__button--primary {
  background-color: #e94560;
  color: #fff;
}

.page-789casino__button--primary:hover {
  background-color: #c73751;
  transform: translateY(-2px);
}

.page-789casino__button--secondary {
  background-color: #3f51b5; /* Another accent color */
  color: #fff;
  margin-left: 15px;
}

.page-789casino__button--secondary:hover {
  background-color: #303f9f;
  transform: translateY(-2px);
}

.page-789casino__button--details {
  background-color: #5f7a8b;
  color: #fff;
  padding: 10px 20px;
  font-size: 1em;
  margin-top: 15px;
}

.page-789casino__button--details:hover {
  background-color: #4a6170;
  transform: translateY(-2px);
}

/* Hero Section */
.page-789casino__hero-section {
  position: relative;
  width: 100%;
  height: 60vh; /* Adjust height for mobile */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-bottom: 40px;
}

.page-789casino__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-789casino__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-789casino__hero-content {
  position: relative;
  z-index: 3;
  color: #fff;
  max-width: 90%;
  padding: 20px;
}

.page-789casino__hero-title {
  font-size: 2.5em;
  margin-bottom: 15px;
  line-height: 1.2;
  color: #fff;
}

.page-789casino__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #ccc;
}

.page-789casino__hero-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on small screens */
}

.page-789casino__hero-buttons .page-789casino__button {
  margin: 10px; /* Adjust margin for wrapped buttons */
}


/* Features Section */
.page-789casino__features-section {
  padding: 50px 20px;
  background-color: #1a1a2e;
}

.page-789casino__features-grid {
  display: grid;
  grid-template-columns: 1fr; /* Single column on mobile */
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-789casino__feature-item {
  text-align: center;
  background-color: #2e2e4a;
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box; /* Crucial for mobile responsiveness */
  width: 100%; /* Ensure it takes full width */
  max-width: 100%; /* Ensure it takes full width */
}

.page-789casino__feature-icon {
  width: 250px; /* Min size 200x200 */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  max-width: 100%; /* Ensure image is responsive */
  box-sizing: border-box;
}

.page-789casino__feature-title {
  font-size: 1.5em;
  color: #e94560;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-789casino__feature-text {
  font-size: 1em;
  color: #ccc;
}

/* Games Section */
.page-789casino__games-section {
  padding: 50px 20px;
  background-color: #21213b;
}

.page-789casino__games-grid {
  display: grid;
  grid-template-columns: 1fr; /* Single column on mobile */
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-789casino__game-card {
  background-color: #2e2e4a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  box-sizing: border-box; /* Crucial for mobile responsiveness */
  width: 100%; /* Ensure it takes full width */
  max-width: 100%; /* Ensure it takes full width */
}

.page-789casino__game-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  max-width: 100%; /* Ensure image is responsive */
  box-sizing: border-box;
}

.page-789casino__game-title {
  font-size: 1.4em;
  color: #e94560;
  margin: 20px 15px 10px;
  font-weight: bold;
}

.page-789casino__game-description {
  font-size: 0.95em;
  color: #ccc;
  padding: 0 15px 20px;
}

/* Providers Section */
.page-789casino__providers-section {
  padding: 50px 20px;
  background-color: #1a1a2e;
}

.page-789casino__providers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-789casino__provider-item {
  background-color: #2e2e4a;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box; /* Crucial for mobile responsiveness */
  width: 100%; /* Ensure it takes full width */
  max-width: 100%; /* Ensure it takes full width */
}

.page-789casino__provider-logo {
  width: 200px; /* Min size 200x200 */
  height: auto;
  object-fit: contain;
  margin-bottom: 10px;
  max-width: 100%; /* Ensure image is responsive */
  box-sizing: border-box;
}

.page-789casino__provider-name {
  font-size: 1em;
  color: #ccc;
  font-weight: bold;
}

/* Payments Section */
.page-789casino__payments-section {
  padding: 50px 20px;
  background-color: #21213b;
}

.page-789casino__payments-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-789casino__payment-item {
  background-color: #2e2e4a;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box; /* Crucial for mobile responsiveness */
  width: 100%; /* Ensure it takes full width */
  max-width: 100%; /* Ensure it takes full width */
}

.page-789casino__payment-logo {
  width: 200px; /* Min size 200x200 */
  height: auto;
  object-fit: contain;
  margin-bottom: 10px;
  max-width: 100%; /* Ensure image is responsive */
  box-sizing: border-box;
}

.page-789casino__payment-name {
  font-size: 1em;
  color: #ccc;
  font-weight: bold;
}

/* Promotions Section */
.page-789casino__promotions-section {
  padding: 50px 20px;
  background-color: #1a1a2e;
}

.page-789casino__promotions-grid {
  display: grid;
  grid-template-columns: 1fr; /* Single column on mobile */
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-789casino__promotion-card {
  background-color: #2e2e4a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  box-sizing: border-box; /* Crucial for mobile responsiveness */
  width: 100%; /* Ensure it takes full width */
  max-width: 100%; /* Ensure it takes full width */
}

.page-789casino__promotion-image {
  width: 100%;
  height: 280px; /* Fixed height for consistency */
  object-fit: cover;
  max-width: 100%; /* Ensure image is responsive */
  box-sizing: border-box;
}

.page-789casino__promotion-title {
  font-size: 1.4em;
  color: #e94560;
  margin: 20px 15px 10px;
  font-weight: bold;
}

.page-789casino__promotion-description {
  font-size: 0.95em;
  color: #ccc;
  padding: 0 15px;
}

/* FAQ Section */
.page-789casino__faq-section {
  padding: 50px 20px;
  background-color: #21213b;
}

.page-789casino__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-789casino__faq-item {
  background-color: #2e2e4a;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  box-sizing: border-box; /* Crucial for mobile responsiveness */
  width: 100%; /* Ensure it takes full width */
  max-width: 100%; /* Ensure it takes full width */
}

.page-789casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  background-color: #3f51b5; /* Question background */
  color: #fff;
  font-weight: bold;
  font-size: 1.1em;
  user-select: none;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.page-789casino__faq-question:hover {
  background-color: #303f9f;
}

.page-789casino__faq-question-text {
  margin: 0;
  color: #fff;
  pointer-events: none; /* Prevent text from blocking click event */
  font-size: 1.1em; /* Ensure good readability */
}

.page-789casino__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  pointer-events: none; /* Prevent toggle from blocking click event */
  transition: transform 0.3s ease;
}

.page-789casino__faq-item.active .page-789casino__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-789casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  background-color: #2e2e4a;
  color: #ccc;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  box-sizing: border-box;
}

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

.page-789casino__faq-answer p {
  margin: 0;
  padding-bottom: 5px; /* Small padding for consistency */
}

/* Floating Buttons */
.page-789casino__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column; /* Stack buttons vertically on mobile */
  gap: 10px;
}

.page-789casino__floating-button {
  display: block; /* Make them block to stack */
  padding: 10px 20px;
  border-radius: 50px; /* Pill shape */
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: background-color 0.3s ease, transform 0.2s ease;
  min-width: 120px; /* Ensure buttons have decent width */
  box-sizing: border-box;
}

.page-789casino__floating-button--register {
  background-color: #e94560;
  color: #fff;
}

.page-789casino__floating-button--register:hover {
  background-color: #c73751;
  transform: translateY(-2px);
}

.page-789casino__floating-button--login {
  background-color: #3f51b5;
  color: #fff;
}

.page-789casino__floating-button--login:hover {
  background-color: #303f9f;
  transform: translateY(-2px);
}


/* Responsive Design */
@media (max-width: 768px) {
  .page-789casino__hero-title {
    font-size: 2em;
  }

  .page-789casino__hero-description {
    font-size: 1em;
  }

  .page-789casino__section-title {
    font-size: 1.8em;
  }

  .page-789casino__hero-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-789casino__hero-buttons .page-789casino__button {
    margin: 0; /* Remove horizontal margin when stacked */
    width: 80%; /* Make buttons wider */
    max-width: 300px; /* Limit max width */
  }

  .page-789casino__button--secondary {
    margin-left: 0;
  }

  .page-789casino__features-grid,
  .page-789casino__games-grid,
  .page-789casino__promotions-grid {
    grid-template-columns: 1fr; /* Stack all to single column */
  }

  .page-789casino__providers-grid,
  .page-789casino__payments-grid {
    grid-template-columns: repeat(2, 1fr); /* Keep 2 columns, but adjust padding */
    gap: 15px;
  }

  .page-789casino__provider-item,
  .page-789casino__payment-item {
    padding: 15px;
  }

  /* List item mobile responsiveness */
  .page-789casino__features-grid .page-789casino__feature-item,
  .page-789casino__games-grid .page-789casino__game-card,
  .page-789casino__providers-grid .page-789casino__provider-item,
  .page-789casino__payments-grid .page-789casino__payment-item,
  .page-789casino__promotions-grid .page-789casino__promotion-card,
  .page-789casino__faq-list .page-789casino__faq-item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 10px !important; /* Adjust padding for smaller screens */
    padding-right: 10px !important; /* Adjust padding for smaller screens */
  }

  .page-789casino__faq-question,
  .page-789casino__faq-answer {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-789casino__faq-question-text {
    font-size: 1em;
  }

  .page-789casino__faq-answer p {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }

  /* Image responsive optimization */
  .page-789casino__hero-image,
  .page-789casino__feature-icon,
  .page-789casino__game-image,
  .page-789casino__provider-logo,
  .page-789casino__payment-logo,
  .page-789casino__promotion-image {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-789casino__floating-buttons {
    flex-direction: row; /* Buttons side-by-side on mobile bottom */
    width: calc(100% - 40px); /* Full width minus side padding */
    left: 20px;
    right: 20px;
    justify-content: space-around;
    bottom: 15px;
    gap: 10px;
  }
  .page-789casino__floating-button {
    flex: 1; /* Distribute space evenly */
    min-width: unset; /* Remove min-width constraint */
    font-size: 0.9em;
    padding: 10px 15px;
  }
}

@media (min-width: 769px) {
  .page-789casino__hero-section {
    height: 70vh;
  }

  .page-789casino__hero-title {
    font-size: 3.5em;
  }

  .page-789casino__hero-description {
    font-size: 1.2em;
  }

  .page-789casino__section-title {
    font-size: 2.5em;
  }

  .page-789casino__features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-789casino__games-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-789casino__providers-grid,
  .page-789casino__payments-grid {
    grid-template-columns: repeat(6, 1fr); /* More columns for desktop */
  }

  .page-789casino__promotions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-789casino__floating-buttons {
    flex-direction: column; /* Stack buttons vertically on desktop */
    right: 30px;
    bottom: 30px;
    left: unset;
    width: unset;
  }
}