/* style/index.css */

/* Base styles for the page content */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #f5f5f5; /* Light background as per body background color type */
}

/* Fixed header spacing - if shared.css sets body padding-top, hero-section should not add more */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0; /* Assuming shared.css already sets padding-top for body */
  margin-top: 0;
}

.page-index__hero-container {
  position: relative;
  margin: 0 auto;
}

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

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

/* LOGO Carousel Section */
.page-index__logo-carousel-section {
  width: 100%;
  padding: 30px 20px;
  background: #ffffff; /* Light background for contrast */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-index__logo-carousel {
  display: flex;
  gap: 15px;
  overflow: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  padding: 8px 0;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none; /* Disable user interaction on carousel itself */
}

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

.page-index__logo-item {
  flex-shrink: 0;
  width: 80px; /* Fixed size */
  height: 80px; /* Fixed size */
  border-radius: 6px;
  overflow: hidden;
  background: #f0f0f0;
  border: 1px solid #e0e0e0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto; /* Allow clicks on individual logo items */
}

.page-index__logo-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

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

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

/* Game Display Section */
.page-index__games-section {
  width: 100%;
  padding: 60px 20px;
  background: #f5f5f5;
}

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

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

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

.page-index__featured-game-title {
  font-size: 28px;
  font-weight: bold;
  margin: 0 0 20px 0;
  color: #ffd700; /* Yellow text for Jackpot */
  text-align: left;
  text-transform: uppercase;
}

.page-index__featured-game {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

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

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

.page-index__games-tab {
  background: none;
  border: none;
  padding: 8px 15px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: #999999; /* Inactive tab color */
  transition: color 0.3s ease, text-decoration 0.3s ease;
  text-decoration: none;
  position: relative;
  text-transform: uppercase;
}

.page-index__games-tab:hover {
  color: #26A9E0;
}

.page-index__games-tab.active {
  color: #26A9E0; /* Active tab color */
  text-decoration: underline;
}

.page-index__games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  display: none; /* Hidden by default */
}

.page-index__games-grid.active {
  display: grid; /* Active grid */
}

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

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

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

.page-index__game-card-image {
  width: 100%;
  height: 180px; /* Adjusted height for better grid fit */
  overflow: hidden;
}

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

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

/* General container and section styles */
.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-index__section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #333333;
  text-transform: uppercase;
}

.page-index__section-description {
  font-size: 16px;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Dark background sections */
.page-index__dark-section {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-index__dark-section .page-index__section-title,
.page-index__dark-section .page-index__section-description,
.page-index__dark-section h3 {
  color: #ffffff;
}

/* Intro Section */
.page-index__intro-section {
  padding: 80px 0;
}

.page-index__main-title {
  font-size: 42px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 25px;
  color: #ffffff;
  line-height: 1.2;
}

.page-index__description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 50px;
  color: #f0f0f0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__intro-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 50px;
}

.page-index__intro-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index__intro-item img {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin: 0 auto 20px auto;
  display: block;
  border-radius: 8px;
}

.page-index__intro-item h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-index__intro-item p {
  font-size: 15px;
  color: #f0f0f0;
}

/* CTA Buttons */
.page-index__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-index__btn-primary,
.page-index__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word;
}

.page-index__btn-primary {
  background: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-index__btn-primary:hover {
  background: #d66f06;
  border-color: #d66f06;
}

.page-index__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-index__btn-secondary:hover {
  background: #e0e0e0;
  color: #1e87b7;
  border-color: #1e87b7;
}

/* Quick Links Section */
.page-index__quick-links-section {
  padding: 80px 0;
  background: #f5f5f5;
}

.page-index__links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-index__link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.page-index__link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-index__link-card img {
  
  
  margin-bottom: 15px;
  object-fit: contain;
}

.page-index__link-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-index__link-card p {
  font-size: 14px;
  color: #555555;
}

/* Core Games Section */
.page-index__core-games-section {
  padding: 80px 0;
}

.page-index__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-index__category-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  padding-bottom: 25px;
}

.page-index__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-index__category-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-index__category-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-index__category-card p {
  font-size: 15px;
  color: #f0f0f0;
  padding: 0 20px;
  margin-bottom: 20px;
}

.page-index__category-card .page-index__btn-primary {
  padding: 10px 20px;
  font-size: 16px;
  background: #EA7C07;
  border-color: #EA7C07;
}

.page-index__category-card .page-index__btn-primary:hover {
  background: #d66f06;
  border-color: #d66f06;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 0;
  background: #f5f5f5;
}

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

.page-index__promo-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  padding-bottom: 25px;
}

.page-index__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-index__promo-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-index__promo-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #26A9E0;
  padding: 0 20px;
}

.page-index__promo-card p {
  font-size: 15px;
  color: #555555;
  padding: 0 20px;
  margin-bottom: 20px;
}

/* Security & Support Section */
.page-index__security-support-section {
  padding: 80px 0;
}

.page-index__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-index__security-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index__security-item img {
  
  
  margin: 0 auto 15px auto;
  display: block;
  object-fit: contain;
}

.page-index__security-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-index__security-item p {
  font-size: 15px;
  color: #f0f0f0;
}

/* FAQ Section */
.page-index__faq-section {
  padding: 80px 0;
  background: #f5f5f5;
}

.page-index__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px !important;
  opacity: 1;
  background: #ffffff;
  border-radius: 0 0 8px 8px;
  border: 1px solid #e0e0e0;
  border-top: none;
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-index__faq-item.active .page-index__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: #d0d0d0;
}

.page-index__faq-question:hover {
  background: #f9f9f9;
  border-color: #d0d0d0;
}

