/* === Body & General Styles === */
.page-index {
  color: #FFF3E6; /* Text Main (light) */
  background-color: #0D0E12; /* Background (dark) */
}

/* === Mobile Responsive Base for all images and containers === */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}
.page-index__section,
.page-index__card,
.page-index__container,
.page-index__cta-buttons,
.page-index__button-group,
.page-index__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* === Module 0: Hero Section === */
.page-index__hero-section {
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  background-color: #0D0E12;
}
.page-index__hero-image {
  max-width: 1330px;
  margin: 0 auto;
  overflow: hidden;
}
.page-index__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* === Module 1: h1 Title Section + SEO Links === */
.page-index__title-section {
  max-width: 1330px;
  margin: 20px auto;
  padding: 0 20px;
  text-align: center;
  box-sizing: border-box;
}
.page-index__page-title {
  color: #FFF3E6;
  font-size: clamp(1.8em, 2.5vw, 2.5em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 15px;
  position: relative;
  padding-bottom: 10px;
}
.page-index__page-title::before,
.page-index__page-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  width: 50px;
  height: 2px;
  background-color: #CAAB71;
}
.page-index__page-title::before {
  left: calc(50% - 70px);
}
.page-index__page-title::after {
  right: calc(50% - 70px);
}
.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; /* Light gray for descriptive text */
}
.page-index__seo-links a {
  color: #FFB04D; /* Glow color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}
.page-index__seo-links a:hover {
  color: #FFA53A;
}

/* === Module 2: Scrollable Long Text Area === */
.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: #FFA53A #1A202C;
  max-width: 1330px;
  margin: 30px auto;
  box-sizing: border-box;
}
.page-index__home-content blockquote {
  border-left: 4px solid #FF8C1A;
  margin: 20px 0;
  padding: 10px 20px;
  background-color: rgba(255, 140, 26, 0.1);
  border-radius: 4px;
}
.page-index__home-content blockquote p {
  color: #FFF3E6;
  font-style: italic;
}
.page-index__home-content blockquote a {
  color: #FFB04D;
  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: 20px;
  font-size: clamp(1.5em, 2vw, 2em);
}
.page-index__home-content h3 {
  color: #FF8C1A;
  margin-top: 25px;
  margin-bottom: 15px;
  font-size: clamp(1.2em, 1.8vw, 1.7em);
}
.page-index__home-content p {
  color: #9DA0A8;
  line-height: 1.6;
  margin-bottom: 15px;
}
.page-index__home-content ul,
.page-index__home-content ol {
  color: #9DA0A8;
  margin-left: 20px;
  margin-bottom: 15px;
  line-height: 1.6;
}
.page-index__home-content ul li,
.page-index__home-content ol li {
  margin-bottom: 8px;
}
.page-index__home-content a {
  color: #FFB04D;
  text-decoration: underline;
}
.page-index__wp-caption {
  text-align: center;
  margin: 20px auto;
  max-width: 800px;
}
.page-index__wp-caption img {
  border-radius: 8px;
  width: 100%;
  height: auto;
}
.page-index__wp-caption-text {
  color: #9DA0A8;
  font-size: 0.9em;
  margin-top: 10px;
}
@keyframes page-index-gradient {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === Module 3–6 Shared: Dark Sections 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: 30px auto;
  box-sizing: border-box;
  border-radius: 10px;
}
.page-index__games-title,
.page-index__sport-title,
.page-index__coop-title {
  color: #FFF3E6;
  text-align: center;
  text-transform: uppercase;
  margin: 0 0 24px;
  position: relative;
  padding-bottom: 10px;
  font-size: clamp(1.5em, 2vw, 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 Carousel === */
.page-index__slider-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 10px 0;
}
.page-index__slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  width: 100%;
  transition: transform 0.4s ease;
  transform: translateX(0);
}
.page-index__game-slide {
  flex: 0 0 200px;
  max-width: 200px;
  min-width: 0;
  scroll-snap-align: start;
}
.page-index__game-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background-color: #17191F;
  border-radius: 8px;
  overflow: hidden;
  padding-bottom: 10px;
  border: 1px solid #A84F0C;
  transition: border-color 0.3s ease;
}
.page-index__game-card:hover {
  border-color: #FFA53A;
}
.page-index__game-card-image {
  overflow: hidden;
  height: 146px;
  margin-bottom: 8px;
}
.page-index__game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-index__game-card h4 {
  color: #FFF3E6;
  margin: 0;
  font-size: 14px;
  text-align: center;
  padding: 0 5px;
}
.page-index__slider-prev,
.page-index__slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 140, 26, 0.7); /* Orange transparent */
  color: #FFF3E6;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  z-index: 10;
  transition: background-color 0.3s ease;
}
.page-index__slider-prev:hover,
.page-index__slider-next:hover {
  background-color: #FF8C1A;
}
.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;
  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;
  margin: 0 auto;
  text-align: center;
}
.page-index__banner-item img {
  width: 100%;
  
  height: auto;
  
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: grayscale(100%); /* Example: Partners often grayscale */
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease;
}
.page-index__banner-item img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* === Module 5: Blog Card Section Equal-Height Grid === */
.page-index__blog-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.page-index__blog-card {
  background-color: #1A202C;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #3A2A12;
  height: 100%;
  position: relative;
  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 */
  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.1em;
  line-height: 1.4;
}
.page-index__blog-card-body p {
  color: #9DA0A8;
  margin: 0 0 12px;
  flex: 1 1 auto;
  font-size: 0.9em;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.page-index__btn-outline {
  margin-top: auto;
  align-self: flex-start;
  display: inline-block;
  padding: 8px 15px;
  border: 1px solid #FF8C1A;
  color: #FF8C1A;
  border-radius: 5px;
  text-transform: uppercase;
  font-size: 0.85em;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.page-index__btn-outline:hover {
  background-color: #FF8C1A;
  color: #FFF3E6;
}
.page-index__blog-card:hover {
  border-color: #198754; /* Link emphasis green */
}
.page-index__post-date {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: rgba(26, 32, 44, 0.8); /* Dark background with transparency */
  color: #FFF3E6;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 0.8em;
  text-align: center;
  line-height: 1.2;
}
.page-index__post-date span:first-child {
  display: block;
  font-weight: bold;
  font-size: 1.2em;
}

/* === Module 6: Latest Blog Carousel === */
.page-index__blog-slider {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
}
.page-index__blog-slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  transition: transform 0.4s ease;
  transform: translateX(0);
}
.page-index__blog-slide {
  flex: 0 0 calc(33.333% - 14px);
  max-width: calc(33.333% - 14px);
  min-width: 0;
  background-color: #17191F;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #A84F0C;
  transition: border-color 0.3s ease;
}
.page-index__blog-slide:hover {
  border-color: #FFA53A;
}
.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;
}
.page-index__blog-slide-link h5 {
  color: #FFF3E6;
  margin: 0 15px 6px;
  font-size: 1em;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.page-index__blog-slide-link p {
  color: #9DA0A8;
  margin: 0 15px;
  font-size: 0.85em;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.page-index__blog-slider-prev,
.page-index__blog-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 140, 26, 0.7); /* Orange transparent */
  color: #FFF3E6;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  z-index: 10;
  transition: background-color 0.3s ease;
}
.page-index__blog-slider-prev:hover,
.page-index__blog-slider-next:hover {
  background-color: #FF8C1A;
}
.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: '›'; }

