/* style/index.css */

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

.page-index {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color); /* Body background is dark, so text is light */
  background-color: var(--deep-navy-color); /* Ensure consistency if body bg is not fully handled by shared */
}

/* --- 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, header offset handled by body */
  background-color: var(--deep-navy-color);
}

.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(2.5rem, 5vw, 3.2rem); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  color: var(--gold-color);
  margin-bottom: 15px;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
}

.page-index__hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary-color);
  max-width: 800px;
  margin: 0 auto 30px auto;
  line-height: 1.6;
}

.page-index__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 0 20px var(--glow-color);
}

.page-index__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
}

.page-index__btn-secondary {
  background: var(--primary-color);
  color: var(--text-main-color);
  border: 2px solid var(--glow-color);
}

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

.page-index__btn-small {
  display: inline-block;
  padding: 10px 25px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-small:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* --- General Section Styling --- */
.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-index__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-index__section-description {
  font-size: 1.05rem;
  color: var(--text-secondary-color);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
}

.page-index__dark-section {
  background-color: var(--deep-navy-color);
  padding: 80px 0;
}

.page-index__light-section {
  background-color: var(--primary-color);
  padding: 80px 0;
}

/* --- Intro Section --- */
.page-index__intro-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

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

.page-index__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
}

.page-index__feature-item img {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__feature-item p {
  font-size: 0.95rem;
  color: var(--text-secondary-color);
  line-height: 1.6;
}

/* --- Quick Access Section --- */
.page-index__quick-access-section {
  padding: 80px 0;
  background-color: var(--primary-color);
}

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

.page-index__quick-link-card {
  display: block;
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  text-decoration: none;
  color: var(--text-main-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.page-index__quick-link-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 15px var(--secondary-color);
  background-color: #1a3660; /* Slightly lighter on hover */
}

.page-index__quick-link-title {
  font-size: 1.3rem;
  color: var(--gold-color);
  margin-bottom: 10px;
  font-weight: 600;
}

.page-index__quick-link-card p {
  font-size: 0.9rem;
  color: var(--text-secondary-color);
  line-height: 1.5;
}

/* --- Games Section --- */
.page-index__games-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.page-index__game-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 40px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.page-index__game-tab-button {
  background: var(--primary-color);
  color: var(--text-main-color);
  border: 1px solid var(--border-color);
  padding: 12px 25px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
}

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

.page-index__game-tab-button.active {
  background: var(--button-gradient);
  border-color: var(--glow-color);
  box-shadow: 0 0 15px var(--glow-color);
}

.page-index__game-content-wrapper {
  position: relative;
  min-height: 400px; /* Ensure space for content */
}

.page-index__game-content {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  animation: fadeIn 0.5s ease-out forwards;
}

.page-index__game-content--active {
  display: grid;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-index__game-card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
}

.page-index__game-card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-index__game-card-title {
  font-size: 1.4rem;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-index__game-card p {
  font-size: 0.95rem;
  color: var(--text-secondary-color);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* --- Promotions Section --- */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: var(--primary-color);
}

.page-index__promotions-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: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px var(--secondary-color);
}

.page-index__promo-card img {
  width: 100%;
  height: 200px; /* Consistent image height */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-index__promo-title {
  font-size: 1.4rem;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-index__promo-card p {
  font-size: 0.95rem;
  color: var(--text-secondary-color);
  line-height: 1.6;
  margin-bottom: 20px;
}

.page-index__view-all-promos {
  text-align: center;
  margin-top: 60px;
}

/* --- Safety & Support Section --- */
.page-index__safety-support-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

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

.page-index__safety-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px var(--glow-color);
}

.page-index__safety-item img {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-index__safety-title {
  font-size: 1.5rem;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-index__safety-item p {
  font-size: 0.95rem;
  color: var(--text-secondary-color);
  line-height: 1.6;
}

.page-index__contact-cta {
  text-align: center;
  margin-top: 60px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* --- FAQ Section --- */
.page-index__faq-section {
  padding: 80px 0;
  background-color: var(--primary-color);
}

.page-index__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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 4px 15px 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, border-color 0.3s ease;
  color: var(--text-main-color);
}

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: #1a3660;
  border-color: var(--glow-color);
}

.page-index__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--gold-color);
}

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--glow-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: rgba(0, 0, 0, 0.1);
  border-top: 1px solid var(--divider-color);
  border-radius: 0 0 8px 8px;
  color: var(--text-secondary-color);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Blog Section --- */
.page-index__blog-section {
  padding-top: 80px;
  padding-bottom: 80px;
}

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

.page-index__blog-card {
  display: block;
  background-color: var(--card-bg-color);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  text-decoration: none;
  color: var(--text-main-color);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px var(--secondary-color);
}

.page-index__blog-card img {
  width: 100%;
  height: 220px; /* Consistent image height for blog cards */
  object-fit: cover;
  display: block;
}

.page-index__blog-card-content {
  padding: 25px;
  text-align: left;
}

.page-index__blog-card-title {
  font-size: 1.3rem;
  color: var(--gold-color);
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.page-index__blog-meta {
  font-size: 0.85rem;
  color: var(--text-secondary-color);
  margin-bottom: 15px;
}

.page-index__blog-excerpt {
  font-size: 0.95rem;
  color: var(--text-secondary-color);
  line-height: 1.6;
}

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

/* --- Responsive Design (Mobile) --- */
@media (max-width: 768px) {
  .page-index {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-index__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index__main-title {
    font-size: 2rem; /* Adjusted for mobile */
  }

  .page-index__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-index__cta-buttons {
    flex-direction: column;
    gap: 15px;
    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"] {
    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__section-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .page-index__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-index__dark-section, .page-index__light-section, .page-index__quick-access-section, .page-index__promotions-section, .page-index__faq-section, .page-index__blog-section {
    padding: 60px 0;
  }

  .page-index__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__quick-links-grid,
  .page-index__promotions-grid,
  .page-index__blog-grid,
  .page-index__game-content,
  .page-index__safety-features-grid,
  .page-index__intro-features {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index__feature-item,
  .page-index__quick-link-card,
  .page-index__game-card,
  .page-index__promo-card,
  .page-index__safety-item,
  .page-index__blog-card {
    padding: 20px;
  }

  .page-index__feature-title,
  .page-index__quick-link-title,
  .page-index__game-card-title,
  .page-index__promo-title,
  .page-index__safety-title,
  .page-index__blog-card-title {
    font-size: 1.2rem;
  }

  .page-index__game-tabs {
    gap: 10px;
  }

  .page-index__game-tab-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px;
  }

  .page-index__faq-qtext {
    font-size: 1rem;
  }

  .page-index__faq-toggle {
    font-size: 24px;
    width: 25px;
  }

  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 15px 15px;
  }

  .page-index__blog-card img {
    
  }

  .page-index__blog-card-content {
    padding: 20px;
  }

  .page-index__contact-cta {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }
}