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

.page-index__hero-section {
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.page-index__hero-image {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.page-index__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-index__title-section {
  max-width: 1330px;
  margin: 20px auto;
  text-align: center;
  padding: 0 20px;
  box-sizing: border-box;
}
.page-index__page-title {
  font-weight: bold;
  margin-bottom: 20px;
  position: relative;
  color: #FFF6D6;
  line-height: 1.2;
}
.page-index__page-title .page-index__title-main {
  display: inline-block;
  max-width: 90%;
}
.page-index__seo-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #9DA0A8;
  padding: 10px 0;
}
.page-index__seo-links a {
  color: #F2C14E; /* Main color for links */
  text-decoration: none;
}
.page-index__seo-links a:hover {
  text-decoration: underline;
}

.page-index__home-content {
  border: 1px solid #FBB00D; /* Gold border */
  border-radius: 10px;
  padding: 0 20px;
  height: 650px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #F2C14E #1A202C; /* Thumb and Track color */
  max-width: 1330px;
  margin: 20px auto;
  box-sizing: border-box;
}
.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 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: 28px;
}
.page-index__home-content h3 {
  color: #F2C14E; /* Main color */
  margin-top: 25px;
  margin-bottom: 10px;
  font-size: 22px;
}
.page-index__home-content p {
  color: #9DA0A8;
  margin-bottom: 15px;
  line-height: 1.6;
}
.page-index__home-content strong {
  color: #FFF6D6;
}
.page-index__home-content a {
  color: #F2C14E;
  text-decoration: none;
}
.page-index__home-content a:hover {
  text-decoration: underline;
}
.page-index__home-content ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: #9DA0A8;
}
.page-index__home-content ul li {
  margin-bottom: 5px;
}
.page-index__home-content blockquote {
  border-left: 4px solid #F2C14E;
  padding-left: 15px;
  margin: 20px 0;
  font-style: italic;
  color: #9DA0A8;
}
.page-index__home-content .page-index__wp-caption {
  text-align: center;
  margin: 20px auto;
  max-width: 100%;
  box-sizing: border-box;
}
.page-index__home-content .page-index__wp-caption img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}
.page-index__home-content .page-index__wp-caption-text {
  font-size: 13px;
  color: #9DA0A8;
  margin-top: 5px;
}
.page-index__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #1A202C;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  margin-top: 20px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.page-index__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

@keyframes page-index-gradient {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === Module 3–6 Shared: Dark Sections and Golden Title Line === */
.page-index__row-games,
.page-index__row-sport,
.page-index__row-coop {
  background-color: #0A0A0A;
  padding: 40px 20px;
  max-width: 1330px;
  margin: 0 auto;
  box-sizing: border-box;
}
.page-index__games-title,
.page-index__sport-title,
.page-index__coop-title {
  color: #FFF6D6;
  text-align: center;
  text-transform: uppercase;
  margin: 0 0 24px;
  position: relative;
  padding-bottom: 10px;
  font-size: 26px;
}
.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 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 205px; /* Adjust for image width */
  max-width: 205px;
  min-width: 0;
}
.page-index__game-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background-color: #111111; /* Card BG */
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease;
}
.page-index__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}
.page-index__game-card-image {
  border-radius: 8px;
  overflow: hidden;
  height: 146px; /* Image height */
}
.page-index__game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-
}
.page-index__game-card h4 {
  color: #CAAB71;
  margin: 8px 0 10px;
  font-size: 14px;
  text-align: center;
  padding: 0 10px;
}
.page-index__slider-prev, .page-index__slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(242, 193, 78, 0.7); /* Main color with opacity */
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: #1A202C;
  font-size: 20px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.page-index__slider-prev:hover, .page-index__slider-next:hover {
  background-color: #F2C14E;
}
.page-index__slider-prev {
  left: 10px;
}
.page-index__slider-next {
  right: 10px;
}
.page-index__slider-prev::before {
  content: '‹';
}
.page-index__slider-next::before {
  content: '›';
}

/* === Module 4: Partner Fixed 6-column Grid (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 hidden scroll */
  align-items: center;
  justify-content: center;
}
.page-index__banner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  background-color: #111111; /* Card BG */
  border-radius: 8px;
  padding: 10px;
  height: 100%;
  box-sizing: border-box;
}
.page-index__banner-item a {
  display: block;
  width: 100%;
  max-width: 120px; /* Specific max width for small logos */
  margin: 0 auto;
  text-align: center;
}
.page-index__banner-item img {
  width: 100%;
  
  height: auto;
  
  object-fit: contain;
  display: block;
  margin: 0 auto;
  min-width: 200px; /* Min size for image generation, will be scaled down */
  min-height: 200px;
}

