/* style/slot-games.css */
.page-slot-games {
  background-color: var(--dark-bg-1);
  color: #ffffff;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-slot-games__section {
  padding: 60px 20px;
  text-align: center;
  background-color: var(--dark-bg-2);
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-slot-games__section:nth-of-type(odd) {
  background-color: var(--dark-bg-3);
}

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

.page-slot-games__section-title {
  font-size: 2.5em;
  color: var(--secondary-color);
  margin-bottom: 30px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-slot-games__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-slot-games__text-block a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-slot-games__text-block a:hover {
  text-decoration: underline;
}

.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  padding: 0;
  background: linear-gradient(135deg, var(--primary-color), var(--dark-bg-1));
  padding-top: 100px; /* Adjust for fixed header */
}

.page-slot-games__hero-container {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  padding: 20px;
}

.page-slot-games__hero-image {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  margin-bottom: 30px;
}

.page-slot-games__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.page-slot-games__hero-content {
  padding: 0 20px 40px;
  max-width: 900px;
}

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

.page-slot-games__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.8;
  color: #f0f0f0;
}

.page-slot-games__hero-description .highlight-text {
  color: var(--secondary-color);
  font-weight: bold;
}

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

.page-slot-games__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
  border: 2px solid transparent;
}

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

.page-slot-games__btn--primary:hover {
  background-color: #ffd700;
  transform: translateY(-3px);
  border-color: #ffd700;
}

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

.page-slot-games__btn--secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
}

.page-slot-games__btn--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-slot-games__grid {
  display: grid;
  gap: 30px;
  margin-top: 40px;
}

