/* style/slot-games.css */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background-color-page: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

.page-slot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background-color-page);
}

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

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px 0 60px 0; /* body handles top padding */
  background-color: var(--deep-green-color);
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Adjust to bring content slightly over the image for visual flow, but not overlap text */
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for readability */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em);
  color: var(--gold-color);
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
}

.page-slot-games__subtitle {
  font-size: clamp(1em, 1.8vw, 1.2em);
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.page-slot-games__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main);
  border: 2px solid transparent;
}

.page-slot-games__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.4);
}

.page-slot-games__btn-secondary {
  background: var(--card-bg);
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-slot-games__btn-secondary:hover {
  transform: translateY(-3px);
  background: var(--secondary-color);
  color: var(--card-bg);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.4);
}

/* General Section Styling */
.page-slot-games__introduction-section,
.page-slot-games__popular-games-section,
.page-slot-games__faq-section {
  padding: 60px 0;
  background-color: var(--background-color-page);
}

.page-slot-games__advantages-section,
.page-slot-games__how-to-play-section,
.page-slot-games__responsible-gaming-section,
.page-slot-games__conclusion-section {
  padding: 60px 0;
  background-color: var(--deep-green-color);
}

.page-slot-games__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-slot-games__text-block {
  font-size: 1.1em;
  color: var(--text-secondary);
  text-align: justify;
  margin-bottom: 20px;
}

/* Advantages Section */
.page-slot-games__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__card {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.page-slot-games__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.page-slot-games__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  display: block;
}

.page-slot-games__card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-slot-games__card-text {
  font-size: 1em;
  color: var(--text-secondary);
}

.page-slot-games__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Popular Games Section */
.page-slot-games__game-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__game-type-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.page-slot-games__game-type-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.page-slot-games__game-type-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-slot-games__game-type-title {
  font-size: 1.6em;
  color: var(--primary-color);
  padding: 20px 20px 10px 20px;
  font-weight: bold;
}

.page-slot-games__game-type-description {
  font-size: 1em;
  color: var(--text-secondary);
  padding: 0 20px 20px 20px;
}

/* How to Play Section */
.page-slot-games__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-slot-games__step-item {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.page-slot-games__step-title {
  font-size: 1.4em;
  color: var(--gold-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-slot-games__step-item p {
  color: var(--text-secondary);
  font-size: 1.05em;
}

.page-slot-games__step-item a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-slot-games__step-item a:hover {
  text-decoration: underline;
}

/* Promotions Section */
.page-slot-games__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__promo-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.page-slot-games__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.page-slot-games__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-slot-games__promo-title {
  font-size: 1.5em;
  color: var(--primary-color);
  padding: 20px 20px 10px 20px;
  font-weight: bold;
}

.page-slot-games__promo-text {
  font-size: 1em;
  color: var(--text-secondary);
  padding: 0 20px 20px 20px;
}

/* Responsible Gaming Section */
.page-slot-games__content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__content-block {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.page-slot-games__content-block-title {
  font-size: 1.4em;
  color: var(--gold-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-slot-games__content-block-text {
  font-size: 1.05em;
  color: var(--text-secondary);
}

/* FAQ Section */
.page-slot-games__faq-list {
  margin-top: 40px;
}

.page-slot-games__faq-item {
  background-color: var(--card-bg);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

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

.page-slot-games__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-slot-games__faq-item summary {
  list-style: none;
}

.page-slot-games__faq-question:hover {
  background-color: var(--deep-green-color);
  color: var(--gold-color);
}

.page-slot-games__faq-qtext {
  flex-grow: 1;
}

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

.page-slot-games__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1.05em;
  color: var(--text-secondary);
}

/* Conclusion Section */
.page-slot-games__conclusion-section .page-slot-games__text-block {
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

/* Floating CTA Button */
.page-slot-games__floating-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.page-slot-games__floating-btn {
  background: var(--button-gradient);
  color: var(--text-main);
  padding: 15px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  white-space: normal;
  word-wrap: break-word;
  max-width: 200px; /* Limit width */
  text-align: center;
}

.page-slot-games__floating-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__hero-content {
    margin-top: -50px;
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-slot-games__hero-content {
    margin-top: -30px;
    padding: 20px;
  }

  .page-slot-games__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-slot-games__subtitle {
    font-size: clamp(0.9em, 2.5vw, 1.1em);
  }

  .page-slot-games__section-title {
    font-size: clamp(1.5em, 6vw, 2.2em);
  }

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games a[class*="button"],
  .page-slot-games a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-slot-games video,
  .page-slot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__promo-card,
  .page-slot-games__game-type-card,
  .page-slot-games__step-item,
  .page-slot-games__content-block,
  .page-slot-games__faq-item,
  .page-slot-games__video-section,
  .page-slot-games__video-container,
  .page-slot-games__video-wrapper,
  .page-slot-games__cta-buttons,
  .page-slot-games__button-group,
  .page-slot-games__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }

  .page-slot-games__video-section {
    padding-top: 10px !important; /* body handles --header-offset */
  }

  .page-slot-games__floating-cta {
    bottom: 10px;
    right: 10px;
  }
  .page-slot-games__floating-btn {
    padding: 12px 20px;
    font-size: 0.9em;
    max-width: 150px; /* Adjust for smaller screens */
  }

  .page-slot-games__text-block, .page-slot-games__card-text, .page-slot-games__game-type-description, .page-slot-games__step-item p, .page-slot-games__content-block-text, .page-slot-games__faq-answer {
    font-size: 1em;
  }
}

@media (max-width: 480px) {
  .page-slot-games__hero-content {
    margin-top: -10px;
  }
  .page-slot-games__main-title {
    font-size: clamp(1.6em, 8vw, 2.2em);
  }
  .page-slot-games__subtitle {
    font-size: clamp(0.85em, 3vw, 1em);
  }
  .page-slot-games__section-title {
    font-size: clamp(1.4em, 7vw, 2em);
  }
  .page-slot-games__floating-btn {
    max-width: 130px;
    font-size: 0.85em;
    padding: 10px 15px;
  }
}