/* style/index.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-index {
  font-family: 'Arial', sans-serif;
  color: #F3F8FF; /* Text Main */
  background-color: transparent; /* Body background handled by shared.css #08162B */
  line-height: 1.6;
}

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

.page-index__section-title {
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #F3F8FF; /* Text Main */
  line-height: 1.2;
}

.page-index__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #AFC4E8; /* Text Secondary */
}

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

.page-index__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

.page-index__cta-button--secondary {
  background: none;
  border: 2px solid #1D5FD1; /* Auxiliary color */
  color: #F3F8FF;
  margin-left: 20px;
}

.page-index__cta-button--secondary:hover {
  background: rgba(29, 95, 209, 0.1); /* Light background on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* 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 */
  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;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-index__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

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

.page-index__hero-title {
  font-weight: 700;
  color: #F3F8FF; /* Text Main */
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  /* H1 font-size controlled by clamp for responsiveness */
  font-size: clamp(2.2rem, 4vw + 1rem, 3.5rem);
}

.page-index__hero-description {
  font-size: 20px;
  color: #AFC4E8; /* Text Secondary */
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Intro Section */
.page-index__intro-section {
  background-color: #08162B; /* Deep Navy */
  padding: 80px 0;
  border-bottom: 1px solid #1B3357; /* Divider */
}

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

.page-index__feature-item {
  background-color: #10233F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #244D84; /* Border */
}

.page-index__feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-index__feature-item img {
  width: 100%;
  max-width: 250px;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-index__feature-item h3 {
  font-size: 24px;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-index__feature-item p {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
}

/* Quick Access Section */
.page-index__quick-access-section {
  padding: 80px 0;
  background-color: #08162B; /* Deep Navy */
  border-bottom: 1px solid #1B3357; /* Divider */
}

.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-color: #1D5FD1; /* Auxiliary color */
  color: #F3F8FF; /* Text Main */
  text-decoration: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 1px solid transparent;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-index__access-button:hover {
  background-color: #2B73F6;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Games Section */
.page-index__games-section {
  padding: 80px 0;
  background-color: #08162B; /* Deep Navy */
  border-bottom: 1px solid #1B3357; /* Divider */
}

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

.page-index__game-card {
  background-color: #10233F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #244D84; /* Border */
  display: flex;
  flex-direction: column;
}

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

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

.page-index__game-card h3 {
  font-size: 22px;
  color: #F2C14E; /* Gold */
  padding: 20px 20px 10px;
}

.page-index__game-card p {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-index__game-button {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 12px 0;
  text-align: center;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button gradient */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-index__game-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: #08162B; /* Deep Navy */
  border-bottom: 1px solid #1B3357; /* Divider */
}

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

.page-index__promo-card {
  background-color: #10233F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #244D84; /* Border */
  display: flex;
  flex-direction: column;
}

.page-index__promo-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-index__promo-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-index__promo-card h3 {
  font-size: 22px;
  color: #F2C14E; /* Gold */
  padding: 20px 20px 10px;
}

.page-index__promo-card p {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-index__promo-button {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 12px 0;
  text-align: center;
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%); /* Button gradient */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-index__promo-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Security & Support Section */
.page-index__security-support-section {
  padding: 80px 0;
  background-color: #08162B; /* Deep Navy */
  border-bottom: 1px solid #1B3357; /* Divider */
}

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

.page-index__security-item {
  background-color: #10233F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #244D84; /* Border */
}

.page-index__security-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-index__security-item img {
  width: 100%;
  max-width: 200px;
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-index__security-item h3 {
  font-size: 24px;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
}

.page-index__security-item p {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
}

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

/* FAQ Section */
.page-index__faq-section {
  padding: 80px 0;
  background-color: #08162B; /* Deep Navy */
  border-bottom: 1px solid #1B3357; /* Divider */
}

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

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #244D84; /* Border */
  overflow: hidden;
  background: #10233F; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

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: #F3F8FF; /* Text Main */
  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: #1B3357; /* Divider color for hover */
}

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

.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #4FA8FF; /* Glow */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
  transition: transform 0.3s ease;
}

details.page-index__faq-item[open] .page-index__faq-toggle {
  transform: rotate(45deg);
}

details.page-index__faq-item .page-index__faq-answer {
  padding: 0 25px 25px;
  background: #0d1a2f; /* Slightly lighter than Deep Navy */
  border-radius: 0 0 10px 10px;
  color: #AFC4E8; /* Text Secondary */
  font-size: 16px;
}

/* Blog Section */
.page-index__blog-section {
  padding: 80px 0;
  background-color: #08162B; /* Deep Navy */
}

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

.page-index__blog-card {
  background-color: #10233F; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #244D84; /* Border */
  display: flex;
  flex-direction: column;
}

.page-index__blog-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-index__blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-index__blog-card h3 {
  font-size: 22px;
  padding: 20px 20px 10px;
}

.page-index__blog-card h3 a {
  color: #F2C14E; /* Gold */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__blog-card h3 a:hover {
  color: #4FA8FF; /* Glow */
}

.page-index__blog-card p {
  font-size: 16px;
  color: #AFC4E8; /* Text Secondary */
  padding: 0 20px 15px;
  flex-grow: 1;
}

.page-index__blog-date {
  font-size: 14px;
  color: #1D5FD1; /* Auxiliary color */
  padding: 0 20px 20px;
  display: block;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-section {
    padding: 40px 15px;
  }
  .page-index__hero-title {
    font-size: clamp(2rem, 5vw + 1rem, 3rem);
  }
  .page-index__hero-description {
    font-size: 18px;
  }
  .page-index__section-title {
    font-size: 32px;
  }
  .page-index__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-index__container {
    padding: 30px 15px;
  }
  .page-index__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  .page-index__game-card h3,
  .page-index__promo-card h3,
  .page-index__security-item h3,
  .page-index__blog-card h3 {
    font-size: 20px;
  }
  .page-index__faq-qtext {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: 10px !important; /* Body handles header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__hero-image {
    margin-bottom: 20px;
  }
  .page-index__hero-image img {
    border-radius: 8px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__cta-button,
  .page-index__cta-button--secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-index__intro-section, .page-index__quick-access-section, .page-index__games-section, .page-index__promotions-section, .page-index__security-support-section, .page-index__faq-section, .page-index__blog-section {
    padding: 40px 0;
  }
  .page-index__section-title {
    font-size: 28px;
  }
  .page-index__feature-item, .page-index__game-card, .page-index__promo-card, .page-index__security-item, .page-index__blog-card {
    padding: 20px;
  }
  .page-index__feature-item img {
    
  }
  .page-index__access-links {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__access-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-index__game-card img, .page-index__promo-card img, .page-index__blog-card img {
    
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__contact-cta {
    flex-direction: column;
    gap: 15px;
  }
  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px 20px;
  }
  .page-index__faq-qtext {
    font-size: 15px;
  }
  .page-index__faq-toggle {
    font-size: 20px;
    width: 24px;
  }
  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 20px 20px;
  }
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__section, .page-index__card, .page-index__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}