/* style/slot-games.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --btn-login: #EA7C07;
  --bg-white: #FFFFFF;
  --black-color-custom: #000000;
}

.page-slot-games {
  color: var(--text-light); /* Body background is dark, so light text */
  background-color: var(--black-color); /* From shared.css */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
  box-sizing: border-box;
}

.page-slot-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-slot-games__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: 1;
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 20px;
  color: var(--text-light);
}

.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;
  color: var(--secondary-color);
}

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

.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;
  transition: all 0.3s ease;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-slot-games__btn-primary:hover {
  background-color: #1e87bb;
  border-color: #1e87bb;
}

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

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

.page-slot-games__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

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

.page-slot-games__about-section,
.page-slot-games__how-to-play-section,
.page-slot-games__support-section,
.page-slot-games__tips-section {
  background-color: var(--bg-white);
  color: var(--text-dark);
}

.page-slot-games__popular-games-section,
.page-slot-games__why-choose-us-section,
.page-slot-games__app-download-section,
.page-slot-games__faq-section {
  background-color: var(--black-color-custom); /* Dark background */
  color: var(--text-light);
}

.page-slot-games__content-wrapper {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
}

.page-slot-games__text-content {
  flex: 1;
}

.page-slot-games__image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-slot-games__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: block;
}

.page-slot-games__features-grid,
.page-slot-games__steps-grid,
.page-slot-games__games-grid,
.page-slot-games__tips-grid,
.page-slot-games__contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-slot-games__card {
  background-color: var(--bg-white);
  color: var(--text-dark);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

.page-slot-games__dark-bg .page-slot-games__card {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

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

.page-slot-games__dark-bg .page-slot-games__card-title {
  color: var(--secondary-color);
}

.page-slot-games__card p {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-slot-games__game-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
  width: 100%;
}

.page-slot-games__small-btn {
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
}

.page-slot-games__app-content {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-slot-games__app-text {
  flex: 1;
}

.page-slot-games__app-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.page-slot-games__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: block;
}

.page-slot-games__app-btn {
  margin-top: 20px;
}

.page-slot-games__intro-text {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-slot-games__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  box-sizing: border-box;
}

.page-slot-games__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  transition: background-color 0.3s ease;
  color: var(--secondary-color);
}

.page-slot-games__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-slot-games__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-slot-games__faq-qtext {
  flex-grow: 1;
}

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
  transform: rotate(45deg);
}

.page-slot-games__faq-answer {
  padding: 15px 25px 25px;
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-light);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 992px) {
  .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__content-wrapper,
  .page-slot-games__app-content {
    flex-direction: column;
    text-align: center;
  }

  .page-slot-games__text-content,
  .page-slot-games__image-wrapper,
  .page-slot-games__app-text,
  .page-slot-games__app-image-wrapper {
    flex: none;
    width: 100%;
  }

  .page-slot-games__image,
  .page-slot-games__app-image {
    max-width: 80%;
  }

  .page-slot-games__features-grid,
  .page-slot-games__steps-grid,
  .page-slot-games__games-grid,
  .page-slot-games__tips-grid,
  .page-slot-games__contact-methods {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-slot-games__hero-section {
    height: auto;
    min-height: 600px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary,
  .page-slot-games a[class*="button"],
  .page-slot-games a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

  .page-slot-games__image,
  .page-slot-games__app-image,
  .page-slot-games__game-image {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-slot-games__image-wrapper,
  .page-slot-games__app-image-wrapper,
  .page-slot-games__game-card,
  .page-slot-games__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  .page-slot-games__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }

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

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

  /* Ensure content area images are at least 200px */
  .page-slot-games img {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-slot-games__hero-title {
    font-size: 1.8em;
  }

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    padding: 12px 20px;
    font-size: 0.9em;
  }

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