/* style/slot-games.css */
:root {
  --primary-color: #1A2E4E;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark-card: rgba(255, 255, 255, 0.08);
  --bg-light-card: #ffffff;
  --border-light: #e0e0e0;
  --shadow-light: rgba(0, 0, 0, 0.1);
}

.page-slot-games {
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--dark-bg-1); /* Inherited from shared.css */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  padding-bottom: 50px; /* Add some space at the bottom */
}

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

/* 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: Adjust for fixed header */
  background-color: var(--primary-color);
}

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

.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: 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: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Title Section Styles */
.page-slot-games__title-section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, #3a506b 100%);
  color: var(--text-light);
}

.page-slot-games__main-title {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--secondary-color);
}

.page-slot-games__title-description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

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

.page-slot-games__cta-button {
  display: inline-block;
  padding: 15px 35px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px var(--shadow-light);
  border: none;
  cursor: pointer;
  text-align: center;
}

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

/* General Section Styles */
.page-slot-games__section-title {
  font-size: 36px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 700;
  color: var(--secondary-color);
}

.page-slot-games__section-description {
  font-size: 17px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: var(--text-light);
  opacity: 0.8;
}

/* Games Showcase Section */
.page-slot-games__games-showcase {
  padding: 80px 0;
  background-color: var(--primary-color);
}

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

.page-slot-games__game-card {
  background: var(--bg-dark-card);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--text-light);
}

.page-slot-games__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-slot-games__game-title {
  font-size: 24px;
  margin: 20px 15px 10px 15px;
  color: var(--secondary-color);
}

.page-slot-games__game-excerpt {
  font-size: 16px;
  margin: 0 15px 20px 15px;
  flex-grow: 1;
  opacity: 0.8;
}

.page-slot-games__game-link {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

.page-slot-games__game-link:hover {
  background: #e6c200;
}

/* Features Section */
.page-slot-games__features-section {
  padding: 80px 0;
  background-color: #1A2E4E; /* Dark background */
  color: var(--text-light); /* Light text */
}

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

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

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

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

.page-slot-games__feature-item h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-slot-games__feature-item p {
  font-size: 16px;
  opacity: 0.8;
}

/* FAQ Section Styles */
.page-slot-games__faq-section {
  padding: 80px 0;
  background-color: #0d1a2d;
  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 rgba(255, 255, 255, 0.1);
}

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

.page-slot-games__faq-question:hover {
  background: #2a405c;
}

.page-slot-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: var(--secondary-color);
}

.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: 32px;
  height: 32px;
}

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

.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;
  padding: 0 25px;
  opacity: 0;
  background: #1a2e4e;
  color: var(--text-light);
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.page-slot-games__brand-title {
  font-size: 36px;
  margin-bottom: 40px;
  text-align: center;
  font-weight: 700;
  color: var(--secondary-color);
}

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

.page-slot-games__brand-image {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-slot-games__brand-text {
  flex: 2;
  min-width: 300px;
}

.page-slot-games__brand-text h3 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.page-slot-games__brand-text p {
  font-size: 17px;
  margin-bottom: 15px;
  opacity: 0.8;
}

/* Blog Section Styles */
.page-slot-games__blog-section {
  padding: 80px 0;
  background-color: #0d1a2d;
  color: var(--text-light);
}

.page-slot-games__blog-title {
  font-size: 36px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 700;
  color: var(--secondary-color);
}

.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(--bg-dark-card);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.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;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-slot-games__blog-item-title {
  font-size: 22px;
  margin: 20px 20px 10px 20px;
  color: var(--secondary-color);
}

.page-slot-games__blog-item-excerpt {
  font-size: 16px;
  margin: 0 20px 15px 20px;
  flex-grow: 1;
  opacity: 0.8;
}

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

.page-slot-games__blog-cta {
  margin-top: 60px;
}

/* 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__brand-content {
    flex-direction: column;
    text-align: center;
  }
  .page-slot-games__brand-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-slot-games {
    font-size: 16px;
    line-height: 1.6;
  }

  .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-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__title-section,
  .page-slot-games__games-showcase,
  .page-slot-games__features-section,
  .page-slot-games__faq-section,
  .page-slot-games__brand-section,
  .page-slot-games__blog-section {
    padding: 50px 0;
  }

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

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

  .page-slot-games__title-description,
  .page-slot-games__section-description {
    font-size: 16px;
    padding: 0 15px;
  }

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

  .page-slot-games__cta-button {
    width: 100% !important;
    max-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__game-list,
  .page-slot-games__features-grid,
  .page-slot-games__blog-list {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-slot-games__game-card,
  .page-slot-games__feature-item,
  .page-slot-games__blog-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__game-image,
  .page-slot-games__blog-item-image {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
  }

  .page-slot-games__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-slot-games__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-slot-games__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 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__brand-content {
    padding: 0 15px;
  }
  .page-slot-games__brand-image {
    width: 100%;
    height: auto;
  }
  .page-slot-games__brand-text h3 {
    font-size: 24px;
  }
  .page-slot-games__brand-text p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .page-slot-games__main-title {
    font-size: 28px;
  }
  .page-slot-games__section-title {
    font-size: 24px;
  }
  .page-slot-games__play-now-button {
    padding: 10px 25px !important;
    font-size: 15px !important;
  }
  .page-slot-games__cta-button {
    padding: 10px 20px !important;
    font-size: 15px !important;
  }
  .page-slot-games__game-title,
  .page-slot-games__feature-item h3,
  .page-slot-games__blog-item-title {
    font-size: 20px;
  }
}

/* Ensure all images are responsive */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile forced image adaptation */
@media (max-width: 768px) {
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-slot-games__container,
  .page-slot-games__game-card,
  .page-slot-games__feature-item,
  .page-slot-games__blog-item,
  .page-slot-games__brand-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}