/* style/index.css */
.page-index {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Dark text on light body background #f8f8f8 */
  line-height: 1.6;
}

.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 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: var(--header-offset, 120px);
  background-color: #017439; /* Use primary color for section background */
  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;
}

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

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

.page-index__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFF00;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-index__intro-section, .page-index__games-section, .page-index__security-support-section, .page-index__blog-section {
  padding: 80px 0;
}

.page-index__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

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

.page-index__intro-title, .page-index__quick-access-title, .page-index__games-title, .page-index__promotions-title, .page-index__security-support-title, .page-index__faq-title, .page-index__blog-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #017439;
}

.page-index__dark-bg .page-index__intro-title, .page-index__dark-bg .page-index__quick-access-title, .page-index__dark-bg .page-index__promotions-title, .page-index__dark-bg .page-index__faq-title {
  color: #ffffff;
}

.page-index__intro-text, .page-index__quick-access-description, .page-index__games-description, .page-index__promotions-description, .page-index__security-support-description, .page-index__faq-description, .page-index__blog-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

/* Intro Features */
.page-index__intro-features {
  display: flex;
  justify-content: space-around;
  gap: 30px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.page-index__feature-item {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  text-align: center;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-index__feature-item:hover {
  transform: translateY(-10px);
}

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

.page-index__feature-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
}

.page-index__feature-description {
  font-size: 1em;
  color: #555555;
}

/* Quick Access Buttons */
.page-index__button-group {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 40px;
}

.page-index__btn-primary, .page-index__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}

.page-index__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

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

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

.page-index__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-index__game-card:hover {
  transform: translateY(-10px);
}

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

.page-index__game-title {
  font-size: 1.6em;
  color: #017439;
  margin: 20px 15px 10px 15px;
}

.page-index__game-text {
  font-size: 1em;
  color: #555555;
  padding: 0 15px 20px 15px;
}

.page-index__game-link {
  display: inline-block;
  background-color: #017439;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

.page-index__game-link:hover {
  background-color: #005a2e;
}

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

.page-index__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
  color: #333333;
}

.page-index__promo-card:hover {
  transform: translateY(-10px);
}

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

.page-index__promo-title {
  font-size: 1.4em;
  color: #017439;
  margin: 20px 15px 10px 15px;
}

.page-index__promo-text {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px 20px 15px;
}

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

.page-index__security-support-item {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-index__security-support-item:hover {
  transform: translateY(-10px);
}

.page-index__security-support-item img {
  width: 100%;
  height: auto;
  
  margin-bottom: 20px;
}

.page-index__security-support-subtitle {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 15px;
}

.page-index__security-support-text {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
}

.page-index__security-support-link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-index__security-support-link:hover {
  color: #005a2e;
  text-decoration: underline;
}

/* FAQ Section */
.page-index__faq-section {
  padding: 80px 0;
}

.page-index__faq-list {
  max-width: 800px;
  margin: 50px auto 0 auto;
}

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.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 15px;
  opacity: 0;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #ffffff;
  border-radius: 0 0 5px 5px;
  color: #333333;
}

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

.page-index__faq-question:hover {
  background: #005a2e;
  border-color: #004022;
}

.page-index__faq-question:active {
  background: #004022;
}

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

.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #ffffff;
  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: 28px;
  height: 28px;
}

.page-index__faq-item.active .page-index__faq-toggle {
  transform: rotate(45deg);
  color: #FFFF00;
}

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

.page-index__blog-card:hover {
  transform: translateY(-10px);
}

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

.page-index__blog-card-title {
  font-size: 1.4em;
  color: #017439;
  margin: 20px 15px 10px 15px;
}

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

.page-index__blog-card-title a:hover {
  text-decoration: underline;
  color: #005a2e;
}

.page-index__blog-card-meta {
  font-size: 0.85em;
  color: #888888;
  margin: 0 15px 10px 15px;
}

.page-index__blog-card-excerpt {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px 20px 15px;
}

.page-index__blog-card-link {
  display: inline-block;
  background-color: #017439;
  color: #ffffff;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  margin-bottom: 20px;
  margin-left: 15px;
  transition: background-color 0.3s ease;
}

.page-index__blog-card-link:hover {
  background-color: #005a2e;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 3em;
  }
  .page-index__hero-description {
    font-size: 1.1em;
  }
  .page-index__intro-title, .page-index__quick-access-title, .page-index__games-title, .page-index__promotions-title, .page-index__security-support-title, .page-index__faq-title, .page-index__blog-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-index {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-index__container {
    padding: 0 15px;
  }

  /* HERO Section Mobile */
  .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: 2.2em;
    margin-bottom: 15px;
  }
  .page-index__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-index__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* General Section Mobile */
  .page-index__intro-section, .page-index__games-section, .page-index__security-support-section, .page-index__blog-section, .page-index__faq-section, .page-index__quick-access-section, .page-index__promotions-section {
    padding: 40px 0;
  }

  .page-index__intro-title, .page-index__quick-access-title, .page-index__games-title, .page-index__promotions-title, .page-index__security-support-title, .page-index__faq-title, .page-index__blog-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-index__intro-text, .page-index__quick-access-description, .page-index__games-description, .page-index__promotions-description, .page-index__security-support-description, .page-index__faq-description, .page-index__blog-description {
    font-size: 0.95em;
    margin-bottom: 25px;
  }

  /* Features Mobile */
  .page-index__intro-features {
    flex-direction: column;
    align-items: center;
  }
  .page-index__feature-item {
    max-width: 90%;
  }

  /* Buttons Group Mobile */
  .page-index__button-group {
    flex-direction: column;
    gap: 15px;
  }
  .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-left: 15px;
    padding-right: 15px;
  }

  /* Image Responsiveness */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-index__section, .page-index__card, .page-index__container, .page-index__hero-container, .page-index__intro-features, .page-index__button-group, .page-index__games-grid, .page-index__promotions-grid, .page-index__security-support-grid, .page-index__blog-grid, .page-index__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-index__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-index__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-index__faq-answer {
    padding: 0 15px;
  }
  
  .page-index__faq-item.active .page-index__faq-answer {
    padding: 15px !important;
  }
}