/* === Body & General Styles === */
.page-index {
  color: #FFF6D6; /* Text Main */
  background-color: #0A0A0A; /* Background */
}

/* === Module 0: Hero Section === */
.page-index__hero-section {
  padding-top: 10px; /* Small top padding, relies on body padding-top from shared.css */
  background-color: #0A0A0A;
}
.page-index__hero-image {
  width: 100%;
  max-width: 1330px; /* Max width for content, adjust as needed */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
}
.page-index__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* === Module 1: H1 Title + SEO Links === */
.page-index__title-section {
  max-width: 1330px;
  margin: 20px auto 40px;
  padding: 0 20px;
  text-align: center;
}
.page-index__page-title {
  color: #FFF6D6;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}
.page-index__page-title::before,
.page-index__page-title::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background-color: #F2C14E;
}
.page-index__seo-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  padding: 10px 0;
  color: #9DA0A8; /* Adjusted for better contrast on dark background */
}
.page-index__seo-link-item a {
  color: #F2C14E; /* Glow */
  text-decoration: none;
  font-weight: 500;
}
.page-index__seo-link-item a:hover {
  color: #FFD36B;
}

/* === Module 2: Scrollable Long Content === */
.page-index__home-content {
  border: 1px solid #FBB00D; /* Long text frame border */
  border-radius: 10px;
  padding: 0 10px;
  height: 650px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #F2C14E #1A202C;
  max-width: 1330px;
  margin: 0 auto 40px;
  box-sizing: border-box;
  background-color: #111111; /* Card BG */
}
.page-index__home-content::-webkit-scrollbar {
  width: 8px;
}
.page-index__home-content::-webkit-scrollbar-track {
  background: #1A202C;
  border-radius: 10px;
}
.page-index__home-content::-webkit-scrollbar-thumb {
  background-color: #F2C14E;
  border-radius: 10px;
  border: 2px solid #1A202C;
}
.page-index__home-content blockquote {
  border-left: 4px solid #F2C14E;
  margin: 20px 0;
  padding: 10px 20px;
  background-color: rgba(242, 193, 78, 0.1);
  border-radius: 5px;
}
.page-index__home-content blockquote p {
  color: #FFF6D6;
  font-style: italic;
}
.page-index__home-content blockquote a {
  color: #FFD36B;
  font-weight: bold;
  text-decoration: none;
}
.page-index__home-content h2 {
  background: linear-gradient(-225deg, #28a745 0%, #44107a 29%, #ff1361 67%, #fff800 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: page-index-gradient 5s linear infinite;
  margin-top: 30px;
  margin-bottom: 15px;
  font-size: 2em;
}
.page-index__home-content h3 {
  color: #F2C14E;
  margin-top: 25px;
  margin-bottom: 10px;
  font-size: 1.5em;
}
.page-index__home-content p,
.page-index__home-content li {
  color: #9DA0A8; /* Adjusted for better contrast on dark background */
  line-height: 1.6;
  margin-bottom: 10px;
}
.page-index__home-content ul {
  list-style-type: disc;
  margin-left: 20px;
  padding: 0;
}
.page-index__home-content a {
  color: #FFD36B;
  text-decoration: none;
}
.page-index__home-content a:hover {
  text-decoration: underline;
}
.page-index__wp-caption {
  text-align: center;
  margin: 20px auto;
  max-width: 100%;
}
.page-index__wp-caption img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 0 auto;
}
.page-index__wp-caption-text {
  color: #9DA0A8;
  font-size: 0.9em;
  margin-top: 5px;
}
@keyframes page-index-gradient {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === Module 3–6 Shared: Dark Block and Gold Title Line === */
.page-index__row-games,
.page-index__row-sport,
.page-index__row-coop {
  background-color: #1A202C;
  padding: 40px 20px;
  max-width: 1330px;
  margin: 0 auto 40px;
  box-sizing: border-box;
  border-radius: 10px;
}
.page-index__games-title,
.page-index__sport-title,
.page-index__coop-title {
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  margin: 0 0 24px;
  position: relative;
  padding-bottom: 10px;
  font-size: 2em;
}
.page-index__games-title::after,
.page-index__sport-title::after,
.page-index__coop-title::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background-color: #CAAB71;
  margin: 8px auto 0;
}

/* === Module 3: Game Horizontal Slider === */
.page-index__slider-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}
.page-index__slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  width: 100%;
  transition: transform 0.4s ease;
}
.page-index__game-slide {
  flex: 0 0 200px;
  max-width: 200px;
  min-width: 0;
}
.page-index__game-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.page-index__game-card-image {
  border-radius: 8px;
  overflow: hidden;
  height: 146px;
}
.page-index__game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-index__game-card h4 {
  color: #CAAB71;
  margin: 8px 0 0;
  font-size: 14px;
  text-align: center;
}
.page-index__slider-prev,
.page-index__slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(242, 193, 78, 0.8);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: #1A202C;
  font-weight: bold;
  font-size: 1.2em;
}
.page-index__slider-prev {
  left: 5px;
}
.page-index__slider-next {
  right: 5px;
}
.page-index__slider-prev::before {
  content: '‹';
}
.page-index__slider-next::before {
  content: '›';
}

