/* style/index.css */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: #121212; /* Matches body background */
}

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

.page-index__heading {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #FFD700; /* Gold for main headings */
  line-height: 1.3;
}

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

.page-index__btn-primary,
.page-index__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.page-index__btn-primary {
  background-color: #8B0000; /* Dark Red */
  color: #ffffff;
  border-color: #8B0000;
}

.page-index__btn-primary:hover {
  background-color: #A00000;
  border-color: #A00000;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-index__btn-secondary {
  background-color: #FFD700; /* Gold */
  color: #121212;
  border-color: #FFD700;
}

.page-index__btn-secondary:hover {
  background-color: #E0B000;
  border-color: #E0B000;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0; /* Assuming shared.css handles body padding-top */
  margin-top: 0;
  overflow: hidden;
}

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

.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: #1a1a1a; /* Slightly lighter dark background */
  border-bottom: 1px solid rgba(255, 255, 255, 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;
}

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

.page-index__logo-item {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto;
}

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

.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;
  filter: brightness(0.8) contrast(1.2); /* Slight adjustment for dark background */
}

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

.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 25px 0;
  color: #FFD700; /* Gold text */
  text-align: left;
  line-height: 1.2;
}

.page-index__featured-game {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  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.3);
}

.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: 25px;
  margin-bottom: 25px;
  align-items: center;
  justify-content: flex-start;
}

.page-index__games-tab {
  background: none;
  border: none;
  padding: 0;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: #999999;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  text-decoration: none;
  position: relative;
  line-height: 1.2;
}

.page-index__games-tab:hover {
  color: #ffffff;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.page-index__games-tab.active {
  color: #FFD700; /* Gold text */
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
}

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

.page-index__games-grid.active {
  display: grid;
}

.page-index__game-card {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding-bottom: 10px;
}

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

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

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

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

.page-index__game-card-title {
  font-size: 15px;
  font-weight: 500;
  margin: 10px 0 0 0;
  padding: 0 8px;
  color: #f0f0f0; /* Light text for card title */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.4;
}

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

