/* style/jackpot-games.css */

/* Base styles for the page */
.page-jackpot-games {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark background */
  background-color: var(--dark-bg-1); /* Inherit from shared.css */
  padding-top: 0; /* Handled by specific sections if needed, or by main container */
}

/* Fixed header spacing - applied to the first text-based content section */
.page-jackpot-games__section--intro {
  padding-top: 120px; /* Desktop */
}

@media (max-width: 768px) {
  .page-jackpot-games__section--intro {
    padding-top: 100px; /* Mobile */
  }
}

/* HERO Section */
.page-jackpot-games__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  margin-top: -120px; /* Counteract main padding-top */
}

@media (max-width: 768px) {
  .page-jackpot-games__hero-section {
    margin-top: -100px; /* Counteract mobile main padding-top */
  }
}

.page-jackpot-games__hero-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.page-jackpot-games__hero-image {
  width: 100%;
  margin: 0;
}

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

/* LOGO Carousel Section */
.page-jackpot-games__logo-carousel-section {
  width: 100%;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.2); /* Slightly transparent dark background */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-jackpot-games__logo-carousel-container {
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.page-jackpot-games__logo-carousel {
  display: flex;
  gap: 20px;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 0;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.page-jackpot-games__logo-carousel::-webkit-scrollbar {
  display: none;
}

.page-jackpot-games__logo-item {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto;
}

.page-jackpot-games__logo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-jackpot-games__logo-item a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 15px;
  box-sizing: border-box;
  pointer-events: auto;
}

.page-jackpot-games__logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Game Display Section */
.page-jackpot-games__games-section {
  width: 100%;
  padding: 60px 20px;
  background: var(--dark-bg-1);
}

.page-jackpot-games__games-container {
  max-width: 1400px;
  margin: 0 auto;
}

.page-jackpot-games__games-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
  align-items: start;
}

.page-jackpot-games__featured-game-area {
  width: 100%;
}

.page-jackpot-games__featured-game-title {
  font-size: 24px;
  font-weight: bold;
  margin: 0 0 20px 0;
  color: var(--secondary-color); /* #FFD700 */
  text-align: left;
}

.page-jackpot-games__featured-game {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-jackpot-games__featured-game:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.page-jackpot-games__featured-game-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-jackpot-games__featured-game-image {
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.page-jackpot-games__featured-game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-jackpot-games__games-grid-area {
  width: 100%;
}

.page-jackpot-games__games-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: center;
}

.page-jackpot-games__games-tab {
  background: none;
  border: none;
  padding: 0;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: #999999;
  transition: color 0.3s ease;
  text-decoration: none;
  position: relative;
}

.page-jackpot-games__games-tab:hover {
  color: #ffffff;
}

.page-jackpot-games__games-tab.active {
  color: var(--primary-color); /* #CC0000 */
  text-decoration: underline;
}

.page-jackpot-games__games-tab.active + .page-jackpot-games__games-tab {
  color: #ffffff;
}

.page-jackpot-games__games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  display: none;
}

.page-jackpot-games__games-grid.active {
  display: grid;
}

.page-jackpot-games__game-card {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-jackpot-games__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-jackpot-games__game-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-jackpot-games__game-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.page-jackpot-games__game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-jackpot-games__game-card-title {
  font-size: 14px;
  font-weight: 500;
  margin: 10px 0 0 0;
  padding: 0 5px;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.4;
  padding-bottom: 10px;
}

/* General Section Styles */
.page-jackpot-games__section {
  padding: 80px 20px;
  margin: 0 auto;
  max-width: 100%;
  box-sizing: border-box;
}

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

.page-jackpot-games__main-heading {
  font-size: 38px;
  font-weight: bold;
  color: var(--secondary-color); /* #FFD700 */
  text-align: center;
  margin-bottom: 30px;
}

.page-jackpot-games__sub-heading {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color); /* #CC0000 */
  text-align: center;
  margin-bottom: 25px;
}

.page-jackpot-games__text-block {
  font-size: 17px;
  color: #f0f0f0;
  margin-bottom: 20px;
  text-align: justify;
}

.page-jackpot-games__text-block--small {
  font-size: 15px;
  color: #cccccc;
  text-align: center;
}

.page-jackpot-games__dark-bg {
  background-color: var(--primary-color-dark);
}

.page-jackpot-games__image-wrapper {
  margin: 40px auto;
  max-width: 800px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-jackpot-games__image-wrapper--large {
  max-width: 1000px;
}

.page-jackpot-games__image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Buttons */
.page-jackpot-games__btn-primary,
.page-jackpot-games__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.page-jackpot-games__btn-primary {
  background: var(--primary-color); /* #CC0000 */
  color: #ffffff;
  border: 2px solid var(--primary-color);
}

.page-jackpot-games__btn-primary:hover {
  background: var(--primary-color-dark);
  border-color: var(--primary-color-dark);
  transform: translateY(-2px);
}

.page-jackpot-games__btn-secondary {
  background: none;
  color: var(--secondary-color); /* #FFD700 */
  border: 2px solid var(--secondary-color);
}

.page-jackpot-games__btn-secondary:hover {
  background: var(--secondary-color);
  color: var(--dark-bg-1);
  transform: translateY(-2px);
}

.page-jackpot-games__btn-text {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  margin-top: 15px;
  position: relative;
}

.page-jackpot-games__btn-text::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s ease;
}

.page-jackpot-games__btn-text:hover::after {
  width: 0;
}

/* Quick Links Grid */
.page-jackpot-games__link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.page-jackpot-games__link-grid .page-jackpot-games__btn-primary,
.page-jackpot-games__link-grid .page-jackpot-games__btn-secondary {
  width: 100%;
  box-sizing: border-box;
}

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

