.page-slot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--primary-color); /* Inherit from shared.css, which is #0A1931 */
}

.page-slot-games__dark-bg {
  background-color: #0A1931;
  color: #ffffff;
}

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

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

.page-slot-games__section-title {
  font-size: 2.5em;
  color: #E0B400;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-slot-games__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.5;
}

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-slot-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-slot-games__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-slot-games__hero-title {
  font-size: 3.8em;
  color: #E0B400;
  margin-bottom: 20px;
  line-height: 1.1;
  font-weight: 700;
}

.page-slot-games__hero-description {
  font-size: 1.3em;
  color: #ffffff;
  margin-bottom: 40px;
  line-height: 1.5;
}

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

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

.page-slot-games__btn-primary {
  background-color: #E0B400;
  color: #0A1931;
  border: 2px solid #E0B400;
}

.page-slot-games__btn-primary:hover {
  background-color: #ffc107;
  border-color: #ffc107;
}

.page-slot-games__btn-secondary {
  background-color: transparent;
  color: #E0B400;
  border: 2px solid #E0B400;
}

.page-slot-games__btn-secondary:hover {
  background-color: #E0B400;
  color: #0A1931;
}

/* Video Section */
.page-slot-games__video-section {
  padding: 80px 0;
  text-align: center;
}

.page-slot-games__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-slot-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
}

/* Why Choose Section */
.page-slot-games__why-choose-section {
  padding: 80px 0;
}

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

