.page-slot-games {
  font-family: 'Arial', sans-serif;
  color: #333333;
  background-color: #FFFFFF;
}

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

.page-slot-games__section {
  padding: 60px 0;
  text-align: center;
}

.page-slot-games__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-slot-games__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-slot-games__section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-slot-games__sub-title {
  font-size: clamp(22px, 2.5vw, 30px);
  margin-top: 40px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-slot-games__paragraph {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 15px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__list {
  list-style: none;
  padding: 0;
  margin: 20px auto;
  max-width: 800px;
  text-align: left;
}

.page-slot-games__list-item {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-slot-games__list-item::before {
  content: '✅';
  position: absolute;
  left: 0;
  color: #017439;
}

/* Hero Section */
.page-slot-games__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px 0 60px 0; /* Adjusted padding-top to 10px */
  overflow: hidden;
}

.page-slot-games__hero-image-container {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
}

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

.page-slot-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up slightly, but not over image */
}

.page-slot-games__main-title {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  color: #FFFF00; /* Special color for H1 as per brand guide */
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-slot-games__hero-description {
  font-size: clamp(18px, 2vw, 24px);
  color: #ffffff;
  margin-bottom: 30px;
  line-height: 1.5;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

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

/* Buttons */
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary,
.page-slot-games__btn-play,
.page-slot-games a[class*="button"],
.page-slot-games a[class*="btn"] {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-slot-games__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-slot-games__btn-primary:hover {
  background-color: #ff3333;
  border-color: #ff3333;
  transform: translateY(-2px);
}

.page-slot-games__btn-secondary {
  background-color: #FFFFFF;
  color: #017439; /* Primary brand color */
  border: 2px solid #017439;
}

.page-slot-games__btn-secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.page-slot-games__btn-inline {
  margin-top: 20px;
  margin-bottom: 20px;
}

.page-slot-games__btn-large {
  padding: 18px 40px;
  font-size: 20px;
}

/* Game Grid */
.page-slot-games__games-showcase .page-slot-games__section-title,
.page-slot-games__games-showcase .page-slot-games__paragraph {
  color: #ffffff;
}

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

.page-slot-games__game-tile {
  background-color: #1a1a1a; /* Dark background for game tiles */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 1 / 1; /* Ensure square aspect ratio */
}

.page-slot-games__game-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

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

.page-slot-games__game-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  padding: 15px;
  color: #ffffff;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.page-slot-games__game-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFFF00; /* Game title font color */
}

.page-slot-games__btn-play {
  background-color: #C30808;
  color: #FFFF00;
  padding: 8px 15px;
  font-size: 16px;
  border-radius: 6px;
  border: none;
}

.page-slot-games__btn-play:hover {
  background-color: #ff3333;
}

/* Content Images */
.page-slot-games__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-slot-games__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-slot-games__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-slot-games__faq-item[open] {
  background-color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 19px;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  list-style: none; /* Remove default marker */
  position: relative;
  user-select: none;
}

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

.page-slot-games__faq-question:hover {
  background-color: #f0f0f0;
}

.page-slot-games__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

.page-slot-games__faq-toggle {
  font-size: 24px;
  line-height: 1;
  width: 24px;
  text-align: center;
  color: #017439;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
  color: #C30808;
}

.page-slot-games__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  line-height: 1.7;
  color: #555555;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-slot-games__faq-item:not([open]) .page-slot-games__faq-answer {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

/* Footer */
.page-slot-games__footer {
  background-color: #017439;
  color: #ffffff;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
}

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

/* --- Responsive Styles --- */

/* General Mobile Styles */
@media (max-width: 768px) {
  .page-slot-games__container {
    padding: 15px;
  }

  .page-slot-games__section {
    padding: 40px 0;
  }

  .page-slot-games__section-title {
    font-size: 28px;
  }

  .page-slot-games__sub-title {
    font-size: 22px;
  }

  .page-slot-games__paragraph,
  .page-slot-games__list-item {
    font-size: 15px;
  }

  /* Hero Section Mobile */
  .page-slot-games__hero-section {
    padding: 10px 0 40px 0 !important; /* Specific padding-top for hero on mobile */
    flex-direction: column;
  }

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

  .page-slot-games__hero-content {
    padding: 20px 15px;
    margin-top: -50px; /* Adjust margin for smaller screens */
  }

  .page-slot-games__main-title {
    font-size: 32px;
    line-height: 1.2;
  }

  .page-slot-games__hero-description {
    font-size: 16px;
  }

  .page-slot-games__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
  }

  /* Buttons Mobile */
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games__btn-play,
  .page-slot-games a[class*="button"],
  .page-slot-games 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-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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* Game Grid Mobile */
  .page-slot-games__game-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    gap: 15px;
  }

  .page-slot-games__game-tile {
    aspect-ratio: 1 / 1;
  }

  /* Universal Image Handling for Mobile */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

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

  .page-slot-games__faq-answer {
    padding: 0 20px 15px;
  }
}