/* style/slot-games.css */
:root {
  --primary-color: #0A2463;
  --secondary-color: #E34234;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0f0f0f; /* From shared.css body background */
  --card-bg-dark-theme: rgba(255, 255, 255, 0.1);
  --border-color-dark-theme: rgba(255, 255, 255, 0.15);
}

.page-slot-games {
  color: var(--text-light); /* Main text color for dark body background */
  background-color: var(--bg-dark);
  min-height: 100vh;
}

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

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

.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.5);
  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(var(--primary-color-rgb, 10, 36, 99), 0.8); /* Use RGB for transparency */
  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); /* Use red for CTA */
  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.3);
  border: none;
  cursor: pointer;
}

.page-slot-games__play-now-button:hover {
  background: #c7372d; /* Darker red */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

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

.page-slot-games__title-section {
  padding: 80px 20px;
  text-align: center;
  background: var(--primary-color);
  color: var(--text-light);
}

.page-slot-games__title-container {
  max-width: 900px;
  margin: 0 auto;
}

.page-slot-games__main-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-slot-games__title-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #f0f0f0;
}

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

.page-slot-games__cta-button {
  display: inline-block;
  padding: 14px 30px;
  background: var(--secondary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 17px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-slot-games__content-section {
  padding: 60px 20px;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

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

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

.page-slot-games__heading {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: inherit;
}

.page-slot-games__sub-heading {
  font-size: 28px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  color: inherit;
}

.page-slot-games__paragraph {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: inherit;
}

.page-slot-games__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: inherit;
}

.page-slot-games__list-item {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 10px;
  color: inherit;
}

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

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

.page-slot-games__promo-card {
  background: var(--card-bg-dark-theme);
  border: 1px solid var(--border-color-dark-theme);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  color: var(--text-light);
}

.page-slot-games__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-slot-games__promo-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: inherit;
}

.page-slot-games__promo-description {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 25px;
  flex-grow: 1;
  color: #cccccc;
}

.page-slot-games__promo-button {
  width: auto;
  padding: 12px 25px;
  font-size: 16px;
}

.page-slot-games__faq-section {
  padding: 60px 20px;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-slot-games__faq-list {
  margin-top: 40px;
}

.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color-dark-theme);
  background: var(--card-bg-dark-theme);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  position: relative;
}

.page-slot-games__faq-question:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-slot-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-light);
  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(--secondary-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: 30px;
  height: 30px;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  color: #ffffff;
  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;
  color: #cccccc;
}

.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;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--border-color-dark-theme);
  border-radius: 0 0 8px 8px;
}

.page-slot-games__faq-answer p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.page-slot-games__brand-section {
  padding: 60px 20px;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

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

.page-slot-games__brand-item {
  background: var(--card-bg-dark-theme);
  border: 1px solid var(--border-color-dark-theme);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-light);
}

.page-slot-games__brand-sub-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-slot-games__blog-section {
  padding: 60px 20px;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.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(--card-bg-dark-theme);
  border: 1px solid var(--border-color-dark-theme);
  border-radius: 10px;
  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 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__blog-link {
  display: block;
  text-decoration: none;
  color: var(--text-light);
  padding-bottom: 20px;
}

.page-slot-games__blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-color-dark-theme);
  margin-bottom: 15px;
}

.page-slot-games__blog-item-title {
  font-size: 20px;
  font-weight: 600;
  margin: 0 20px 10px;
  line-height: 1.4;
  color: #ffffff;
}

.page-slot-games__blog-item-excerpt {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 20px 15px;
  color: #cccccc;
}

.page-slot-games__blog-item-date {
  font-size: 13px;
  color: #888888;
  margin: 0 20px;
  display: block;
}

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

@media (max-width: 768px) {
  .page-slot-games__video-section {
    padding-top: 10px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    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__title-section {
    padding: 60px 15px;
  }
  .page-slot-games__main-title {
    font-size: 32px;
  }
  .page-slot-games__title-description {
    font-size: 16px;
  }
  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-slot-games__cta-button {
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-slot-games__content-section,
  .page-slot-games__faq-section,
  .page-slot-games__brand-section,
  .page-slot-games__blog-section {
    padding: 40px 15px;
  }
  .page-slot-games__container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-slot-games__heading {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-slot-games__sub-heading {
    font-size: 22px;
    margin-top: 30px;
    margin-bottom: 15px;
  }
  .page-slot-games__paragraph,
  .page-slot-games__list-item {
    font-size: 15px;
    line-height: 1.7;
  }
  .page-slot-games__image {
    margin: 20px auto;
  }
  .page-slot-games__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-slot-games__promo-card {
    padding: 25px;
  }
  .page-slot-games__promo-title {
    font-size: 20px;
  }
  .page-slot-games__promo-description {
    font-size: 14px;
  }
  .page-slot-games__promo-button {
    font-size: 15px;
    padding: 10px 20px;
    width: 100% !important;
    max-width: 100% !important;
    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: 16px;
  }
  .page-slot-games__faq-toggle {
    font-size: 24px;
    width: 26px;
    height: 26px;
  }
  .page-slot-games__faq-answer {
    padding: 0 20px;
  }
  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding: 15px 20px !important;
  }
  .page-slot-games__faq-answer p {
    font-size: 14px;
  }
  .page-slot-games__brand-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-slot-games__brand-item {
    padding: 20px;
  }
  .page-slot-games__brand-sub-title {
    font-size: 20px;
  }
  .page-slot-games__blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-slot-games__blog-image {
    height: 180px;
  }
  .page-slot-games__blog-item-title {
    font-size: 18px;
    margin: 0 15px 10px;
  }
  .page-slot-games__blog-item-excerpt,
  .page-slot-games__blog-item-date {
    margin: 0 15px 10px;
    font-size: 13px;
  }
}