/* style/index.css */

/* Base Styles & Typography */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--secondary-color, #FFFFFF);
}

.page-index h1, .page-index h2, .page-index h3 {
  color: #017439; /* Primary color for headings */
  margin-top: 0;
  margin-bottom: 15px;
}

.page-index h1 {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index h2 {
  font-size: 32px;
  text-align: center;
  margin-bottom: 30px;
}

.page-index h3 {
  font-size: 22px;
  font-weight: 600;
}

.page-index p {
  margin-bottom: 15px;
}

.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;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
}

.page-index__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: #555555;
}

/* CTA Button */
.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #C30808; /* Red for CTA based on custom color */
  color: #FFFF00; /* Yellow text for CTA */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-index__cta-button:hover {
  background: #a30606;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.page-index__cta-button--small {
  padding: 12px 25px;
  font-size: 16px;
  margin-top: 20px;
}

/* 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(--secondary-color, #FFFFFF);
}

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

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

.page-index__hero-image-wrapper img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.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 */
  color: #017439;
  margin-bottom: 15px;
}

.page-index__hero-description {
  font-size: 18px;
  color: #555555;
  max-width: 700px;
  margin: 0 auto;
}

/* Introduction Section */
.page-index__introduction-section {
  padding: 80px 20px;
  background-color: #f9f9f9;
  color: #333333;
}

.page-index__introduction-section .page-index__section-title {
  color: #017439;
}

.page-index__content-block {
  text-align: justify;
  line-height: 1.8;
  font-size: 17px;
}

/* Quick Access Section */
.page-index__quick-access-section {
  padding: 80px 20px;
  background-color: #ffffff;
}

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

.page-index__access-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: #333333;
}

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

.page-index__access-card img {
  
  
  margin-bottom: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #017439;
}

.page-index__access-card .page-index__card-title {
  font-size: 20px;
  font-weight: bold;
  color: #017439;
  margin-bottom: 10px;
}

.page-index__access-card p {
  font-size: 15px;
  color: #666666;
}

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

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

.page-index__game-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-index__game-card .page-index__card-title {
  padding: 20px 20px 0;
  font-size: 20px;
  font-weight: bold;
}

.page-index__game-card .page-index__card-title a {
  color: #017439;
  text-decoration: none;
}

.page-index__game-card .page-index__card-title a:hover {
  text-decoration: underline;
}

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

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 20px;
  background-color: #017439; /* Dark background */
  color: #ffffff; /* White text for dark background */
}

.page-index__promotions-section .page-index__section-title,
.page-index__promotions-section .page-index__section-description {
  color: #ffffff;
}

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

.page-index__promo-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-index__promo-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.2);
}

.page-index__promo-card img {
  width: 100%;
  
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-index__promo-card .page-index__card-title {
  font-size: 20px;
  font-weight: bold;
  color: #FFFF00; /* Yellow text for promo titles */
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-index__promo-card p {
  font-size: 15px;
  color: #e0e0e0;
  margin-bottom: 20px;
  padding: 0 20px;
}

.page-index__promo-button {
  display: inline-block;
  padding: 10px 25px;
  background: #C30808; /* Red for promo button */
  color: #FFFF00; /* Yellow text */
  text-decoration: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: bold;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-index__promo-button:hover {
  background: #a30606;
}

/* Security & Support Section */
.page-index__security-support-section {
  padding: 80px 20px;
  background-color: #ffffff;
}

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

.page-index__feature-item {
  text-align: center;
  background: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.page-index__feature-item img {
  
  
  margin-bottom: 20px;
  object-fit: contain;
}

.page-index__feature-item .page-index__card-title {
  font-size: 20px;
  color: #017439;
  margin-bottom: 10px;
}

.page-index__feature-item p {
  font-size: 15px;
  color: #666666;
}

.page-index__contact-cta {
  text-align: center;
  margin-top: 50px;
  padding: 30px;
  background: #f0fdf4;
  border-radius: 12px;
}

.page-index__contact-cta p {
  font-size: 20px;
  color: #017439;
  margin-bottom: 20px;
  font-weight: bold;
}

/* FAQ Section */
.page-index__faq-section {
  padding: 80px 20px;
  background-color: #f9f9f9;
}

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

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
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;
}
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: #f5f5f5;
}
.page-index__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #017439;
}
.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  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: #fcfcfc;
  border-top: 1px solid #eee;
  border-radius: 0 0 8px 8px;
  font-size: 16px;
  color: #555555;
}

