/* style/index.css */

/* Base styles for page-index (dark background from shared.css: #140C0C) */
.page-index {
  color: #FFF1E8; /* Text Main */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #F3C54D; /* Gold */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #FFF1E8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-index__btn-primary,
.page-index__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
  color: #ffffff;
  border: none;
}

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

.page-index__btn-secondary {
  background: transparent;
  color: #FFB04A; /* Gold */
  border: 2px solid #FFB04A;
}

.page-index__btn-secondary:hover {
  background: #FFB04A;
  color: #140C0C; /* Background color for contrast */
  transform: translateY(-2px);
}

.page-index__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- HERO Section --- */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 10px; /* Assuming shared has body padding-top */
  margin-top: 0;
  background-color: #140C0C; /* Ensure background for hero */
}

.page-index__hero-container {
  position: relative;
  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;
}

/* --- Products Section --- */
.page-index__products-section {
  width: 100%;
  padding: 60px 20px;
  background-color: #140C0C; /* Background */
}

.page-index__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr; /* Desktop: 4 cards then 2 cards */
  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%;
  max-width: 300px; /* Max width for each product card */
  border-radius: 0; /* No border-radius */
  overflow: hidden;
  background: transparent;
  box-shadow: none; /* No box-shadow */
  transition: transform 0.3s ease;
}

.page-index__product-card:hover {
  transform: translateY(-3px);
}

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

.page-index__product-card-image {
  width: 100%;
  max-width: 300px; /* Max width for image container */
  overflow: hidden;
}

.page-index__product-card-image img {
  max-width: 100%;
  width: 100%;
  height: auto; /* Maintain aspect ratio */
  display: block;
}

/* --- About Section (Module 1) --- */
.page-index__about-section {
  padding: 80px 20px;
  background-color: #2A1212; /* Card BG */
}

.page-index__main-title {
  font-size: 48px;
  font-weight: bold;
  color: #F3C54D; /* Gold */
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-index__description {
  font-size: 19px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #FFF1E8;
}

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

.page-index__feature-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter card background */
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #6A1E1E; /* Border */
}

.page-index__feature-title {
  font-size: 24px;
  color: #FFB04A; /* Button gradient start for title */
  margin-bottom: 15px;
  font-weight: bold;
}

/* --- Quick Access Section (Module 2) --- */
.page-index__quick-access-section {
  padding: 80px 20px;
  background-color: #140C0C; /* Background */
}

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

.page-index__quick-link-card {
  background-color: #2A1212; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-decoration: none;
  color: #FFF1E8;
  text-align: center;
  border: 1px solid #6A1E1E; /* Border */
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-index__quick-link-card:hover {
  transform: translateY(-5px);
  background-color: #7E0D0D; /* Deep Red */
}

.page-index__quick-link-title {
  font-size: 22px;
  color: #F3C54D; /* Gold */
  margin-bottom: 10px;
}

/* --- Games Section (Module 3) --- */
.page-index__games-section {
  padding: 80px 20px;
  background-color: #2A1212; /* Card BG */
}

.page-index__game-category {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-index__game-category:last-child {
  margin-bottom: 0;
}

.page-index__game-category--reverse {
  flex-direction: row-reverse;
}

.page-index__game-content {
  flex: 1;
  padding: 20px 0;
}

.page-index__game-image {
  flex: 1;
  text-align: center;
}

.page-index__game-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #6A1E1E; /* Border */
  display: block;
}

.page-index__game-title {
  font-size: 32px;
  color: #FFB04A; /* Button gradient start for title */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-index__game-content p {
  font-size: 17px;
  margin-bottom: 25px;
  color: #FFF1E8;
}

.page-index__cta-group {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

/* --- Promotions Section (Module 4) --- */
.page-index__promotions-section {
  padding: 80px 20px;
  background-color: #140C0C; /* Background */
}

.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-color: #2A1212; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #6A1E1E; /* Border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-index__promo-title {
  font-size: 22px;
  color: #F3C54D; /* Gold */
  padding: 20px 20px 10px;
  font-weight: bold;
}

.page-index__promo-card p {
  font-size: 16px;
  color: #FFF1E8;
  padding: 0 20px 20px;
}

/* --- Security & Support Section (Module 5) --- */
.page-index__security-support-section {
  padding: 80px 20px;
  background-color: #2A1212; /* Card BG */
}

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

.page-index__info-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter card background */
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid #6A1E1E; /* Border */
}

.page-index__info-card img {
  
  height: auto;
  margin-bottom: 20px;
  display: inline-block;
}

.page-index__info-title {
  font-size: 22px;
  color: #FFB04A; /* Button gradient start for title */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-index__info-card p {
  font-size: 16px;
  color: #FFF1E8;
}

/* --- FAQ Section (Module 6) --- */
.page-index__faq-section {
  padding: 80px 20px;
  background-color: #140C0C; /* Background */
}

.page-index__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #6A1E1E; /* Border */
  overflow: hidden;
  background-color: #2A1212; /* Card BG */
}

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: #F3C54D; /* Gold */
  font-weight: bold;
}

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-color: #7E0D0D; /* Deep Red */
}

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

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFB04A; /* Button gradient start */
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}

details.page-index__faq-item .page-index__faq-answer {
  padding: 0 25px 25px;
  background-color: rgba(255, 255, 255, 0.03); /* Slightly lighter for contrast */
  border-radius: 0 0 10px 10px;
  color: #FFF1E8;
  font-size: 16px;
}

