/* style/index.css */
.page-index {
  color: #333333; /* Dark text for light body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-index__section-title {
  font-size: 2.5em;
  color: #0A2342; /* Main brand color */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
}

.page-index__text-center {
  text-align: center;
  margin-top: 40px;
}

.page-index__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
  font-size: 1.05em;
}

.page-index__btn--primary {
  background-color: #FFD700; /* Accent color */
  color: #0A2342; /* Dark text for accent background */
  border: 2px solid #FFD700;
}

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

.page-index__btn--secondary {
  background-color: transparent;
  color: #0A2342; /* Main brand color */
  border: 2px solid #0A2342;
}

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

.page-index__btn--tertiary {
  background-color: #0A2342;
  color: #FFD700;
  border: 2px solid #0A2342;
}

.page-index__btn--tertiary:hover {
  background-color: #06172f;
  color: #FFD700;
  transform: translateY(-2px);
}

.page-index__btn--small {
  padding: 8px 18px;
  font-size: 0.95em;
  border-radius: 5px;
  background-color: #FFD700;
  color: #0A2342;
  border: none;
}

.page-index__btn--small:hover {
  background-color: #e6c200;
  transform: translateY(-1px);
}

/* Hero Section */
.page-index__hero-section {
  background-color: #0A2342; /* Main brand color for hero background */
  color: #ffffff;
  padding: 80px 20px 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

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

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFD700; /* Accent color for title */
}

.page-index__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-index__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-index__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Subtle overlay */
}

/* About Section */
.page-index__about-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.page-index__about-content p {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #444444;
  text-align: justify;
}

.page-index__about-content .page-index__btn {
  margin-top: 30px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Games Section */
.page-index__games-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-index__game-card {
  background-color: #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__game-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-index__game-card-title {
  font-size: 1.6em;
  color: #0A2342;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__game-card-description {
  font-size: 0.95em;
  color: #666666;
  padding: 0 15px 20px;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

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

.page-index__promo-item {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease;
}

.page-index__promo-item:hover {
  transform: translateY(-8px);
}

.page-index__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-index__promo-title {
  font-size: 1.5em;
  color: #0A2342;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__promo-description {
  font-size: 0.95em;
  color: #666666;
  padding: 0 15px 20px;
}

/* Security Section */
.page-index__security-section {
  padding: 80px 0;
  background-color: #0A2342;
  color: #ffffff;
}

.page-index__security-section .page-index__section-title {
  color: #FFD700;
}

.page-index__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.page-index__security-content img {
  flex-shrink: 0;
  width: 350px;
  height: 350px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-index__security-content p {
  font-size: 1.05em;
  margin-bottom: 15px;
  text-align: justify;
  color: #e0e0e0;
}

/* App Download Section */
.page-index__app-download-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-index__app-download-inner {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
}

.page-index__app-content {
  flex: 1;
  min-width: 300px;
}

.page-index__app-content .page-index__section-title {
  text-align: left;
}

.page-index__app-content .page-index__section-description {
  text-align: left;
  margin-bottom: 30px;
}

.page-index__app-features {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-index__app-features li {
  display: flex;
  align-items: center;
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #444444;
}

.page-index__icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-right: 15px;
  background-color: #FFD700; /* Accent color for icons */
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.page-index__icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background-color: #0A2342;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.page-index__icon--mobile::before {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M17 1H7c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm-2 20H9v-1h6v1zm1-3H8V6h8v12z"/></svg>');
}

.page-index__icon--bonus::before {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/></svg>');
}

.page-index__icon--fast::before {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.51 0-2.91-.49-4.06-1.3l-1.42 1.42C9.44 19.9 11.62 20 13 20c4.97 0 9-4.03 9-9s-4.03-9-9-9z"/></svg>');
}

.page-index__icon--secure::before {
  mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm0 10.99h-1V15h2v-3.01h-1zM13 9h-2V7h2v2z"/></svg>');
}

.page-index__app-image-wrapper {
  flex: 1;
  text-align: center;
  min-width: 250px;
}

.page-index__app-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Detail Pages Section */
.page-index__detail-pages-section {
  padding: 80px 0;
  background-color: #f0f0f0;
}

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

.page-index__detail-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease;
}

.page-index__detail-card:hover {
  transform: translateY(-8px);
}

.page-index__detail-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-index__detail-card-title {
  font-size: 1.5em;
  color: #0A2342;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__detail-card-title a {
  color: inherit;
  text-decoration: none;
}

.page-index__detail-card-title a:hover {
  color: #FFD700;
}

.page-index__detail-card-description {
  font-size: 0.95em;
  color: #666666;
  padding: 0 15px 20px;
}

/* CTA Section */
.page-index__cta-section {
  padding: 80px 0;
  background-color: #0A2342;
  color: #ffffff;
  text-align: center;
}

.page-index__cta-section .page-index__section-title {
  color: #FFD700;
}

.page-index__cta-section .page-index__section-description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }

  .page-index__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding: 60px 20px 40px;
  }

  .page-index__hero-title {
    font-size: 2.5em;
  }

  .page-index__hero-description {
    font-size: 1.1em;
  }

  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-index__btn {
    width: 100%;
    max-width: 280px;
  }

  .page-index__section-title {
    font-size: 1.8em;
  }

  .page-index__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-index__about-section, .page-index__games-section, .page-index__promotions-section, .page-index__security-section, .page-index__app-download-section, .page-index__detail-pages-section, .page-index__cta-section {
    padding: 50px 0;
  }

  .page-index__game-cards, .page-index__promo-grid, .page-index__detail-cards {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-index__security-content {
    flex-direction: column;
    text-align: center;
  }

  .page-index__security-content img {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 30px;
  }

  .page-index__app-download-inner {
    flex-direction: column-reverse;
    text-align: center;
  }

  .page-index__app-content .page-index__section-title,
  .page-index__app-content .page-index__section-description {
    text-align: center;
  }

  .page-index__app-features {
    padding-left: 0;
    text-align: left;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
  
  .page-index__app-image {
    max-width: 300px;
  }
  
  /* Ensure all content area images are responsive */
  .page-index__hero-image, 
  .page-index__game-card-image, 
  .page-index__promo-image, 
  .page-index__security-content img, 
  .page-index__app-image, 
  .page-index__detail-card-image {
    max-width: 100%;
    height: auto;
  }

  /* Content area image size lower limit check */
  .page-index img {
    min-width: 200px;
    min-height: 200px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 2em;
  }

  .page-index__hero-description {
    font-size: 1em;
  }

  .page-index__section-title {
    font-size: 1.5em;
  }

  .page-index__btn {
    padding: 10px 20px;
    font-size: 1em;
  }
}