/* style/casino.css */

/* General styles for the casino page */
.page-casino {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #ffffff; /* Explicitly white background for page content area */
}

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

.page-casino__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #017439; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-casino__section-description {
  font-size: 18px;
  color: #555555;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-casino__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  background-color: #f8f8f8; /* Light background for hero section */
  text-align: center;
  overflow: hidden; /* Ensure content doesn't overflow */
}

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

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

.page-casino__main-title {
  font-weight: 700;
  color: #017439; /* Brand color for H1 */
  margin-bottom: 15px;
  line-height: 1.2;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(28px, 4vw, 48px); 
}

.page-casino__hero-description {
  font-size: 18px;
  color: #555555;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__cta-buttons {
  display: flex;
  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: 18px;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
}

.page-casino__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

.page-casino__btn-secondary {
  background-color: #017439; /* Brand color */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-casino__btn-secondary:hover {
  background-color: #005a2d;
  border-color: #005a2d;
}

/* Game Categories Section */
.page-casino__game-categories {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-casino__game-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-casino__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency, object-fit will handle aspect ratio */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-casino__game-card-title {
  font-size: 22px;
  color: #017439;
  margin-bottom: 10px;
  padding: 0 15px;
}

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

.page-casino__btn-play {
  display: inline-block;
  padding: 10px 25px;
  background-color: #C30808;
  color: #FFFF00;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease;
  max-width: calc(100% - 30px); /* Adjust for padding */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-play:hover {
  background-color: #e00b0b;
}

/* Why Choose Section */
.page-casino__why-choose {
  padding: 60px 0;
  background-color: #017439; /* Brand color background */
  color: #ffffff; /* White text for dark background */
}

.page-casino__why-choose .page-casino__section-title,
.page-casino__why-choose .page-casino__section-description {
  color: #ffffff; /* White text for titles/descriptions in dark section */
}

.page-casino__why-choose-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-casino__why-choose-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
}

.page-casino__feature-list {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-casino__feature-list li {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 17px;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
}

.page-casino__feature-list li strong {
  color: #FFFF00; /* Highlight important text */
  margin-right: 8px;
  flex-shrink: 0;
}

/* Promotions Section */
.page-casino__promotions {
  padding: 60px 0;
  background-color: #f8f8f8;
  text-align: center;
}

.page-casino__btn-promo {
  margin-top: 30px;
  background-color: #017439;
  color: #ffffff;
  border-color: #017439;
}

.page-casino__btn-promo:hover {
  background-color: #005a2d;
  border-color: #005a2d;
}

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

details.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
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; /* Ensure dark text on light background */
}
.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 5px 5px;
  color: #555555; /* Ensure dark text on light background */
}
details.page-casino__faq-item .page-casino__faq-answer p {
  margin: 0;
}


/* --- Mobile Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-casino__container {
    padding: 0 15px;
  }

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

  .page-casino__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* Hero Section Mobile */
  .page-casino__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles --header-offset */
    padding-bottom: 30px;
  }

  .page-casino__hero-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    margin-bottom: 15px;
  }

  .page-casino__main-title {
    font-size: clamp(24px, 7vw, 36px); /* Adjust clamp for smaller screens */
    margin-bottom: 10px;
  }

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

  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px; /* Add padding to buttons container */
  }

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

  /* Game Categories Section Mobile */
  .page-casino__game-categories {
    padding: 40px 0;
  }

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

  .page-casino__game-card-image {
    height: 180px; /* Adjust height for mobile cards */
  }

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

  .page-casino__game-card-text {
    font-size: 14px;
  }

  .page-casino__btn-play {
    width: calc(100% - 30px) !important;
    max-width: calc(100% - 30px) !important;
    font-size: 15px;
    padding: 10px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  /* Why Choose Section Mobile */
  .page-casino__why-choose {
    padding: 40px 0;
  }

  .page-casino__why-choose-content {
    flex-direction: column; /* Stack image and list vertically */
    gap: 30px;
    margin-top: 30px;
  }

  .page-casino__why-choose-image {
    max-width: 100%;
    width: 100% !important;
    height: auto !important;
  }

  .page-casino__feature-list li {
    font-size: 15px;
    padding: 12px 15px;
    margin-bottom: 10px;
  }

  /* Promotions Section Mobile */
  .page-casino__promotions {
    padding: 40px 0;
  }

  .page-casino__btn-promo {
    margin-top: 20px;
    width: 100% !important;
    max-width: calc(100% - 30px) !important; /* Adjust for container padding */
    font-size: 16px;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  /* FAQ Section Mobile */
  .page-casino__faq-section {
    padding: 40px 0;
  }
  
  details.page-casino__faq-item summary.page-casino__faq-question { padding: 15px; }
  .page-casino__faq-qtext { font-size: 15px; }
  .page-casino__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
    margin-left: 10px;
  }
  details.page-casino__faq-item .page-casino__faq-answer {
    padding: 0 15px 15px;
  }

  /* Universal image responsiveness for content area */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  
  /* Universal container responsiveness for content area */
  .page-casino__section,
  .page-casino__card,
  .page-casino__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Padding handled by specific sections if needed, otherwise default to 15px */
  }
}