/* style/casino.css */

/* General Styles for page-casino */
.page-casino {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #333333); /* Default text color based on light background */
  background-color: var(--page-bg-color, #F5F7FA); /* Page background color */
}

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

.page-casino__section {
  padding: 60px 0;
}

.page-casino__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #333333;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-casino__card {
  background-color: var(--card-bg-color, #FFFFFF);
  border: 1px solid var(--border-color, #E0E0E0);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-casino__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-casino__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  color: #ffffff; /* White text for contrast */
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Ensure padding doesn't push width */
}

.page-casino__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-casino__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  color: #E53935; /* Brand color text */
  background: #ffffff;
  border: 2px solid #E53935;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Ensure padding doesn't push width */
}

.page-casino__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-casino__btn-link {
  display: inline-block;
  color: #E53935;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-casino__btn-link:hover {
  color: #FF5A4F;
  text-decoration: underline;
}

/* Hero Section */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #F5F7FA; /* Ensure a consistent background for the section */
}

.page-casino__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Important for flex and max-width */
}

.page-casino__hero-image-wrapper {
  width: 100%;
  margin-bottom: 30px;
}

.page-casino__hero-image-wrapper img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 900px;
}

.page-casino__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  font-weight: 800;
  color: #333333;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-casino__intro-text {
  font-size: 18px;
  color: #555555;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
}

.page-casino__cta-button {
  flex-shrink: 0; /* Prevent buttons from shrinking */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure button doesn't exceed container */
}


/* About Section */
.page-casino__about-section p {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: justify;
  color: #555555;
}

.page-casino__image-wrapper--full {
  margin: 40px 0;
  text-align: center;
}

.page-casino__image-wrapper--full img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Game Types Section */
.page-casino__game-types {
  background-color: var(--page-bg-color, #F5F7FA);
}

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

.page-casino__game-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%; /* Ensure cards have equal height */
}

.page-casino__game-image-container {
  margin-bottom: 20px;
}

.page-casino__game-image-container img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-casino__game-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  flex-grow: 1; /* Allow title to take available space */
}

.page-casino__game-title a {
  color: #333333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__game-title a:hover {
  color: #E53935;
}

.page-casino__game-card p {
  font-size: 15px;
  color: #666666;
  margin-bottom: 20px;
  text-align: center;
}

/* Promotions Section */
.page-casino__promotions-section {
  background-color: #E53935; /* Main brand color for dark background */
  color: #ffffff; /* White text for contrast */
}

.page-casino__promotions-section .page-casino__section-title,
.page-casino__promotions-section p {
  color: #ffffff;
}

.page-casino__promotions-section .page-casino__promo-note a {
  color: #FFD700; /* Gold-like color for emphasis on links in dark section */
  text-decoration: underline;
}

.page-casino__promotions-section .page-casino__promo-note a:hover {
  color: #ffffff;
}

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

.page-casino__promo-card {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards on dark background */
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.page-casino__promo-card .page-casino__promo-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-casino__promo-card p {
  font-size: 15px;
  color: #f0f0f0;
  margin-bottom: 25px;
}

/* Why Choose Us Section */
.page-casino__why-choose-us {
  background-color: #ffffff;
}

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

.page-casino__feature-item {
  text-align: center;
}

.page-casino__feature-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: #333333;
}

.page-casino__feature-item p {
  font-size: 15px;
  color: #666666;
  text-align: center;
}

.page-casino__image-wrapper--mobile {
  margin: 60px auto 0;
  text-align: center;
  max-width: 600px;
}

.page-casino__image-wrapper--mobile img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* How to Join Section */
.page-casino__how-to-join {
  background-color: var(--page-bg-color, #F5F7FA);
}

.page-casino__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  counter-reset: step-counter;
}

.page-casino__steps-list li {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: flex-start;
  position: relative;
}

.page-casino__steps-list li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  margin-right: 20px;
  flex-shrink: 0;
}

.page-casino__steps-list li h3 {
  font-size: 20px;
  font-weight: 700;
  color: #333333;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-casino__steps-list li p {
  font-size: 16px;
  color: #666666;
  margin-bottom: 0;
  text-align: left;
}

.page-casino__steps-list li p a {
  color: #E53935;
  text-decoration: underline;
}

.page-casino__cta-center {
  text-align: center;
  margin-top: 50px;
}

/* FAQ Section */
.page-casino__faq-section {
  background-color: #ffffff;
}

details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color, #E0E0E0);
  overflow: hidden;
  background: var(--card-bg-color, #fff);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
details.page-casino__faq-item summary.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
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: #f5f5f5;
}
.page-casino__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-casino__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-casino__faq-item .page-casino__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: #555555;
}

/* Latest News Section */
.page-casino__latest-news-section {
  background-color: #E53935; /* Main brand color for dark background */
  color: #ffffff;
}

.page-casino__latest-news-section .page-casino__section-title {
  color: #ffffff;
}

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

.page-casino__news-card {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 25px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-casino__news-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  flex-grow: 1;
}

.page-casino__news-title a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__news-title a:hover {
  color: #FFD700;
}

.page-casino__news-date {
  font-size: 14px;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-casino__news-card p {
  font-size: 15px;
  color: #f0f0f0;
  margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-casino__section-title {
    font-size: 32px;
  }
  .page-casino__main-title {
    font-size: clamp(26px, 5vw, 42px);
  }
}

@media (max-width: 768px) {
  .page-casino__section {
    padding: 40px 0;
  }
  .page-casino__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-casino__main-title {
    font-size: clamp(24px, 6vw, 36px);
  }
  .page-casino__intro-text {
    font-size: 16px;
  }
  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px; /* Add padding to container */
  }
  .page-casino__cta-button,
  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino a[class*="button"],
  .page-casino a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-casino__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 40px;
  }
  .page-casino__hero-image-wrapper img {
    border-radius: 8px;
  }

  .page-casino__game-grid,
  .page-casino__promotion-grid,
  .page-casino__feature-grid,
  .page-casino__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-casino__steps-list li {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }
  .page-casino__steps-list li::before {
    margin-right: 0;
    margin-bottom: 15px;
  }
  .page-casino__steps-list li h3 {
    text-align: center;
  }
  .page-casino__steps-list li p {
    text-align: center;
  }

  details.page-casino__faq-item summary.page-casino__faq-question { padding: 15px; }
  .page-casino__faq-qtext { font-size: 15px; }
  details.page-casino__faq-item .page-casino__faq-answer { padding: 0 15px 15px; }

  /* Mobile image adaptation */
  .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-image-container,
  .page-casino__image-wrapper--full,
  .page-casino__image-wrapper--mobile {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }
  .page-casino__hero-container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-casino__hero-image-wrapper {
    padding: 0 15px;
  }
}

/* Ensure no CSS filter on images */
.page-casino img {
  filter: none !important;
}