/* style/casino.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-dark-section: #26A9E0;
  --border-light: #e0e0e0;
}

/* Base styles for the page content, ensuring contrast with body background */
.page-casino {
  color: var(--text-dark); /* Default dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  box-sizing: border-box;
}

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

.page-casino__section-title {
  font-size: clamp(1.8rem, 2.5vw, 2.5rem); /* Responsive H2 font size */
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-casino__description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

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

.page-casino__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-casino__hero-content {
  position: relative;
  z-index: 1;
  color: var(--text-light);
  max-width: 900px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 10px;
}

.page-casino__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive H1 font size */
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.1;
  color: var(--secondary-color); /* White text for contrast */
}

.page-casino__hero-content .page-casino__description {
  color: var(--text-light);
  margin-bottom: 40px;
}

/* Buttons */
.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.1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-primary {
  background: var(--login-color); /* Login color for primary CTA */
  color: var(--text-light);
  border: 2px solid var(--login-color);
}

.page-casino__btn-primary:hover {
  background: darken(var(--login-color), 10%);
  border-color: darken(var(--login-color), 10%);
}

.page-casino__btn-secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-casino__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
}

/* Intro Section */
.page-casino__intro-section {
  padding: 60px 0;
  background: var(--bg-light);
  color: var(--text-dark);
  box-sizing: border-box;
}

.page-casino__intro-section p {
  margin-bottom: 15px;
  text-align: justify;
}

/* Video Section */
.page-casino__video-section {
  padding: 60px 0;
  background: var(--bg-dark-section); /* Brand color background */
  color: var(--text-light);
  text-align: center;
  box-sizing: border-box;
}

.page-casino__video-section .page-casino__section-title {
  color: var(--secondary-color);
}

.page-casino__video-section p {
  max-width: 900px;
  margin: 0 auto 30px auto;
}

.page-casino__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 900px; /* Max width for video */
  width: 100%; /* Important for desktop flex container */
  margin: 0 auto 30px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-casino__video-wrapper .page-casino__video-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.page-casino__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  cursor: pointer;
}

/* Game Categories */
.page-casino__game-categories {
  padding: 60px 0;
  background: var(--bg-light);
  color: var(--text-dark);
  box-sizing: border-box;
}

.page-casino__game-categories p {
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-casino__game-card {
  background: var(--secondary-color);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
  padding-bottom: 20px;
}

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

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

.page-casino__game-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-casino__game-title a {
  color: var(--primary-color);
  text-decoration: none;
}

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

.page-casino__game-card p {
  font-size: 0.95rem;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 15px;
  text-align: justify;
}

.page-casino__game-card .page-casino__btn-secondary {
  margin-top: auto; /* Push button to bottom */
  align-self: center;
}

/* Advantages Section */
.page-casino__advantages-section {
  padding: 60px 0;
  background: var(--bg-dark-section);
  color: var(--text-light);
  text-align: center;
  box-sizing: border-box;
}

.page-casino__advantages-section .page-casino__section-title {
  color: var(--secondary-color);
}

.page-casino__advantages-section p {
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

.page-casino__advantage-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-casino__advantage-icon {
  width: 120px;
  height: 90px; /* Adjust height based on expected content aspect ratio */
  object-fit: contain;
  margin-bottom: 20px;
  filter: brightness(1.2); /* Slightly brighten icons for visibility on dark bg */
  display: block;
}

.page-casino__advantage-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-casino__advantage-item p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
  text-align: justify;
}

/* Responsible Gaming Section */
.page-casino__responsible-gaming {
  padding: 60px 0;
  background: var(--bg-light);
  color: var(--text-dark);
  text-align: center;
  box-sizing: border-box;
}

.page-casino__responsible-gaming p {
  max-width: 900px;
  margin: 0 auto 30px auto;
}

/* FAQ Section */
.page-casino__faq-section {
  padding: 60px 0;
  background: var(--bg-dark-section);
  color: var(--text-light);
  box-sizing: border-box;
}

.page-casino__faq-section .page-casino__section-title {
  color: var(--secondary-color);
}

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

.page-casino__faq-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--secondary-color);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-casino__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-casino__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
  text-align: justify;
}

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

.page-casino__faq-answer .page-casino__faq-link {
  color: var(--login-color);
  text-decoration: underline;
}

.page-casino__faq-answer .page-casino__faq-link:hover {
  color: darken(var(--login-color), 10%);
}

/* Call to Action Section */
.page-casino__cta-section {
  padding: 60px 0;
  background: var(--bg-light);
  color: var(--text-dark);
  text-align: center;
  box-sizing: border-box;
}

.page-casino__cta-section p {
  max-width: 900px;
  margin: 0 auto 30px auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-casino__hero-content {
    padding: 15px;
  }

  .page-casino__main-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
  }

  .page-casino__section-title {
    font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  }

  .page-casino__hero-section,
  .page-casino__intro-section,
  .page-casino__video-section,
  .page-casino__game-categories,
  .page-casino__advantages-section,
  .page-casino__responsible-gaming,
  .page-casino__faq-section,
  .page-casino__cta-section {
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 768px) {
  .page-casino {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-casino__hero-section {
    min-height: 400px;
    padding-top: 10px !important; /* body handles --header-offset */
  }

  .page-casino__main-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
  }

  .page-casino__section-title {
    font-size: clamp(1.5rem, 4.5vw, 2rem);
  }

  .page-casino__hero-content {
    padding: 10px;
  }

  .page-casino__hero-content .page-casino__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  /* All images */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All video */
  .page-casino video,
  .page-casino__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All containers/sections that hold images/videos/buttons */
  .page-casino__section,
  .page-casino__card,
  .page-casino__container,
  .page-casino__hero-section,
  .page-casino__intro-section,
  .page-casino__video-section,
  .page-casino__video-container,
  .page-casino__video-wrapper,
  .page-casino__game-categories,
  .page-casino__game-grid,
  .page-casino__game-card,
  .page-casino__advantages-section,
  .page-casino__advantage-grid,
  .page-casino__advantage-item,
  .page-casino__responsible-gaming,
  .page-casino__faq-section,
  .page-casino__faq-list,
  .page-casino__faq-item,
  .page-casino__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

  /* All buttons */
  .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: 12px 20px;
    font-size: 1rem;
    margin-bottom: 10px; /* Add spacing between stacked buttons */
  }

  /* Button containers for stacking */
  .page-casino__hero-content,
  .page-casino__cta-section .page-casino__container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

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

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

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

  .page-casino__faq-answer {
    padding: 0 20px 15px 20px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .page-casino__hero-section {
    min-height: 350px;
  }

  .page-casino__main-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }

  .page-casino__section-title {
    font-size: clamp(1.3rem, 5.5vw, 1.8rem);
  }

  .page-casino__hero-content .page-casino__description {
    font-size: 0.9rem;
  }
}