/* style/index.css */

/* General Page Styling */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000; /* Inherited from shared.css, ensure text contrast */
}

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

.page-index__section {
  padding: 60px 0;
  margin-bottom: 0;
  background-color: #000; /* Default section background */
}

.page-index__dark-section {
  background-color: #0A2463; /* Main brand color for dark sections */
  color: #ffffff;
}

.page-index__title {
  font-size: 38px;
  font-weight: 700;
  color: #FFD700; /* Gold for main titles */
  text-align: center;
  margin-bottom: 25px;
}

.page-index__subtitle {
  font-size: 30px;
  font-weight: 600;
  color: #FFD700; /* Gold for subtitles */
  text-align: center;
  margin-bottom: 20px;
}

.page-index__description,
.page-index__text-block {
  font-size: 17px;
  text-align: center;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-index__description a,
.page-index__text-block a {
  color: #FFD700; /* Gold for links in text */
  text-decoration: none;
  font-weight: 600;
}

.page-index__description a:hover,
.page-index__text-block a:hover {
  text-decoration: underline;
}

.page-index__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-index__button-center {
  text-align: center;
  margin-top: 40px;
}

.page-index__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.page-index__btn--primary {
  background-color: #FFD700; /* Gold button */
  color: #0A2463; /* Dark blue text */
  border-color: #FFD700;
}

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

.page-index__btn--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border-color: #FFD700;
}

.page-index__btn--secondary:hover {
  background-color: #FFD700;
  color: #0A2463;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
}

.page-index__btn--small {
  padding: 10px 20px;
  font-size: 15px;
  border-radius: 30px;
}

.page-index__btn--text {
  background: none;
  border: none;
  color: #FFD700;
  text-decoration: underline;
  padding: 0;
  font-size: 16px;
  font-weight: 600;
}

.page-index__btn--text:hover {
  color: #e6c200;
  text-decoration: none;
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  margin-top: 90px; /* Adjust for fixed header */
}

.page-index__hero-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.page-index__hero-image {
  width: 100%;
  margin: 0;
}

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

/* Product Showcase Section */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  background-color: #000; /* Match body background */
}

.page-index__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr; /* Front 4 cards occupy 4 parts, back 2 cards occupy 2 parts */
  gap: 20px;
}

.page-index__products-grid {
  display: grid;
  gap: 20px;
}

.page-index__products-grid--small {
  grid-template-columns: repeat(4, 1fr);
}

.page-index__products-grid--large {
  grid-template-columns: repeat(2, 1fr);
}

.page-index__product-card {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a; /* Slightly lighter background for cards on dark body */
  border: 3px solid #FFD700; /* Golden border */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.page-index__product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-index__product-card-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.page-index__product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Quick Access Section */
.page-index__quick-access-section {
  background-color: #0A2463; /* Main brand color */
  color: #ffffff;
}

.page-index__quick-access-section .page-index__text-block {
  color: #f0f0f0;
}

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

.page-index__quick-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 25px;
  background: #1a1a1a; /* Dark background for quick link cards */
  border-radius: 10px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 2px solid #FFD700; /* Gold border */
  text-align: center;
}

.page-index__quick-link-card:hover {
  background: #333333;
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(255, 215, 0, 0.3);
}

.page-index__quick-link-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  object-fit: contain;
}

.page-index__quick-link-text {
  display: block;
}

/* Core Games/Services Section */
.page-index__games-section {
  background-color: #000;
}

.page-index__game-category {
  margin-bottom: 50px;
  padding: 30px;
  background-color: #1a1a1a;
  border-radius: 10px;
  border: 1px solid #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-index__game-title {
  font-size: 26px;
  color: #FFD700;
  margin-bottom: 20px;
  text-align: left;
}

.page-index__game-content {
  display: flex;
  align-items: center;
  gap: 30px;
}

.page-index__game-image {
  width: 40%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.page-index__game-text p {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 20px;
  text-align: left;
}

.page-index__game-text p a {
  color: #FFD700;
  text-decoration: none;
  font-weight: 600;
}

.page-index__game-text p a:hover {
  text-decoration: underline;
}

/* Promotions Section */
.page-index__promotions-section {
  background-color: #0A2463;
}

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

.page-index__promotion-card {
  background: #1a1a1a; /* Dark background for promotion cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid #333333;
}

.page-index__promotion-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.page-index__promotion-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-index__promotion-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-index__promotion-description {
  font-size: 15px;
  color: #f0f0f0;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-index__promotion-description a {
  color: #FFD700;
  text-decoration: none;
  font-weight: 600;
}

.page-index__promotion-description a:hover {
  text-decoration: underline;
}

/* Security & Customer Service Section */
.page-index__security-section {
  background-color: #000;
}

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

.page-index__feature-card {
  background: #1a1a1a; /* Dark background for feature cards */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid #333333;
}

.page-index__feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.page-index__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-index__feature-title {
  font-size: 24px;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-index__feature-description {
  font-size: 16px;
  color: #f0f0f0;
}

.page-index__feature-description a {
  color: #FFD700;
  text-decoration: none;
  font-weight: 600;
}

.page-index__feature-description a:hover {
  text-decoration: underline;
}

/* FAQ Section */
.page-index__faq-section {
  background-color: #0A2463;
}

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

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

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1a1a1a; /* Dark background for question */
  border: 1px solid #333333;
  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: #333333;
  border-color: #FFD700;
}

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

.page-index__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #f0f0f0;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-index__faq-item.active .page-index__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Change to X or rotate for active state */
}

