.page-index {
  color: #333333; /* Default text color for light background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #FFFFFF; /* Ensures consistency with body background */
}

.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: 40px;
  color: #017439; /* Primary color for titles */
}

.page-index__text-block {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

/* 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: var(--header-offset, 120px); /* Ensures content is below header */
  background: linear-gradient(135deg, #017439, #005f2e);
  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 {
  width: 100%;
  margin-bottom: 30px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-index__hero-image img:hover {
  transform: scale(1.03);
}

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

.page-index__hero-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  color: #FFFF00; /* Yellow for prominence */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-index__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-index__cta-button {
  display: inline-block;
  padding: 16px 45px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 19px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
}

.page-index__btn-register {
  background: #C30808; /* Custom red for register */
  color: #FFFF00; /* Custom yellow font */
  border: 2px solid #C30808;
}

.page-index__btn-register:hover {
  background: #a30606;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-index__btn-login {
  background: #C30808; /* Custom red for login */
  color: #FFFF00; /* Custom yellow font */
  border: 2px solid #C30808;
}

.page-index__btn-login:hover {
  background: #a30606;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Buttons */
.page-index__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: #017439;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
}

.page-index__btn-primary:hover {
  background: #005f2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-index__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  background: #ffffff;
  color: #017439;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  border: 2px solid #017439;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Section Styling */
.page-index__intro-section, .page-index__games-section, .page-index__security-support-section, .page-index__faq-section {
  padding: 80px 0;
  background-color: #ffffff;
  color: #333333;
}

.page-index__quick-access-section, .page-index__promotions-section, .page-index__blog-section {
  padding: 80px 0;
  background-color: #017439; /* Primary color background */
  color: #ffffff;
}

.page-index__quick-access-section .page-index__section-title, .page-index__promotions-section .page-index__section-title, .page-index__blog-section .page-index__section-title {
  color: #ffffff;
}

/* Quick Links Grid */
.page-index__quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-index__quick-link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-index__quick-link-item:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-index__quick-link-item img {
  
  
  object-fit: contain;
  margin-bottom: 15px;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-index__quick-link-item h3 {
  font-size: 20px;
  margin: 0;
  color: #FFFF00;
}

/* Games Grid */
.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: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-index__game-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-index__game-content {
  padding: 25px;
  text-align: center;
}

.page-index__game-content h3 {
  font-size: 22px;
  margin-top: 0;
  margin-bottom: 15px;
  color: #017439;
}

.page-index__game-content p {
  font-size: 15px;
  color: #555555;
  margin-bottom: 20px;
}

/* Promotions Grid */
.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: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background 0.3s ease;
  padding-bottom: 20px;
  text-align: center;
}

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

.page-index__promo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-index__promo-card h3 {
  font-size: 20px;
  color: #FFFF00;
  margin-bottom: 10px;
  padding: 0 20px;
}

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

/* Security & Support Grid */
.page-index__security-support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

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

.page-index__info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-index__info-card img {
  
  
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.2));
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

.page-index__info-card h3 {
  font-size: 20px;
  color: #017439;
  margin-bottom: 10px;
}

.page-index__info-card p {
  font-size: 15px;
  color: #555555;
}

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

/* FAQ Section */
.page-index__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-index__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-index__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none;
}

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #017439;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-index__faq-item.active .page-index__faq-toggle {
  transform: rotate(45deg);
  color: #C30808; /* Red for active toggle */
}

.page-index__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important;
  padding: 20px 25px !important;
  opacity: 1;
  background: #f9f9f9;
  border-top: 1px solid #e0e0e0;
  border-radius: 0 0 8px 8px;
}

.page-index__faq-answer p {
  margin: 0;
  font-size: 16px;
  color: #555555;
}

/* Blog Section */
.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: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, background 0.3s ease;
  text-align: left;
}

.page-index__blog-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.page-index__blog-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

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

.page-index__blog-content h3 {
  font-size: 20px;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-index__blog-content h3 a {
  color: #FFFF00; /* Yellow for blog titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index__blog-content h3 a:hover {
  color: #f0f0f0;
}

.page-index__blog-content p {
  font-size: 15px;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-index__blog-content span {
  font-size: 13px;
  color: #cccccc;
}

.page-index__blog-cta {
  text-align: center;
  margin-top: 50px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 42px;
  }
  .page-index__hero-description {
    font-size: 18px;
  }
  .page-index__section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-index__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-index__cta-button {
    padding: 14px 35px;
    font-size: 17px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-index__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-index__container {
    padding: 20px 15px;
  }
  .page-index__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-index__text-block {
    font-size: 16px;
  }

  /* Image and Button responsiveness */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important; /* Ensure min size */
    min-height: 200px !important; /* Ensure min size */
  }
  .page-index__section, .page-index__card, .page-index__container, .page-index__quick-link-item, .page-index__game-card, .page-index__promo-card, .page-index__info-card, .page-index__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__quick-links-grid, .page-index__games-grid, .page-index__promotions-grid, .page-index__security-support-grid, .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index__quick-link-item img {
    width: 100%; /* Adjust for card layout */
    height: auto;
  }

  .page-index__game-card img, .page-index__promo-card img, .page-index__blog-card img {
    
  }

  .page-index__info-card img {
    
    
  }

  .page-index__btn-primary, .page-index__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 15px;
  }
  .page-index__contact-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-index__faq-question {
    padding: 15px 20px;
  }
  .page-index__faq-question h3 {
    font-size: 16px;
  }
  .page-index__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-index__faq-item.active .page-index__faq-answer {
    padding: 15px 20px !important;
  }
  .page-index__faq-answer p {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 28px;
  }
  .page-index__hero-description {
    font-size: 15px;
  }
  .page-index__section-title {
    font-size: 24px;
  }
  .page-index__quick-link-item h3 {
    font-size: 18px;
  }
  .page-index__game-content h3 {
    font-size: 20px;
  }
  .page-index__promo-card h3 {
    font-size: 18px;
  }
  .page-index__info-card h3 {
    font-size: 18px;
  }
  .page-index__blog-content h3 {
    font-size: 18px;
  }
}