/* style/index.css */
:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --card-bg: #111111;
  --background-page: #0A0A0A;
  --text-main: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
}

.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Ensure light text on dark body background */
  background-color: var(--background-page);
}

/* Ensure images are responsive by default */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
  /* No filter properties to change image color */
}

/* Module A: Promo Hero Section */
.page-index__promo-hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px);
  padding-bottom: 60px;
  background: var(--background-page);
  margin-bottom: 60px; /* Space between promo hero and carousel */
}

.page-index__promo-hero-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-index__promo-hero-card {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  background: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  padding: 30px;
}

.page-index__promo-hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-index__promo-hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-index__promo-hero-content {
  padding: 20px 0;
  text-align: left;
}

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

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

.page-index__promo-hero-desc {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-index__promo-hero-cta {
  display: inline-block;
  background: var(--button-gradient);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.page-index__promo-hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
}

/* Module B: Carousel Section */
.page-index__hero-carousel-section {
  position: relative;
  width: 100vw; /* Carousel must be full width */
  overflow: hidden;
  margin-bottom: 80px;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.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 desktop */
  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;
}

.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 Section */
.page-index__articles-section {
  padding: 60px 20px;
  background: var(--background-page);
}

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

.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: #9fc2fa; /* Adjusted for contrast on dark background */
}

.page-index__articles-title-large {
  font-size: 36px;
  font-weight: 900;
  color: var(--primary-color);
}

.page-index__category-section {
  margin-bottom: 60px;
  padding: 30px;
  background: var(--card-bg);
  border-radius: 15px;
  border: 1px solid var(--border-color);
}

.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;
  filter: brightness(1.2); /* Slightly brighten icon for visibility on dark background, not changing color */
}

.page-index__category-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  color: var(--text-main);
}

.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;
}

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

.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;
}

.page-index__article-thumbnail {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  background: #222222; /* Darker placeholder background */
  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;
}

.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;
}

.page-index__article-title-link {
  display: block;
  text-decoration: none;
  color: inherit;
  margin-top: 12px;
}

.page-index__article-title {
  margin: 0;
  padding: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-main);
  transition: color 0.3s ease;
}

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

/* Module 2: Media Partners/Sponsors */
.page-index__partners-section {
  padding: 60px 20px;
  background: var(--background-page);
  margin-bottom: 80px;
}

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

.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: var(--card-bg);
  border-radius: 10px;
  padding: 9px 19px; /* Adjusted padding to match example */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  box-sizing: border-box;
  border: 1px solid var(--border-color);
}

.page-index__partner-logo {
  width: 167px;
  height: 127px;
  object-fit: contain;
  display: block;
  filter: brightness(1.2); /* Slightly brighten for visibility on dark background, not changing color */
}

/* Module 3: Information Text Area */
.page-index__info-section {
  padding: 60px 20px;
  background: var(--background-page);
}

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

.page-index__info-main-title {
  font-size: 36px;
  font-weight: 600;
  text-align: left;
  margin-bottom: 40px;
  color: var(--primary-color);
  line-height: 1.3;
}

.page-index__info-content {
  line-height: 1.8;
  color: var(--text-main);
}

.page-index__info-subsection {
  margin-bottom: 40px;
}

.page-index__info-subtitle {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-index__info-content h4 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 25px;
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-index__info-content p {
  margin-bottom: 15px;
  font-size: 16px;
  line-height: 1.8;
  color: #cccccc;
}

.page-index__info-list {
  margin: 20px 0;
  padding-left: 30px;
}

.page-index__info-list li {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.8;
  color: #cccccc;
}

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

.page-index__info-expandable {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.page-index__info-expandable.expanded {
  max-height: 5000px; /* Sufficiently large to show all content */
}