.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background from shared.css */
}

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

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px);
  background: linear-gradient(135deg, #000080 0%, #1a1a40 100%); /* Dark blue gradient */
  text-align: center;
  overflow: hidden;
  color: #ffffff;
}

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

.page-slot-games__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for main title */
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
  font-weight: 700;
  line-height: 1.2;
}

.page-slot-games__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-slot-games__cta-button {
  display: inline-block;
  padding: 15px 40px;
  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 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-slot-games__btn-primary {
  background: #FFD700; /* Primary Gold */
  color: #000080; /* Dark blue text for contrast */
}

.page-slot-games__btn-primary:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-slot-games__btn-secondary {
  background: #000080; /* Dark Blue */
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-slot-games__btn-secondary:hover {
  background: #000066; /* Slightly darker blue */
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

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

/* General Section Styles */
.page-slot-games__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-slot-games__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px auto;
}

/* Intro Section */
.page-slot-games__intro-section {
  padding: 80px 0;
  background: #1a1a1a; /* Dark background for this section */
  color: #ffffff;
}

.page-slot-games__intro-section .page-slot-games__section-title {
    color: #FFD700;
}

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

.page-slot-games__feature-item {
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter background for cards */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

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

.page-slot-games__feature-item img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  display: block;
}

.page-slot-games__feature-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-slot-games__feature-item p {
  font-size: 1em;
  color: #e0e0e0;
}

/* Game Showcase Section */
.page-slot-games__game-showcase {
  padding: 80px 0;
  background: #000080; /* Dark blue background */
  color: #ffffff;
}

.page-slot-games__game-showcase .page-slot-games__section-title {
    color: #FFD700;
}

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

.page-slot-games__game-card {
  background: rgba(255, 255, 255, 0.1); /* Slightly lighter background for cards */
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

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

.page-slot-games__game-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  display: block;
}

.page-slot-games__game-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-slot-games__game-description {
  font-size: 1em;
  color: #e0e0e0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-slot-games__game-button {
  margin-top: auto; /* Push button to bottom */
}

/* Why Choose Us Section */
.page-slot-games__why-choose-us {
  padding: 80px 0;
  background: #121212; /* Dark background */
  color: #ffffff;
}

.page-slot-games__why-choose-us .page-slot-games__section-title {
    color: #FFD700;
}

.page-slot-games__advantages-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 50px;
}

.page-slot-games__advantage-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

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

.page-slot-games__advantage-item img {
  max-width: 100%;
  height: auto;
  border-radius: 50%; /* Make icons round */
  margin-bottom: 20px;
  object-fit: cover;
  display: block;
}

.page-slot-games__advantage-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-slot-games__advantage-item p {
  font-size: 1em;
  color: #e0e0e0;
}

/* Brand Section */
.page-slot-games__brand-section {
  padding: 80px 0;
  background: #000080; /* Dark blue background */
  color: #ffffff;
}

.page-slot-games__brand-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-slot-games__brand-content {
  max-width: 900px;
  margin: 0 auto 50px auto;
  text-align: center;
}

.page-slot-games__brand-content .page-slot-games__text-block {
    color: #f0f0f0;
}

.page-slot-games__brand-item {
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-slot-games__brand-subtitle {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-slot-games__brand-item p {
  font-size: 1em;
  color: #e0e0e0;
}

.page-slot-games__brand-cta {
  text-align: center;
  margin-top: 40px;
}

/* FAQ Section */
.page-slot-games__faq-section {
  padding: 80px 0;
  background: #1a1a1a; /* Dark background */
  color: #ffffff;
}

.page-slot-games__faq-section .page-slot-games__section-title {
    color: #FFD700;
}

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

/* FAQ item styles */
.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ default state - answer hidden */
.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 15px;
  opacity: 0;
}

/* FAQ expanded state - use !important and sufficiently large max-height */
.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 2000px !important; /* Use !important to ensure priority, value large enough to contain any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.08); /* Slightly lighter background for answer */
  border-radius: 0 0 5px 5px;
  color: #f0f0f0;
}

/* Question style */
.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1); /* Lighter background for question */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  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: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

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

/* Question title style */
.page-slot-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  color: #FFD700; /* Gold for FAQ question titles */
  pointer-events: none; /* Prevent h3 from blocking click event */
}

/* Toggle icon */
.page-slot-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  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: 28px;
  height: 28px;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Plus to X effect */
}

/* Call to Action Bottom Section */
.page-slot-games__cta-bottom {
  padding: 80px 0;
  background: linear-gradient(135deg, #000080 0%, #1a1a40 100%); /* Dark blue gradient */
  text-align: center;
  color: #ffffff;
}

.page-slot-games__cta-bottom .page-slot-games__section-title {
    color: #FFD700;
}

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

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

  .page-slot-games__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 60px;
  }

  .page-slot-games__main-title {
    font-size: 2.5em;
    margin-bottom: 15px;
  }

  .page-slot-games__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 400px; /* Limit button width on small screens */
    margin: 0 auto;
  }

  .page-slot-games__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !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__text-block {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  .page-slot-games__intro-section,
  .page-slot-games__game-showcase,
  .page-slot-games__why-choose-us,
  .page-slot-games__brand-section,
  .page-slot-games__faq-section,
  .page-slot-games__cta-bottom {
    padding: 50px 0;
  }

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

  .page-slot-games__features-grid,
  .page-slot-games__game-grid,
  .page-slot-games__advantages-list {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-slot-games__feature-item,
  .page-slot-games__game-card,
  .page-slot-games__advantage-item {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  }

  .page-slot-games__feature-title,
  .page-slot-games__game-title,
  .page-slot-games__advantage-title {
    font-size: 1.4em;
  }

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

  .page-slot-games__brand-subtitle {
    font-size: 1.5em;
  }

  .page-slot-games__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-slot-games__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-slot-games__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-slot-games__faq-answer {
    padding: 0 15px;
  }
  
  .page-slot-games__faq-item.active .page-slot-games__faq-answer {
    padding: 15px !important;
  }

  /* Image responsiveness for mobile */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-slot-games__hero-image-wrapper,
  .page-slot-games__feature-item,
  .page-slot-games__game-card,
  .page-slot-games__advantage-item,
  .page-slot-games__brand-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-slot-games__hero-image {
      object-fit: contain; /* Ensure hero image is fully visible */
  }
}