.page-index {
  color: #333333;
}

.page-index__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%); /* Gold gradient background */
  color: #333333;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.page-index__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 2;
}

.page-index__hero-title {
  font-size: 3.5rem;
  color: #1a1a1a;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-index__hero-description {
  font-size: 1.25rem;
  color: #4a4a4a;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-index__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-index__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.page-index__btn--primary {
  background-color: #008000; /* Dark Green */
  color: #ffffff;
  border: 2px solid #008000;
}

.page-index__btn--primary:hover {
  background-color: #006400;
  transform: translateY(-2px);
}

.page-index__btn--secondary {
  background-color: transparent;
  color: #008000; /* Dark Green */
  border: 2px solid #008000;
}

.page-index__btn--secondary:hover {
  background-color: #008000;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-index__hero-image-wrapper {
  width: 100%;
  max-width: 1000px;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.page-index__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-index__section {
  padding: 80px 0;
}

.page-index__section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-index__section-title {
  font-size: 2.8rem;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-index__section-intro {
  font-size: 1.15rem;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

.page-index__about-section {
  background-color: #f9f9f9;
}

.page-index__about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.page-index__about-text p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 15px;
  color: #444444;
}

.page-index__about-image-wrapper {
  text-align: center;
}

.page-index__about-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-index__games-grid,
.page-index__promo-grid,
.page-index__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index__game-card,
.page-index__promo-card,
.page-index__detail-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__game-card:hover,
.page-index__promo-card:hover,
.page-index__detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-index__game-card-image,
.page-index__promo-card-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index__game-card-title,
.page-index__promo-card-title,
.page-index__detail-card-title {
  font-size: 1.5rem;
  color: #1a1a1a;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-index__game-card-title a,
.page-index__promo-card-title a,
.page-index__detail-card-title a {
  color: #1a1a1a;
  text-decoration: none;
}

.page-index__game-card-title a:hover,
.page-index__promo-card-title a:hover,
.page-index__detail-card-title a:hover {
  color: #008000;
  text-decoration: underline;
}

.page-index__game-card-description,
.page-index__promo-card-description,
.page-index__detail-card-description {
  font-size: 0.95rem;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-index__btn--small {
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: 6px;
  background-color: #FFD700;
  color: #333333;
  border: 1px solid #FFD700;
}

.page-index__btn--small:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-index__cta-center {
  text-align: center;
  margin-top: 60px;
}

.page-index__btn--large {
  padding: 18px 40px;
  font-size: 1.2rem;
  border-radius: 10px;
  background-color: #DC143C; /* Accent Red */
  color: #ffffff;
  border: 2px solid #DC143C;
}

.page-index__btn--large:hover {
  background-color: #c01032;
  border-color: #c01032;
}

.page-index__download-section {
  background-color: #008000; /* Dark Green Background */
  color: #ffffff;
}

.page-index__section-title--light {
  color: #ffffff;
}

.page-index__download-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-index__download-text-content {
  flex: 1;
}

.page-index__download-description {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #e0e0e0;
}

.page-index__download-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-index__btn--download {
  background-color: #FFD700;
  color: #333333;
  border: 2px solid #FFD700;
  padding: 15px 25px;
  font-size: 1rem;
}

.page-index__btn--download:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

.page-index__btn--android::before {
  content: '📱';
  margin-right: 8px;
}

.page-index__btn--ios::before {
  content: '🍎';
  margin-right: 8px;
}

.page-index__download-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-index__download-image {
  width: 100%;
  height: auto;
  max-width: 500px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-index__security-section {
  background-color: #f0f0f0;
}

.page-index__security-item {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 30px;
  text-align: center;
}

.page-index__security-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  display: inline-block;
}

.page-index__security-item-title {
  font-size: 1.35rem;
  color: #1a1a1a;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-index__security-item-description {
  font-size: 0.9rem;
  color: #666666;
  line-height: 1.6;
}

.page-index__detail-pages-section {
  background-color: #ffffff;
}

.page-index__detail-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-index__cta-section {
  background-color: #DC143C; /* Accent Red Background */
  color: #ffffff;
  text-align: center;
}

.page-index__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-index__cta-description {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #ffe0e0;
}

.page-index__btn--hero {
  background-color: #FFD700; /* Gold */
  color: #333333;
  border: 2px solid #FFD700;
  padding: 18px 45px;
  font-size: 1.3rem;
  font-weight: 700;
}

.page-index__btn--hero:hover {
  background-color: #e6c200;
  border-color: #e6c200;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3rem;
  }
  .page-index__section-title {
    font-size: 2.2rem;
  }
  .page-index__about-grid {
    grid-template-columns: 1fr;
  }
  .page-index__download-content {
    flex-direction: column;
  }
  .page-index__download-image-wrapper {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }
  .page-index__download-image {
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  .page-index {
    padding-top: var(--header-offset, 80px);
  }
  .page-index__hero-section {
    padding-top: var(--header-offset, 80px);
    padding: 40px 15px;
  }
  .page-index__hero-title {
    font-size: 2.2rem;
  }
  .page-index__hero-description {
    font-size: 1.1rem;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__btn {
    width: 100%;
    max-width: 300px;
  }
  .page-index__section {
    padding: 60px 0;
  }
  .page-index__section-title {
    font-size: 1.8rem;
  }
  .page-index__section-intro {
    font-size: 1rem;
    margin-bottom: 30px;
  }
  .page-index__game-card,
  .page-index__promo-card,
  .page-index__detail-card {
    padding: 20px;
  }
  .page-index__game-card-title,
  .page-index__promo-card-title,
  .page-index__detail-card-title {
    font-size: 1.3rem;
  }
  .page-index__btn--large {
    font-size: 1.1rem;
    padding: 15px 30px;
  }
  .page-index__download-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__btn--download {
    width: 100%;
    max-width: 280px;
  }
  .page-index__security-grid {
    grid-template-columns: 1fr;
  }
  .page-index__detail-cards-grid {
    grid-template-columns: 1fr;
  }
  /* Ensure all content area images are responsive and not smaller than 200px */
  .page-index img {
    max-width: 100%;
    height: auto;
    min-width: 200px; /* Enforce min-width for content images */
    min-height: 200px; /* Enforce min-height for content images */
  }
  .page-index__security-icon {
    min-width: 80px; /* Small icons are allowed here as per shared rules for footer/header/icons not content area main images */
    min-height: 80px;
  }
  .page-index__hero-image {
    min-width: 200px;
    min-height: 200px;
  }
  .page-index__about-image {
    min-width: 200px;
    min-height: 200px;
  }
  .page-index__game-card-image {
    min-width: 200px;
    min-height: 200px;
  }
  .page-index__promo-card-image {
    min-width: 200px;
    min-height: 200px;
  }
  .page-index__download-image {
    min-width: 200px;
    min-height: 200px;
  }
}