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

.page-slot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-light-bg); /* Default text color for light body background */
  background-color: var(--secondary-color); /* Assuming body background is light for content */
}

/* Ensure main content is not covered by fixed header */
/* body { padding-top: var(--header-offset); } is handled by shared.css */

.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px; /* Default padding for desktop */
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  text-align: center;
  overflow: hidden;
  box-sizing: border-box;
}

.page-slot-games__hero-section.page-slot-games__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-color-dark-bg);
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.page-slot-games__hero-content {
  max-width: 800px;
  margin: 0 auto;
  z-index: 1;
}

.page-slot-games__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: inherit;
}

.page-slot-games__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: inherit;
}

.page-slot-games__highlight {
  color: var(--text-color-dark-bg);
  font-weight: bold;
}

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

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%; /* Ensure button doesn't overflow */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-slot-games__btn-primary:hover {
  background-color: #d16b06; /* Darken #EA7C07 */
  border-color: #d16b06; /* Darken #EA7C07 */
}

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

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

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

.page-slot-games__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-color-light-bg);
}

.page-slot-games__section-title {
  font-size: 2.2em;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-align: center;
}

.page-slot-games__text-block {
  margin-bottom: 20px;
  text-align: justify;
}

.page-slot-games__list,
.page-slot-games__ordered-list {
  margin-bottom: 20px;
  padding-left: 25px;
}

.page-slot-games__list li,
.page-slot-games__ordered-list li {
  margin-bottom: 10px;
}

.page-slot-games__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-slot-games__text-link {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-slot-games__text-link:hover {
  color: #1e86b3; /* Darken #26A9E0 */
}

.page-slot-games__cta-buttons--inline {
  margin-top: 30px;
  margin-bottom: 40px;
}

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

.page-slot-games__card {
  background-color: var(--secondary-color);
  color: var(--text-color-light-bg);
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  text-align: center;
}

.page-slot-games__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency, will be object-fit */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px; /* Ensure minimum size */
}

.page-slot-games__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin: 15px 10px 10px;
  color: var(--primary-color);
}

.page-slot-games__card-text {
  font-size: 0.95em;
  padding: 0 15px 15px;
  flex-grow: 1;
}

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

.page-slot-games__cta-buttons--final {
  margin-top: 50px;
  margin-bottom: 20px;
}

.page-slot-games__faq-list {
  margin-top: 30px;
  margin-bottom: 40px;
}

.page-slot-games__faq-item {
  background-color: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-color-light-bg);
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  background-color: #f9f9f9;
  color: var(--primary-color);
  list-style: none; /* For details/summary */
}

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

.page-slot-games__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: var(--primary-color);
  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: 0 20px 15px;
  font-size: 0.95em;
  color: var(--text-color-light-bg);
}

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

  .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: 40px 15px;
    padding-top: 10px !important; /* body handles --header-offset, small top padding for section */
  }

  .page-slot-games__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

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

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-slot-games__content-area,
  .page-slot-games__game-types-grid,
  .page-slot-games__promotions-grid,
  .page-slot-games__faq-list {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-slot-games__card-image {
    height: auto; /* Allow height to adjust for smaller screens */
  }

  .page-slot-games__game-types-grid,
  .page-slot-games__promotions-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 480px) {
  .page-slot-games__main-title {
    font-size: clamp(1.6em, 8vw, 2.2em);
  }

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

  .page-slot-games__hero-section {
    padding: 30px 10px;
    padding-top: 10px !important;
  }
}