/* style/slot-games.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Deep Red */
  --dark-background: #121212;
  --light-text: #ffffff;
  --dark-text: #333333;
  --card-background: rgba(255, 255, 255, 0.08);
  --border-color: rgba(255, 255, 255, 0.15);
}

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

.page-content {
  padding-top: 100px; /* Adjust for fixed header on desktop */
}

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

/* Video Section */
.page-slot-games__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px; /* Specified 10px padding-top, and extra bottom padding */
}

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

.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: var(--light-text);
  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: var(--dark-text);
  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: var(--secondary-color);
  color: var(--light-text);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

/* Title Section */
.page-slot-games__title-section {
  text-align: center;
  padding: 40px 20px;
  margin-bottom: 40px;
}

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

.page-slot-games__title-description {
  font-size: 1.2em;
  color: var(--light-text);
  max-width: 800px;
  margin: 0 auto 30px;
}

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

.page-slot-games__cta-button {
  display: inline-block;
  padding: 14px 35px;
  background: var(--primary-color);
  color: var(--dark-text);
  text-decoration: none;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

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

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

.page-slot-games__cta-button--secondary:hover {
  background: var(--primary-color);
  color: var(--dark-text);
  border-color: var(--primary-color);
}

.page-slot-games__cta-button--centered {
  margin-top: 25px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* General Content Section */
.page-slot-games__content-section {
  padding: 60px 0;
}

.page-slot-games__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.page-slot-games__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  color: var(--light-text);
}

.page-slot-games__text-block p {
  margin-bottom: 15px;
}

/* Game Types Grid */
.page-slot-games__game-types-section {
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-slot-games__grid-item {
  background: var(--card-background);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure equal height */
  display: flex;
  flex-direction: column;
}

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

.page-slot-games__grid-item-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-top: 20px;
  margin-bottom: 15px;
}

.page-slot-games__grid-item p {
  color: var(--light-text);
  flex-grow: 1;
}

/* Guide Section */
.page-slot-games__guide-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-slot-games__image--left {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-slot-games__guide-list {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-slot-games__guide-list li {
  background: var(--card-background);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__guide-list li h3 {
  color: var(--primary-color);
  font-size: 1.3em;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-slot-games__guide-list li p {
  color: var(--light-text);
  font-size: 1em;
  margin: 0;
}

/* Advantages Section */
.page-slot-games__advantages-section {
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-slot-games__advantage-item {
  text-align: center;
  background: var(--card-background);
  padding: 30px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.page-slot-games__advantage-item:hover {
  transform: translateY(-5px);
}

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

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

/* Promotions Section */
.page-slot-games__promotion-card {
  display: flex;
  background: var(--card-background);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  align-items: center;
}

.page-slot-games__promotion-image {
  width: 50%;
  height: auto;
  object-fit: cover;
}

.page-slot-games__promotion-details {
  width: 50%;
  padding: 30px;
}

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

.page-slot-games__promotion-details p {
  color: var(--light-text);
  margin-bottom: 10px;
}

/* FAQ Section */
.page-slot-games__faq-section {
  padding: 60px 0;
}

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

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

.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 20px;
  opacity: 0;
  color: var(--light-text);
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid var(--border-color);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  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-item.active .page-slot-games__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: var(--primary-color);
}

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

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

.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;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

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

/* Brand Section */
.page-slot-games__brand-section {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 60px 0;
}

.page-slot-games__brand-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-slot-games__image--right {
  flex: 1;
  min-width: 300px;
  max-width: 50%;
  order: 2; /* Move image to right on desktop */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-slot-games__brand-content .page-slot-games__text-block {
  flex: 1;
  order: 1; /* Text to left on desktop */
}

/* Blog Section */
.page-slot-games__blog-section {
  padding: 60px 0;
}

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

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

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

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

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

.page-slot-games__blog-item-title {
  font-size: 1.3em;
  color: var(--primary-color);
  margin: 0 20px 10px;
  line-height: 1.4;
}

.page-slot-games__blog-item-excerpt {
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 20px 15px;
}

.page-slot-games__blog-item-date {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 20px;
  display: block;
}

/* General Images */
.page-slot-games__image {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

  .page-slot-games__promotion-card {
    flex-direction: column;
  }

  .page-slot-games__promotion-image,
  .page-slot-games__promotion-details {
    width: 100%;
  }

  .page-slot-games__promotion-image {
    height: 250px;
  }

  .page-slot-games__image--left,
  .page-slot-games__image--right {
    max-width: 100%;
    order: initial; /* Reset order for mobile */
  }

  .page-slot-games__brand-content .page-slot-games__text-block {
    order: initial;
  }
}

@media (max-width: 768px) {
  .page-content {
    padding-top: 80px !important; /* Adjust for fixed header on mobile */
  }

  .page-slot-games__container,
  .page-slot-games__video-container,
  .page-slot-games__video-wrapper,
  .page-slot-games__title-container,
  .page-slot-games__cta-buttons,
  .page-slot-games__grid,
  .page-slot-games__guide-content,
  .page-slot-games__advantages-grid,
  .page-slot-games__promotion-card,
  .page-slot-games__faq-list,
  .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;
  }

  .page-slot-games__video-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 0;
    padding-right: 0;
  }

  .page-slot-games__video-container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-slot-games__video-wrapper {
    border-radius: 4px;
  }

  .page-slot-games__video {
    border-radius: 4px;
    object-fit: contain; /* Ensure video is fully visible */
  }

  .page-slot-games__video-cta {
    margin-top: 20px;
    padding-left: 0;
    padding-right: 0;
  }

  .page-slot-games__play-now-button {
    max-width: 100% !important;
    width: 100% !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__main-title {
    font-size: 2em;
  }

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

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

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

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

  .page-slot-games__content-section {
    padding: 40px 0;
  }

  .page-slot-games__text-block {
    font-size: 1em;
  }

  .page-slot-games__grid-item {
    padding: 20px;
  }

  .page-slot-games__grid-item-title {
    font-size: 1.3em;
  }

  .page-slot-games__guide-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-slot-games__image--left {
    max-width: 100%;
    width: 100%;
  }

  .page-slot-games__guide-list li {
    padding: 15px;
  }

  .page-slot-games__guide-list li h3 {
    font-size: 1.2em;
  }

  .page-slot-games__advantage-item {
    padding: 25px 15px;
  }

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

  .page-slot-games__advantage-title {
    font-size: 1.2em;
  }

  .page-slot-games__promotion-details {
    padding: 20px;
  }

  .page-slot-games__promotion-title {
    font-size: 1.4em;
  }

  .page-slot-games__faq-question {
    padding: 15px;
  }
  
  .page-slot-games__faq-question h3 {
    font-size: 1em;
  }
  
  .page-slot-games__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  
  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding: 15px !important;
  }

  .page-slot-games__image--right {
    max-width: 100%;
    width: 100%;
  }

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

  .page-slot-games__blog-item-title {
    font-size: 1.2em;
  }

  .page-slot-games__blog-item-excerpt {
    font-size: 0.9em;
  }

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

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