/* style/slot-games.css */
:root {
  --vf55-red-main: #E53935;
  --vf55-red-aux: #FF5A4F;
  --vf55-card-bg: #FFFFFF;
  --vf55-bg-color: #F5F7FA;
  --vf55-text-main: #333333;
  --vf55-border-color: #E0E0E0;
}

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

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

.page-slot-games__section-title {
  font-size: 2.5em;
  color: var(--vf55-red-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

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

.page-slot-games__hero-section {
  background: linear-gradient(180deg, var(--vf55-red-aux) 0%, var(--vf55-red-main) 100%);
  padding-top: 10px; /* Small top padding, body handles header offset */
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-slot-games__hero-image-container {
  width: 100%;
  max-height: 600px; /* Limit height for desktop */
  overflow: hidden;
  margin-bottom: 20px;
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover for desktop, will change to contain for mobile */
  max-width: 100%;
}

.page-slot-games__hero-content {
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
  position: relative; /* Ensure content is above image if any layering issue */
  z-index: 2; /* Ensure content is visible */
}

.page-slot-games__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: -1px;
  color: #ffffff;
}

.page-slot-games__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-slot-games__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-play,
.page-slot-games__btn-promo {
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-slot-games__btn-primary {
  background: linear-gradient(180deg, var(--vf55-red-aux) 0%, var(--vf55-red-main) 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-slot-games__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-slot-games__btn-secondary {
  background: #ffffff;
  color: var(--vf55-red-main);
  border: 2px solid var(--vf55-red-main);
}

.page-slot-games__btn-secondary:hover {
  background: var(--vf55-red-main);
  color: #ffffff;
  transform: translateY(-2px);
}

.page-slot-games__intro-section,
.page-slot-games__features-section,
.page-slot-games__how-to-play-section,
.page-slot-games__promotions-section,
.page-slot-games__faq-section {
  padding: 60px 0;
  background-color: var(--vf55-card-bg);
  margin-bottom: 20px;
}

.page-slot-games__game-categories {
  padding: 60px 0;
  background-color: var(--vf55-bg-color);
  margin-bottom: 20px;
}

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

.page-slot-games__game-card {
  background: var(--vf55-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

.page-slot-games__game-card:hover {
  transform: translateY(-5px);
}

.page-slot-games__game-thumbnail {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--vf55-border-color);
}

.page-slot-games__game-title {
  font-size: 1.5em;
  color: var(--vf55-red-main);
  margin: 20px 10px 10px;
  font-weight: bold;
}

.page-slot-games__game-description {
  font-size: 0.95em;
  color: var(--vf55-text-main);
  margin: 0 15px 20px;
  min-height: 50px;
}

.page-slot-games__btn-play {
  background: linear-gradient(180deg, var(--vf55-red-aux) 0%, var(--vf55-red-main) 100%);
  color: #ffffff;
  display: inline-block;
  margin-top: 10px;
  width: calc(100% - 40px);
}

.page-slot-games__btn-play:hover {
  opacity: 0.9;
}

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

.page-slot-games__feature-item {
  background: var(--vf55-card-bg);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-slot-games__feature-item:hover {
  transform: translateY(-5px);
}

.page-slot-games__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-slot-games__feature-title {
  font-size: 1.4em;
  color: var(--vf55-red-main);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-slot-games__feature-description {
  font-size: 1em;
  color: var(--vf55-text-main);
}

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

.page-slot-games__step-item {
  background: var(--vf55-card-bg);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
}

.page-slot-games__step-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-slot-games__step-title {
  font-size: 1.3em;
  color: var(--vf55-red-main);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-slot-games__step-description {
  font-size: 0.95em;
  color: var(--vf55-text-main);
}

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

.page-slot-games__promo-card {
  background: var(--vf55-card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.page-slot-games__promo-card:hover {
  transform: translateY(-5px);
}

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

.page-slot-games__promo-title {
  font-size: 1.6em;
  color: var(--vf55-red-main);
  margin: 20px 20px 10px;
  font-weight: bold;
}

.page-slot-games__promo-description {
  font-size: 1em;
  color: var(--vf55-text-main);
  margin: 0 20px 20px;
  min-height: 50px;
}

.page-slot-games__btn-promo {
  background: linear-gradient(180deg, var(--vf55-red-aux) 0%, var(--vf55-red-main) 100%);
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  margin: 0 20px 20px;
}

.page-slot-games__btn-promo:hover {
  opacity: 0.9;
}

.page-slot-games__faq-list {
  margin-top: 40px;
}

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

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--vf55-text-main);
  cursor: pointer;
  background-color: #fcfcfc;
  border-bottom: 1px solid var(--vf55-border-color);
}

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

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

.page-slot-games__faq-question::marker {
  display: none;
}

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

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--vf55-red-main);
}

.page-slot-games__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1.0em;
  color: var(--vf55-text-main);
}

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

.page-slot-games__cta-section {
  background: var(--vf55-red-main);
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

.page-slot-games__cta-section .page-slot-games__section-title {
  color: #ffffff;
}

.page-slot-games__cta-section .page-slot-games__text-block {
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__copyright-section {
  background-color: #222;
  color: #aaa;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9em;
}

.page-slot-games__copyright-text {
  margin: 0;
}

.page-slot-games__button-group {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* General image responsiveness */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .page-slot-games__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

  .page-slot-games__main-title {
    font-size: 2em;
  }

  .page-slot-games__description {
    font-size: 1em;
  }

  /* Hero Section */
  .page-slot-games__hero-section {
    padding-top: 10px !important;
  }
  
  .page-slot-games__hero-image-container {
    max-height: none;
    margin-bottom: 15px;
  }

  .page-slot-games__hero-image {
    object-fit: contain; /* Ensure image is fully visible on mobile */
    aspect-ratio: unset;
    max-height: none;
  }

  .page-slot-games__hero-content {
    padding: 15px;
  }

  /* Buttons */
  .page-slot-games__cta-buttons,
  .page-slot-games__button-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__btn-play,
  .page-slot-games__btn-promo {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 1em;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  /* Game Grid */
  .page-slot-games__game-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
  }

  .page-slot-games__game-thumbnail {
    height: 150px;
    object-fit: cover;
  }

  .page-slot-games__game-card {
    padding-bottom: 15px;
  }

  .page-slot-games__game-title {
    font-size: 1.2em;
    margin: 15px 10px 8px;
  }

  .page-slot-games__game-description {
    font-size: 0.9em;
    margin: 0 10px 15px;
    min-height: unset;
  }

  /* Features Grid */
  .page-slot-games__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__feature-item {
    padding: 20px;
  }

  .page-slot-games__feature-icon {
    width: 80px;
    height: 80px;
  }

  .page-slot-games__feature-title {
    font-size: 1.2em;
  }

  /* Steps Grid */
  .page-slot-games__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__step-item {
    padding: 20px;
  }

  .page-slot-games__step-icon {
    width: 60px;
    height: 60px;
  }

  .page-slot-games__step-title {
    font-size: 1.1em;
  }

  /* Promotions Grid */
  .page-slot-games__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__promo-thumbnail {
    height: 200px;
  }

  .page-slot-games__promo-title {
    font-size: 1.4em;
    margin: 15px 15px 8px;
  }

  .page-slot-games__promo-description {
    font-size: 0.95em;
    margin: 0 15px 15px;
    min-height: unset;
  }

  .page-slot-games__btn-promo {
    width: calc(100% - 30px) !important;
    margin: 0 15px 15px;
  }

  /* FAQ */
  .page-slot-games__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-slot-games__faq-answer {
    padding: 10px 20px 15px;
    font-size: 0.95em;
  }

  /* General content sections */
  .page-slot-games__intro-section,
  .page-slot-games__features-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__promotions-section,
  .page-slot-games__faq-section,
  .page-slot-games__game-categories,
  .page-slot-games__cta-section {
    padding: 40px 0;
  }

  /* Ensure all images within content sections are responsive */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-slot-games__game-grid {
    grid-template-columns: 1fr;
  }

  .page-slot-games__promo-grid {
    grid-template-columns: 1fr;
  }
}

/* Color Contrast Fixes - Ensure text is readable on brand colors */
.page-slot-games__dark-section {
  background: var(--vf55-red-main);
  color: #ffffff;
}

.page-slot-games__light-bg {
  background: var(--vf55-card-bg);
  color: var(--vf55-text-main);
}