/* === Module 5: Blog Masonry Equal Height Grid === */
.page-index__blog-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch; /* Ensures equal height cards */
}
.page-index__blog-card {
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #3A2A12; /* Border */
  height: 100%;
  transition: border-color 0.3s ease;
}
.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%; /* 16:9 aspect ratio for image */
  overflow: hidden;
  flex-shrink: 0;
}
.page-index__blog-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}
.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; /* Gold */
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.3;
}
.page-index__blog-card-body p {
  color: #9DA0A8;
  margin: 0 0 12px;
  flex: 1 1 auto;
  font-size: 14px;
  line-height: 1.5;
}
.page-index__btn-outline {
  margin-top: auto; /* Push button to bottom */
  align-self: flex-start;
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid #F2C14E;
  color: #F2C14E;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.page-index__btn-outline:hover {
  background-color: #F2C14E;
  color: #1A202C;
}
.page-index__blog-card:hover {
  border-color: #198754; /* Green on hover */
}
.page-index__post-date {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(17, 17, 17, 0.8); /* Card BG with opacity */
  color: #FFF6D6;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}
.page-index__post-date span:first-child {
  display: block;
  font-weight: bold;
  font-size: 14px;
}

/* === Module 6: Latest Blog Slider === */
.page-index__blog-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}
.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); /* For 3 columns with 20px gap */
  max-width: calc(33.333% - 14px);
  min-width: 0;
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #3A2A12;
  transition: transform 0.2s ease;
}
.page-index__blog-slide:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}
.page-index__blog-slide-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding-bottom: 15px;
}
.page-index__blog-slide-link img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px 8px 0 0;
  margin-bottom: 10px;
  min-width: 200px;
  min-height: 200px;
}
.page-index__blog-slide-link h5 {
  color: #CAAB71;
  margin: 0 15px 6px;
  font-size: 16px;
  line-height: 1.3;
}
.page-index__blog-slide-link p {
  color: #9DA0A8;
  margin: 0 15px;
  font-size: 13px;
  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.7);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  color: #1A202C;
  font-size: 20px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.page-index__blog-slider-prev:hover, .page-index__blog-slider-next:hover {
  background-color: #F2C14E;
}
.page-index__blog-slider-prev {
  left: 10px;
}
.page-index__blog-slider-next {
  right: 10px;
}
.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;
    padding: 0 15px;
  }
  .page-index__home-content h2 {
    font-size: 24px;
  }
  .page-index__home-content h3 {
    font-size: 20px;
  }
  .page-index__games-title,
  .page-index__sport-title,
  .page-index__coop-title {
    font-size: 22px;
  }
  .page-index__blog-masonry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-index__blog-slide {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
}

@media (max-width: 768px) {
  .page-index__hero-section,
  .page-index__title-section,
  .page-index__home-content,
  .page-index__row-games,
  .page-index__row-sport,
  .page-index__row-coop {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
  }
  .page-index__hero-section {
    padding-top: 10px !important;
  }
  .page-index__hero-image img,
  .page-index__home-content .page-index__wp-caption img,
  .page-index__game-card-image img,
  .page-index__banner-item img,
  .page-index__blog-card-image img,
  .page-index__blog-slide-link img,
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__home-content {
    height: 450px;
    padding: 0 10px;
    margin: 15px auto;
  }
  .page-index__home-content h2 {
    font-size: 20px;
  }
  .page-index__home-content h3 {
    font-size: 18px;
  }
  .page-index__games-title,
  .page-index__sport-title,
  .page-index__coop-title {
    font-size: 20px;
  }
  .page-index__slider-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding-bottom: 10px;
  }
  .page-index__game-slide {
    scroll-snap-align: start;
    flex: 0 0 160px;
    max-width: 160px;
  }
  .page-index__slider-prev, .page-index__slider-next {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }
  .page-index__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 100%;
    gap: 8px;
  }
  .page-index__banner-item img {
    
    
  }
  .page-index__blog-masonry {
    grid-template-columns: 1fr;
  }
  .page-index__blog-slide {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .page-index__btn-primary,
  .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 !important;
    padding-right: 15px !important;
  }
  .page-index__cta-buttons,
  .page-index__button-group,
  .page-index__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-index__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}