/* style/index.css */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color);
  background-color: var(--deep-navy-color);
}

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

.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--gold-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-index__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-secondary-color);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--deep-navy-color);
  overflow: hidden;
}

.page-index__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-index__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-index__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
  font-weight: 900;
  line-height: 1.2;
  color: var(--gold-color);
  margin-bottom: 15px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.page-index__hero-description {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary-color);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
}

.page-index__cta-button:hover {
  background: linear-gradient(180deg, #1144A6 0%, #2B73F6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Module 1: Homepage Introduction */
.page-index__intro-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-index__feature-item {
  background-color: var(--card-bg-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-index__feature-title {
  font-size: 24px;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-index__feature-item p {
  color: var(--text-secondary-color);
  font-size: 16px;
}

/* Module 2: Quick Access Links */
.page-index__quick-access-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-index__access-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-index__access-button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-index__access-button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Module 3: Core Games/Services Introduction */
.page-index__games-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-index__game-card {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-index__game-card img {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-index__game-card .page-index__game-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-color);
  padding: 20px 15px 10px;
}

.page-index__game-card p {
  font-size: 15px;
  color: var(--text-secondary-color);
  padding: 0 15px 20px;
}

.page-index__game-button {
  display: block;
  text-align: center;
  padding: 12px 15px;
  background: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  border-radius: 0 0 10px 10px;
}

.page-index__game-button:hover {
  background: var(--secondary-color);
}

/* Module 4: Promotions */
.page-index__promotions-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-index__promo-card {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-index__promo-card img {
  width: 100%;
  height: 200px; /* Fixed height for promo images */
  object-fit: cover;
  display: block;
}

.page-index__promo-card .page-index__promo-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gold-color);
  padding: 20px 15px 10px;
}

.page-index__promo-card p {
  font-size: 15px;
  color: var(--text-secondary-color);
  padding: 0 15px 20px;
}

.page-index__promo-button {
  display: block;
  text-align: center;
  padding: 12px 15px;
  background: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  border-radius: 0 0 10px 10px;
}

.page-index__promo-button:hover {
  background: var(--secondary-color);
}

/* Module 5: Security & Customer Service */
.page-index__security-support-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-index__security-item {
  background-color: var(--card-bg-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-index__security-item img {
  max-width: 100%;
   /* Fixed height for security icons/images */
  object-fit: contain;
  margin-bottom: 20px;
}

.page-index__security-title {
  font-size: 24px;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-index__security-item p {
  color: var(--text-secondary-color);
  font-size: 16px;
}

.page-index__contact-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}

.page-index__cta-button--secondary {
  background: var(--secondary-color);
  border: 1px solid var(--primary-color);
}

.page-index__cta-button--secondary:hover {
  background: var(--primary-color);
  border-color: var(--secondary-color);
}

/* Module 6: FAQ */
.page-index__faq-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-index__faq-list {
  margin-top: 50px;
}

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

details.page-index__faq-item summary.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--gold-color);
  font-weight: 600;
}

details.page-index__faq-item summary.page-index__faq-question::-webkit-details-marker {
  display: none;
}

details.page-index__faq-item summary.page-index__faq-question:hover {
  background: #153A6A; /* Slightly lighter version of primary */
}

.page-index__faq-qtext {
  flex: 1;
  font-size: 18px;
  line-height: 1.5;
  text-align: left;
}

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--gold-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-index__faq-item .page-index__faq-answer {
  padding: 0 25px 25px;
  background: #10233F; /* Card background for answer */
  border-top: 1px solid var(--divider-color);
  border-radius: 0 0 8px 8px;
}

details.page-index__faq-item .page-index__faq-answer p {
  color: var(--text-secondary-color);
  font-size: 16px;
}

/* Module 7: Latest Blog Content */
.page-index__blog-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-index__blog-card {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-index__blog-card img {
  width: 100%;
  height: 200px; /* Fixed height for blog images */
  object-fit: cover;
  display: block;
}

.page-index__blog-card .page-index__blog-title {
  font-size: 22px;
  font-weight: 700;
  padding: 20px 15px 10px;
}

.page-index__blog-card .page-index__blog-title a {
  color: var(--gold-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__blog-card .page-index__blog-title a:hover {
  color: var(--glow-color);
}

.page-index__blog-card .page-index__blog-meta {
  font-size: 14px;
  color: var(--text-secondary-color);
  padding: 0 15px;
  margin-bottom: 10px;
}

.page-index__blog-card p {
  font-size: 15px;
  color: var(--text-secondary-color);
  padding: 0 15px 20px;
}

.page-index__blog-readmore {
  display: inline-block;
  padding: 8px 15px;
  margin: 0 15px 15px;
  background: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-index__blog-readmore:hover {
  background: var(--secondary-color);
}

.page-index__view-all-posts {
  text-align: center;
  margin-top: 50px;
}

/* Color scheme application */
.page-index__light-bg {
  background-color: var(--deep-navy-color);
  color: var(--text-main-color);
}

.page-index__dark-bg {
  background-color: var(--card-bg-color);
  color: var(--text-main-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-index__section-title {
    font-size: 32px;
  }
  .page-index__section-description {
    font-size: 17px;
  }
  .page-index__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }
  .page-index__main-title {
    font-size: clamp(24px, 5vw, 40px);
  }
  .page-index__hero-description {
    font-size: clamp(15px, 2.5vw, 18px);
  }
  .page-index__cta-button {
    padding: 14px 35px;
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  /* All images must be responsive */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* All containers with images must be responsive */
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__hero-container,
  .page-index__intro-features,
  .page-index__game-category,
  .page-index__promo-grid,
  .page-index__security-grid,
  .page-index__faq-list,
  .page-index__blog-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }
  .page-index__section-title {
    font-size: 28px;
  }
  .page-index__section-description {
    font-size: 16px;
  }
  .page-index__cta-button,
  .page-index__access-button,
  .page-index__game-button,
  .page-index__promo-button,
  .page-index__blog-readmore {
    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__access-links,
  .page-index__contact-cta {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .page-index__game-card img,
  .page-index__promo-card img,
  .page-index__blog-card img {
     /* Adjust height for mobile cards */
  }
  .page-index__faq-item summary.page-index__faq-question {
    padding: 15px;
  }
  .page-index__faq-qtext {
    font-size: 16px;
  }
  .page-index__faq-toggle {
    font-size: 24px;
  }
  .page-index__security-item img {
    
  }
}

/* Custom Colors */
:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg-color: #10233F;
  --text-main-color: #F3F8FF;
  --text-secondary-color: #AFC4E8;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy-color: #08162B;
}

/* Ensure contrast for light text on dark background */
.page-index__dark-bg .page-index__section-title,
.page-index__dark-bg .page-index__feature-title,
.page-index__dark-bg .page-index__game-title a,
.page-index__dark-bg .page-index__promo-title a,
.page-index__dark-bg .page-index__security-title,
.page-index__dark-bg .page-index__blog-title a,
.page-index__dark-bg .page-index__faq-qtext {
  color: var(--gold-color);
}

.page-index__dark-bg .page-index__section-description,
.page-index__dark-bg p,
.page-index__dark-bg li {
  color: var(--text-secondary-color);
}

.page-index__light-bg .page-index__section-title,
.page-index__light-bg .page-index__feature-title,
.page-index__light-bg .page-index__game-title a,
.page-index__light-bg .page-index__promo-title a,
.page-index__light-bg .page-index__security-title,
.page-index__light-bg .page-index__blog-title a,
.page-index__light-bg .page-index__faq-qtext {
  color: var(--gold-color);
}

.page-index__light-bg .page-index__section-description,
.page-index__light-bg p,
.page-index__light-bg li {
  color: var(--text-secondary-color);
}

/* Override default text color for main content to ensure readability on deep navy background */
.page-index {
  color: var(--text-main-color);
}

.page-index__card, .page-index__feature-item, .page-index__security-item, details.page-index__faq-item, .page-index__blog-card {
  background-color: var(--card-bg-color);
  color: var(--text-main-color);
}

.page-index__hero-content .page-index__main-title {
  color: var(--gold-color);
}

.page-index__hero-content .page-index__hero-description {
  color: var(--text-secondary-color);
}