/* General styles for the page-index */
.page-index {
  font-family: Arial, sans-serif;
  color: #333333;
  background-color: #F3F3F3;
  line-height: 1.6;
}

/* Ensure images are responsive by default */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, assuming body has header offset */
  background-color: #025BE8; /* Brand color for contrast */
}

.page-index__hero-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index__hero-slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.page-index__hero-slide {
  min-width: 100%;
  flex-shrink: 0;
  display: none;
}

.page-index__hero-slide.is-active {
  display: block;
}

.page-index__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 0; /* Hero image usually fills the container without individual border-radius */
}

.page-index__hero-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9em;
}

.page-index__hero-caption {
  margin: 0;
  flex-grow: 1;
}

.page-index__hero-indicators {
  display: flex;
  gap: 8px;
}

.page-index__hero-dot {
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-index__hero-dot.is-active {
  background-color: #ffffff;
}

/* Articles Section */
.page-index__articles-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__articles-container {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-index__articles-main-title {
  text-align: center;
  margin-bottom: 30px;
  color: #333333;
}

.page-index__articles-title-small {
  display: block;
  font-size: 1.1em;
  color: #025BE8;
  font-weight: bold;
  letter-spacing: 1px;
}

.page-index__articles-title-large {
  font-size: clamp(1.8em, 3vw, 2.8em);
  margin-top: 5px;
  font-weight: 800;
}

.page-index__category-section {
  margin-bottom: 40px;
}

.page-index__category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 15px;
}

.page-index__category-title-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-index__category-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 0;
}

.page-index__category-title {
  font-size: 1.8em;
  color: #333333;
  margin: 0;
}

.page-index__category-read-more {
  color: #025BE8;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-index__category-read-more:hover {
  color: #1266EC;
}

/* Featured Stories Layout */
.page-index__featured-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.page-index__article-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-index__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index__article-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-index__article-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.page-index__article-image--featured {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.page-index__article-card--featured .page-index__article-meta {
  padding: 20px;
}

.page-index__article-card--featured .page-index__article-title {
  font-size: 1.7em;
  margin: 10px 0;
  line-height: 1.3;
}

.page-index__article-card--featured .page-index__article-excerpt {
  font-size: 0.95em;
  color: #666666;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 10px;
}

.page-index__article-meta {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-index__article-tag {
  font-size: 0.8em;
  color: #025BE8;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.page-index__article-title {
  font-size: 1.1em;
  font-weight: bold;
  margin: 8px 0;
  color: #333333;
  flex-grow: 1;
}

.page-index__article-title a {
  text-decoration: none;
  color: #333333;
}

.page-index__article-title a:hover {
  color: #025BE8;
}

.page-index__article-date {
  font-size: 0.85em;
  color: #999999;
  margin-top: auto;
}

.page-index__featured-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.page-index__featured-side .page-index__article-card {
  box-shadow: none;
  border: 1px solid #e0e0e0;
}

.page-index__featured-side .page-index__article-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transform: translateY(-3px);
}

.page-index__featured-side .page-index__article-image {
  border-radius: 8px 8px 0 0;
  aspect-ratio: 16 / 9;
}

.page-index__featured-side .page-index__article-title {
  font-size: 1em;
  margin: 5px 0;
}

.page-index__featured-side .page-index__article-meta {
  padding: 10px;
}

/* Games Grid */
.page-index__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.page-index__game-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

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

.page-index__game-card a {
  text-decoration: none;
  color: inherit;
  display: block;
  padding-bottom: 15px;
}

.page-index__game-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 12px 12px 0 0;
}

.page-index__game-card h3 {
  font-size: 1.1em;
  margin-top: 15px;
  color: #333333;
}

/* Partners Section */
.page-index__partners-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.page-index__partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.page-index__partner-item {
  display: block;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__partner-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index__partner-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: none; /* Ensure no grayscale or color changes */
  border-radius: 0;
}

/* Info Section (SEO Text) */
.page-index__info-section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__info-container {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-index__info-title {
  font-size: 2.2em;
  color: #333333;
  margin-bottom: 25px;
  text-align: center;
}

.page-index__info-content {
  overflow: hidden;
  transition: max-height 0.7s ease-in-out;
}

.page-index__info-content h3 {
  font-size: 1.6em;
  color: #025BE8;
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-index__info-content p {
  margin-bottom: 15px;
  color: #404040;
}

.page-index__info-content ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  color: #404040;
}

.page-index__info-content li {
  margin-bottom: 8px;
}

.page-index__info-figure {
  margin: 25px 0;
  text-align: center;
}

.page-index__info-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.page-index__info-figure figcaption {
  font-size: 0.9em;
  color: #666666;
  margin-top: 10px;
}

.page-index__load-more-btn {
  display: block;
  width: 200px;
  padding: 12px 20px;
  margin: 25px auto 0 auto;
  background-color: #025BE8;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-index__load-more-btn:hover {
  background-color: #1266EC;
}

/* CTA Buttons */
.page-index__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
  justify-content: center;
}