.page-index__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-index__faq-item.active .page-index__faq-toggle {
  color: #26A9E0;
  transform: rotate(0deg); /* Explicitly set for '-' */
}

/* Blog Section */
.page-index__blog-section {
  padding: 80px 0;
}

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

.page-index__blog-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  padding-bottom: 25px;
}

.page-index__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-index__blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-index__blog-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #ffffff;
  padding: 0 20px;
}

.page-index__blog-card h3 a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__blog-card h3 a:hover {
  color: #f0f0f0;
}

.page-index__blog-card p {
  font-size: 15px;
  color: #f0f0f0;
  padding: 0 20px;
  margin-bottom: 20px;
}

.page-index__read-more {
  display: inline-block;
  margin-left: 20px;
  color: #ffd700; /* Yellow for read more link */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-index__read-more:hover {
  color: #ffc107;
}

/* Responsive styles */

/* All images responsive by default */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* @media (max-width: 1024px) for tablet landscape and smaller desktops */
@media (max-width: 1024px) {
  .page-index__main-title {
    font-size: 36px;
  }
  .page-index__description {
    font-size: 16px;
  }
  .page-index__intro-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  .page-index__games-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .page-index__games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  .page-index__featured-game-image {
    height: 400px;
  }
  .page-index__game-card-image {
    height: 160px;
  }
  .page-index__game-card-title {
    font-size: 13px;
  }
  .page-index__link-card h3 {
    font-size: 18px;
  }
  .page-index__category-card h3 {
    font-size: 20px;
  }
  .page-index__promo-card h3 {
    font-size: 18px;
  }
  .page-index__security-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-index__blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* @media (max-width: 768px) for mobile devices */
@media (max-width: 768px) {
  /* HERO Section */
  .page-index__hero-section {
    padding-top: 0 !important; /* Ensure no extra padding if header is fixed */
  }
  
  /* LOGO Carousel Section */
  .page-index__logo-carousel-section {
    padding: 20px 15px;
  }
  .page-index__logo-carousel {
    gap: 12px;
  }
  .page-index__logo-item {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    box-sizing: border-box;
  }
  .page-index__logo-item a {
    padding: 8px;
  }

  /* Game Display Section */
  .page-index__games-section {
    padding: 40px 15px;
  }
  .page-index__games-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .page-index__featured-game-title {
    font-size: 24px;
    text-align: center;
  }
  .page-index__featured-game-image {
    height: 300px;
  }
  .page-index__games-tabs {
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
  }
  .page-index__games-tab {
    font-size: 16px;
    padding: 6px 10px;
  }
  .page-index__games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-index__game-card-image {
    height: 140px;
  }
  .page-index__game-card-title {
    font-size: 12px;
    margin: 8px 0 8px 0;
    padding: 0 3px;
  }

  /* General container and section styles for mobile */
  .page-index__container {
    padding: 0 15px;
  }
  .page-index__section-title {
    font-size: 26px;
    margin-bottom: 25px;
  }
  .page-index__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  /* Intro Section */
  .page-index__intro-section {
    padding: 50px 0;
  }
  .page-index__main-title {
    font-size: 32px;
    margin-bottom: 20px;
  }
  .page-index__description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-index__intro-content {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }
  .page-index__intro-item {
    padding: 25px;
  }
  .page-index__intro-item h3 {
    font-size: 20px;
  }
  .page-index__intro-item p {
    font-size: 14px;
  }

  /* CTA Buttons */
  .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-index__btn-primary,
  .page-index__btn-secondary {
    font-size: 16px;
    padding: 12px 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Quick Links Section */
  .page-index__quick-links-section {
    padding: 50px 0;
  }
  .page-index__links-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index__link-card {
    padding: 20px;
  }
  .page-index__link-card h3 {
    font-size: 18px;
  }
  .page-index__link-card p {
    font-size: 13px;
  }

  /* Core Games Section */
  .page-index__core-games-section {
    padding: 50px 0;
  }
  .page-index__game-categories {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index__category-card img {
    
  }
  .page-index__category-card h3 {
    font-size: 20px;
  }
  .page-index__category-card p {
    font-size: 14px;
  }

  /* Promotions Section */
  .page-index__promotions-section {
    padding: 50px 0;
  }
  .page-index__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index__promo-card img {
    
  }
  .page-index__promo-card h3 {
    font-size: 18px;
  }
  .page-index__promo-card p {
    font-size: 14px;
  }

  /* Security & Support Section */
  .page-index__security-support-section {
    padding: 50px 0;
  }
  .page-index__security-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }
  .page-index__security-item {
    padding: 25px;
  }
  .page-index__security-item h3 {
    font-size: 18px;
  }
  .page-index__security-item p {
    font-size: 14px;
  }

  /* FAQ Section */
  .page-index__faq-section {
    padding: 50px 0;
  }
  .page-index__faq-item {
    margin-bottom: 10px;
  }
  .page-index__faq-question {
    padding: 15px;
  }
  .page-index__faq-question h3 {
    font-size: 16px;
  }
  .page-index__faq-toggle {
    font-size: 24px;
    width: 26px;
    height: 26px;
  }
  .page-index__faq-item.active .page-index__faq-answer {
    padding: 15px !important;
  }

  /* Blog Section */
  .page-index__blog-section {
    padding: 50px 0;
  }
  .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index__blog-card img {
    
  }
  .page-index__blog-card h3 {
    font-size: 18px;
  }
  .page-index__blog-card p {
    font-size: 14px;
  }
  .page-index__read-more {
    margin-left: 15px;
  }

  /* General image and button responsiveness for mobile */
  .page-index img:not(.page-index__logo-item img) {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__promo-card,
  .page-index__blog-card,
  .page-index__link-card,
  .page-index__category-card,
  .page-index__security-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}