/* style/casino.css */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light body background */
  background-color: #f5f5f5;
}

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

.page-casino__section-title {
  font-size: 2.5em;
  color: #000080; /* Dark blue for primary titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-casino__section-title--light {
  color: #ffffff;
}

.page-casino__section-subtitle {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
}

.page-casino__section-subtitle--light {
  color: #f0f0f0;
}

.page-casino__btn-primary,
.page-casino__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
}

.page-casino__btn-primary {
  background-color: #FFD700; /* Gold primary button */
  color: #000080; /* Dark blue text for contrast */
  border: 2px solid #FFD700;
}

.page-casino__btn-primary:hover {
  background-color: #e6c200;
  color: #000050;
}

.page-casino__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text for secondary button */
  border: 2px solid #FFD700;
}

.page-casino__btn-secondary:hover {
  background-color: #FFD700;
  color: #000080;
}

.page-casino__btn--small {
  padding: 8px 18px;
  font-size: 0.9em;
}

.page-casino__btn--large {
  padding: 15px 30px;
  font-size: 1.1em;
}

/* Highlight text for keywords */
.page-casino__highlight {
  color: #FFD700;
  font-weight: bold;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  width: 100%;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

.page-casino__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: -1;
}

.page-casino__hero-content {
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
  z-index: 1;
}

.page-casino__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFD700; /* Gold title */
}

.page-casino__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* About Section */
.page-casino__about-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-casino__about-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-casino__about-text {
  flex: 1;
}

.page-casino__about-text p {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #333333;
}

.page-casino__about-image {
  flex: 0 0 40%;
  max-width: 40%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Games Section */
.page-casino__games-section {
  padding: 80px 0;
  background-color: #000080; /* Dark blue background */
  color: #ffffff;
}

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

.page-casino__game-card {
  background-color: #000050; /* Slightly lighter dark blue */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-casino__game-card-title {
  font-size: 1.5em;
  margin: 20px 15px 10px;
  color: #FFD700; /* Gold title */
}

.page-casino__game-card-title a {
  color: #FFD700;
  text-decoration: none;
}

.page-casino__game-card-title a:hover {
  text-decoration: underline;
}

.page-casino__game-card-description {
  font-size: 0.95em;
  color: #f0f0f0;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-casino__game-card .page-casino__btn-primary {
  margin: 0 15px 20px;
  width: calc(100% - 30px);
}

/* Live Casino Section */
.page-casino__live-casino-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-casino__live-casino-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-direction: row-reverse; /* Image on right */
}

.page-casino__live-casino-image {
  flex: 0 0 40%;
  max-width: 40%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-casino__live-casino-text {
  flex: 1;
}

.page-casino__live-casino-text p {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #333333;
}

.page-casino__live-casino-text .page-casino__btn-primary {
  margin-top: 20px;
}

/* Promotions Section */
.page-casino__promotions-section {
  padding: 80px 0;
  background-color: #000080;
  color: #ffffff;
}

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

.page-casino__promo-card {
  background-color: #000050;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-casino__promo-card-title {
  font-size: 1.4em;
  margin: 20px 15px 10px;
  color: #FFD700;
}

.page-casino__promo-card-description {
  font-size: 0.95em;
  color: #f0f0f0;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-casino__promo-card .page-casino__btn-secondary {
  margin: 0 15px 20px;
  width: calc(100% - 30px);
}

/* Why Choose Section */
.page-casino__why-choose-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-casino__feature-item {
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  background-color: #f9f9f9;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-casino__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
  min-width: 200px; /* Enforce minimum size for images */
  min-height: 150px; /* Enforce minimum size for images */
}

.page-casino__feature-title {
  font-size: 1.3em;
  color: #000080;
  margin-bottom: 10px;
}

.page-casino__feature-description {
  font-size: 1em;
  color: #555555;
}

/* How to Get Started Section */
.page-casino__get-started-section {
  padding: 80px 0;
  background-color: #FFD700; /* Gold background */
  color: #000080; /* Dark blue text */
}

.page-casino__get-started-section .page-casino__section-title {
  color: #000080;
}

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

.page-casino__step-item {
  background-color: #fff8e1; /* Lighter gold/cream */
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-casino__step-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  background-color: #000080;
  color: #FFD700;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-casino__step-title {
  font-size: 1.5em;
  color: #000080;
  margin-bottom: 10px;
}

.page-casino__step-description {
  font-size: 1em;
  color: #333333;
}

.page-casino__get-started-cta {
  text-align: center;
  margin-top: 50px;
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 80px 0;
  background-color: #f5f5f5;
}

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

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

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #000080;
  cursor: pointer;
  background-color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-casino__faq-question:hover {
  background-color: #f0f0f0;
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-casino__faq-item.active .page-casino__faq-question {
  background-color: #FFD700; /* Gold when active */
  color: #000080;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  transform: rotate(45deg);
}

.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #333333;
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 25px;
}

.page-casino__faq-answer p {
  margin: 0;
  font-size: 1em;
  color: #333333;
}

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

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

  .page-casino__about-content,
  .page-casino__live-casino-content {
    flex-direction: column;
    text-align: center;
  }

  .page-casino__about-image,
  .page-casino__live-casino-image {
    max-width: 70%;
    margin-top: 30px;
  }
}

@media (max-width: 768px) {
  .page-casino__hero-section {
    height: auto;
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }

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

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

  .page-casino__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-casino__about-section,
  .page-casino__games-section,
  .page-casino__live-casino-section,
  .page-casino__promotions-section,
  .page-casino__why-choose-section,
  .page-casino__get-started-section,
  .page-casino__faq-section {
    padding: 50px 0;
  }

  .page-casino__about-image,
  .page-casino__live-casino-image {
    max-width: 90%;
  }

  /* Responsive images */
  .page-casino img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Responsive containers for images/videos/buttons */
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__hero-cta-buttons,
  .page-casino__button-group,
  .page-casino__btn-container,
  .page-casino__video-section,
  .page-casino__video-container,
  .page-casino__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-casino__cta-buttons,
  .page-casino__button-group,
  .page-casino__btn-container {
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-casino__feature-icon {
    min-width: 150px; /* Adjust for smaller screen, but still >200px equivalent for content */
    min-height: 112px;
    width: 150px;
    height: 112px;
  }
}