/* style/slot-games.css */

:root {
  --primary-color: #0A2463;
  --secondary-color: #E0B73B;
  --accent-color: #DC3545; /* Bright red for emphasis */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #121212; /* Body background from shared.css */
  --bg-light: #f8f8f8;
  --card-bg-dark: rgba(255, 255, 255, 0.08);
  --card-bg-light: #ffffff;
  --border-color: #2a2a2a;
}

/* Base styles for the page content, considering dark body background */
.page-slot-games {
  color: var(--text-light); /* Light text for dark body background */
  background-color: var(--bg-dark); /* Ensure consistency if section backgrounds are not full width */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-slot-games__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--secondary-color); /* Use gold for main titles */
}

.page-slot-games__main-title {
  font-size: 48px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.2;
}

.page-slot-games__description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

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

.page-slot-games__cta-center {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.page-slot-games__cta-button,
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__btn-primary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
  box-shadow: 0 4px 15px rgba(224, 183, 59, 0.4);
}

.page-slot-games__btn-primary:hover {
  background: #f0c54a;
  border-color: #f0c54a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224, 183, 59, 0.6);
}

.page-slot-games__btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  box-shadow: 0 4px 15px rgba(224, 183, 59, 0.2);
}

.page-slot-games__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224, 183, 59, 0.4);
}

/* Video Section Styles */
.page-slot-games__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Desktop padding-top to clear fixed header */
  background-color: var(--bg-dark);
}

.page-slot-games__video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-slot-games__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-slot-games__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-slot-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* Prevent video controls from blocking click event */
}

.page-slot-games__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-slot-games__video-link:hover .page-slot-games__video-overlay {
  opacity: 1;
}

.page-slot-games__video-click-hint {
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  background: rgba(224, 183, 59, 0.8);
  border-radius: 5px;
  white-space: nowrap;
}

.page-slot-games__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.page-slot-games__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(224, 183, 59, 0.4);
  border: none;
  cursor: pointer;
}

.page-slot-games__play-now-button:hover {
  background: #f0c54a;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(224, 183, 59, 0.6);
}

.page-slot-games__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Hero Section */
.page-slot-games__hero-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  padding-top: 120px; /* Desktop padding-top to clear fixed header */
}

/* Introduction Section */
.page-slot-games__introduction-section {
  padding: 80px 0;
  background-color: var(--bg-light);
  color: var(--text-dark); /* Dark text for light background */
}

.page-slot-games__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-slot-games__text-block p {
  margin-bottom: 15px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-dark);
}

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

.page-slot-games__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

/* Features Section */
.page-slot-games__features-section {
  padding: 80px 0;
  background-color: var(--primary-color);
}

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

.page-slot-games__feature-card {
  background-color: var(--card-bg-dark);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

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

.page-slot-games__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-slot-games__feature-card p {
  font-size: 16px;
  color: #c0c0c0;
  flex-grow: 1;
}

/* How to Play Section */
.page-slot-games__how-to-play-section {
  padding: 80px 0;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.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: var(--card-bg-light);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-slot-games__step-number {
  width: 60px;
  height: 60px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(224, 183, 59, 0.3);
}

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

.page-slot-games__step-card p {
  font-size: 16px;
  color: var(--text-dark);
}

/* Popular Games Section */
.page-slot-games__popular-games-section {
  padding: 80px 0;
  background-color: var(--primary-color);
}

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

.page-slot-games__game-card {
  background-color: var(--card-bg-dark);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  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 10px 25px rgba(0, 0, 0, 0.4);
}

.page-slot-games__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-slot-games__game-provider {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 15px;
}

.page-slot-games__game-button {
  display: block;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  padding: 12px 15px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 0 0 10px 10px;
  transition: background-color 0.3s ease;
}

.page-slot-games__game-button:hover {
  background-color: #f0c54a;
}

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

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

.page-slot-games__promo-card {
  background-color: var(--card-bg-light);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-slot-games__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid #e0e0e0;
}

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

.page-slot-games__promo-card p {
  font-size: 16px;
  color: var(--text-dark);
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-slot-games__promo-button {
  display: block;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 12px 15px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 0 0 10px 10px;
  transition: background-color 0.3s ease;
}

.page-slot-games__promo-button:hover {
  background-color: #0d3b8f;
}

/* Brand Section */
.page-slot-games__brand-section {
  padding: 80px 0;
  background-color: var(--primary-color);
}

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

.page-slot-games__brand-item {
  background-color: var(--card-bg-dark);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  height: 100%;
}

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

.page-slot-games__brand-item p {
  font-size: 16px;
  color: #c0c0c0;
}

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

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

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

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--card-bg-light);
  border: 1px solid #e0e0e0;
  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: 16px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--primary-color);
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.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; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.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: #f0f0f0;
  border-radius: 0 0 5px 5px;
  color: var(--text-dark);
}

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