.page-jackpot-games__game-type-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-jackpot-games__game-type-title {
  font-size: 24px;
  color: var(--secondary-color); /* #FFD700 */
  margin-bottom: 15px;
}

.page-jackpot-games__game-type-card p {
  font-size: 16px;
  color: #e0e0e0;
  margin-bottom: 20px;
}

/* Promotions Grid */
.page-jackpot-games__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 50px;
}

.page-jackpot-games__promo-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-jackpot-games__promo-title {
  font-size: 24px;
  color: var(--primary-color); /* #CC0000 */
  margin-bottom: 15px;
}

.page-jackpot-games__promo-card p {
  font-size: 16px;
  color: #e0e0e0;
  margin-bottom: 20px;
}

/* Feature Grid (Security) */
.page-jackpot-games__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 50px;
}

.page-jackpot-games__feature-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-jackpot-games__feature-title {
  font-size: 22px;
  color: var(--secondary-color); /* #FFD700 */
  margin-bottom: 15px;
}

.page-jackpot-games__feature-card p {
  font-size: 16px;
  color: #e0e0e0;
}

/* FAQ Section */
.page-jackpot-games__faq-list {
  margin-top: 40px;
}

.page-jackpot-games__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-jackpot-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 15px;
  opacity: 0;
}

.page-jackpot-games__faq-item.active .page-jackpot-games__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 5px 5px;
}

.page-jackpot-games__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-jackpot-games__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.page-jackpot-games__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

.page-jackpot-games__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none;
}

.page-jackpot-games__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color); /* #FFD700 */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-jackpot-games__faq-item.active .page-jackpot-games__faq-toggle {
  color: var(--primary-color); /* #CC0000 */
  transform: rotate(45deg); /* Optional: rotate for 'x' effect */
}

/* Blog Section */
.page-jackpot-games__blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-jackpot-games__blog-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-jackpot-games__blog-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-jackpot-games__blog-image-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.page-jackpot-games__blog-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-jackpot-games__blog-title {
  font-size: 20px;
  color: var(--secondary-color); /* #FFD700 */
  margin: 20px 20px 10px 20px;
  line-height: 1.4;
}

.page-jackpot-games__blog-excerpt {
  font-size: 15px;
  color: #cccccc;
  margin: 0 20px 15px 20px;
}

.page-jackpot-games__blog-date {
  font-size: 13px;
  color: #999999;
  display: block;
  margin: 0 20px 20px 20px;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .page-jackpot-games__container {
    padding: 0 15px;
  }
}

@media (max-width: 1024px) {
  .page-jackpot-games__games-layout {
    grid-template-columns: 1fr;
  }
  
  .page-jackpot-games__games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-jackpot-games__featured-game-image {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .page-jackpot-games__hero-section {
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
  }
  
  .page-jackpot-games__hero-image img {
    width: 100%;
    height: auto;
  }

  .page-jackpot-games__logo-carousel-section {
    padding: 30px 15px;
  }
  
  .page-jackpot-games__logo-item {
    width: 150px;
    height: 150px;
  }
  
  .page-jackpot-games__logo-carousel {
    gap: 15px;
  }

  .page-jackpot-games__games-section {
    padding: 40px 15px;
  }
  
  .page-jackpot-games__games-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .page-jackpot-games__featured-game-title {
    font-size: 20px;
  }
  
  .page-jackpot-games__featured-game-image {
    height: 300px;
  }
  
  .page-jackpot-games__games-tabs {
    gap: 15px;
    justify-content: center;
  }
  
  .page-jackpot-games__games-tab {
    font-size: 16px;
  }
  
  .page-jackpot-games__games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .page-jackpot-games__game-card-image {
    height: 150px;
  }
  
  .page-jackpot-games__game-card-title {
    font-size: 13px;
    margin: 8px 0 0 0;
    padding: 0 3px;
  }

  .page-jackpot-games__section {
    padding: 60px 15px;
  }

  .page-jackpot-games__main-heading {
    font-size: 30px;
  }

  .page-jackpot-games__sub-heading {
    font-size: 26px;
  }

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

  .page-jackpot-games__link-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-jackpot-games__game-types-grid,
  .page-jackpot-games__promo-grid,
  .page-jackpot-games__feature-grid,
  .page-jackpot-games__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-jackpot-games__game-type-title,
  .page-jackpot-games__promo-title,
  .page-jackpot-games__feature-title {
    font-size: 20px;
  }

  .page-jackpot-games__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-jackpot-games__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-jackpot-games__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-jackpot-games__faq-answer {
    padding: 0 15px;
  }
  
  .page-jackpot-games__faq-item.active .page-jackpot-games__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all images and their containers are responsive on mobile */
  .page-jackpot-games img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-jackpot-games__section,
  .page-jackpot-games__card,
  .page-jackpot-games__container,
  .page-jackpot-games__image-wrapper,
  .page-jackpot-games__logo-carousel-container,
  .page-jackpot-games__games-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-jackpot-games__hero-section,
  .page-jackpot-games__logo-carousel-section,
  .page-jackpot-games__games-section {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Color Contrast Fixes (as per instructions) */
.page-jackpot-games__content-area, .page-jackpot-games__text-block {
  color: #f0f0f0; /* Light text for dark background */
}

.page-jackpot-games p, .page-jackpot-games li {
  color: #f0f0f0;
}

.page-jackpot-games__card {
  background: rgba(255, 255, 255, 0.05); /* Light transparent background for dark theme */
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-jackpot-games__dark-section {
  background: var(--primary-color-dark);
  color: #ffffff;
}

.page-jackpot-games__btn-primary {
  background: var(--primary-color);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-jackpot-games__btn-secondary {
  background: none;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}