/* style/index.css */

/* Variables for colors */
:root {
  --page-index-primary-color: #0A2239;
  --page-index-secondary-color: #E0B44B;
  --page-index-text-light: #F8F8F8;
  --page-index-text-dark: #222222;
  --page-index-background-dark: #0A2239;
  --page-index-background-light: #F0F2F5;
  --page-index-accent-gold-darker: #c59c36; /* Darker variant for contrast */
}

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

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

/* Hero Section */
.page-index__hero-section {
  background: linear-gradient(135deg, var(--page-index-background-dark), #1A3A5A);
  color: var(--page-index-text-light);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-index__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  z-index: 0;
}

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--page-index-secondary-color);
  position: relative;
  z-index: 1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-index__hero-subtitle {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.page-index__hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

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

.page-index__btn--primary {
  background-color: var(--page-index-secondary-color);
  color: var(--page-index-background-dark);
  border: 2px solid var(--page-index-secondary-color);
}

.page-index__btn--primary:hover {
  background-color: var(--page-index-accent-gold-darker);
  border-color: var(--page-index-accent-gold-darker);
  transform: translateY(-3px);
}

.page-index__btn--secondary {
  background-color: transparent;
  color: var(--page-index-secondary-color);
  border: 2px solid var(--page-index-secondary-color);
}

.page-index__btn--secondary:hover {
  background-color: var(--page-index-secondary-color);
  color: var(--page-index-background-dark);
  transform: translateY(-3px);
}

.page-index__btn--tertiary {
  background-color: #3A5C80; /* A slightly lighter dark blue */
  color: var(--page-index-text-light);
  border: 2px solid #3A5C80;
}

.page-index__btn--tertiary:hover {
  background-color: #2D4A6E;
  border-color: #2D4A6E;
  transform: translateY(-3px);
}

.page-index__btn--small {
  padding: 10px 20px;
  font-size: 0.9em;
  border-radius: 5px;
}

.page-index__btn--large {
  padding: 18px 40px;
  font-size: 1.2em;
  border-radius: 10px;
}

.page-index__text-link {
  color: var(--page-index-secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-index__text-link:hover {
  color: var(--page-index-accent-gold-darker);
  text-decoration: underline;
}

/* General Section Styles */
.page-index__section-title {
  font-size: 2.5em;
  color: var(--page-index-primary-color);
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 10px;
}

.page-index__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--page-index-secondary-color);
  border-radius: 2px;
}

.page-index__section-description {
  text-align: center;
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #555;
}

.page-index__about-section,
.page-index__games-section,
.page-index__promotions-section,
.page-index__app-section,
.page-index__why-choose-section,
.page-index__detail-pages-section,
.page-index__responsible-gaming-section,
.page-index__final-cta-section {
  padding: 80px 0;
  background-color: var(--page-index-background-light);
}

.page-index__about-section:nth-of-type(even),
.page-index__games-section:nth-of-type(even),
.page-index__promotions-section:nth-of-type(even),
.page-index__why-choose-section:nth-of-type(even),
.page-index__detail-pages-section:nth-of-type(even),
.page-index__responsible-gaming-section:nth-of-type(even),
.page-index__final-cta-section:nth-of-type(even) {
  background-color: #ffffff;
}

/* About Section */
.page-index__about-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-index__about-text {
  flex: 2;
  min-width: 300px;
}

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

.page-index__about-image {
  flex: 1;
  min-width: 300px;
  max-width: 450px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

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

.page-index__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__game-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-index__game-title {
  font-size: 1.5em;
  color: var(--page-index-primary-color);
  margin-bottom: 15px;
}

.page-index__game-description {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 20px;
}

.page-index__game-cta-text {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
  color: #444;
}

/* Promotions Section */
.page-index__promotion-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index__promotion-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-index__promotion-item:hover {
  transform: translateY(-5px);
}

.page-index__promotion-image {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-index__promotion-title {
  font-size: 1.6em;
  color: var(--page-index-primary-color);
  margin-bottom: 10px;
}

.page-index__promotion-desc {
  font-size: 1em;
  color: #666;
  margin-bottom: 20px;
}

.page-index__promotion-action {
  text-align: center;
  margin-top: 50px;
}

/* App Section */
.page-index__app-content {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap-reverse;
}

.page-index__app-image {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-index__app-text {
  flex: 2;
  min-width: 300px;
}

.page-index__app-text p {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: #333;
}

.page-index__app-text ul {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.page-index__app-text ul li {
  background: url('[GALLERY:icon:check_mark,gold_tick,small_icon]') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 10px;
  color: #333;
  font-size: 1em;
}

.page-index__app-qr-info {
  margin-top: 20px;
  font-style: italic;
  color: #555;
}

.page-index__app-qr-code {
  width: 150px;
  height: 150px;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 5px;
  margin-top: 10px;
}

/* Why Choose Section */
.page-index__why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-index__why-choose-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
}

.page-index__why-choose-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,0.2));
}

.page-index__why-choose-title {
  font-size: 1.4em;
  color: var(--page-index-primary-color);
  margin-bottom: 10px;
}

.page-index__why-choose-desc {
  font-size: 0.95em;
  color: #666;
}

.page-index__why-choose-cta {
  text-align: center;
  margin-top: 50px;
  font-size: 1.1em;
  color: #444;
}

/* Detail Pages Section */
.page-index__detail-page-list {
  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: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  transition: transform 0.3s ease;
}

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

.page-index__detail-title {
  font-size: 1.4em;
  color: var(--page-index-primary-color);
  margin-bottom: 10px;
}

.page-index__detail-title a {
  text-decoration: none;
  color: var(--page-index-primary-color);
}

.page-index__detail-title a:hover {
  color: var(--page-index-secondary-color);
}

.page-index__detail-desc {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 20px;
}

/* Responsible Gaming Section */
.page-index__responsible-gaming-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-index__responsible-gaming-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(0,0,0,0.1));
}

.page-index__responsible-gaming-text {
  font-size: 1.1em;
  color: #333;
  margin-bottom: 20px;
}

/* Final CTA Section */
.page-index__final-cta-section {
  background-color: var(--page-index-background-dark);
  color: var(--page-index-text-light);
  text-align: center;
  padding: 80px 0;
}

.page-index__final-cta-section .page-index__section-title {
  color: var(--page-index-secondary-color);
}

.page-index__final-cta-section .page-index__section-title::after {
  background-color: var(--page-index-text-light);
}

.page-index__final-cta-section .page-index__section-description {
  color: var(--page-index-text-light);
  margin-bottom: 40px;
}

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

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

  .page-index__about-content,
  .page-index__app-content {
    flex-direction: column;
  }

  .page-index__about-image,
  .page-index__app-image {
    max-width: 100%;
  }
}

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

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

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

  .page-index__btn {
    width: 80%;
    margin: 0 auto;
  }

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

  .page-index__about-section,
  .page-index__games-section,
  .page-index__promotions-section,
  .page-index__app-section,
  .page-index__why-choose-section,
  .page-index__detail-pages-section,
  .page-index__responsible-gaming-section,
  .page-index__final-cta-section {
    padding: 60px 0;
  }

  .page-index__game-card,
  .page-index__promotion-item,
  .page-index__why-choose-item,
  .page-index__detail-card {
    padding: 25px;
  }
}

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

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

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

  .page-index__btn {
    width: 90%;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-index__hero-cta-group {
    gap: 10px;
  }

  .page-index__about-image,
  .page-index__app-image {
    margin-bottom: 20px;
  }
}