/* style/index.css */

/* Base styles and container for contrast */
.page-index {
  color: #f0f0f0; /* Light text for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-index__heading {
  font-size: 36px;
  font-weight: 700;
  color: #FFD700; /* Accent color for headings */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-index__sub-heading {
  font-size: 28px;
  font-weight: 600;
  color: #FFD700;
  text-align: left;
  margin-top: 30px;
  margin-bottom: 20px;
}

.page-index__paragraph {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: justify;
  color: #ffffff;
}

.page-index__paragraph a {
  color: #FFD700;
  text-decoration: underline;
}

.page-index__paragraph a:hover {
  color: #fff;
}

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

.page-index__btn-primary,
.page-index__btn-secondary,
.page-index__btn-small {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.page-index__btn-primary {
  background: #FFD700;
  color: #1A202C; /* Dark text for light button */
  border: 2px solid #FFD700;
}

.page-index__btn-primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
}

.page-index__btn-secondary {
  background: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-index__btn-secondary:hover {
  background: #FFD700;
  color: #1A202C; /* Dark text for light button */
  transform: translateY(-2px);
}

.page-index__btn-small {
  padding: 8px 15px;
  font-size: 14px;
  border-radius: 5px;
  background: #1A202C;
  color: #FFD700;
  border: 1px solid #FFD700;
}

.page-index__btn-small:hover {
  background: #FFD700;
  color: #1A202C;
  transform: translateY(-1px);
}

.page-index__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Dark section styling */
.page-index__dark-section {
  background-color: #1A202C; /* Primary brand color for dark sections */
  padding: 60px 0;
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 100px; /* Adjust for fixed header on desktop */
}

.page-index__hero-container {
  position: relative;
  width: 100%;
  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: 40px 20px;
  background: #0d0d0d; /* Slightly lighter dark background */
}

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

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

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

.page-index__logo-item {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff; /* White background for logos */
  border: 1px solid #e0e0e0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto; /* Allow links inside to be clickable */
}

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

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

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

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

.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: 24px;
  font-weight: bold;
  margin: 0 0 20px 0;
  color: #FFD700; /* Yellow text */
  text-align: left;
}

.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: 0;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  color: #999999;
  transition: color 0.3s ease;
  text-decoration: none;
  position: relative;
}

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

.page-index__games-tab.active {
  color: #FFD700; /* Accent color for active tab */
  text-decoration: underline;
}

.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: #1A202C; /* Darker background for game cards */
  border: 1px solid #333;
  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: 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: 14px;
  font-weight: 500;
  margin: 10px 0 0 0;
  padding: 0 5px 10px;
  color: #FFD700; /* Accent color for game titles */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.4;
}

/* Introduction Section */
.page-index__introduction-section {
  text-align: center;
}

/* Quick Links Section */
.page-index__quick-links-section {
  padding: 60px 20px;
  background: #0d0d0d;
  text-align: center;
}

.page-index__link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-index__link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: #1A202C; /* Dark card background */
  border-radius: 10px;
  text-decoration: none;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333;
}

.page-index__link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  border-color: #FFD700;
}

.page-index__link-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 15px;
  filter: brightness(1.2); /* Slightly brighten icons for visibility */
}

.page-index__link-text {
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  color: #FFD700; /* Accent color for link text */
}

/* Games Intro Section */
.page-index__games-intro-section {
  text-align: center;
}

.page-index__game-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
}

.page-index__category-tab {
  background: #333;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  color: #f0f0f0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-index__category-tab:hover {
  background: #FFD700;
  color: #1A202C;
}

.page-index__category-tab.active {
  background: #FFD700;
  color: #1A202C;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
}

.page-index__game-content-wrapper {
  position: relative;
  min-height: 400px; /* Ensure content area has height */
}

.page-index__game-content {
  display: none;
  animation: fadeIn 0.5s ease-out forwards;
  text-align: left;
}

.page-index__game-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 60px 20px;
  background: #0d0d0d;
  text-align: center;
}

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

.page-index__promo-card {
  background: #1A202C;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333;
  display: flex;
  flex-direction: column;
}

.page-index__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: #FFD700;
}

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

.page-index__promo-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFD700;
  margin: 20px 20px 10px;
}

.page-index__promo-description {
  font-size: 15px;
  color: #f0f0f0;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index__promo-description a {
  color: #FFD700;
  text-decoration: underline;
}

.page-index__promo-description a:hover {
  color: #fff;
}

.page-index__promo-card .page-index__btn-small {
  margin: 0 20px 20px;
  align-self: flex-start;
}

/* Security & Support Section */
.page-index__security-support-section {
  text-align: center;
}

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

.page-index__feature-item {
  background: #0d0d0d;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #333;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.page-index__feature-item:hover {
  transform: translateY(-5px);
  border-color: #FFD700;
}

.page-index__feature-item img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: brightness(1.2);
}

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

.page-index__feature-description {
  font-size: 16px;
  color: #f0f0f0;
  text-align: center;
}

/* FAQ Section */
.page-index__faq-section {
  padding: 60px 20px;
  background: #0d0d0d;
  text-align: center;
}

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

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background: #1A202C; /* Dark background for FAQ item */
  border: 1px solid #333;
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #1A202C;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #FFD700; /* Accent color for question text */
}