/* === Mobile Responsive (max-width: 768px) === */
@media (max-width: 768px) {
  .page-index {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__hero-section {
    padding-top: 10px !important;
  }
  .page-index__title-section,
  .page-index__home-content,
  .page-index__row-games,
  .page-index__row-sport,
  .page-index__row-coop {
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-left: auto;
    margin-right: auto;
  }
  .page-index__home-content {
    height: 500px; /* Adjust height for mobile */
  }
  .page-index__home-content h2,
  .page-index__games-title,
  .page-index__sport-title,
  .page-index__coop-title {
    font-size: 1.5em;
  }
  .page-index__home-content h3 {
    font-size: 1.3em;
  }
  .page-index__page-title {
    font-size: 1.8em !important;
  }
  .page-index__page-title::before,
  .page-index__page-title::after {
    width: 30px;
    left: calc(50% - 45px);
    right: calc(50% - 45px);
  }
  .page-index__seo-links {
    font-size: 14px;
  }

  /* Module 3: Game Carousel Mobile */
  .page-index__slider-track {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .page-index__game-slide {
    flex: 0 0 160px;
    max-width: 160px;
  }
  .page-index__slider-prev,
  .page-index__slider-next {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  /* Module 4: Partner Brands Mobile */
  .page-index__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 100%;
  }
  .page-index__banner-item img {
    
    
  }

  /* Module 5: Blog Card Section Mobile */
  .page-index__blog-masonry {
    grid-template-columns: 1fr;
  }
  .page-index__blog-card-body h5 {
    font-size: 1em;
  }
  .page-index__blog-card-body p {
    font-size: 0.85em;
  }

  /* Module 6: Latest Blog Carousel Mobile */
  .page-index__blog-slide {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .page-index__blog-slider-prev,
  .page-index__blog-slider-next {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  /* Button responsive adaptation */
  .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 {
    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 {
    display: flex;
    flex-direction: column;
  }
}

/* === Tablet Responsive (min-width: 769px and max-width: 1024px) === */
@media (min-width: 769px) and (max-width: 1024px) {
  .page-index__title-section,
  .page-index__home-content,
  .page-index__row-games,
  .page-index__row-sport,
  .page-index__row-coop {
    padding-left: 30px;
    padding-right: 30px;
  }
  .page-index__home-content {
    height: 600px;
  }
  .page-index__games-title,
  .page-index__sport-title,
  .page-index__coop-title {
    font-size: 1.8em;
  }
  .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);
  }
}