/* style/slot-games.css */
:root {
  --primary-color: #003366;
  --secondary-color: #FFD700;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light: #f8f8f8;
  --background-dark: #002244;
  --border-color: #e0e0e0;
}

.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--background-light);
  padding-top: var(--header-offset, 120px);
}

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

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

.page-slot-games__light-bg {
  background-color: var(--background-light);
  color: var(--text-color-dark);
}

.page-slot-games__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from parent section */
}

.page-slot-games__section-subtitle {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

/* Hero Section */
.page-slot-games__hero-section {
  padding: 80px 0;
  text-align: center;
  background-image: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), url('[GALLERY:hero_bg:1920x1080:bj88,slot_games,hero,background,abstract_lines]');
  background-size: cover;
  background-position: center;
  color: var(--text-color-light);
}

.page-slot-games__main-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.page-slot-games__hero-description {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.8;
}

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

.page-slot-games__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-primary {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.page-slot-games__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__btn-secondary:hover {
  background: var(--background-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-slot-games__intro-section {
  padding: 60px 0;
}

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

.page-slot-games__grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-slot-games__content-block {
  flex: 1;
  font-size: 17px;
  line-height: 1.7;
}

.page-slot-games__content-block p strong {
  color: var(--primary-color);
}

.page-slot-games__image-wrapper {
  flex: 1;
  text-align: center;
}

.page-slot-games__image-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Features Section */
.page-slot-games__features-section {
  padding: 60px 0;
}

.page-slot-games__features-section .page-slot-games__section-title {
  color: var(--secondary-color);
}

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

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

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

.page-slot-games__feature-icon {
  width: 100%; /* Ensure full width for large images */
  height: auto; /* Maintain aspect ratio */
  max-width: 200px; /* Adjust max-width for visual balance */
  margin-bottom: 20px;
  border-radius: 8px;
}

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

.page-slot-games__feature-description {
  font-size: 16px;
  color: #555555;
}

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

.page-slot-games__how-to-play-section .page-slot-games__section-title {
  color: var(--primary-color);
}

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

.page-slot-games__step-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: relative;
}

.page-slot-games__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

.page-slot-games__step-description {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
}

.page-slot-games__btn-link {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-link:hover {
  background-color: var(--background-dark);
}

/* Popular Games Section */
.page-slot-games__popular-games-section {
  padding: 60px 0;
}

.page-slot-games__popular-games-section .page-slot-games__section-title {
  color: var(--secondary-color);
}

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

.page-slot-games__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

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

.page-slot-games__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-slot-games__game-title {
  font-size: 22px;
  font-weight: bold;
  margin: 20px 15px 10px 15px;
  color: var(--primary-color);
}

.page-slot-games__game-description {
  font-size: 15px;
  color: #555555;
  padding: 0 15px 20px 15px;
}

.page-slot-games__btn-play {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

.page-slot-games__promo-card {
  display: flex;
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  align-items: center;
}

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

.page-slot-games__promo-image {
  flex: 1;
  width: 100%;
  height: auto;
  object-fit: cover;
  min-width: 200px; /* Minimum size for content images */
}

.page-slot-games__promo-content {
  flex: 1;
  padding: 30px;
}

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

.page-slot-games__promo-description {
  font-size: 17px;
  color: #555555;
  margin-bottom: 25px;
}

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

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

.page-slot-games__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-slot-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 2000px !important; /* 🚨 Using !important as per requirements */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-slot-games__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-slot-games__faq-question:active {
  background: #eeeeee;
}

.page-slot-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none;
}

.page-slot-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

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

/* CTA Bottom Section */
.page-slot-games__cta-bottom-section {
  padding: 80px 0;
  text-align: center;
  background-image: linear-gradient(rgba(0, 51, 102, 0.85), rgba(0, 51, 102, 0.85)), url('[GALLERY:cta_bg:1920x1080:bj88,slot_games,cta,background,abstract_pattern]');
  background-size: cover;
  background-position: center;
  color: var(--text-color-light);
}

.page-slot-games__cta-bottom-section .page-slot-games__section-title {
  font-size: 40px;
  color: var(--secondary-color);
}

.page-slot-games__cta-bottom-section .page-slot-games__section-subtitle {
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.8;
}

/* General Image styles for content area - minimum size enforcement */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__main-title {
    font-size: 40px;
  }

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

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

  .page-slot-games__promo-card {
    flex-direction: column;
  }

  .page-slot-games__promo-card:nth-child(even) {
    flex-direction: column;
  }

  .page-slot-games__promo-content {
    padding: 25px;
  }

  .page-slot-games__promo-image {
    height: 300px; /* Adjust height for tablet */
  }
}

@media (max-width: 768px) {
  .page-slot-games {
    padding-top: var(--header-offset, 120px) !important;
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-slot-games__hero-section,
  .page-slot-games__intro-section,
  .page-slot-games__features-section,
  .page-slot-games__how-to-play-section,
  .page-slot-games__popular-games-section,
  .page-slot-games__promotions-section,
  .page-slot-games__faq-section,
  .page-slot-games__cta-bottom-section {
    padding: 40px 0;
  }

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

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

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

  .page-slot-games__cta-button,
  .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 25px !important;
    font-size: 16px !important;
  }

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

  .page-slot-games__section-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-slot-games__grid {
    flex-direction: column;
    gap: 30px;
  }

  .page-slot-games__feature-card {
    padding: 25px;
  }

  .page-slot-games__feature-icon {
    max-width: 150px;
  }

  .page-slot-games__feature-title {
    font-size: 20px;
  }

  .page-slot-games__step-card {
    padding: 25px;
  }

  .page-slot-games__step-title {
    font-size: 20px;
  }

  .page-slot-games__game-image {
    height: 180px;
  }

  .page-slot-games__game-title {
    font-size: 20px;
  }

  .page-slot-games__promo-image {
    height: 250px;
  }

  .page-slot-games__promo-content {
    padding: 25px;
  }

  .page-slot-games__promo-title {
    font-size: 24px;
  }

  .page-slot-games__faq-question {
    padding: 15px;
  }

  .page-slot-games__faq-question h3 {
    font-size: 16px;
  }

  .page-slot-games__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }

  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding: 15px !important;
  }

  .page-slot-games__cta-bottom-section .page-slot-games__section-title {
    font-size: 32px;
  }

  .page-slot-games__cta-bottom-section .page-slot-games__section-subtitle {
    font-size: 16px;
  }

  /* Mobile image and video responsive rules */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !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__video-section,
  .page-slot-games__video-container,
  .page-slot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}