.page-index__dark-section {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-index__intro-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-index__feature-item {
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  padding: 30px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index__feature-item img {
  
  
  object-fit: contain;
  margin-bottom: 20px;
  filter: brightness(0.9) drop-shadow(0 0 5px rgba(255, 215, 0, 0.5)); /* Subtle glow */
}

.page-index__feature-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-index__feature-item p {
  font-size: 15px;
  color: #e0e0e0;
  text-align: center;
}

/* Quick Access Section */
.page-index__quick-access-section {
  padding: 80px 20px;
  background-color: #121212;
}

.page-index__link-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

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

.page-index__game-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-index__game-category-item {
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  padding: 30px 20px;
  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-index__game-category-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index__game-category-item img {
  width: 100%;
  
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__category-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-index__game-category-item p {
  font-size: 15px;
  color: #e0e0e0;
  margin-bottom: 25px;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 20px;
  background-color: #121212;
}

.page-index__promo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-index__promo-card {
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  padding: 20px;
  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-index__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index__promo-card img {
  width: 100%;
  
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__promo-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD700;
}

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

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

.page-index__security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-index__security-item {
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  padding: 30px 20px;
  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-index__security-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-index__security-item img {
  
  
  object-fit: contain;
  margin-bottom: 20px;
  filter: brightness(0.9) drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.page-index__security-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-index__security-item p {
  font-size: 15px;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.page-index__contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

/* FAQ Section */
.page-index__faq-section {
  padding: 80px 20px;
  background-color: #121212;
}

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

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #2a2a2a;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #f0f0f0;
}

.page-index__faq-item.active .page-index__faq-question {
  background-color: #8B0000; /* Active FAQ header color */
  color: #ffffff;
  border-bottom: 1px solid #A00000;
}

.page-index__faq-question:hover {
  background: #3a3a3a;
}

.page-index__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
}

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  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: 32px;
  height: 32px;
}

.page-index__faq-item.active .page-index__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg);
}

.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 25px;
  opacity: 0;
  color: #e0e0e0;
  background: #3a3a3a;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
}

.page-index__faq-answer p {
  text-align: left;
  font-size: 15px;
  margin: 0;
}

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

.page-index__blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-index__blog-card {
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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

.page-index__blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.page-index__blog-title {
  font-size: 20px;
  font-weight: bold;
  margin: 20px 20px 10px 20px;
  color: #FFD700;
  line-height: 1.3;
}

.page-index__blog-title a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__blog-title a:hover {
  color: #ffffff;
}

.page-index__blog-summary {
  font-size: 15px;
  color: #e0e0e0;
  margin: 0 20px 15px 20px;
  flex-grow: 1;
  line-height: 1.5;
}

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

.page-index__view-all-button {
  text-align: center;
  margin-top: 40px;
}

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

/* General button responsive styles */
.page-index__cta-button,
.page-index__btn-primary,
.page-index__btn-secondary,
.page-index a[class*="button"],
.page-index a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__cta-buttons,
.page-index__button-group,
.page-index__btn-container,
.page-index__link-group {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Media Queries */
@media (max-width: 1024px) {
  .page-index__heading {
    font-size: 28px;
  }
  .page-index__paragraph {
    font-size: 15px;
  }
  .page-index__games-layout {
    grid-template-columns: 1fr;
  }
  .page-index__featured-game-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  .page-index__featured-game-image {
    height: 400px;
  }
  .page-index__games-tabs {
    justify-content: center;
  }
  .page-index__games-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  .page-index__game-card-image {
    height: 180px;
  }
  .page-index__game-card-title {
    font-size: 14px;
  }
  .page-index__intro-features,
  .page-index__game-categories,
  .page-index__promo-grid,
  .page-index__security-grid,
  .page-index__blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  .page-index__feature-title,
  .page-index__category-title,
  .page-index__promo-title,
  .page-index__security-title,
  .page-index__blog-title {
    font-size: 20px;
  }
  .page-index__feature-item img,
  .page-index__security-item img {
    
    
  }
  .page-index__faq-question h3 {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-index {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-index__container {
    padding: 30px 15px;
  }
  .page-index__heading {
    font-size: 24px;
    margin-bottom: 25px;
  }
  .page-index__paragraph {
    font-size: 14px;
    margin-bottom: 20px;
  }
  /* Hero Section */
  .page-index__hero-section {
    padding-top: 0 !important;
  }
  /* 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;
  }
  .page-index__logo-item a {
    padding: 8px;
  }
  /* Games Section */
  .page-index__games-section {
    padding: 40px 15px;
  }
  .page-index__featured-game-title {
    font-size: 20px;
    margin-bottom: 15px;
  }
  .page-index__featured-game-image {
    height: 300px;
  }
  .page-index__games-tabs {
    gap: 15px;
    margin-bottom: 20px;
  }
  .page-index__games-tab {
    font-size: 16px;
  }
  .page-index__games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-index__game-card-image {
    height: 150px;
  }
  .page-index__game-card-title {
    font-size: 13px;
    margin: 8px 0 0 0;
    padding: 0 5px;
  }
  /* Other Sections */
  .page-index__intro-section,
  .page-index__quick-access-section,
  .page-index__core-games-section,
  .page-index__promotions-section,
  .page-index__security-support-section,
  .page-index__faq-section,
  .page-index__blog-section {
    padding: 50px 15px;
  }
  .page-index__intro-features,
  .page-index__game-categories,
  .page-index__promo-grid,
  .page-index__security-grid,
  .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }
  .page-index__feature-item,
  .page-index__game-category-item,
  .page-index__promo-card,
  .page-index__security-item,
  .page-index__blog-card {
    padding: 25px 15px;
  }
  .page-index__feature-title,
  .page-index__category-title,
  .page-index__promo-title,
  .page-index__security-title,
  .page-index__blog-title {
    font-size: 18px;
  }
  .page-index__feature-item img,
  .page-index__security-item img {
    
    
  }
  .page-index__link-group,
  .page-index__contact-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
  }
  .page-index__btn-primary,
  .page-index__btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 15px;
  }
  /* FAQ Section */
  .page-index__faq-question {
    padding: 15px 20px;
  }
  .page-index__faq-question h3 {
    font-size: 15px;
  }
  .page-index__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-index__faq-item.active .page-index__faq-answer {
    padding: 15px 20px !important;
  }
  /* General responsive for images and buttons */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__hero-container,
  .page-index__logo-carousel-container,
  .page-index__games-container,
  .page-index__intro-features,
  .page-index__game-categories,
  .page-index__promo-grid,
  .page-index__security-grid,
  .page-index__blog-grid,
  .page-index__link-group,
  .page-index__contact-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__logo-carousel-container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-index__logo-item {
    width: 80px !important; /* Fixed 80px */
    height: 80px !important; /* Fixed 80px */
    max-width: 80px !important; /* Ensure not overridden */
    box-sizing: border-box;
    padding: 0;
  }
  .page-index__cta-button,
  .page-index__btn-primary,
  .page-index__btn-secondary,
  .page-index a[class*="button"],
  .page-index a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__cta-buttons,
  .page-index__button-group,
  .page-index__btn-container,
  .page-index__link-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-index__cta-buttons {
    flex-direction: column;
  }
}