/* style/slot-games.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #ffc107;
  --dark-bg-color: #121212;
  --dark-section-bg: #1a1a1a;
  --dark-card-bg: #222222;
  --text-light: #f0f0f0;
  --text-medium: #cccccc;
  --text-dark: #333333;
}

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

/* Desktop padding-top for fixed header */
.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: Adjust for fixed header */
  background-color: transparent;
  box-shadow: none;
  border-radius: 0;
  margin-bottom: 20px;
}

.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.4);
}

.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.3);
}

.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 on parent <a> */
}

.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(0, 123, 255, 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(--primary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-slot-games__play-now-button:hover {
  background: #0056b3; /* Darker version of #007bff */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* General section styling */
.page-slot-games__section,
.page-slot-games__title-section,
.page-slot-games__faq-section,
.page-slot-games__brand-section,
.page-slot-games__blog-section {
  background-color: var(--dark-section-bg); /* Slightly lighter dark for sections */
  color: var(--text-light);
  padding: 60px 20px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

/* Headings */
.page-slot-games h1,
.page-slot-games h2,
.page-slot-games h3 {
  color: #ffffff;
  text-align: center;
  margin-bottom: 25px;
  font-weight: 700;
}

.page-slot-games h1 {
  font-size: 3.2em;
}

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

.page-slot-games h3 {
  font-size: 1.8em;
}

/* Paragraphs and lists */
.page-slot-games p,
.page-slot-games li {
  color: var(--text-medium);
  line-height: 1.7;
  font-size: 1.1em;
}

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

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

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

.page-slot-games__btn-primary:hover {
  background: #0056b3; /* Darker version of #007bff */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-slot-games__btn-secondary {
  background: var(--secondary-color);
  color: var(--text-dark); /* Dark text for contrast on yellow */
}

.page-slot-games__btn-secondary:hover {
  background: #e0a800; /* Darker version of #ffc107 */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-slot-games__faq-main-title {
  margin-bottom: 40px;
}

.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--dark-card-bg);
  border: 1px solid #333333;
  border-radius: 8px;
  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: #2e2e2e;
  border-color: #444444;
}

.page-slot-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  text-align: left;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-slot-games__faq-toggle {
  font-size: 28px;
  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: 32px;
  height: 32px;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* Optional: rotate for 'x' effect */
}

.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 25px;
  opacity: 0;
  background: var(--dark-section-bg);
  color: var(--text-medium);
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain any content */
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid #333333;
  border-radius: 0 0 8px 8px;
}

/* Brand Section */
.page-slot-games__brand-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__brand-item {
  background: var(--dark-card-bg);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-slot-games__brand-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__brand-item h3 {
  color: var(--primary-color);
  font-size: 1.5em;
  margin-bottom: 15px;
  text-align: left;
}

.page-slot-games__brand-item p {
  font-size: 1em;
  color: var(--text-medium);
}

/* Blog Section */
.page-slot-games__blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__blog-item {
  background: var(--dark-card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-slot-games__blog-link {
  text-decoration: none;
  display: block;
  color: inherit;
}

.page-slot-games__blog-item-image {
  width: 100%;
  height: 200px; /* Fixed height for blog images */
  object-fit: cover;
  display: block;
  filter: none; /* Ensure no image color changes */
}

.page-slot-games__blog-item-title {
  font-size: 1.3em;
  font-weight: bold;
  color: #ffffff;
  padding: 15px 20px 10px;
  text-align: left;
}

.page-slot-games__blog-item-excerpt {
  font-size: 0.95em;
  color: var(--text-medium);
  padding: 0 20px 15px;
}

.page-slot-games__blog-item-date {
  display: block;
  font-size: 0.85em;
  color: #aaaaaa;
  padding: 0 20px 20px;
  text-align: right;
}

.page-slot-games__blog-cta {
  text-align: center;
  margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games h1 {
    font-size: 2.8em;
  }

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

  .page-slot-games h3 {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-slot-games__video-section {
    padding-top: 10px !important; /* Mobile: Adjust for fixed header */
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 15px;
  }
  
  .page-slot-games__video-container,
  .page-slot-games__video-link,
  .page-slot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-slot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain; /* Ensure video fits within container */
  }

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

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

  .page-slot-games__section,
  .page-slot-games__title-section,
  .page-slot-games__faq-section,
  .page-slot-games__brand-section,
  .page-slot-games__blog-section {
    padding: 40px 15px;
    margin-bottom: 20px;
  }

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

  .page-slot-games h1 {
    font-size: 2.2em;
  }

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

  .page-slot-games h3 {
    font-size: 1.3em;
  }

  .page-slot-games p,
  .page-slot-games li {
    font-size: 1em;
  }

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

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

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

  .page-slot-games__faq-question h3 {
    font-size: 1em;
  }

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

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

  .page-slot-games__brand-content,
  .page-slot-games__blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-slot-games img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

@media (max-width: 480px) {
  .page-slot-games h1 {
    font-size: 1.8em;
  }

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

  .page-slot-games h3 {
    font-size: 1.1em;
  }

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