/* style/slot-games.css */

/* Variables for colors */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Burgundy Red */
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #1a1a2e; /* Body background from shared.css */
  --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
  --border-color: #e0e0e0;
}

.page-slot-games {
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--background-dark);
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-slot-games__section-title {
  font-size: 38px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  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-color: var(--secondary-color);
  border-radius: 2px;
}

.page-slot-games__text-block {
  font-size: 18px;
  line-height: 1.8;
  text-align: center;
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

/* Hero Section */
.page-slot-games__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 20px;
  background: linear-gradient(135deg, var(--background-dark) 0%, #0d0d1a 100%);
  gap: 40px;
}

.page-slot-games__hero-content {
  flex: 1;
  max-width: 600px;
  text-align: left;
}

.page-slot-games__main-title {
  font-size: 56px;
  font-weight: 900;
  color: var(--primary-color);
  line-height: 1.2;
  margin-bottom: 25px;
  text-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.page-slot-games__hero-description {
  font-size: 20px;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 40px;
}

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

.page-slot-games__cta-buttons--center {
  justify-content: center;
  margin-top: 50px;
}

.page-slot-games__cta-button {
  display: inline-block;
  padding: 16px 35px;
  border-radius: 10px;
  font-size: 19px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%;
  box-sizing: border-box;
}

.page-slot-games__cta-button--primary {
  background: var(--primary-color);
  color: var(--background-dark);
}

.page-slot-games__cta-button--primary:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-slot-games__cta-button--secondary:hover {
  background: #7a0000; /* Slightly darker burgundy */
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-slot-games__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

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

/* Introduction Section */
.page-slot-games__introduction-section {
  padding: 80px 0;
  background-color: var(--background-dark);
}

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

.page-slot-games__feature-item {
  background: var(--card-bg-dark-mode);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

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

.page-slot-games__feature-icon {
  width: 120px; /* Visually smaller for feature icons, but source image is larger */
  height: 90px; 
  object-fit: contain;
  margin: 0 auto 25px;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.5));
}

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

.page-slot-games__feature-item p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light);
}

/* Dark Section Styling */
.page-slot-games__dark-section {
  background-color: #0d0d1a; /* Slightly darker than main background */
  padding: 80px 0;
}

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

.page-slot-games__game-type-card {
  background: var(--card-bg-dark-mode);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

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

.page-slot-games__game-type-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.page-slot-games__game-type-card h3 {
  padding: 20px 20px 10px;
  font-size: 22px;
  font-weight: bold;
}

.page-slot-games__game-type-card h3 a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-slot-games__game-type-card h3 a:hover {
  color: var(--text-light);
}

.page-slot-games__game-type-card p {
  padding: 0 20px 25px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light);
}

/* How to Play Section */
.page-slot-games__how-to-play-section {
  padding: 80px 0;
  background-color: var(--background-dark);
}

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

.page-slot-games__instruction-list li {
  background: var(--card-bg-dark-mode);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-slot-games__instruction-list li:last-child {
  margin-bottom: 0;
}

.page-slot-games__instruction-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
  position: relative;
  padding-left: 40px;
}

.page-slot-games__instruction-title::before {
  content: counter(list-item);
  counter-increment: list-item;
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--secondary-color);
  color: var(--text-light);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
}

.page-slot-games__instruction-list li p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-light);
}

/* Tips Section */
.page-slot-games__tips-section {
  padding: 80px 0;
  background-color: #0d0d1a;
}

.page-slot-games__tips-list {
  list-style: none;
  padding: 0;
  margin: 60px auto;
  max-width: 900px;
}

.page-slot-games__tips-list li {
  background: var(--card-bg-dark-mode);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-slot-games__tips-list li:last-child {
  margin-bottom: 0;
}

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

.page-slot-games__tips-list li p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-light);
}

.page-slot-games__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  margin-top: 60px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Promotions Section */
.page-slot-games__promotions-section {
  padding: 80px 0;
  background-color: var(--background-dark);
}

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

.page-slot-games__promo-card {
  background: var(--card-bg-dark-mode);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

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

.page-slot-games__promo-image {
  width: 100%;
  height: 220px; /* Consistent height for promo images */
  object-fit: cover;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.page-slot-games__promo-title {
  padding: 20px 20px 10px;
  font-size: 22px;
  font-weight: bold;
}

.page-slot-games__promo-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-slot-games__promo-title a:hover {
  color: var(--text-light);
}

.page-slot-games__promo-card p {
  padding: 0 20px 25px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-light);
}

/* Why Choose Section */
.page-slot-games__why-choose-section {
  padding: 80px 0;
  background-color: #0d0d1a;
}

.page-slot-games__advantages-list {
  list-style: none;
  padding: 0;
  margin: 60px auto;
  max-width: 900px;
}

.page-slot-games__advantages-list li {
  background: var(--card-bg-dark-mode);
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-slot-games__advantages-list li:last-child {
  margin-bottom: 0;
}

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

.page-slot-games__advantages-list li p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-slot-games__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
  }

  .page-slot-games__hero-content {
    max-width: 100%;
    text-align: center;
    margin-bottom: 40px;
  }

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

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

  .page-slot-games__hero-image-wrapper {
    justify-content: center;
  }

  .page-slot-games__cta-buttons {
    justify-content: center;
  }

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

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

@media (max-width: 768px) {
  .page-slot-games {
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-slot-games__container {
    padding: 30px 15px;
  }

  .page-slot-games__hero-section {
    padding: 40px 15px;
    gap: 30px;
  }

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

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

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

  .page-slot-games__cta-button {
    padding: 14px 25px;
    font-size: 17px;
    width: 100%; /* Full width for mobile buttons */
  }

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

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

  .page-slot-games__features-grid,
  .page-slot-games__game-types-grid,
  .page-slot-games__promo-cards-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 40px;
  }

  .page-slot-games__feature-item,
  .page-slot-games__game-type-card,
  .page-slot-games__promo-card,
  .page-slot-games__instruction-list li,
  .page-slot-games__tips-list li,
  .page-slot-games__advantages-list li {
    padding: 25px;
    border-radius: 8px;
  }

  .page-slot-games__feature-icon {
    width: 100px; /* Visually smaller for mobile */
    height: 75px;
    margin-bottom: 20px;
  }

  .page-slot-games__feature-title,
  .page-slot-games__game-type-card h3,
  .page-slot-games__promo-title,
  .page-slot-games__instruction-title,
  .page-slot-games__tip-title,
  .page-slot-games__advantage-title {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .page-slot-games__game-type-image {
    height: 180px;
  }

  .page-slot-games__game-type-card p,
  .page-slot-games__promo-card p,
  .page-slot-games__instruction-list li p,
  .page-slot-games__tips-list li p,
  .page-slot-games__advantages-list li p {
    font-size: 15px;
  }

  .page-slot-games__instruction-title {
    padding-left: 35px;
  }

  .page-slot-games__instruction-title::before {
    width: 26px;
    height: 26px;
    font-size: 16px;
  }

  /* Image responsive rules */
  .page-slot-games img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Video responsive rules (if any) */
  .page-slot-games video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-slot-games__video-section,
  .page-slot-games__video-container,
  .page-slot-games__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-slot-games__main-title {
    font-size: 30px;
  }

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

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

  .page-slot-games__cta-button {
    font-size: 16px;
    padding: 12px 20px;
  }
}