.page-slot-games__grid--2-cols {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

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

.page-slot-games__card {
  background-color: var(--dark-bg-4);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-slot-games__card-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin: 0 auto 20px;
  filter: drop-shadow(0 0 5px var(--secondary-color-light));
}

.page-slot-games__card-title {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-slot-games__card-description {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.6;
}

.page-slot-games__game-card {
  text-align: left;
  padding: 0;
  overflow: hidden;
}

.page-slot-games__game-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.page-slot-games__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.page-slot-games__game-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-slot-games__game-card-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

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

.page-slot-games__call-to-action {
  margin-top: 50px;
  padding: 40px 20px;
  background-color: var(--primary-color);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-slot-games__call-to-action p {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 25px;
}

.page-slot-games__call-to-action p .highlight-text {
  color: var(--secondary-color);
  font-weight: bold;
}

.page-slot-games__ordered-list {
  list-style-type: decimal;
  text-align: left;
  max-width: 800px;
  margin: 30px auto;
  padding-left: 40px;
  color: #f0f0f0;
}

.page-slot-games__ordered-list li {
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.7;
}

.page-slot-games__ordered-list li strong {
  color: var(--secondary-color);
}

.page-slot-games__ordered-list li .highlight-text {
  color: var(--secondary-color-light);
  font-weight: bold;
}

.page-slot-games__promotion-card {
  text-align: left;
  padding: 0;
  overflow: hidden;
}

.page-slot-games__promotion-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.page-slot-games__promotion-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-slot-games__faq-list {
  text-align: left;
  margin-top: 30px;
}

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

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--dark-bg-3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  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-question:hover {
  background: var(--primary-color);
  border-color: var(--secondary-color-light);
}

.page-slot-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none;
}

.page-slot-games__faq-toggle {
  font-size: 2em;
  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;
  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(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, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  color: #cccccc;
  text-align: left;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: var(--dark-bg-5);
  border-radius: 0 0 8px 8px;
}

.page-slot-games__faq-answer p {
  margin: 0;
  font-size: 1em;
  line-height: 1.6;
}

.page-slot-games__faq-answer a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-slot-games__faq-answer a:hover {
  text-decoration: underline;
}

.page-slot-games__news-card {
  text-align: left;
  padding: 0;
  overflow: hidden;
}

.page-slot-games__news-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.page-slot-games__news-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.page-slot-games__news-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-slot-games__news-title {
  font-size: 1.3em;
  color: var(--secondary-color);
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-slot-games__news-excerpt {
  font-size: 0.9em;
  color: #cccccc;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-slot-games__read-more {
  display: inline-block;
  color: var(--secondary-color);
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-slot-games__read-more:hover {
  color: #ffd700;
  text-decoration: underline;
}

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

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

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

  .page-slot-games__grid--2-cols {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }

  .page-slot-games__grid--3-cols {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-section {
    padding-top: 80px !important; /* Mobile fixed header adjustment */
  }

  .page-slot-games__hero-title {
    font-size: 2.2em;
  }

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

  .page-slot-games__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-slot-games__btn {
    width: 100%;
    padding: 12px 25px;
  }

  .page-slot-games__section {
    padding: 40px 15px;
  }

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

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

  .page-slot-games__grid--2-cols,
  .page-slot-games__grid--3-cols {
    grid-template-columns: 1fr;
  }

  .page-slot-games__card-icon {
    width: 120px;
    height: 120px;
  }

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

  .page-slot-games__card-description {
    font-size: 0.9em;
  }

  .page-slot-games__game-card-image,
  .page-slot-games__promotion-image,
  .page-slot-games__news-image {
    height: 180px;
  }

  .page-slot-games__game-card-title,
  .page-slot-games__promotion-content .page-slot-games__card-title,
  .page-slot-games__news-title {
    font-size: 1.2em;
  }

  .page-slot-games__game-card-description,
  .page-slot-games__promotion-content .page-slot-games__card-description,
  .page-slot-games__news-excerpt {
    font-size: 0.85em;
  }

  .page-slot-games__call-to-action p {
    font-size: 1.2em;
  }

  .page-slot-games__ordered-list {
    padding-left: 25px;
    font-size: 0.95em;
  }

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

  .page-slot-games__faq-question h3 {
    font-size: 1.05em;
  }

  .page-slot-games__faq-toggle {
    font-size: 1.8em;
    width: 25px;
    height: 25px;
  }

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

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

  /* Mobile image responsive adaptation */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-slot-games__section,
  .page-slot-games__card,
  .page-slot-games__container,
  .page-slot-games__hero-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Define color variables for intelligent contrast */
:root {
  --primary-color: #0A2463; /* Deep Blue */
  --secondary-color: #E0B14A; /* Gold */
  --secondary-color-light: #FFD700; /* Lighter Gold for highlights */
  --dark-bg-1: #0d0d0d; /* Body background from shared.css */
  --dark-bg-2: #1a1a1a;
  --dark-bg-3: #2a2a2a;
  --dark-bg-4: #3a3a3a;
  --dark-bg-5: #4a4a4a;
}

/* Intelligent color contrast safeguards (applied to relevant elements) */
.page-slot-games__hero-content .highlight-text,
.page-slot-games__text-block a,
.page-slot-games__ordered-list li strong,
.page-slot-games__ordered-list li .highlight-text,
.page-slot-games__call-to-action p .highlight-text,
.page-slot-games__faq-answer a,
.page-slot-games__read-more {
  color: var(--secondary-color-light); /* Ensure high contrast on dark backgrounds */
}

.page-slot-games__btn--primary {
  background-color: var(--secondary-color);
  color: var(--primary-color); /* Gold button with deep blue text */
}

.page-slot-games__btn--secondary {
  background-color: transparent;
  color: var(--secondary-color); /* Transparent button with gold text */
  border-color: var(--secondary-color);
}

.page-slot-games__card {
  background-color: var(--dark-bg-4);
  color: #ffffff;
}

.page-slot-games__faq-question {
  background: var(--dark-bg-3);
  color: #ffffff;
}

.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  background: var(--dark-bg-5);
  color: #cccccc;
}