/* 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: #08162B;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
}

.page-slot-games {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color); /* Default text color for dark body bg */
  background-color: var(--deep-navy); /* Assumed from shared.css body background */
}

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

.page-slot-games__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--gold-color);
  position: relative;
  padding-bottom: 15px;
}

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

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

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

.page-slot-games__dark-section {
  background-color: var(--deep-navy);
  color: var(--text-main-color);
}

.page-slot-games__light-bg {
  background-color: #0d2141; /* Slightly lighter dark background for contrast */
  color: var(--text-main-color);
}

.page-slot-games__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

.page-slot-games__hero-image-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 1;
}

.page-slot-games__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-slot-games__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Pull content up slightly over the image for better visual flow */
  background: rgba(17, 59, 122, 0.85); /* Use primary color with transparency */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(5px);
  border: 1px solid var(--border-color);
}

.page-slot-games__main-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  color: var(--gold-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-slot-games__hero-description {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-main-color);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__hero-buttons,
.page-slot-games__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  white-space: nowrap;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-slot-games__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid #2B73F6;
}

.page-slot-games__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
}

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

.page-slot-games__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
  background: var(--glow-color);
  color: var(--deep-navy);
}

.page-slot-games__btn-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px;
  max-width: 300px;
}

.page-slot-games__intro-section,
.page-slot-games__why-choose-us,
.page-slot-games__promotions,
.page-slot-games__cta-section {
  padding: 80px 0;
  background-color: #0d2141;
}

.page-slot-games__popular-games,
.page-slot-games__how-to-play,
.page-slot-games__faq-section {
  padding: 80px 0;
  background-color: var(--deep-navy);
}

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

.page-slot-games__game-card {
  background-color: var(--card-bg-color);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-slot-games__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 15px var(--glow-color);
}

.page-slot-games__game-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-slot-games__game-card-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--gold-color);
  padding: 20px 20px 10px;
  margin: 0;
}

.page-slot-games__game-card-title a {
  color: inherit;
  text-decoration: none;
}

.page-slot-games__game-card-title a:hover {
  text-decoration: underline;
}

.page-slot-games__game-card-description {
  font-size: 15px;
  color: var(--text-secondary-color);
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-slot-games__btn-play {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 12px 20px;
  text-align: center;
  background: var(--button-gradient);
  color: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.page-slot-games__btn-play:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-slot-games__feature-card {
  background-color: var(--card-bg-color);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.page-slot-games__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 10px var(--glow-color);
}

.page-slot-games__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-slot-games__feature-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 15px;
}

.page-slot-games__feature-description {
  font-size: 15px;
  color: var(--text-secondary-color);
  line-height: 1.7;
}

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

.page-slot-games__step-card {
  background-color: var(--card-bg-color);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.page-slot-games__step-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 15px;
}

.page-slot-games__step-card p {
  font-size: 15px;
  color: var(--text-secondary-color);
  line-height: 1.7;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-slot-games__step-card .page-slot-games__btn-primary,
.page-slot-games__step-card .page-slot-games__btn-secondary {
  width: 100%;
  max-width: 200px;
  margin-top: auto;
}

.page-slot-games__promo-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
}

.page-slot-games__promo-list li {
  font-size: 17px;
  color: var(--text-main-color);
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
  line-height: 1.6;
}

.page-slot-games__promo-list li::before {
  content: '★';
  color: var(--gold-color);
  position: absolute;
  left: 0;
  font-size: 20px;
  top: 0;
}

.page-slot-games__promo-list li strong {
  color: var(--gold-color);
}

.page-slot-games__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-slot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg-color);
}
details.page-slot-games__faq-item summary.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  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: rgba(var(--primary-color), 0.2);
}
.page-slot-games__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main-color);
}
.page-slot-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-slot-games__faq-item .page-slot-games__faq-answer {
  padding: 0 20px 20px;
  background: rgba(var(--card-bg-color), 0.8);
  border-radius: 0 0 5px 5px;
  color: var(--text-secondary-color);
  font-size: 15px;
  line-height: 1.7;
}

.page-slot-games__cta-content {
  text-align: center;
}

/* General image responsive styles */
.page-slot-games img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries */
@media (max-width: 1024px) {
  .page-slot-games__container {
    padding: 20px 30px;
  }

  .page-slot-games__main-title {
    font-size: clamp(32px, 4.5vw, 55px);
  }

  .page-slot-games__hero-description {
    font-size: 18px;
  }

  .page-slot-games__hero-content {
    margin-top: -100px;
    padding: 30px;
  }

  .page-slot-games__btn-primary, .page-slot-games__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-slot-games__section-title {
    font-size: clamp(24px, 3.5vw, 38px);
  }

  .page-slot-games__game-card-image {
    height: 200px;
  }

  .page-slot-games__game-card-title {
    font-size: 20px;
  }

  .page-slot-games__feature-icon {
    width: 80px;
    height: 80px;
  }

  .page-slot-games__feature-title,
  .page-slot-games__step-title {
    font-size: 20px;
  }

  .page-slot-games__promo-list li {
    font-size: 16px;
  }

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

@media (max-width: 768px) {
  .page-slot-games__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    min-height: 400px;
  }

  .page-slot-games__hero-image-wrapper {
    width: 100%;
    height: auto;
  }

  .page-slot-games__hero-image {
    object-fit: contain !important; /* HERO mobile: object-fit:contain */
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
    filter: brightness(0.7);
  }

  .page-slot-games__hero-content {
    margin-top: 0; /* Remove negative margin on mobile */
    padding: 20px;
    background: rgba(17, 59, 122, 0.95); /* Less transparency on mobile */
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    border: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-slot-games__main-title {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 15px;
  }

  .page-slot-games__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-slot-games__hero-buttons,
  .page-slot-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to buttons container */
  }
}