/* style/slot-games.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1E90FF; /* Dodger Blue */
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light-gray: #f1f3f5;
  --bg-dark-1: #0d0d0d; /* Assuming body background from shared.css */
}

.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--bg-dark-1);
}

/* Ensure content is not hidden by fixed header */
.page-slot-games__intro-section {
  padding-top: 120px; /* Desktop: Adjust based on fixed header height */
}

.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(--bg-dark-1);
  color: var(--text-light);
}

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

.page-slot-games__main-heading,
.page-slot-games__section-heading {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
  line-height: 1.2;
}

.page-slot-games__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

.page-slot-games__intro-section {
  padding-bottom: 60px;
  text-align: center;
}

.page-slot-games__intro-text {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-slot-games__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

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

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

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

.page-slot-games__core-games-section,
.page-slot-games__promotions-section,
.page-slot-games__tips-section,
.page-slot-games__latest-news-section {
  padding: 80px 0;
}

.page-slot-games__core-games-section,
.page-slot-games__tips-section,
.page-slot-games__latest-news-section {
  background-color: var(--bg-light-gray);
  color: var(--text-dark);
}

.page-slot-games__core-games-section .page-slot-games__section-description,
.page-slot-games__tips-section .page-slot-games__section-description,
.page-slot-games__latest-news-section .page-slot-games__section-description {
  color: var(--text-dark);
}

.page-slot-games__core-games-section .page-slot-games__section-heading,
.page-slot-games__tips-section .page-slot-games__section-heading,
.page-slot-games__latest-news-section .page-slot-games__section-heading {
  color: var(--text-dark);
}

.page-slot-games__game-grid,
.page-slot-games__promo-grid,
.page-slot-games__tips-grid,
.page-slot-games__news-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,
.page-slot-games__tip-card,
.page-slot-games__news-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
}

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

.page-slot-games__game-image,
.page-slot-games__promo-image,
.page-slot-games__tip-image,
.page-slot-games__news-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-slot-games__game-title,
.page-slot-games__promo-title,
.page-slot-games__tip-title,
.page-slot-games__news-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--text-dark);
  flex-grow: 1;
}

.page-slot-games__game-title a,
.page-slot-games__news-title a {
  color: var(--text-dark);
  text-decoration: none;
}

.page-slot-games__game-title a:hover,
.page-slot-games__news-title a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-slot-games__game-text,
.page-slot-games__promo-text,
.page-slot-games__tip-text,
.page-slot-games__news-excerpt {
  font-size: 16px;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-slot-games__game-text a,
.page-slot-games__promo-text a,
.page-slot-games__tip-text a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-slot-games__game-text a:hover,
.page-slot-games__promo-text a:hover,
.page-slot-games__tip-text a:hover {
  text-decoration: underline;
}

.page-slot-games__game-button,
.page-slot-games__promo-button,
.page-slot-games__tip-button,
.page-slot-games__news-readmore {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: auto; /* Push button to bottom */
}

.page-slot-games__game-button:hover,
.page-slot-games__promo-button:hover,
.page-slot-games__tip-button:hover,
.page-slot-games__news-readmore:hover {
  background: #e6c200;
  transform: translateY(-2px);
}

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

.page-slot-games__cta-more p {
  font-size: 18px;
  margin-bottom: 25px;
  color: var(--text-light);
}

.page-slot-games__core-games-section .page-slot-games__cta-more p,
.page-slot-games__tips-section .page-slot-games__cta-more p,
.page-slot-games__latest-news-section .page-slot-games__cta-more p {
  color: var(--text-dark);
}

/* FAQ Section */
.page-slot-games__faq-section {
  padding: 80px 0;
  background-color: var(--bg-dark-1);
  color: var(--text-light);
}

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

.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; /* Sufficiently large to contain content */
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
  border-radius: 0 0 5px 5px;
  color: var(--text-light);
}

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

.page-slot-games__faq-question:hover {
  background: #444444;
  border-color: #555555;
}

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

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

.page-slot-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color); /* Use primary color for toggle icon */
  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(--primary-color);
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

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

  .page-slot-games__section-heading {
    font-size: 30px;
  }

  .page-slot-games__intro-text,
  .page-slot-games__section-description {
    font-size: 16px;
  }

  .page-slot-games__game-grid,
  .page-slot-games__promo-grid,
  .page-slot-games__tips-grid,
  .page-slot-games__news-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .page-slot-games__intro-section {
    padding-top: 100px !important; /* Mobile: Adjust based on fixed header height */
    padding-bottom: 40px;
  }

  .page-slot-games__core-games-section,
  .page-slot-games__promotions-section,
  .page-slot-games__tips-section,
  .page-slot-games__latest-news-section,
  .page-slot-games__faq-section {
    padding: 50px 0;
  }

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

  .page-slot-games__main-heading {
    font-size: 28px;
  }

  .page-slot-games__section-heading {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .page-slot-games__intro-text,
  .page-slot-games__section-description {
    font-size: 15px;
  }

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

  .page-slot-games__cta-button {
    width: 100%;
    font-size: 16px;
    padding: 12px 25px;
  }

  .page-slot-games__game-grid,
  .page-slot-games__promo-grid,
  .page-slot-games__tips-grid,
  .page-slot-games__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__game-image,
  .page-slot-games__promo-image,
  .page-slot-games__tip-image,
  .page-slot-games__news-image {
    height: 180px;
  }

  .page-slot-games__game-title,
  .page-slot-games__promo-title,
  .page-slot-games__tip-title,
  .page-slot-games__news-title {
    font-size: 20px;
  }

  .page-slot-games__game-text,
  .page-slot-games__promo-text,
  .page-slot-games__tip-text,
  .page-slot-games__news-excerpt {
    font-size: 14px;
  }

  .page-slot-games__game-button,
  .page-slot-games__promo-button,
  .page-slot-games__tip-button,
  .page-slot-games__news-readmore {
    width: 100%;
    padding: 10px 20px;
    font-size: 14px;
  }

  .page-slot-games__cta-more {
    margin-top: 40px;
  }

  .page-slot-games__cta-more p {
    font-size: 16px;
  }
  
  .page-slot-games__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-slot-games__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-slot-games__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-slot-games__faq-answer {
    padding: 0 15px;
  }
  
  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding: 15px !important;
  }
}

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

.page-slot-games__game-card .page-slot-games__game-image,
.page-slot-games__promo-card .page-slot-games__promo-image,
.page-slot-games__tip-card .page-slot-games__tip-image,
.page-slot-games__news-card .page-slot-games__news-image {
  width: 100%; /* Ensure card images fill container */
}

@media (max-width: 768px) {
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-slot-games__intro-section,
  .page-slot-games__core-games-section,
  .page-slot-games__promotions-section,
  .page-slot-games__tips-section,
  .page-slot-games__latest-news-section,
  .page-slot-games__faq-section,
  .page-slot-games__container,
  .page-slot-games__game-card,
  .page-slot-games__promo-card,
  .page-slot-games__tip-card,
  .page-slot-games__news-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-slot-games__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}