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

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

/* Module A: Promo Hero Section */
.page-index__promo-hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px);
  padding-bottom: 60px;
  background: var(--background-color);
  color: var(--text-main-color);
}

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

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

.page-index__promo-hero-media {
  overflow: hidden;
  border-radius: 10px;
}

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

.page-index__promo-hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 20px;
}

.page-index__promo-hero-title {
  font-size: clamp(2.2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: var(--primary-color);
}

.page-index__promo-hero-subtitle {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-main-color);
}

.page-index__promo-hero-desc {
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 25px;
  color: var(--text-main-color);
}

.page-index__promo-hero-cta {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #000000; /* Ensuring dark text on bright button */
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 200px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.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 Category Display Area */
.page-index__articles-section {
  padding: 60px 20px;
  background-color: var(--background-color);
  color: var(--text-main-color);
}

.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: var(--secondary-color);
}

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