/* style/casino.css */

/* Base styles for the casino page */
.page-casino {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light backgrounds */
  line-height: 1.6;
}

/* Sections */
.page-casino__section {
  padding: 60px 20px;
  text-align: center;
}

.page-casino__dark-bg {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
}

.page-casino__light-bg {
  background-color: #ffffff; /* Auxiliary color */
  color: #333333;
}

.page-casino__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Added padding for smaller screens */
  box-sizing: border-box;
}

.page-casino__section-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Responsive font size */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-casino__section-description {
  font-size: clamp(1em, 2vw, 1.2em);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
}

.page-casino__hero-image-wrapper {
  width: 100%;
  max-width: 100%; /* Ensure it doesn't overflow */
  margin-bottom: 30px; /* Space between image and text */
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.page-casino__hero-content {
  position: relative; /* Not absolute to avoid overlapping image */
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-casino__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* H1 font size with clamp */
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  color: #ffffff; /* White text on dark blue background */
}

.page-casino__hero-section .page-casino__description {
  font-size: clamp(1.1em, 2.2vw, 1.4em);
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* CTA Buttons */
.page-casino__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

.page-casino__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-casino__btn-primary:hover {
  background-color: #d46a00;
  border-color: #d46a00;
}

.page-casino__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-casino__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-casino__cta-center {
  margin-top: 40px;
}

.page-casino__btn-text {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-casino__btn-text:hover {
  color: #1a7bb5;
}

/* Cards */
.page-casino__card {
  background-color: #ffffff;
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  height: 100%; /* Ensure cards in a grid have equal height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.page-casino__card:hover {
  transform: translateY(-5px);
}

.page-casino__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 15px;
  line-height: 1.3;
  color: #26A9E0;
}

.page-casino__dark-bg .page-casino__card {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.page-casino__dark-bg .page-casino__card-title {
  color: #ffffff;
}

.page-casino__dark-bg .page-casino__card a {
  color: #ffffff;
  text-decoration: underline;
}

.page-casino__dark-bg .page-casino__card a:hover {
  color: #f0f0f0;
}

.page-casino__card-text {
  font-size: 1em;
  color: #555555;
}

.page-casino__dark-bg .page-casino__card-text {
  color: #f0f0f0;
}

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

.page-casino__feature-icon {
  width: 100%; /* Ensure image fills card width */
  height: auto;
  display: block;
  margin-bottom: 15px;
  border-radius: 8px;
  min-width: 200px; /* Minimum image size */
  min-height: 200px; /* Minimum image size */
  object-fit: cover;
}

/* Game Categories Grid */
.page-casino__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-casino__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

/* How To Play Steps */
.page-casino__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

/* Promotions */
.page-casino__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-casino__promo-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  min-width: 200px;
  min-height: 200px;
}

/* FAQ Section */
.page-casino__faq-list {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-casino__faq-item {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-casino__faq-item[open] {
  background-color: #f9f9f9;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  list-style: none; /* For details/summary */
  -webkit-touch-callout: none; /* Disable callout on iOS */
  -webkit-user-select: none; /* Disable text selection on iOS */
  -khtml-user-select: none; /* Disable text selection on Konqueror */
  -moz-user-select: none; /* Disable text selection on Firefox */
  -ms-user-select: none; /* Disable text selection on Internet Explorer/Edge */
  user-select: none; /* Disable text selection on modern browsers */
}

.page-casino__faq-item.active .page-casino__faq-question {
  background-color: #eaf6fc;
}

.page-casino__faq-question::-webkit-details-marker {
  display: none;
}

.page-casino__faq-question .page-casino__faq-qtext {
  flex-grow: 1;
  color: #333333;
}

.page-casino__faq-question .page-casino__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #26A9E0;
}

.page-casino__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #555555;
  line-height: 1.7;
}

.page-casino__dark-bg .page-casino__faq-item {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-casino__dark-bg .page-casino__faq-question .page-casino__faq-qtext,
.page-casino__dark-bg .page-casino__faq-question .page-casino__faq-toggle {
  color: #ffffff;
}

.page-casino__dark-bg .page-casino__faq-answer {
  color: #f0f0f0;
}

/* Contact CTA */
.page-casino__contact-cta {
  padding: 80px 20px;
}

.page-casino__contact-cta .page-casino__section-title,
.page-casino__contact-cta .page-casino__section-description {
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__hero-image {
    height: 500px;
  }
  .page-casino__section {
    padding: 40px 15px;
  }
}

@media (max-width: 768px) {
  .page-casino__main-title {
    font-size: clamp(2em, 8vw, 2.5em);
  }
  .page-casino__section-title {
    font-size: clamp(1.8em, 6vw, 2.2em);
  }
  .page-casino__hero-image {
    height: 300px;
    margin-bottom: 20px;
  }
  .page-casino__hero-section {
    padding-top: 10px !important; /* body handles --header-offset */
  }
  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-casino__feature-grid,
  .page-casino__game-grid,
  .page-casino__steps-grid,
  .page-casino__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-casino__card {
    padding: 25px;
  }
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__hero-content,
  .page-casino__hero-image-wrapper,
  .page-casino__cta-buttons,
  .page-casino__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-casino__feature-icon,
  .page-casino__game-image,
  .page-casino__promo-image {
    height: auto !important; /* Ensure images scale */
    min-height: 200px !important;
  }
  .page-casino__hero-section .page-casino__hero-image {
    min-height: 200px !important;
  }
  .page-casino__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-casino__faq-answer {
    padding: 0 20px 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-casino__hero-image {
    height: 250px;
  }
  .page-casino__section-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }
  .page-casino__main-title {
    font-size: clamp(1.8em, 9vw, 2.2em);
  }
}