:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --card-bg: #111111;
  --background: #0A0A0A;
  --text-main: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
}

.page-index {
  color: var(--text-main); /* Default text color for dark body background */
  background-color: var(--background); /* Ensure consistency if body background changes */
}

/* 🚨 Module A: Promo Hero Section */
.page-index__promo-hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, main offset handled by body */
  padding-bottom: 60px;
  padding-left: 20px;
  padding-right: 20px;
  background-color: var(--background);
}

.page-index__promo-hero-card-link {
  text-decoration: none;
  display: block;
  max-width: 1200px;
  margin: 0 auto;
}

.page-index__promo-hero-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px;
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.page-index__promo-hero-media {
  width: 100%;
  height: 100%;
}

.page-index__promo-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-index__promo-hero-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--text-main);
}

.page-index__promo-hero-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: var(--text-main);
}

.page-index__promo-hero-subtitle {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-index__promo-hero-desc {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-main);
}

.page-index__promo-hero-cta {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.4);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__promo-hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.6);
}

/* 🚨 Module B: Hero Carousel Section */
.page-index__hero-carousel-section {
  position: relative;
  width: 100vw; /* 🚨 Carousel must be full-width */
  overflow: hidden;
  margin-bottom: 60px;
  background-color: var(--background);
}

.page-index__hero-carousel {
  position: relative;
  width: 100%;
}

.page-index__hero-slides {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 40%; /* 16:9 aspect ratio for 1920x1080 -> (1080/1920)*100 = 56.25%, but 40% makes it less tall */
  overflow: hidden;
}

.page-index__hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateX(100%);
  transition: transform 0.6s ease;
  z-index: 0;
}

.page-index__hero-slide.active {
  transform: translateX(0);
  z-index: 1;
}

.page-index__hero-slide.prev {
  transform: translateX(-100%);
  z-index: 0;
}

.page-index__hero-slide a {
  display: block;
  width: 100%;
  height: 100%;
}

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Carousel indicators */
.page-index__hero-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

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

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

.page-index__hero-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

/* Module 1: Article Categories Display Area */
.page-index__articles-section {
  padding: 60px 20px;
  background-color: #ffffff;
}

.page-index__articles-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Main title - left-aligned, stacked */
.page-index__articles-main-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  margin-bottom: 40px;
  text-align: left;
}

.page-index__articles-title-small {
  font-size: 16px;
  font-weight: 900;
  color: rgb(159, 194, 250); /* Specific color from prompt */
}

.page-index__articles-title-large {
  font-size: 36px;
  font-weight: 900;
  color: #025be8; /* Specific color from prompt */
}

/* Category section - each category area wrapped independently */
.page-index__category-section {
  margin-bottom: 60px;
  padding: 30px;
  background: #ffffff;
  border-radius: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Category header */
.page-index__category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.page-index__category-title-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 1;
  min-width: 0;
}

.page-index__category-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.page-index__category-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  color: #000000; /* Dark text for white background */
}

.page-index__category-read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.page-index__category-read-more:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Article grid - 3 columns 2 rows layout */
.page-index__articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 20px;
}

/* Article card - only as container, no specific border/radius */
.page-index__article-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  transition: transform 0.3s ease;
}

.page-index__article-card:hover {
  transform: translateY(-5px);
}

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

/* Article thumbnail - image with independent border-radius */
.page-index__article-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  background: #f5f5f5;
  border-radius: 8px;
  margin-bottom: 0;
}

.page-index__article-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Game provider tag */
.page-index__article-provider-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  z-index: 1;
}

/* Article title link - title independent below image */
.page-index__article-title-link {
  display: block;
  text-decoration: none;
  color: inherit;
  margin-top: 12px;
}

/* Article title */
.page-index__article-title {
  margin: 0;
  padding: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: #000000; /* Dark text for white background */
  transition: color 0.3s ease;
}

.page-index__article-title-link:hover .page-index__article-title {
  color: var(--primary-color);
}

/* Module 2: Media Partners/Sponsors Module */
.page-index__partners-section {
  padding: 60px 20px;
  background: #f9f9f9; /* Light background for partner logos */
}

.page-index__partners-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* 2 rows 5 columns grid layout, 10 images total */
.page-index__partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
  align-items: center;
  justify-items: center;
}

.page-index__partner-item {
  background-color: #f0f2f3;
  border-radius: 10px;
  padding-left: 19px;
  padding-right: 19px;
  padding-top: 9px;
  padding-bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  border: 1px solid #c5c5c5;
}

/* 🚨 Image dimensions must be strictly adhered to: width 167px, height 127px */
.page-index__partner-logo {
  width: 167px;
  height: 127px;
  object-fit: contain;
  display: block;
}

/* Module 3: Information Text Area (Collapsible) */
.page-index__info-section {
  padding: 60px 20px;
  background: #ffffff; /* White background for info text */
}

.page-index__info-container {
  max-width: 1200px;
  margin: 0 auto;
}