/* Blog Section */
.page-index__blog-section {
  padding: 80px 20px;
  background-color: #ffffff;
}

.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: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-index__blog-card .page-index__card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-index__blog-card .page-index__card-title a {
  color: #017439;
  text-decoration: none;
}

.page-index__blog-card .page-index__card-title a:hover {
  text-decoration: underline;
}

.page-index__blog-excerpt {
  font-size: 15px;
  color: #666666;
  margin-bottom: 15px;
}

.page-index__blog-date {
  font-size: 13px;
  color: #999999;
  display: block;
  margin-bottom: 15px;
}

.page-index__blog-readmore {
  display: inline-block;
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
}

.page-index__blog-readmore:hover {
  text-decoration: underline;
}

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

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

  .page-index__game-card img {
    
  }

  .page-index__promo-card img {
    
  }

  .page-index__blog-card img {
    
  }
}

@media (max-width: 768px) {
  .page-index__container {
    padding: 20px 15px;
  }

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

  .page-index__hero-image-wrapper img {
    border-radius: 8px;
  }

  .page-index__main-title {
    font-size: clamp(24px, 6vw, 36px);
  }

  .page-index__hero-description {
    font-size: 16px;
  }

  .page-index__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-index__section-title {
    font-size: 26px;
    margin-bottom: 20px;
  }

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

  .page-index__access-grid,
  .page-index__game-grid,
  .page-index__promotions-grid,
  .page-index__features-grid,
  .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index__access-card img {
    
    
  }

  .page-index__access-card .page-index__card-title {
    font-size: 18px;
  }

  .page-index__game-card img {
    
  }

  .page-index__game-card .page-index__card-title {
    font-size: 18px;
  }

  .page-index__promo-card img {
    
  }

  .page-index__promo-card .page-index__card-title {
    font-size: 18px;
  }

  .page-index__feature-item img {
    
    
  }

  .page-index__feature-item .page-index__card-title {
    font-size: 18px;
  }

  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px;
  }
  .page-index__faq-qtext {
    font-size: 16px;
  }
  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 15px 15px;
  }

  .page-index__blog-card img {
    
  }

  .page-index__blog-card .page-index__card-title {
    font-size: 18px;
  }

  /* Ensure all images are responsive */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Ensure all containers with images/buttons are responsive */
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__hero-section,
  .page-index__access-grid,
  .page-index__game-grid,
  .page-index__promotions-grid,
  .page-index__features-grid,
  .page-index__blog-grid,
  .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,
  .page-index__view-all-button-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons in mobile */
  .page-index__cta-button,
  .page-index__promo-button,
  .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__cta-buttons,
  .page-index__button-group,
  .page-index__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-index__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}

/* Color Contrast Fixes (if needed) */
.page-index__dark-bg {
  color: #ffffff;
  background: #017439;
}

.page-index__light-bg {
  color: #333333;
  background: #ffffff;
}

/* Specific overrides for buttons to ensure contrast */
.page-index__cta-button {
  background: #C30808;
  color: #FFFF00;
}

.page-index__cta-button:hover {
  background: #a30606;
}

.page-index__promo-button {
  background: #C30808;
  color: #FFFF00;
}

.page-index__promo-button:hover {
  background: #a30606;
}

.page-index__access-card img {
  border-color: #017439;
}

.page-index__access-card .page-index__card-title {
  color: #017439;
}

.page-index__game-card .page-index__card-title a {
  color: #017439;
}

.page-index__feature-item .page-index__card-title {
  color: #017439;
}

.page-index__blog-card .page-index__card-title a {
  color: #017439;
}

.page-index__blog-readmore {
  color: #017439;
}

.page-index__contact-cta p {
  color: #017439;
}

.page-index__faq-qtext {
  color: #017439;
}