.page-casino {
  font-family: Arial, sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  line-height: 1.6;
}

.page-casino__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.page-casino__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #F2FFF6; /* Text Main */
  line-height: 1.2;
}

.page-casino__description {
  font-size: 18px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px;
  color: #A7D9B8; /* Text Secondary */
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding-top: 10px; /* Small top padding, not --header-offset */
  background-color: #08160F; /* Background */
  overflow: hidden;
  margin-bottom: 60px;
}

.page-casino__hero-image {
  width: 100%;
  max-height: 500px; /* Adjust as needed */
  object-fit: cover;
  display: block;
  margin-bottom: 30px; /* Space between image and content */
}

.page-casino__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 20px 40px;
  max-width: 900px;
  box-sizing: border-box;
}

.page-casino__main-title {
  font-size: clamp(32px, 5vw, 48px); /* Responsive H1 font size */
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-casino__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%; /* For mobile responsiveness */
  max-width: 500px; /* Limit button group width */
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
}

.page-casino__btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 15px #57E38D; /* Glow */
}

.page-casino__btn-secondary {
  background: transparent;
  color: #F2FFF6; /* Text Main */
  border: 2px solid #2E7A4E; /* Border */
}

.page-casino__btn-secondary:hover {
  background: #2E7A4E; /* Border */
  color: #ffffff;
}

/* Games Section */
.page-casino__games-section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
}

.page-casino__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-casino__game-card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-casino__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__game-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-casino__game-title {
  font-size: 24px;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  padding: 15px 20px 10px;
}

.page-casino__game-description {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  padding: 0 20px 20px;
  flex-grow: 1; /* Ensures description takes available space */
}

/* Why Choose Section */
.page-casino__why-choose-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
}

.page-casino__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-casino__feature-item {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-casino__feature-icon {
  width: 100px; /* Adjust size */
  height: 100px; /* Adjust size */
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
}

.page-casino__feature-title {
  font-size: 22px;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
}

.page-casino__feature-description {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
}

/* Get Started Section */
.page-casino__get-started-section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
}

.page-casino__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-casino__step-item {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.page-casino__step-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
}

.page-casino__step-title {
  font-size: 22px;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 10px;
}

.page-casino__step-description {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
}

.page-casino__cta-center {
  text-align: center;
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
}

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

details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 12px; /* Increased border-radius for aesthetic */
  border: 1px solid #2E7A4E; /* Border */
  overflow: hidden;
  background: #11271B; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
details.page-casino__faq-item summary.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px; /* Adjusted padding */
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #F2FFF6; /* Text Main */
}
details.page-casino__faq-item summary.page-casino__faq-question::-webkit-details-marker {
  display: none;
}
details.page-casino__faq-item summary.page-casino__faq-question:hover {
  background: #1E3A2A; /* Divider */
}
.page-casino__faq-qtext {
  flex: 1;
  font-size: 18px; /* Adjusted font size */
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2FFF6; /* Text Main */
}
.page-casino__faq-toggle {
  font-size: 28px; /* Adjusted font size */
  font-weight: bold;
  color: #F2C14E; /* Gold */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px; /* Adjusted width */
  text-align: center;
}
details.page-casino__faq-item .page-casino__faq-answer {
  padding: 0 25px 25px; /* Adjusted padding */
  background: #08160F; /* Background */
  border-radius: 0 0 12px 12px;
  color: #A7D9B8; /* Text Secondary */
}
.page-casino__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

/* Final CTA Section */
.page-casino__final-cta-section {
  padding: 80px 0;
  background-color: #08160F; /* Background */
  text-align: center;
}

/* Global image styling */
.page-casino img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Global button container styling for mobile */
.page-casino__cta-buttons,
.page-casino__button-group,
.page-casino__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Media Queries for Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-casino {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-casino__container {
    padding: 15px;
  }

  .page-casino__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-casino__description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  /* Hero Section Mobile */
  .page-casino__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    margin-bottom: 40px;
  }

  .page-casino__hero-image {
    max-height: 300px;
    margin-bottom: 20px;
  }

  .page-casino__hero-content {
    padding: 0 15px 30px;
  }

  .page-casino__main-title {
    font-size: 30px;
    margin-bottom: 15px;
  }

  .page-casino__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
  }

  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  /* Games Section Mobile */
  .page-casino__games-section {
    padding: 40px 0;
  }

  .page-casino__games-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
  }

  .page-casino__game-image {
    height: 180px;
  }

  .page-casino__game-title {
    font-size: 20px;
    padding: 12px 15px 8px;
  }

  .page-casino__game-description {
    font-size: 15px;
    padding: 0 15px 15px;
  }

  /* Why Choose Section Mobile */
  .page-casino__why-choose-section {
    padding: 40px 0;
  }

  .page-casino__features-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
  }

  .page-casino__feature-item {
    padding: 20px;
  }

  .page-casino__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }

  .page-casino__feature-title {
    font-size: 20px;
  }

  .page-casino__feature-description {
    font-size: 15px;
  }

  /* Get Started Section Mobile */
  .page-casino__get-started-section {
    padding: 40px 0;
  }

  .page-casino__steps-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
    margin-bottom: 30px;
  }

  .page-casino__step-item {
    padding: 20px;
  }

  .page-casino__step-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 15px;
  }

  .page-casino__step-title {
    font-size: 20px;
  }

  .page-casino__step-description {
    font-size: 15px;
  }

  /* FAQ Section Mobile */
  .page-casino__faq-section {
    padding: 40px 0;
  }

  details.page-casino__faq-item {
    border-radius: 8px;
  }
  details.page-casino__faq-item summary.page-casino__faq-question {
    padding: 15px 20px;
  }
  .page-casino__faq-qtext {
    font-size: 16px;
  }
  .page-casino__faq-toggle {
    font-size: 24px;
    width: 25px;
  }
  details.page-casino__faq-item .page-casino__faq-answer {
    padding: 0 20px 20px;
    border-radius: 0 0 8px 8px;
  }
  .page-casino__faq-answer p {
    font-size: 15px;
  }

  /* Final CTA Section Mobile */
  .page-casino__final-cta-section {
    padding: 50px 0;
  }

  /* Global image and container responsive styles */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__game-card,
  .page-casino__feature-item,
  .page-casino__step-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}