.page-slot-games__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
}

/* Blog Section */
.page-slot-games__blog-section {
  padding: 80px 0;
  background-color: var(--primary-color);
}

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

.page-slot-games__blog-item {
  background-color: var(--card-bg-dark);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-slot-games__blog-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-slot-games__blog-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-slot-games__blog-item-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-slot-games__blog-item-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--secondary-color);
  margin: 20px 15px 10px;
  flex-grow: 1;
}

.page-slot-games__blog-item-excerpt {
  font-size: 16px;
  color: #c0c0c0;
  padding: 0 15px;
  margin-bottom: 15px;
}

.page-slot-games__blog-item-date {
  font-size: 14px;
  color: #888;
  padding: 0 15px 20px;
  display: block;
}

/* Final CTA Section */
.page-slot-games__final-cta-section {
  padding: 80px 0;
  background-color: var(--bg-light);
  color: var(--text-dark);
}

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

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

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

  .page-slot-games__cta-button,
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    padding: 12px 30px;
    font-size: 16px;
  }

  .page-slot-games__feature-title,
  .page-slot-games__step-title,
  .page-slot-games__game-title,
  .page-slot-games__promo-title,
  .page-slot-games__brand-item-title,
  .page-slot-games__blog-item-title {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .page-slot-games__container {
    padding: 0 15px;
  }

  .page-slot-games__video-section {
    padding-top: 10px !important; /* Mobile padding-top to clear fixed header */
    padding-bottom: 40px;
    padding-left: 0;
    padding-right: 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-slot-games__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }

  .page-slot-games__video-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 4px;
    overflow: hidden !important;
  }

  .page-slot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
    object-fit: contain;
  }

  .page-slot-games__video-cta {
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

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

  .page-slot-games__video-click-hint {
    font-size: 14px !important;
    padding: 8px 16px !important;
  }

  .page-slot-games__hero-section {
    padding: 60px 0;
    padding-top: 100px; /* Mobile padding-top to clear fixed header */
  }

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

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

  .page-slot-games__description {
    font-size: 15px;
  }

  .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 {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
  }

  .page-slot-games__introduction-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__brand-section,
  .page-slot-games__faq-section,
  .page-slot-games__blog-section,
  .page-slot-games__final-cta-section {
    padding: 40px 0;
  }

  .page-slot-games__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-slot-games__image-wrapper {
    order: -1; /* Image above text on mobile */
  }

  .page-slot-games__feature-card,
  .page-slot-games__step-card,
  .page-slot-games__game-card,
  .page-slot-games__promo-card,
  .page-slot-games__brand-item,
  .page-slot-games__blog-item {
    padding: 25px;
  }

  .page-slot-games__feature-icon {
    width: 80px;
    height: 80px;
  }

  .page-slot-games__feature-title,
  .page-slot-games__step-title,
  .page-slot-games__game-title,
  .page-slot-games__promo-title,
  .page-slot-games__brand-item-title,
  .page-slot-games__blog-item-title {
    font-size: 18px;
  }

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

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

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

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

  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding: 15px !important;
  }
  
  .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,
  .page-slot-games__hero-section,
  .page-slot-games__introduction-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__brand-section,
  .page-slot-games__faq-section,
  .page-slot-games__blog-section,
  .page-slot-games__final-cta-section,
  .page-slot-games__content-grid,
  .page-slot-games__feature-grid,
  .page-slot-games__steps-grid,
  .page-slot-games__games-grid,
  .page-slot-games__promo-grid,
  .page-slot-games__brand-content,
  .page-slot-games__blog-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-slot-games__main-title {
    font-size: 28px;
  }

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

  .page-slot-games__feature-card,
  .page-slot-games__step-card,
  .page-slot-games__game-card,
  .page-slot-games__promo-card,
  .page-slot-games__brand-item,
  .page-slot-games__blog-item {
    padding: 20px;
  }
}