/* style/slot-games.css */

/* Variables (if any from shared are needed, otherwise define page-specific ones) */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-color: #EA7C07;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f9f9f9;
  --border-color: #e0e0e0;
}

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

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

.page-slot-games__section {
  padding: 60px 0;
  text-align: center;
}

.page-slot-games__section-title {
  font-size: 36px;
  color: var(--primary-color);
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

.page-slot-games__section-title--light {
  color: var(--text-light);
}

.page-slot-games__text-block {
  font-size: 18px;
  margin-bottom: 25px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__text-block--light {
  color: var(--text-light);
}

/* --- HERO Section --- */
.page-slot-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure header spacing */
  background: linear-gradient(135deg, var(--primary-color) 0%, #a7e1ff 100%); /* Light blue gradient */
  overflow: hidden; /* Prevent content overflow */
}

.page-slot-games__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1; /* Ensure content is above any background effects */
}

.page-slot-games__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 1000px; /* Constrain hero image width */
}

.page-slot-games__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: var(--text-light); /* Light text on gradient background */
}

.page-slot-games__main-title {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-slot-games__intro-text {
  font-size: 22px;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-light);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.page-slot-games__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 15px; /* Add padding to prevent overflow */
}

.page-slot-games__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 180px; /* Minimum width for buttons */
  max-width: 100%; /* Ensure buttons don't exceed container */
  box-sizing: border-box; /* Include padding and border in width */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

.page-slot-games__cta-button--primary {
  background: var(--login-color); /* Orange for primary action */
  color: var(--text-light);
  border: 2px solid var(--login-color);
  box-shadow: 0 6px 15px rgba(234, 124, 7, 0.4);
}

.page-slot-games__cta-button--primary:hover {
  background: #ff8c00;
  border-color: #ff8c00;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(234, 124, 7, 0.6);
}

.page-slot-games__cta-button--secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 6px 15px rgba(38, 169, 224, 0.2);
}

.page-slot-games__cta-button--secondary:hover {
  background: #e0f2f7;
  border-color: #1a8cc4;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(38, 169, 224, 0.4);
}

/* --- General Content Sections --- */
.page-slot-games__introduction,
.page-slot-games__how-to-play,
.page-slot-games__strategies,
.page-slot-games__promotions,
.page-slot-games__faq {
  background: var(--secondary-color); /* White background */
  color: var(--text-dark);
}

.page-slot-games__game-types {
  background: var(--background-light); /* Light grey background */
  color: var(--text-dark);
}

/* Image wrappers for content images */
.page-slot-games__image-wrapper {
  margin: 40px auto;
  max-width: 1000px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.page-slot-games__image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-width: 200px; /* Minimum image size */
  min-height: 200px;
}

.page-slot-games__image-wrapper--small {
    margin: 20px auto;
    max-width: 600px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.page-slot-games__image-wrapper--small img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Minimum image size */
    min-height: 200px;
}

/* Grid for cards */
.page-slot-games__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-slot-games__card {
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px; /* Ensure cards have some height */
  color: var(--text-dark);
}

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

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

.page-slot-games__card-text {
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.6;
}

.page-slot-games__card--promo {
    position: relative;
    padding-bottom: 100px; /* Make space for image in promo card */
}

.page-slot-games__card--promo .page-slot-games__image-wrapper--small {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    width: calc(100% - 60px); /* Adjust width for padding */
    max-width: 300px; /* Limit image size in card */
}


/* Lists */
.page-slot-games__ordered-list,
.page-slot-games__unordered-list {
  text-align: left;
  max-width: 800px;
  margin: 30px auto;
  padding-left: 25px;
  font-size: 18px;
  color: var(--text-dark);
}

.page-slot-games__ordered-list li,
.page-slot-games__unordered-list li {
  margin-bottom: 15px;
  line-height: 1.7;
}

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

.page-slot-games__ordered-list li a {
    color: var(--login-color);
    text-decoration: underline;
}

.page-slot-games__ordered-list li a:hover {
    color: #ff8c00;
}