.page-index__btn-primary,
.page-index__btn-secondary {
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1.05em;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary {
  background-color: #1266EC;
  color: #ffffff;
  border: 2px solid #1266EC;
}

.page-index__btn-primary:hover {
  background-color: #025BE8;
  border-color: #025BE8;
}

.page-index__btn-secondary {
  background-color: #E5EEFD;
  color: #025BE8;
  border: 2px solid #025BE8;
}

.page-index__btn-secondary:hover {
  background-color: #025BE8;
  color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-index__articles-section,
  .page-index__partners-section,
  .page-index__info-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index__hero-carousel {
    border-radius: 0;
  }

  .page-index__featured-layout {
    grid-template-columns: 1fr;
  }

  .page-index__featured-side {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .page-index__games-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .page-index__partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-index__info-title {
    font-size: 1.8em;
  }

  .page-index__articles-title-large {
    font-size: clamp(1.6em, 4vw, 2.5em);
  }

  .page-index__article-card--featured .page-index__article-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-index__hero-section {
    padding-top: 0 !important; /* Remove top padding for smaller screens if header covers it */
  }

  .page-index__hero-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 8px 15px;
  }

  .page-index__hero-indicators {
    margin-top: 5px;
  }

  .page-index__articles-section,
  .page-index__partners-section,
  .page-index__info-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index__articles-container,
  .page-index__info-container {
    padding: 20px !important;
    border-radius: 0;
  }

  .page-index__category-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-index__category-title {
    font-size: 1.5em;
  }

  .page-index__featured-side {
    grid-template-columns: 1fr;
  }

  .page-index__games-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }

  .page-index__partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .page-index__info-title {
    font-size: 1.5em;
    text-align: left;
  }

  .page-index__info-content h3 {
    font-size: 1.3em;
  }

  .page-index__load-more-btn {
    width: 100% !important;
  }

  .page-index__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-index__btn-primary,
  .page-index__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Blog Section Styles - Auto Generated */
.latest-blog-section {
  padding: 40px 20px;
  margin: 20px 0;
}

.latest-blog-section .container {
  max-width: 1200px;
  margin: 0 auto;
}

.latest-blog-section h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2rem;
  font-weight: bold;
}

.latest-blog-section p {
  text-align: center;
  margin-bottom: 30px;
  color: #666;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.blog-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.blog-card .blog-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}

.blog-card .blog-content {
  padding: 20px;
}

.blog-card .blog-content h3 {
  margin: 0 0 12px 0;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
}

.blog-card .blog-content .blog-title-link {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-card .blog-content .blog-title-link:hover {
  color: #007bff;
}

.blog-card .blog-content .blog-excerpt {
  color: #666;
  line-height: 1.7;
  margin: 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.95rem;
}

.blog-card .blog-content .blog-date {
  display: block;
  color: #999;
  font-size: 0.9rem;
  margin: 15px 0 12px 0;
}

.blog-card .blog-content .read-more-link {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 20px;
  background: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
  font-size: 0.95rem;
  font-weight: 500;
}

.blog-card .blog-content .read-more-link:hover {
  background: #0056b3;
}

.view-all-posts {
  text-align: center;
  margin-top: 30px;
}

.view-all-posts .cta-button {
  display: inline-block;
  padding: 12px 24px;
  background: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.view-all-posts .cta-button.secondary {
  background: #6c757d;
}

.view-all-posts .cta-button.secondary:hover {
  background: #5a6268;
}

.view-all-posts .cta-button:hover {
  background: #0056b3;
}

@media (max-width: 768px) {
  .blog-list {
    grid-template-columns: 1fr;
  }
  
  .latest-blog-section h2 {
    font-size: 1.5rem;
  }
  
  .blog-card .blog-img {
    height: 250px;
  }
  
  .blog-card .blog-content {
    padding: 15px;
  }
}


/* blog-image-link-styles */
.blog-image-link,
.news-image-link,
a.blog-list__cover-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.blog-image-link img,
.news-image-link img {
  display: block;
  width: 100%;
}
.page-index__blog-item .blog-image-link,
.page-index__news-item .news-image-link {
  line-height: 0;
}