/* === Module 4: Partner Brands Fixed 6 Columns (No Scrolling) === */
.page-index__banners-top-wrapper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: visible; /* Ensure no horizontal scroll */
  align-items: center;
  justify-content: center;
}
.page-index__banner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.page-index__banner-item a {
  display: block;
  width: 100%;
  max-width: 120px; /* Specific max-width for smaller logos */
  margin: 0 auto;
  text-align: center;
}
.page-index__banner-item img {
  width: 100%;
  
  height: auto;
   /* Specific max-height for logos */
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* === Module 5: Blog Card Grid Equal Height === */
.page-index__blog-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch; /* Ensures equal height for cards in the same row */
}
.page-index__blog-card {
  background-color: #1A202C;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #3A2A12; /* Border */
  height: 100%;
  display: flex;
  flex-direction: column;
}
.page-index__blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.page-index__blog-card-image {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  flex-shrink: 0;
}
.page-index__blog-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-index__blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 15px;
  min-height: 0;
}
.page-index__blog-card-body h5 {
  color: #CAAB71;
  margin: 0 0 10px;
  font-size: 1.2em;
  line-height: 1.4;
}
.page-index__blog-card-body p {
  color: #9DA0A8;
  margin: 0 0 12px;
  flex: 1 1 auto; /* Allows paragraph to take available space */
  font-size: 0.9em;
  line-height: 1.5;
}
.page-index__btn-outline {
  margin-top: auto; /* Pushes button to the bottom */
  align-self: flex-start;
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid #F2C14E;
  border-radius: 5px;
  color: #F2C14E;
  text-decoration: none;
  font-size: 0.9em;
  transition: all 0.3s ease;
}
.page-index__btn-outline:hover {
  background-color: #F2C14E;
  color: #1A202C;
}
.page-index__post-date {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #F2C14E;
  color: #1A202C;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 0.8em;
  font-weight: bold;
  text-align: center;
  line-height: 1.2;
}
.page-index__post-date span:first-child {
  display: block;
  font-size: 1.2em;
}
.page-index__blog-card:hover {
  border-color: #198754; /* Green hover border */
}

/* === Module 6: Latest Blog Slider === */
.page-index__blog-slider {
  position: relative;
  overflow: hidden;
}
.page-index__blog-slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  transition: transform 0.4s ease;
}
.page-index__blog-slide {
  flex: 0 0 calc(33.333% - 14px); /* Three columns with gap */
  max-width: calc(33.333% - 14px);
  min-width: 0;
  background-color: #1A202C;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #3A2A12;
}
.page-index__blog-slide-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 15px;
}
.page-index__blog-slide-link img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 10px;
}
.page-index__blog-slide-link h5 {
  color: #CAAB71;
  margin: 10px 0 6px;
  font-size: 1.1em;
  line-height: 1.4;
}
.page-index__blog-slide-link p {
  color: #9DA0A8;
  margin: 0;
  font-size: 0.85em;
  line-height: 1.5;
}
.page-index__blog-slider-prev,
.page-index__blog-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(242, 193, 78, 0.8);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: #1A202C;
  font-weight: bold;
  font-size: 1.2em;
}
.page-index__blog-slider-prev {
  left: 5px;
}
.page-index__blog-slider-next {
  right: 5px;
}
.page-index__blog-slider-prev::before {
  content: '‹';
}
.page-index__blog-slider-next::before {
  content: '›';
}

/* === Responsive Styles === */
@media (max-width: 1024px) {
  .page-index__home-content {
    height: 550px;
  }
  .page-index__blog-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-index__blog-slide {
    flex: 0 0 calc(50% - 10px); /* Two columns with gap */
    max-width: calc(50% - 10px);
  }
  .page-index__games-title, .page-index__sport-title, .page-index__coop-title {
    font-size: 1.8em;
  }
  .page-index__page-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  /* General content area padding for mobile */
  .page-index__hero-image,
  .page-index__title-section,
  .page-index__home-content,
  .page-index__row-games,
  .page-index__row-sport,
  .page-index__row-coop {
    padding-left: 15px;
    padding-right: 15px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box !important;
  }

  /* Hero Section */
  .page-index__hero-section {
    padding-top: 10px;
  }

  /* H1 Title Section */
  .page-index__page-title {
    font-size: 1.8em; /* Adjusted H1 font size for mobile */
    gap: 10px;
  }
  .page-index__page-title::before,
  .page-index__page-title::after {
    width: 20px;
  }
  .page-index__seo-links {
    font-size: 13px;
    flex-direction: column;
    align-items: center;
  }
  .page-index__seo-link-item {
    width: 100%;
    text-align: center;
  }

  /* Long Content Section */
  .page-index__home-content {
    height: 400px; /* Reduced height for mobile */
    font-size: 15px;
  }
  .page-index__home-content h2 {
    font-size: 1.5em;
  }
  .page-index__home-content h3 {
    font-size: 1.2em;
  }

  /* Game Slider */
  .page-index__slider-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px; /* Prevent scrollbar from overlapping content */
  }
  .page-index__game-slide {
    scroll-snap-align: start;
    flex: 0 0 160px;
    max-width: 160px;
  }
  .page-index__slider-prev,
  .page-index__slider-next {
    display: none; /* Hide navigation buttons on mobile for touch scroll */
  }

  /* Partner Brands (Fixed 6 Columns) */
  .page-index__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* 3 columns on mobile */
    max-width: 100%;
    gap: 8px;
  }
  .page-index__banner-item img {
    
    
  }

  /* Blog Card Grid */
  .page-index__blog-masonry {
    grid-template-columns: 1fr; /* Single column on mobile */
  }

  /* Latest Blog Slider */
  .page-index__blog-slider-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
  }
  .page-index__blog-slide {
    flex: 0 0 100%; /* Single column on mobile */
    max-width: 100%;
  }
  .page-index__blog-slider-prev,
  .page-index__blog-slider-next {
    display: none; /* Hide navigation buttons on mobile for touch scroll */
  }

  /* Universal Image and Button Adaptaion */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-index__btn-outline,
  .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;
    text-align: center;
  }
  .page-index__btn-container,
  .page-index__cta-buttons,
  .page-index__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
  }
}