/* style/casino.css */

/* --- General Styles --- */
.page-casino {
  font-family: Arial, sans-serif;
  color: #FFF5E1; /* Text Main on dark background */
  line-height: 1.6;
  background-color: transparent; /* Body handles actual background */
}

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

.page-casino__section-title {
  font-size: clamp(28px, 4vw, 48px); /* H1 font-size rule: clamp */
  color: #F4D34D; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-casino__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  text-align: center;
}

.page-casino__card {
  background: #D32F2F; /* Card BG */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #FFF5E1; /* Text Main on Card BG */
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #F2B544; /* Border */
}

/* --- Buttons --- */
.page-casino__btn-primary,
.page-casino__btn-secondary,
.page-casino__read-more-btn,
.page-casino__card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
  font-size: 16px;
}

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

.page-casino__btn-primary:hover {
  background: #E53935; /* Auxiliary color */
  border-color: #E53935;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-casino__btn-secondary:hover {
  background: #f0f0f0;
  color: #E53935; /* Auxiliary color */
  border-color: #E53935;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__card-btn {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
  color: #333333; /* Dark text for contrast on light gold */
  border: none;
  margin-top: auto; /* Push button to bottom of card */
}

.page-casino__card-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-casino__read-more-btn {
  background: none;
  color: #F4D34D; /* Gold */
  border: 2px solid #F4D34D;
  margin-top: 30px;
  font-size: 16px;
  padding: 10px 20px;
}

.page-casino__read-more-btn:hover {
  background: #F4D34D;
  color: #333333;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-casino__hero-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 30px; /* Space between image and text */
}

.page-casino__hero-content {
  text-align: center;
  max-width: 900px;
  width: 100%;
}

.page-casino__main-title {
  font-size: clamp(36px, 5vw, 64px); /* H1 font-size rule: clamp */
  color: #F4D34D; /* Gold */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.1;
}

.page-casino__tagline {
  font-size: clamp(18px, 2.5vw, 24px);
  color: #FFF5E1; /* Text Main */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-casino__dark-section {
  background-color: #7A0E0E; /* Deep Red for dark sections */
}

.page-casino__about-section .page-casino__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-casino__about-section .page-casino__section-title {
  color: #F4D34D; /* Gold */
}

/* --- Games Section --- */
.page-casino__games-section {
  padding: 80px 0;
}

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

.page-casino__game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px;
}

.page-casino__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #F2B544; /* Border */
}

.page-casino__game-title {
  font-size: 24px;
  margin-bottom: 10px;
  color: #F4D34D; /* Gold */
}

.page-casino__game-title a {
  color: #F4D34D; /* Gold */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__game-title a:hover {
  color: #FFCC66; /* Glow */
}

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

.page-casino__view-all-games {
  text-align: center;
  margin-top: 50px;
}

/* --- Advantages Section --- */
.page-casino__advantages-section {
  padding: 80px 0;
}

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

.page-casino__advantage-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 25px;
  background-color: #D32F2F; /* Card BG */
  border-radius: 12px;
  border: 1px solid #F2B544; /* Border */
}

.page-casino__advantage-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%; /* Make icons round */
  border: 2px solid #F4D34D; /* Gold border for icons */
}

.page-casino__advantage-title {
  font-size: 22px;
  color: #F4D34D; /* Gold */
  margin-bottom: 10px;
}

.page-casino__advantage-description {
  font-size: 16px;
  color: #FFF5E1; /* Text Main */
}

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

/* --- How To Join Section --- */
.page-casino__how-to-join-section {
  padding: 80px 0;
}

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

.page-casino__step-card {
  padding: 30px;
}

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

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

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

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

.page-casino__faq-item {
  margin-bottom: 20px;
  text-align: left;
  padding: 0; /* Override card padding */
  background: #D32F2F; /* Card BG */
  border: 1px solid #F2B544; /* Border */
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: #F4D34D; /* Gold */
  background-color: #D32F2F; /* Card BG */
  border-bottom: 1px solid #7A0E0E; /* Deep Red */
}

.page-casino__faq-item[open] .page-casino__faq-question {
  border-bottom: 1px solid transparent;
}

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

.page-casino__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: #FFF5E1; /* Text Main */
}

.page-casino__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: #FFF5E1; /* Text Main */
}

.page-casino__faq-answer p {
  margin: 0;
}

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

.page-casino__faq-answer a:hover {
  color: #F4D34D; /* Gold */
}

/* --- Call To Action Section --- */
.page-casino__call-to-action {
  padding: 80px 0;
  text-align: center;
}

.page-casino__call-to-action .page-casino__section-title {
  color: #F4D34D; /* Gold */
}

.page-casino__call-to-action .page-casino__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

@media (max-width: 768px) {
  .page-casino__container {
    padding: 0 15px !important; /* Mobile padding for containers */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* General mobile text adjustments */
  .page-casino {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-casino__section-title {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 30px;
  }

  .page-casino__main-title {
    font-size: clamp(30px, 8vw, 48px);
  }

  .page-casino__tagline {
    font-size: clamp(16px, 3vw, 20px);
    margin-bottom: 30px;
  }

  /* Images, Videos, Buttons Responsive */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-casino video,
  .page-casino__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .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: hidden !important;
  }

  .page-casino__video-section {
    padding-top: 10px !important; /* Small top padding for video section */
  }

  .page-casino__cta-button,
  .page-casino__btn-primary,
  .page-casino__btn-secondary,
  .page-casino a[class*="button"],
  .page-casino a[class*="btn"],
  .page-casino__read-more-btn,
  .page-casino__card-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__cta-buttons,
  .page-casino__button-group,
  .page-casino__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px; /* Spacing between stacked buttons */
  }

  .page-casino__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-casino__hero-image {
    height: 300px;
    margin-bottom: 20px;
  }

  .page-casino__game-grid,
  .page-casino__advantage-list,
  .page-casino__steps-grid {
    grid-template-columns: 1fr;
  }

  .page-casino__game-image {
    height: 180px;
  }

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

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

@media (max-width: 480px) {
  .page-casino__hero-image {
    height: 250px;
  }
  .page-casino__game-image {
    height: 150px;
  }
}