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

.page-index {
  color: var(--text-main);
  background-color: var(--site-bg);
}

/* Module A: Activity Hero Section (Left image, right content) */
.page-index__promo-hero-section {
  position: relative;
  padding-top: 10px; /* Small padding to offset fixed header */
  margin-bottom: 60px;
  background-color: var(--site-bg);
  color: var(--text-main);
}

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

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

.page-index__promo-hero-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-index__promo-hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 15px;
}

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

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

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

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

.page-index__promo-hero-cta {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for bright button */
  font-size: 18px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-index__promo-hero-cta:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, #FFE68B 0%, #E8B42C 100%);
}

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

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

.page-index__hero-slides {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 40%; /* Maintain aspect ratio */
  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: var(--secondary-color);
}

.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(--site-bg);
}

.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(--glow-color); /* Adjusted for theme */
}

.page-index__articles-title-large {
  font-size: 36px;
  font-weight: 900;
  color: var(--text-main); /* Adjusted for theme */
}

.page-index__category-section {
  margin-bottom: 60px;
  padding: 30px;
  background: var(--card-bg); /* Adjusted for theme */
  border-radius: 40px;
  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;
}

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

.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 background for thumbnail */
  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); /* Adjusted for theme */
  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: var(--site-bg);
}

.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-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-top-style: solid;
  border-right-style: solid;
  border-bottom-style: solid;
  border-left-style: solid;
  border-top-color: var(--border-color);
  border-right-color: var(--border-color);
  border-bottom-color: var(--border-color);
  border-left-color: var(--border-color);
  border-top-width: 1px;
  border-right-width: 1px;
  border-bottom-width: 1px;
  border-left-width: 1px;
}

.page-index__partner-logo {
  width: 167px;
  height: 127px;
  object-fit: contain;
  display: block;
}

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

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

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

.page-index__info-list li {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-main);
}

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

.page-index__load-less-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 40px auto 0;
  padding: 0;
  background: transparent;
  border: none;
  font-size: 16px;
  font-weight: normal;
  cursor: pointer;
  transition: color 0.3s ease;
  text-decoration: none;
}

.page-index__load-less-text {
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.page-index__load-less-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--primary-color);
  transition: color 0.3s ease;
}

.page-index__load-less-arrow {
  font-size: 14px;
  line-height: 1;
  display: block;
}

.page-index__load-less-btn.collapsed .page-index__load-less-text {
  color: var(--primary-color);
}

.page-index__load-less-btn.collapsed .page-index__load-less-icon {
  color: var(--primary-color);
}

.page-index__load-less-btn.expanded .page-index__load-less-text {
  color: var(--secondary-color); /* Adjusted for theme */
}

.page-index__load-less-btn.expanded .page-index__load-less-icon {
  color: var(--secondary-color); /* Adjusted for theme */
}

.page-index__load-less-btn.expanded .page-index__load-less-arrow:nth-child(3) {
  display: none;
}

.page-index__load-less-btn.expanded .page-index__load-less-arrow {
  transform: rotate(180deg); /* Rotate arrows for 'Load less' */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__promo-hero-card {
    grid-template-columns: 1fr;
    padding: 30px 15px;
  }
  .page-index__promo-hero-content {
    padding: 10px;
  }
  .page-index__promo-hero-title {
    font-size: 28px;
  }
  .page-index__promo-hero-subtitle {
    font-size: 16px;
  }
  .page-index__promo-hero-cta {
    font-size: 16px;
    padding: 10px 25px;
  }
  .page-index__articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .page-index__partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .page-index__promo-hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile padding for fixed header */
  }
  .page-index__promo-hero-card {
    grid-template-columns: 1fr; /* Mobile: stacked layout */
    gap: 14px;
    padding: 20px 15px;
  }
  .page-index__hero-carousel-section {
    margin-bottom: 40px;
  }
  .page-index__hero-slides {
    padding-bottom: 50%; /* Mobile aspect ratio adjustment */
  }
  .page-index__hero-indicators {
    bottom: 15px;
  }
  .page-index__hero-dot {
    width: 10px;
    height: 10px;
  }
  .page-index__articles-section {
    padding: 40px 15px;
  }
  .page-index__articles-main-title {
    margin-bottom: 30px;
  }
  .page-index__articles-title-small {
    font-size: 14px;
  }
  .page-index__articles-title-large {
    font-size: 28px;
  }
  .page-index__category-section {
    margin-bottom: 40px;
    padding: 20px 15px;
    border-radius: 8px;
  }
  .page-index__category-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
  }
  .page-index__category-title {
    font-size: 20px;
  }
  .page-index__category-icon {
    width: 24px;
    height: 24px;
  }
  .page-index__category-read-more {
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .page-index__category-title-wrapper {
    flex-shrink: 1;
    min-width: 0;
  }
  .page-index__articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-index__article-title {
    font-size: 16px;
    margin: 0;
    padding: 0;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  .page-index__article-title-link {
    margin-top: 10px;
  }
  .page-index__partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-index__partner-item {
    width: 100%;
    max-width: 167px;
    height: 127px;
  }
  .page-index__partner-logo {
    width: 100%;
    max-width: 167px;
    height: 127px;
  }
  .page-index__info-main-title {
    font-size: 28px;
    text-align: left;
  }
  .page-index__info-subtitle {
    font-size: 24px;
  }
  /* Mobile image and button responsiveness */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__promo-hero-section,
  .page-index__hero-carousel-section,
  .page-index__articles-section,
  .page-index__partners-section,
  .page-index__info-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__cta-button,
  .page-index__btn-primary,
  .page-index__btn-secondary,
  .page-index a[class*="button"],
  .page-index a[class*="btn"],
  .page-index__promo-hero-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__cta-buttons,
  .page-index__button-group,
  .page-index__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-index__promo-hero-content {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .page-index__articles-section {
    padding: 30px 10px;
  }
  .page-index__articles-main-title {
    margin-bottom: 25px;
  }
  .page-index__articles-title-small {
    font-size: 12px;
  }
  .page-index__articles-title-large {
    font-size: 22px;
  }
  .page-index__category-section {
    margin-bottom: 30px;
    padding: 15px 10px;
  }
  .page-index__category-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }
  .page-index__category-title {
    font-size: 18px;
  }
  .page-index__category-read-more {
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .page-index__category-title-wrapper {
    flex-shrink: 1;
    min-width: 0;
  }
  .page-index__articles-grid {
    grid-template-columns: repeat(1, 1fr); /* Single column on very small screens */
    gap: 12px;
  }
  .page-index__article-title {
    font-size: 14px;
  }
  .page-index__article-title-link {
    margin-top: 8px;
  }
  .page-index__partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-index__info-main-title {
    font-size: 24px;
  }
  .page-index__info-subtitle {
    font-size: 20px;
  }
  .page-index__info-content p, .page-index__info-list li {
    font-size: 15px;
  }
}