/* --- Blog Section (Module 7) --- */
.page-index__blog-section {
  padding: 80px 20px;
  background-color: #2A1212; /* Card BG */
}

.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: #140C0C; /* Background */
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #6A1E1E; /* Border */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-index__blog-title {
  font-size: 22px;
  margin-bottom: 10px;
  line-height: 1.4;
}

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

.page-index__blog-title a:hover {
  color: #FFB04A; /* Button gradient start */
}

.page-index__blog-meta {
  font-size: 14px;
  color: #FFB04A; /* Button gradient start */
  margin-bottom: 15px;
}

.page-index__blog-excerpt {
  font-size: 16px;
  color: #FFF1E8;
  margin-bottom: 20px;
}

.page-index__read-more {
  display: inline-block;
  color: #FFB04A; /* Button gradient start */
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s ease;
}

.page-index__read-more:hover {
  color: #F3C54D; /* Gold */
}

/* --- General Image styles --- */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Dark Section styling --- */
.page-index__dark-section {
  background-color: #2A1212; /* Card BG */
  color: #FFF1E8;
}


/* --- Responsive Styles (max-width: 1024px) --- */
@media (max-width: 1024px) {
  .page-index__container {
    padding: 30px 15px;
  }

  .page-index__section-title {
    font-size: 32px;
  }

  .page-index__main-title {
    font-size: 40px;
  }

  .page-index__description {
    font-size: 18px;
  }

  /* Products Section */
  .page-index__products-container {
    grid-template-columns: 1fr; /* Stack vertically */
    gap: 15px;
  }

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

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

  .page-index__product-card,
  .page-index__product-card-image {
    max-width: none; /* Allow cards to fill grid space */
  }

  /* Games Section */
  .page-index__game-category {
    flex-direction: column;
    gap: 20px;
  }

  .page-index__game-category--reverse {
    flex-direction: column;
  }

  .page-index__game-title {
    font-size: 28px;
  }

  .page-index__cta-group {
    flex-direction: column;
    gap: 10px;
  }

  /* Promotions & Security */
  .page-index__promotions-grid,
  .page-index__info-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  /* FAQ */
  .page-index__faq-qtext {
    font-size: 17px;
  }

  /* Blog */
  .page-index__blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

/* --- Responsive Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  /* HERO Section */
  .page-index__hero-section {
    padding-top: 10px !important;
  }

  .page-index__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* General containers and images */
  .page-index__container,
  .page-index__about-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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Section Titles */
  .page-index__section-title {
    font-size: 28px;
  }

  .page-index__main-title {
    font-size: 36px;
  }

  .page-index__description {
    font-size: 16px;
  }

  /* CTA Buttons */
  .page-index__cta-buttons {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-index__btn-primary,
  .page-index__btn-secondary,
  .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;
  }

  /* Products Section */
  .page-index__products-section {
    padding: 40px 15px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .page-index__products-container {
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  .page-index__products-grid--small {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-index__products-grid--small .page-index__product-card,
  .page-index__products-grid--small .page-index__product-card-image {
    max-width: 300px; /* Max width for mobile cards */
    margin: 0 auto; /* Center individual cards in grid cell */
  }

  .page-index__products-grid--small .page-index__product-card-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
  }

  .page-index__products-grid--large {
    grid-template-columns: 1fr; /* Each large card on its own row */
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-index__products-grid--large .page-index__product-card,
  .page-index__products-grid--large .page-index__product-card-image {
    max-width: 300px;
    margin: 0 auto;
  }

  .page-index__products-grid--large .page-index__product-card-image img {
    max-width: 100%;
    width: 100%;
    height: auto;
  }

  /* About Section */
  .page-index__about-section {
    padding: 50px 15px;
  }

  .page-index__feature-item {
    padding: 20px;
  }

  .page-index__feature-title {
    font-size: 20px;
  }

  /* Quick Access Section */
  .page-index__quick-access-section {
    padding: 50px 15px;
  }

  .page-index__link-grid {
    grid-template-columns: 1fr;
  }

  .page-index__quick-link-card {
    padding: 25px;
  }

  /* Games Section */
  .page-index__games-section {
    padding: 50px 15px;
  }

  .page-index__game-category {
    gap: 15px;
    margin-bottom: 40px;
  }

  .page-index__game-title {
    font-size: 24px;
  }

  .page-index__game-content p {
    font-size: 15px;
  }

  /* Promotions Section */
  .page-index__promotions-section {
    padding: 50px 15px;
  }

  .page-index__promotions-grid {
    grid-template-columns: 1fr;
  }

  .page-index__promo-title {
    font-size: 20px;
  }

  .page-index__promo-card p {
    font-size: 15px;
  }

  /* Security & Support Section */
  .page-index__security-support-section {
    padding: 50px 15px;
  }

  .page-index__info-grid {
    grid-template-columns: 1fr;
  }

  .page-index__info-title {
    font-size: 20px;
  }

  /* FAQ Section */
  .page-index__faq-section {
    padding: 50px 15px;
  }

  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px;
  }

  .page-index__faq-qtext {
    font-size: 16px;
  }

  .page-index__faq-toggle {
    font-size: 24px;
    margin-left: 10px;
  }

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

  /* Blog Section */
  .page-index__blog-section {
    padding: 50px 15px;
  }

  .page-index__blog-grid {
    grid-template-columns: 1fr;
  }

  .page-index__blog-title {
    font-size: 20px;
  }

  .page-index__blog-excerpt {
    font-size: 15px;
  }
}