/* style/slot-games.css */
:root {
  --i9bet-primary-color: #0A2463;
  --i9bet-secondary-color: #FFD700;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-light: #e0e0e0;
}

.page-slot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
}

/* Hero Section */
.page-slot-games__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-color: var(--i9bet-primary-color);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.page-slot-games__hero-content {
  max-width: 900px;
  z-index: 1;
  position: relative;
}

.page-slot-games__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--i9bet-secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-slot-games__intro-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
}

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

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

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

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

.page-slot-games__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-slot-games__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

/* Content Area */
.page-slot-games__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: var(--bg-white);
  color: var(--text-dark);
}

.page-slot-games__section-title {
  font-size: 2.5em;
  color: var(--i9bet-primary-color);
  margin-bottom: 30px;
  text-align: center;
  border-bottom: 3px solid var(--i9bet-secondary-color);
  padding-bottom: 15px;
}

.page-slot-games h3 {
  font-size: 1.8em;
  color: var(--i9bet-primary-color);
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-slot-games p {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.7;
}

.page-slot-games strong {
  color: var(--i9bet-primary-color);
}

.page-slot-games__list,
.page-slot-games__ordered-list {
  margin-bottom: 20px;
  padding-left: 25px;
}

.page-slot-games__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-slot-games__list-item::before {
  content: '•';
  color: var(--i9bet-secondary-color);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.page-slot-games__ordered-list .page-slot-games__list-item::before {
  content: none;
}

.page-slot-games__image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.page-slot-games__content-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

/* Promotion Cards */
.page-slot-games__promotion-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 50px 0;
}

.page-slot-games__card {
  background-color: var(--bg-white);
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-light);
}

.page-slot-games__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-slot-games__card-image {
  width: 100%;
  max-height: 250px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

.page-slot-games__card-title {
  font-size: 1.5em;
  color: var(--i9bet-primary-color);
  margin-bottom: 15px;
}

.page-slot-games__card-description {
  font-size: 1em;
  color: var(--text-dark);
  margin-bottom: 25px;
}

/* Video Section */
.page-slot-games__video-section {
  position: relative;
  width: 100%;
  padding: 60px 0;
  background-color: var(--i9bet-primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: var(--text-light);
}

.page-slot-games__video-wrapper {
  position: relative;
  width: 80%;
  max-width: 800px;
  padding-bottom: 45%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
}

.page-slot-games__video-link-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  cursor: pointer;
}

.page-slot-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
  display: block;
}

.page-slot-games__video-caption {
  font-size: 1.1em;
  margin-top: 10px;
  color: var(--text-light);
}

/* FAQ Section */
.page-slot-games__faq-list {
  margin-top: 40px;
}

.page-slot-games__faq-item {
  border: 1px solid var(--border-light);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  background-color: var(--bg-white);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: var(--bg-light);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-slot-games__faq-question:hover {
  background-color: #e9ecef;
}

.page-slot-games__faq-title {
  margin: 0;
  font-size: 1.2em;
  color: var(--i9bet-primary-color);
}

.page-slot-games__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: var(--i9bet-secondary-color);
  transition: transform 0.3s ease;
}

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

.page-slot-games__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: var(--bg-white);
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 20px;
}

.page-slot-games__faq-answer p {
  margin: 0;
  color: var(--text-dark);
}

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

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

  .page-slot-games__intro-description {
    font-size: 1.1em;
  }

  .page-slot-games__section-title {
    font-size: 2em;
  }

  .page-slot-games__hero-section {
    padding: 60px 20px;
  }

  .page-slot-games__content-area {
    padding: 40px 20px;
  }
}

@media (max-width: 768px) {
  .page-slot-games__main-title {
    font-size: 2.2em;
  }

  .page-slot-games__intro-description {
    font-size: 1em;
  }

  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

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

  .page-slot-games__section-title {
    font-size: 1.8em;
  }

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

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

  .page-slot-games__image-gallery {
    grid-template-columns: 1fr;
  }

  .page-slot-games__promotion-cards {
    grid-template-columns: 1fr;
  }

  .page-slot-games__card {
    padding: 20px;
  }

  .page-slot-games__video-section {
    padding: 40px 0;
    padding-top: var(--header-offset, 120px) !important; /* Important for mobile fixed header */
  }

  .page-slot-games__video-wrapper {
    width: 90%;
    padding-bottom: 50%; /* Adjust aspect ratio for mobile */
    max-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;
    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;
  }

  .page-slot-games__content-area,
  .page-slot-games__hero-section {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
  }

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

  .page-slot-games__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px;
    min-height: 200px;
  }

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

  .page-slot-games__faq-title {
    font-size: 1.1em;
  }

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

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