/* style/slot-games.css */

/* BEM Naming Convention: page-slot-games__element-name */
/* Colors: #11A84E (Primary), #22C768 (Secondary), #2AD16F, #13994A (Button Gradient), #11271B (Card BG), #08160F (Background), #F2FFF6 (Text Main), #A7D9B8 (Text Secondary), #2E7A4E (Border), #57E38D (Glow), #F2C14E (Gold), #1E3A2A (Divider), #0A4B2C (Deep Green) */

/* Base styles for the main content area */
.page-slot-games {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #F2FFF6); /* Default text color for the page */
  background-color: var(--page-bg-color, #08160F); /* Default background color for the page */
}

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

.page-slot-games__section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--text-main-color, #F2FFF6);
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.2;
}

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

.page-slot-games__card {
  background-color: var(--card-bg-color, #11271B);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  color: var(--text-main-color, #F2FFF6);
  border: 1px solid var(--border-color, #2E7A4E);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-slot-games__card-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-main-color, #F2FFF6);
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-slot-games__card-title a {
  color: var(--text-main-color, #F2FFF6);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-slot-games__card-title a:hover {
  color: var(--primary-color, #11A84E);
}

.page-slot-games__card-description {
  font-size: 16px;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 20px;
}

.page-slot-games__btn-primary,
.page-slot-games__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  white-space: nowrap; /* Prevent text wrapping by default */
  box-sizing: border-box;
}

.page-slot-games__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-slot-games__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
  transform: translateY(-2px);
}

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

.page-slot-games__btn-secondary:hover {
  background-color: var(--primary-color, #11A84E);
  color: #ffffff;
  transform: translateY(-2px);
}

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

/* Hero Section */
.page-slot-games__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
  overflow: hidden;
}

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

.page-slot-games__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 40px 20px;
  margin-top: -80px; /* Overlap slightly with image for visual flow */
  position: relative;
  z-index: 1;
  background-color: var(--page-bg-color, #08160F); /* Ensure content is readable */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-slot-games__main-title {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  color: var(--gold-color, #F2C14E);
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.page-slot-games__hero-description {
  font-size: 20px;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Intro Section */
.page-slot-games__intro-section {
  padding: 80px 0;
  background-color: var(--deep-green-color, #0A4B2C); /* Specific dark background */
  color: var(--text-main-color, #F2FFF6);
}

/* Game Types Section */
.page-slot-games__game-types-section {
  padding: 80px 0;
  background-color: var(--page-bg-color, #08160F);
}

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

.page-slot-games__game-type-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

/* Featured Slots Section */
.page-slot-games__featured-slots-section {
  padding: 80px 0;
  background-color: var(--deep-green-color, #0A4B2C);
}

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

.page-slot-games__featured-slot-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

/* Benefits Section */
.page-slot-games__benefits-section {
  padding: 80px 0;
  background-color: var(--page-bg-color, #08160F);
}

.page-slot-games__benefits-wrapper {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
}

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

.page-slot-games__benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-slot-games__benefits-list li {
  font-size: 18px;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.page-slot-games__benefits-list li::before {
  content: '✔';
  color: var(--primary-color, #11A84E);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-slot-games__benefits-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-slot-games__benefits-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  display: block;
}

/* Promotions Section */
.page-slot-games__promotions-section {
  padding: 80px 0;
  background-color: var(--medium-bg-color, #22C768); /* Using auxiliary color for medium background */
  color: #000000; /* Dark text on medium background for contrast */
}

.page-slot-games__promotions-section .page-slot-games__section-title,
.page-slot-games__promotions-section .page-slot-games__section-description {
  color: #000000;
}

.page-slot-games__promo-banner-wrapper {
  margin-top: 40px;
  text-align: center;
}

.page-slot-games__promo-banner {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  display: block;
  margin: 0 auto;
}

/* Login Guide Section */
.page-slot-games__login-guide-section {
  padding: 80px 0;
  background-color: var(--page-bg-color, #08160F);
}

.page-slot-games__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-slot-games__guide-list li {
  background-color: var(--card-bg-color, #11271B);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color, #2E7A4E);
}

.page-slot-games__guide-list li h3 {
  font-size: 26px;
  color: var(--gold-color, #F2C14E);
  margin-bottom: 10px;
}

.page-slot-games__guide-list li p {
  font-size: 17px;
  color: var(--text-secondary-color, #A7D9B8);
}

/* Video Section */
.page-slot-games__video-section {
  padding: 10px 0 80px 0; /* Small top padding, body handles header offset */
  background-color: var(--deep-green-color, #0A4B2C);
  color: var(--text-main-color, #F2FFF6);
  text-align: center;
}

.page-slot-games__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 40px auto 0;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  width: 100%; /* Ensure desktop width is 100% */
}

.page-slot-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  cursor: pointer;
}

/* FAQ Section */
.page-slot-games__faq-section {
  padding: 80px 0;
  background-color: var(--page-bg-color, #08160F);
}

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

.page-slot-games__faq-item {
  margin-bottom: 20px;
  overflow: hidden;
}

.page-slot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main-color, #F2FFF6);
  cursor: pointer;
  padding: 15px 0;
  border-bottom: 1px solid var(--divider-color, #1E3A2A);
  list-style: none;
}

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

.page-slot-games__faq-question .page-slot-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color, #11A84E);
  margin-left: 15px;
}

.page-slot-games__faq-item[open] .page-slot-games__faq-question {
  border-bottom: none;
}

.page-slot-games__faq-answer {
  padding-top: 15px;
  font-size: 17px;
  color: var(--text-secondary-color, #A7D9B8);
}

.page-slot-games__faq-item:not([open]) .page-slot-games__faq-answer {
  display: none;
}

/* CTA Section */
.page-slot-games__cta-section {
  padding: 80px 0;
  background-color: var(--deep-green-color, #0A4B2C);
  text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-slot-games__benefits-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .page-slot-games__benefits-image-wrapper {
    order: -1; /* Image appears above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-slot-games__container {
    padding: 0 15px;
  }

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

  .page-slot-games__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

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

  .page-slot-games__main-title {
    font-size: 36px;
  }

  .page-slot-games__hero-description {
    font-size: 17px;
    margin-bottom: 30px;
  }

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

  .page-slot-games__btn-primary,
  .page-slot-games__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important; /* Allow text wrapping */
    word-wrap: break-word !important;
  }

  /* Images and Video responsiveness */
  .page-slot-games img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure images take full width of their container */
    height: auto !important;
    display: block !important;
  }
  
  .page-slot-games video,
  .page-slot-games__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-slot-games__game-type-card,
  .page-slot-games__featured-slot-card,
  .page-slot-games__faq-item,
  .page-slot-games__login-guide-section .page-slot-games__guide-list li,
  .page-slot-games__video-wrapper,
  .page-slot-games__promo-banner-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-slot-games__hero-section,
  .page-slot-games__intro-section,
  .page-slot-games__game-types-section,
  .page-slot-games__featured-slots-section,
  .page-slot-games__benefits-section,
  .page-slot-games__promotions-section,
  .page-slot-games__login-guide-section,
  .page-slot-games__video-section,
  .page-slot-games__faq-section,
  .page-slot-games__cta-section {
    padding: 40px 0;
  }

  .page-slot-games__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

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

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

  .page-slot-games__guide-list li h3 {
    font-size: 22px;
  }

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

  .page-slot-games__faq-question {
    font-size: 18px;
  }

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