.page-index__faq-question:hover {
  background: #2a3342;
}

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

.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: 30px;
  height: 30px;
}

.page-index__faq-item.active .page-index__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
  color: #fff;
}

.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;
  background: #0d0d0d;
  border-radius: 0 0 8px 8px;
  color: #f0f0f0;
  text-align: left;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid #333;
}

.page-index__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.page-index__faq-answer a {
  color: #FFD700;
  text-decoration: underline;
}

.page-index__faq-answer a:hover {
  color: #fff;
}

/* Blog Section */
.page-index__blog-section {
  text-align: center;
}

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

.page-index__blog-card {
  background: #0d0d0d;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #333;
  display: flex;
  flex-direction: column;
}

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

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

.page-index__blog-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-index__blog-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

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

.page-index__blog-title a:hover {
  color: #fff;
  text-decoration: underline;
}

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

.page-index__blog-summary a {
  color: #FFD700;
  text-decoration: underline;
}

.page-index__blog-summary a:hover {
  color: #fff;
}

.page-index__blog-date {
  font-size: 13px;
  color: #999;
  display: block;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .page-index__container {
    padding: 30px 15px;
  }
  .page-index__heading {
    font-size: 32px;
  }
  .page-index__sub-heading {
    font-size: 24px;
  }
  .page-index__paragraph {
    font-size: 15px;
  }
  .page-index__hero-section {
    padding-top: 90px; /* Adjust for fixed header */
  }
}

@media (max-width: 1024px) {
  .page-index__games-layout {
    grid-template-columns: 1fr;
  }
  .page-index__featured-game-image {
    height: 400px;
  }
  .page-index__games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-index__game-card-image {
    height: 180px;
  }
  .page-index__hero-section {
    padding-top: 80px; /* Adjust for fixed header */
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    padding-top: 70px !important; /* Adjust for fixed header on mobile */
  }
  
  .page-index__hero-image img {
    width: 100% !important;
    height: auto !important;
  }

  .page-index__logo-carousel-section,
  .page-index__games-section,
  .page-index__introduction-section,
  .page-index__quick-links-section,
  .page-index__games-intro-section,
  .page-index__promotions-section,
  .page-index__security-support-section,
  .page-index__faq-section,
  .page-index__blog-section {
    padding: 30px 15px;
  }

  .page-index__container,
  .page-index__section,
  .page-index__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index__heading {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .page-index__sub-heading {
    font-size: 22px;
  }
  .page-index__paragraph {
    font-size: 14px;
  }
  .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__btn-primary,
  .page-index__btn-secondary {
    width: 100%;
    padding: 10px 20px;
    font-size: 16px;
  }
  .page-index__logo-item {
    width: 150px;
    height: 150px;
  }
  .page-index__logo-carousel {
    gap: 15px;
  }
  .page-index__featured-game-title {
    font-size: 20px;
  }
  .page-index__featured-game-image {
    height: 300px;
  }
  .page-index__games-tabs {
    gap: 15px;
  }
  .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 3px;
  }
  .page-index__link-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
  }
  .page-index__link-card {
    padding: 15px;
  }
  .page-index__link-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
  }
  .page-index__link-text {
    font-size: 14px;
  }
  .page-index__game-categories {
    gap: 10px;
  }
  .page-index__category-tab {
    padding: 8px 15px;
    font-size: 14px;
  }
  .page-index__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index__promo-card img {
    height: 180px;
  }
  .page-index__promo-title {
    font-size: 20px;
    margin: 15px 15px 8px;
  }
  .page-index__promo-description {
    font-size: 14px;
    padding: 0 15px;
  }
  .page-index__feature-item {
    padding: 20px;
  }
  .page-index__feature-item img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
  }
  .page-index__feature-title {
    font-size: 20px;
  }
  .page-index__feature-description {
    font-size: 14px;
  }
  .page-index__faq-question {
    padding: 15px 20px;
  }
  .page-index__faq-question h3 {
    font-size: 16px;
  }
  .page-index__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }
  .page-index__faq-item.active .page-index__faq-answer {
    padding: 15px 20px !important;
  }
  .page-index__faq-answer p {
    font-size: 14px;
  }
  .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index__blog-card img {
    height: 180px;
  }
  .page-index__blog-title {
    font-size: 18px;
  }
  .page-index__blog-summary {
    font-size: 14px;
  }
  .page-index__blog-date {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .page-index__heading {
    font-size: 24px;
  }
  .page-index__sub-heading {
    font-size: 20px;
  }
  .page-index__btn-primary,
  .page-index__btn-secondary {
    font-size: 15px;
  }
  .page-index__games-grid {
    grid-template-columns: 1fr;
  }
  .page-index__game-card-image {
    height: 120px;
  }
  .page-index__game-card-title {
    font-size: 12px;
  }
  .page-index__link-grid {
    grid-template-columns: 1fr;
  }
  .page-index__promo-title {
    font-size: 18px;
  }
  .page-index__feature-title {
    font-size: 18px;
  }
  .page-index__faq-question h3 {
    font-size: 15px;
  }
  .page-index__blog-title {
    font-size: 16px;
  }
}