/* style/casino.css */

/* Base Styles for .page-casino */
.page-casino {
  color: #FFF5E1; /* Text Main */
  background-color: #B71C1C; /* Background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Section Styling */
.page-casino__section-title {
  font-size: 2.5em;
  color: #F4D34D; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-casino__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
}

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

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

/* 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 as body handles header offset */
  background-color: #B71C1C; /* Background */
  overflow: hidden;
}

.page-casino__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 1920px; /* Matches hero image size */
  margin-bottom: 30px;
  order: 1; /* Image first */
}

.page-casino__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-casino__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  margin-top: 20px; /* Space between image and content */
  order: 2; /* Content second */
}

.page-casino__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
  color: #FFCC66; /* Glow */
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(255, 204, 102, 0.6);
}

.page-casino__description {
  font-size: 1.2em;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.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: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  max-width: 100%; /* Ensure responsive */
  box-sizing: border-box; /* Ensure padding is included */
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button color */
  color: #7A0E0E; /* Deep Red for contrast on gold */
  border: 2px solid #F2B544; /* Border */
}

.page-casino__btn-primary:hover {
  background: linear-gradient(180deg, #F2B544 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

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

.page-casino__btn-secondary:hover {
  background-color: #F4D34D;
  color: #7A0E0E; /* Deep Red */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.page-casino__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Intro Section */
.page-casino__intro-section {
  padding: 80px 0;
  background-color: #B71C1C; /* Background */
}

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

.page-casino__grid-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Games Section */
.page-casino__games-section {
  padding: 80px 0;
  background-color: #D32F2F; /* Card BG */
}

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

.page-casino__game-card {
  background-color: #7A0E0E; /* Deep Red */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-casino__game-title {
  font-size: 1.5em;
  color: #FFCC66; /* Glow */
  margin: 20px 15px 10px;
  font-weight: bold;
}

.page-casino__game-description {
  font-size: 1em;
  color: #FFF5E1; /* Text Main */
  padding: 0 15px 20px;
  flex-grow: 1;
}

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

/* Benefits Section */
.page-casino__benefits-section {
  padding: 80px 0;
  background-color: #B71C1C; /* Background */
}

.page-casino__benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-casino__benefit-item {
  background-color: #7A0E0E; /* Deep Red */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.page-casino__benefit-title {
  font-size: 1.4em;
  color: #F4D34D; /* Gold */
  margin-bottom: 15px;
}

.page-casino__benefit-description {
  font-size: 1em;
  color: #FFF5E1; /* Text Main */
}

/* How-To-Start Section */
.page-casino__how-to-start-section {
  padding: 80px 0;
  background-color: #B71C1C; /* Background */
}

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

.page-casino__step-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__step-title {
  font-size: 1.4em;
  color: #FFCC66; /* Glow */
  margin-bottom: 15px;
}

.page-casino__step-description {
  font-size: 1em;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 20px;
  flex-grow: 1;
}

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

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

.page-casino__promo-card {
  background-color: #7A0E0E; /* Deep Red */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-casino__promo-title {
  font-size: 1.5em;
  color: #F4D34D; /* Gold */
  margin: 20px 15px 10px;
  font-weight: bold;
}

.page-casino__promo-description {
  font-size: 1em;
  color: #FFF5E1; /* Text Main */
  padding: 0 15px 20px;
  flex-grow: 1;
}

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

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

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

.page-casino__faq-item {
  background-color: #D32F2F; /* Card BG */
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  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: #F4D34D; /* Gold */
  cursor: pointer;
  background-color: #7A0E0E; /* Deep Red */
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-casino__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker */
}

.page-casino__faq-question:hover {
  background-color: #E53935; /* Auxiliary color */
}

.page-casino__faq-qtext {
  flex-grow: 1;
}

.page-casino__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-casino__faq-answer {
  padding: 0 25px;
  color: #FFF5E1; /* Text Main */
  font-size: 1em;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-casino__faq-item[open] .page-casino__faq-answer {
  max-height: 500px; /* Adjust as needed for content */
  padding: 15px 25px 25px;
}

.page-casino__faq-answer p {
  margin-bottom: 10px;
}

.page-casino__faq-answer a {
  color: #FFCC66; /* Glow */
  text-decoration: underline;
}

/* Conclusion Section */
.page-casino__conclusion-section {
  padding: 80px 0;
  background-color: #B71C1C; /* Background */
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-casino__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-casino__hero-content {
    margin-top: 10px;
  }
  .page-casino__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-casino__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-casino__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em); /* Adjust for smaller screens */
  }

  .page-casino__description {
    font-size: 1.1em;
  }

  .page-casino__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .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__image-grid,
  .page-casino__game-list,
  .page-casino__benefits-list,
  .page-casino__steps-grid,
  .page-casino__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__hero-section,
  .page-casino__intro-section,
  .page-casino__games-section,
  .page-casino__benefits-section,
  .page-casino__how-to-start-section,
  .page-casino__promotions-section,
  .page-casino__faq-section,
  .page-casino__conclusion-section {
    padding: 40px 0;
  }

  .page-casino__container {
    padding: 0 15px; /* Add padding for mobile content */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Images responsive */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-casino__hero-image-wrapper,
  .page-casino__grid-image,
  .page-casino__game-image,
  .page-casino__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Specific image container sizes for mobile */
  .page-casino__game-image,
  .page-casino__promo-image {
    height: 180px; /* Slightly smaller fixed height for mobile cards */
  }

  .page-casino__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-casino__faq-answer {
    padding: 0 20px;
  }

  .page-casino__faq-item[open] .page-casino__faq-answer {
    padding: 15px 20px 20px;
  }
}

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