/* style/slot-games.css */
:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --text-main-color: #F3F8FF;
  --text-secondary-color: #AFC4E8;
  --card-bg-color: #10233F;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy-color: #08162B;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
}

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

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

.page-slot-games__section-title {
  font-size: 36px;
  color: var(--gold-color);
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-slot-games__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

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

.page-slot-games__text-block {
  font-size: 18px;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
  line-height: 1.7;
}

/* 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: 10px; /* Small top padding, shared.css body handles header offset */
  background-color: var(--deep-navy-color);
}

.page-slot-games__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure full width on desktop */
}

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

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

.page-slot-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-slot-games__main-title {
  font-size: clamp(2.5rem, 4vw, 3.2rem); /* Using clamp for H1 font size */
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.7);
}

.page-slot-games__hero-description {
  font-size: 19px;
  color: var(--text-secondary-color);
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-slot-games__cta-button,
.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: var(--text-main-color);
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-slot-games__cta-button:hover,
.page-slot-games__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  background: linear-gradient(180deg, #4FA8FF 0%, #2B73F6 100%);
}

.page-slot-games__btn-secondary {
  background: var(--primary-color);
  color: var(--text-main-color);
  border: 2px solid var(--secondary-color);
  margin-left: 20px;
}

.page-slot-games__btn-secondary:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Introduction Section */
.page-slot-games__introduction-section {
  background-color: var(--deep-navy-color);
}

/* Types Section */
.page-slot-games__types-section {
  background-color: var(--card-bg-color);
}

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

.page-slot-games__card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-secondary-color);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

.page-slot-games__card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--divider-color);
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

.page-slot-games__card-title {
  font-size: 24px;
  color: var(--gold-color);
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-slot-games__card p {
  font-size: 16px;
  color: var(--text-secondary-color);
}

/* Providers Section */
.page-slot-games__providers-section {
  background-color: var(--deep-navy-color);
}

.page-slot-games__providers-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.page-slot-games__provider-item {
  text-align: center;
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  width: 280px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-slot-games__provider-item:hover {
  transform: translateY(-5px);
}

.page-slot-games__provider-item img {
  max-width: 100%;
   /* Fixed height for logos, but ensure min 200px if it were a content image */
  object-fit: contain;
  margin-bottom: 15px;
  min-width: 200px; /* Enforce minimum width */
  min- /* Enforce minimum height, if it's a content image, it should be 200px */
}

.page-slot-games__provider-name {
  font-size: 20px;
  color: var(--text-main-color);
  font-weight: 600;
}

/* How to Play Section */
.page-slot-games__how-to-play-section {
  background-color: var(--card-bg-color);
}

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

.page-slot-games__step-item {
  background-color: var(--primary-color);
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  border: 1px solid var(--border-color);
}

.page-slot-games__step-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  top: -15px;
  left: 20px;
  background-color: var(--gold-color);
  color: var(--deep-navy-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  border: 3px solid var(--secondary-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-slot-games__step-title {
  font-size: 22px;
  color: var(--text-main-color);
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-slot-games__step-item p {
  font-size: 16px;
  color: var(--text-secondary-color);
}

/* Tips Section */
.page-slot-games__tips-section {
  background-color: var(--deep-navy-color);
}

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

.page-slot-games__tip-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: var(--text-secondary-color);
}

.page-slot-games__tip-title {
  font-size: 22px;
  color: var(--gold-color);
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 600;
}

/* Promotions Section */
.page-slot-games__promotions-section {
  background-color: var(--card-bg-color);
}

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

.page-slot-games__promo-card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-secondary-color);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

.page-slot-games__promo-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--divider-color);
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

/* FAQ Section */
.page-slot-games__faq-section {
  background-color: var(--deep-navy-color);
}

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

details.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg-color);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

details.page-slot-games__faq-item summary.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-slot-games__faq-item summary.page-slot-games__faq-question:hover {
  background: var(--primary-color);
}

.page-slot-games__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-main-color);
}

.page-slot-games__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

details.page-slot-games__faq-item[open] .page-slot-games__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

details.page-slot-games__faq-item .page-slot-games__faq-answer {
  padding: 0 25px 20px;
  background: var(--primary-color);
  border-radius: 0 0 10px 10px;
  color: var(--text-secondary-color);
  font-size: 16px;
}

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

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

  .page-slot-games__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-slot-games__hero-image img {
    border-radius: 4px;
  }

  .page-slot-games__cta-button,
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    padding: 12px 30px;
    font-size: 16px;
    margin-top: 20px;
    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__btn-secondary {
    margin-left: 0;
    margin-top: 15px;
  }

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

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

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

  .page-slot-games__grid,
  .page-slot-games__steps-list,
  .page-slot-games__tips-list,
  .page-slot-games__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-slot-games__card,
  .page-slot-games__step-item,
  .page-slot-games__tip-item,
  .page-slot-games__promo-card,
  .page-slot-games__provider-item {
    padding: 20px;
  }

  .page-slot-games__card img,
  .page-slot-games__promo-card img,
  .page-slot-games__provider-item img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min- /* Adjusted min-height for mobile card images */
  }

  .page-slot-games__card-title,
  .page-slot-games__step-title,
  .page-slot-games__tip-title,
  .page-slot-games__provider-name {
    font-size: 20px;
  }

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

  .page-slot-games__faq-qtext {
    font-size: 16px;
  }

  .page-slot-games__faq-toggle {
    font-size: 24px;
    width: 24px;
    height: 24px;
  }

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

@media (max-width: 480px) {
  .page-slot-games__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-slot-games__hero-description {
    font-size: 17px;
  }
  .page-slot-games__section-title {
    font-size: 24px;
  }
  .page-slot-games__cta-button,
  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    font-size: 15px;
    padding: 10px 25px;
  }
}