.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 20px;
  opacity: 0;
  background-color: #1a1a1a; /* Dark background for answer */
  color: #f0f0f0;
  border-left: 1px solid #333333;
  border-right: 1px solid #333333;
  border-bottom: 1px solid #333333;
  border-radius: 0 0 8px 8px;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important; /* Use !important and large value */
  padding: 20px !important;
  opacity: 1;
  background-color: #1a1a1a;
}

.page-index__faq-answer p {
  margin: 0;
  font-size: 16px;
  text-align: left;
}

.page-index__faq-answer p a {
  color: #FFD700;
  text-decoration: none;
  font-weight: 600;
}

.page-index__faq-answer p a:hover {
  text-decoration: underline;
}

/* Latest Blog Content Section */
.page-index__blog-section {
  background-color: #000;
}

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

.page-index__blog-card {
  background: #1a1a1a; /* Dark background for blog cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid #333333;
  display: flex;
  flex-direction: column;
}

.page-index__blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.4);
}

.page-index__blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.page-index__blog-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-index__blog-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFD700;
}

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

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

.page-index__blog-excerpt {
  font-size: 15px;
  color: #f0f0f0;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-index__blog-excerpt a {
  color: #FFD700;
  text-decoration: none;
  font-weight: 600;
}

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

/* Responsive Design */
@media (max-width: 1200px) {
  .page-index__container {
    padding: 30px 15px;
  }
  .page-index__title {
    font-size: 34px;
  }
  .page-index__subtitle {
    font-size: 28px;
  }
  .page-index__game-image {
    height: 220px;
  }
}

@media (max-width: 1024px) {
  .page-index__products-container {
    grid-template-columns: 1fr; /* Stack product grids */
  }
  .page-index__products-grid--small {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-index__products-grid--large {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-index__game-content {
    flex-direction: column;
    text-align: center;
  }
  .page-index__game-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-bottom: 20px;
  }
  .page-index__game-text p {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    margin-top: 70px; /* Adjust for mobile fixed header */
  }
  .page-index__section {
    padding: 40px 0;
  }
  .page-index__container {
    padding: 20px 15px;
  }
  .page-index__title {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .page-index__subtitle {
    font-size: 24px;
    margin-bottom: 15px;
  }
  .page-index__description,
  .page-index__text-block {
    font-size: 15px;
  }
  .page-index__button-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__btn {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  /* Product Showcase Mobile Specifics */
  .page-index__products-section {
    padding: 40px 15px;
  }
  .page-index__products-container {
    gap: 15px;
  }
  .page-index__products-grid--small {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-index__products-grid--small .page-index__product-card {
    aspect-ratio: 1 / 1; /* Square */
  }
  .page-index__products-grid--small .page-index__product-card-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1; /* Square */
  }
  .page-index__products-grid--large {
    grid-template-columns: 1fr; /* Stack large cards */
    gap: 15px;
  }
  .page-index__products-grid--large .page-index__product-card {
    aspect-ratio: 1 / 1; /* Square */
  }
  .page-index__products-grid--large .page-index__product-card-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1; /* Square */
  }
  .page-index__product-card-image {
    height: auto; /* Allow auto height for square aspect-ratio */
  }

  .page-index__links-grid {
    grid-template-columns: 1fr;
  }
  .page-index__quick-link-icon {
    width: 60px;
    height: 60px;
  }
  .page-index__quick-link-card {
    font-size: 15px;
  }
  .page-index__game-title {
    font-size: 22px;
    text-align: center;
  }
  .page-index__game-image {
    width: 100%;
    height: auto;
  }
  .page-index__game-text p {
    font-size: 15px;
    text-align: center;
  }
  .page-index__promotion-title {
    font-size: 20px;
  }
  .page-index__promotion-image {
    height: 180px;
  }
  .page-index__feature-title {
    font-size: 20px;
  }
  .page-index__feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-index__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-index__faq-question h3 {
    font-size: 16px;
    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;
  }
  .page-index__blog-grid {
    grid-template-columns: 1fr;
  }
  .page-index__blog-title {
    font-size: 18px;
  }

  /* Mobile image responsiveness enforcement */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__product-card,
  .page-index__quick-link-card,
  .page-index__game-category,
  .page-index__promotion-card,
  .page-index__feature-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__products-section,
  .page-index__intro-section,
  .page-index__quick-access-section,
  .page-index__games-section,
  .page-index__promotions-section,
  .page-index__security-section,
  .page-index__faq-section,
  .page-index__blog-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 480px) {
  .page-index__title {
    font-size: 24px;
  }
  .page-index__subtitle {
    font-size: 20px;
  }
  .page-index__products-grid--small {
    grid-template-columns: 1fr;
  }
  .page-index__products-grid--large {
    grid-template-columns: 1fr;
  }
  .page-index__game-image {
    height: 200px;
  }
}