/* Call to Action Section */
.page-slot-games__call-to-action {
  background: var(--primary-color);
  color: var(--text-light);
  padding: 80px 20px;
}

.page-slot-games__call-to-action .page-slot-games__cta-button {
  margin-top: 30px;
}

/* --- FAQ Section --- */
.page-slot-games__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 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 20px;
  opacity: 0;
  background: var(--background-light);
}

/* FAQ expanded state - IMPORTANT: use !important for max-height and padding */
.page-slot-games__faq-item.active .page-slot-games__faq-answer {
  max-height: 2000px !important; /* Ensure it can expand for any content */
  padding: 20px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

/* Question style */
.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  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: var(--background-light);
  border-color: #d0d0d0;
}

.page-slot-games__faq-question:active {
  background: #eeeeee;
}

/* Question title style */
.page-slot-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-dark);
  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: var(--primary-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: 28px;
  height: 28px;
}

.page-slot-games__faq-item.active .page-slot-games__faq-toggle {
  color: var(--login-color);
  transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}


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

  .page-slot-games__intro-text {
    font-size: 20px;
  }

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

  .page-slot-games__text-block {
    font-size: 17px;
  }

  .page-slot-games__card-title {
    font-size: 22px;
  }

  .page-slot-games__card-text {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  /* Ensure header offset is applied for mobile */
  .page-slot-games__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-slot-games__intro-text {
    font-size: 18px;
    margin-bottom: 30px;
  }

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

  .page-slot-games__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 16px;
    padding: 12px 20px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-slot-games__text-block {
    font-size: 16px;
    margin-bottom: 20px;
    padding: 0 15px; /* Add horizontal padding to text blocks */
  }

  .page-slot-games__container {
    padding: 0 15px; /* Adjust container padding for mobile */
  }

  .page-slot-games__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }

  .page-slot-games__card {
    padding: 20px;
    min-height: auto;
  }

  .page-slot-games__card-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .page-slot-games__card-text {
    font-size: 14px;
  }

  .page-slot-games__image-wrapper,
  .page-slot-games__image-wrapper--small {
    margin: 20px auto;
    width: calc(100% - 30px) !important; /* Ensure image wrappers adapt */
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Images inside content area */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Ensure minimum size is maintained */
    min-height: 200px !important;
  }

  .page-slot-games__ordered-list,
  .page-slot-games__unordered-list {
    font-size: 16px;
    margin: 20px auto;
    padding-left: 20px;
    padding-right: 10px;
  }

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

/* Ensure content area images maintain minimum size and don't get filtered */
.page-slot-games__introduction img,
.page-slot-games__game-types img,
.page-slot-games__how-to-play img,
.page-slot-games__promotions img {
    min-width: 200px;
    min-height: 200px;
    filter: none; /* Explicitly ensure no filters are applied */
}

/* Global image CSS to prevent filters and enforce min size in content area */
.page-slot-games img:not(.shared-header img, .shared-footer img) { /* Exclude shared header/footer */
  filter: none; /* Absolutely no CSS filters on images */
  min-width: 200px;
  min-height: 200px;
}

/* Specific rule for content area images to ensure they are not smaller than 200px */
.page-slot-games__container img,
.page-slot-games__image-wrapper img,
.page-slot-games__card img {
    width: auto; /* Allow width to be determined by max-width */
    height: auto; /* Allow height to be determined by max-width */
    max-width: 100%; /* Important for responsiveness */
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
    object-fit: cover;
}

/* Override for images in small wrappers to allow them to scale down within their container */
.page-slot-games__image-wrapper--small img {
    min-width: 100%; /* Make sure it fills its small wrapper, which itself has a min-width */
    min-height: 100%; /* And height */
    max-width: 100%; /* But still responsive */
    height: auto;
}

/* Color contrast fixes for specific elements if needed */
.page-slot-games__dark-bg {
  background: var(--primary-color); /* Use primary color for dark background */
  color: var(--text-light); /* White text on dark background */
}

.page-slot-games__light-bg {
  background: var(--secondary-color); /* White background */
  color: var(--text-dark); /* Dark text on white background */
}