/* style/index.css */

:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --card-bg-color: #111111;
  --background-color: #0A0A0A;
  --text-main-color: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
  --dark-text-color: #333333;
  --dark-blue-text: #025be8;
}

.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--background-color);
  color: var(--text-main-color);
}

/* Module A: Promo Hero Section */
.page-index__promo-hero-section {
  position: relative;
  margin-bottom: 60px; /* Space between promo hero and carousel */
  padding: 20px;
}

.page-index__promo-hero-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 15px;
  overflow: hidden;
  background: var(--card-bg-color);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.page-index__promo-hero-card-link:hover {
  transform: translateY(-5px);
}

.page-index__promo-hero-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px;
  padding: 30px;
}

.page-index__promo-hero-media {
  width: 100%;
  height: auto;
  border-radius: 10px;
  overflow: hidden;
}

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

.page-index__promo-hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.page-index__promo-hero-title {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-main-color);
  line-height: 1.2;
}

.page-index__promo-hero-subtitle {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-index__promo-hero-desc {
  font-size: clamp(14px, 1.2vw, 18px);
  margin-bottom: 25px;
  color: var(--text-main-color);
}

.page-index__promo-hero-cta {
  display: inline-block;
  background: var(--button-gradient);
  color: #ffffff;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: opacity 0.3s ease;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-index__promo-hero-cta:hover {
  opacity: 0.9;
}

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

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

.page-index__hero-slides {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 40%; /* Maintain aspect ratio, e.g., 16:9 for 1920x1080 */
  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 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(--dark-blue-text); /* Ensure contrast on white background */
}

.page-index__articles-title-large {
  font-size: 36px;
  font-weight: 900;
  color: var(--dark-blue-text); /* Ensure contrast on white background */
}

.page-index__category-section {
  margin-bottom: 60px;
  padding: 30px;
  background: #ffffff; /* White background for article cards */
  border-radius: 40px;
  color: var(--dark-text-color); /* Dark text on white background */
}

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

.page-index__category-read-more {
  color: var(--dark-blue-text); /* Ensure contrast on white background */
  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(--primary-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: #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;
}

.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(--dark-text-color);
  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;
}

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