.page-slot-games__feature-card {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-slot-games__feature-image {
  width: 100%;
  max-width: 400px;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
}

.page-slot-games__feature-title {
  font-size: 1.6em;
  color: #0A1931;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-slot-games__feature-text {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
}

/* Game Types Section */
.page-slot-games__game-types-section {
  padding: 80px 0;
}

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

.page-slot-games__game-type-card {
  background-color: #1a2a47;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: #ffffff;
}

.page-slot-games__game-type-card:hover {
  transform: translateY(-10px);
  background-color: #2a3e61;
}

.page-slot-games__game-type-image {
  width: 100%;
  max-width: 350px;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
}

.page-slot-games__game-type-title {
  font-size: 1.6em;
  color: #E0B400;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-slot-games__game-type-text {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* How to Play Section */
.page-slot-games__how-to-play-section {
  padding: 80px 0;
}

.page-slot-games__steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 50px;
}

.page-slot-games__step-item {
  display: flex;
  align-items: center;
  gap: 30px;
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-slot-games__step-item:nth-child(even) {
  flex-direction: row-reverse;
}

.page-slot-games__step-image {
  width: 50%;
  height: auto;
  max-height: 350px;
  object-fit: cover;
  border-radius: 8px;
}

.page-slot-games__step-content {
  width: 50%;
}

.page-slot-games__step-title {
  font-size: 1.8em;
  color: #0A1931;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-slot-games__step-text {
  font-size: 1em;
  color: #555555;
  line-height: 1.6;
}

.page-slot-games__step-text a {
  color: #E0B400;
  text-decoration: none;
  font-weight: bold;
}

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

/* Strategy Section */
.page-slot-games__strategy-section {
  padding: 80px 0;
}

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

.page-slot-games__strategy-card {
  background-color: #1a2a47;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-slot-games__strategy-card:hover {
  transform: translateY(-10px);
}

.page-slot-games__strategy-image {
  width: 100%;
  max-width: 400px;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
}

.page-slot-games__strategy-title {
  font-size: 1.6em;
  color: #E0B400;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-slot-games__strategy-text {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.6;
}

.page-slot-games__strategy-text a {
  color: #E0B400;
  text-decoration: none;
  font-weight: bold;
}

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

/* Promotions Section */
.page-slot-games__promotions-section {
  padding: 80px 0;
}

.page-slot-games__promotion-card {
  display: flex;
  background-color: #f8f8f8;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
  overflow: hidden;
}

.page-slot-games__promotion-card:nth-child(even) {
  flex-direction: row-reverse;
}

.page-slot-games__promotion-image {
  width: 50%;
  height: auto;
  object-fit: cover;
}

.page-slot-games__promotion-content {
  width: 50%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-slot-games__promotion-title {
  font-size: 2em;
  color: #0A1931;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-slot-games__promotion-text {
  font-size: 1.1em;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* App Download Section */
.page-slot-games__app-download-section {
  padding: 80px 0;
  text-align: center;
}

.page-slot-games__app-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.page-slot-games__app-text {
  max-width: 600px;
  text-align: left;
  color: #ffffff;
}

.page-slot-games__app-text p {
  font-size: 1.1em;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-slot-games__app-qr-code {
  width: 250px;
  height: 250px;
  object-fit: contain;
  background-color: #ffffff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-slot-games__faq-section {
  padding: 80px 0;
}

.page-slot-games__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__faq-item {
  background-color: #f8f8f8;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #eeeeee;
  transition: background-color 0.3s ease;
}

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

.page-slot-games__faq-question h3 {
  font-size: 1.2em;
  color: #0A1931;
  margin: 0;
  font-weight: bold;
}

.page-slot-games__faq-toggle {
  font-size: 1.8em;
  color: #E0B400;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  transform: rotate(45deg);
}

.page-slot-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 30px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 30px;
}

.page-slot-games__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__hero-title {
    font-size: 3em;
  }
  .page-slot-games__section-title {
    font-size: 2em;
  }
  .page-slot-games__promotion-card {
    flex-direction: column;
  }
  .page-slot-games__promotion-card:nth-child(even) {
    flex-direction: column;
  }
  .page-slot-games__promotion-image,
  .page-slot-games__promotion-content {
    width: 100%;
  }
  .page-slot-games__app-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-slot-games__app-text {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-slot-games__hero-title {
    font-size: 2.2em;
  }
  .page-slot-games__hero-description {
    font-size: 1em;
  }
  .page-slot-games__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    width: 100%;
    max-width: 300px !important; /* Constrain width for smaller screens */
    margin: 0 auto;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-slot-games__section-title {
    font-size: 1.8em;
  }
  .page-slot-games__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-slot-games__video-section,
  .page-slot-games__why-choose-section,
  .page-slot-games__game-types-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__strategy-section,
  .page-slot-games__promotions-section,
  .page-slot-games__app-download-section,
  .page-slot-games__faq-section {
    padding: 60px 0;
  }

  .page-slot-games__container {
    padding: 0 15px;
  }

  .page-slot-games img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-slot-games video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-slot-games__video-wrapper,
  .page-slot-games__app-content,
  .page-slot-games__promotion-card,
  .page-slot-games__feature-card,
  .page-slot-games__game-type-card,
  .page-slot-games__strategy-card,
  .page-slot-games__faq-item,
  .page-slot-games__hero-cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-slot-games__feature-card, .page-slot-games__game-type-card, .page-slot-games__strategy-card {
    padding: 20px;
  }

  .page-slot-games__step-item {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  .page-slot-games__step-item:nth-child(even) {
    flex-direction: column;
  }
  .page-slot-games__step-image,
  .page-slot-games__step-content {
    width: 100%;
  }
  .page-slot-games__step-title {
    font-size: 1.5em;
  }
  .page-slot-games__promotion-image {
    height: 200px; /* Adjust for mobile */
  }
  .page-slot-games__promotion-content {
    padding: 25px;
  }
  .page-slot-games__promotion-title {
    font-size: 1.5em;
  }
  .page-slot-games__app-qr-code {
    width: 200px;
    height: 200px;
  }
  .page-slot-games__faq-question {
    padding: 15px 20px;
  }
  .page-slot-games__faq-question h3 {
    font-size: 1.1em;
  }
  .page-slot-games__faq-answer {
    padding: 15px 20px;
  }
  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-slot-games__hero-title {
    font-size: 1.8em;
  }
  .page-slot-games__section-title {
    font-size: 1.5em;
  }
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    padding: 10px 15px;
    font-size: 0.9em;
  }
  .page-slot-games__feature-title,
  .page-slot-games__game-type-title,
  .page-slot-games__strategy-title {
    font-size: 1.4em;
  }
  .page-slot-games__step-title {
    font-size: 1.3em;
  }
  .page-slot-games__promotion-title {
    font-size: 1.3em;
  }
  .page-slot-games__faq-question h3 {
    font-size: 1em;
  }
}

/* Ensure content area images are not too small */
.page-slot-games img {
  min-width: 200px;
  min-height: 200px;
}

/* Specific rules to ensure content images are not shrunk below 200px by page CSS */
.page-slot-games__hero-image,
.page-slot-games__feature-image,
.page-slot-games__game-type-image,
.page-slot-games__step-image,
.page-slot-games__strategy-image,
.page-slot-games__promotion-image,
.page-slot-games__app-qr-code {
    min-width: 200px;
    min-height: 200px;
}

/* Ensure no filter is used on images */
.page-slot-games img {
    filter: none;
}