:root {
  --primary-color: #E53935;
  --secondary-color: #FF5A4F;
  --text-main-color: #333333;
  --card-bg-color: #FFFFFF;
  --background-color: #F5F7FA;
  --border-color: #E0E0E0;
}

.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color);
  background-color: var(--background-color);
  overflow-x: hidden; /* Ensure no horizontal scroll on main content */
}

/* Typography */
.page-slot-games h1,
.page-slot-games h2,
.page-slot-games h3 {
  margin-top: 0;
  margin-bottom: 15px;
}

.page-slot-games h1 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 900px; /* Limit H1 width for better readability */
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main-color); /* Ensure high contrast on light background */
}

.page-slot-games h2 {
  font-size: clamp(2em, 5vw, 2.5em); /* Responsive H2 font size */
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
}

.page-slot-games h3 {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--primary-color);
}

.page-slot-games p {
  margin-bottom: 1em;
  color: var(--text-main-color);
}

.page-slot-games__text-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.page-slot-games__text-link:hover {
  text-decoration: underline;
}

.page-slot-games__text-link--light {
  color: #ffffff;
}

.page-slot-games__highlight {
  color: var(--primary-color);
  font-weight: 700;
}

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

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

.page-slot-games__section-title {
  color: var(--primary-color);
}

.page-slot-games__section-title--light {
  color: #ffffff; /* For dark sections */
}

.page-slot-games__text-block--light {
  color: #f0f0f0; /* For dark sections */
}

.page-slot-games__dark-section {
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-slot-games__dark-bg {
  background-color: var(--primary-color);
  color: #ffffff;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--background-color);
}

.page-slot-games__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure it takes full width for max-width to work */
}

.page-slot-games__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-slot-games__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Min image size requirement */
  min-height: 200px; /* Min image size requirement */
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-slot-games__hero-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--text-main-color);
}

.page-slot-games__cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-slot-games__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-slot-games__cta-button--secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
}

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

/* Image Wrappers */
.page-slot-games__image-wrapper {
  margin: 30px auto;
  text-align: center;
  width: 100%; /* Ensure wrapper takes full width */
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-slot-games__image-wrapper img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Min image size requirement */
  min-height: 200px; /* Min image size requirement */
  margin: 0 auto; /* Center image within wrapper */
}

/* Lists */
.page-slot-games__numbered-list,
.page-slot-games__bullet-list {
  list-style-position: inside;
  padding-left: 0;
  margin-bottom: 20px;
}

.page-slot-games__numbered-list li,
.page-slot-games__bullet-list li {
  margin-bottom: 10px;
  color: var(--text-main-color);
}

.page-slot-games__bullet-list--light li {
  color: #f0f0f0;
}

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

.page-slot-games__game-card,
.page-slot-games__promo-card {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.page-slot-games__game-card img,
.page-slot-games__promo-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency in cards */
  object-fit: cover;
  border-bottom: 1px solid var(--border-color);
  min-width: 200px; /* Min image size requirement */
  min-height: 200px; /* Min image size requirement */
}

.page-slot-games__game-card .page-slot-games__card-title,
.page-slot-games__promo-card .page-slot-games__card-title {
  font-size: 1.3em;
  margin: 20px 15px 10px;
  color: var(--primary-color);
}

.page-slot-games__game-card .page-slot-games__card-description,
.page-slot-games__promo-card .page-slot-games__card-description {
  font-size: 0.95em;
  padding: 0 15px;
  color: var(--text-main-color);
  flex-grow: 1;
}

/* Feature Grid */
.page-slot-games__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-slot-games__feature-item {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__feature-item img {
  width: 200px; /* Set to minimum allowed */
  height: 200px; /* Set to minimum allowed */
  object-fit: contain;
  margin-bottom: 15px;
}

.page-slot-games__feature-title {
  font-size: 1.2em;
  margin-bottom: 10px;
  color: var(--primary-color);
}

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

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

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

details.page-slot-games__faq-item summary.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main-color);
  font-weight: 600;
}

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

details.page-slot-games__faq-item summary.page-slot-games__faq-question:hover {
  background: #f5f5f5;
}

.page-slot-games__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--primary-color);
}

.page-slot-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-slot-games__faq-item .page-slot-games__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-main-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-slot-games__hero-description {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-slot-games h1 {
    font-size: clamp(2em, 8vw, 3em); /* Responsive H1 font size */
    padding: 0 10px;
  }

  .page-slot-games h2 {
    font-size: 2em;
  }

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

  .page-slot-games__hero-section {
    padding-top: 10px !important; /* Body handles header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-slot-games__hero-image img {
    border-radius: 4px;
  }

  .page-slot-games__hero-description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  .page-slot-games__cta-group {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to container */
  }

  .page-slot-games__cta-button {
    padding: 12px 20px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-slot-games__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__image-wrapper {
    padding: 0 10px; /* Add padding to image wrapper */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__image-wrapper img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-slot-games__game-grid,
  .page-slot-games__promo-grid,
  .page-slot-games__feature-grid {
    grid-template-columns: 1fr; /* Stack cards vertically */
    gap: 20px;
  }

  .page-slot-games__game-card img,
  .page-slot-games__promo-card img {
     /* Slightly smaller height for mobile cards */
  }

  details.page-slot-games__faq-item summary.page-slot-games__faq-question { padding: 15px; }
  .page-slot-games__faq-qtext { font-size: 15px; }
  details.page-slot-games__faq-item .page-slot-games__faq-answer { padding: 0 15px 15px; }

  /* Ensure all images are responsive */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}