/* style/index.css */

:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  --card-bg: #FFFFFF;
  --background-color: #F4F7FB;
  --text-main-color: #1F2D3D;
  --text-black-color: #000000;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
}

.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Default text color for light background */
  background-color: var(--background-color); /* Default background color */
}

/* HERO Section */
.page-index__hero-section {
  position: relative;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 10px; /* Shared body padding-top handles header offset */
  margin-top: 0;
  width: 100%;
  overflow: hidden;
}

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

.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: var(--background-color);
  box-sizing: border-box;
}

.page-index__products-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 2fr; /* 4 small cards, 2 large 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 rounded corners */
  overflow: hidden;
  background: transparent;
  box-shadow: none; /* No 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;
  overflow: hidden;
}

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

/* General Content Container */
.page-index__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-index__section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main-color);
}

.page-index__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main-color);
}

/* Introduction Section */
.page-index__introduction-section {
  padding: 80px 0;
  background-color: var(--card-bg);
}

.page-index__main-title {
  font-size: clamp(28px, 3.5vw, 40px); /* Use clamp for H1 */
  font-weight: 800;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-black-color);
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__description-text {
  font-size: 18px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 60px;
  color: var(--text-main-color);
}

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

.page-index__intro-card {
  background-color: var(--background-color);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-index__intro-card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-color);
}

/* Quick Links Section */
.page-index__quick-links-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: #ffffff;
  text-align: center;
}

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

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

.page-index__btn-primary,
.page-index__btn-secondary,
.page-index a[class*="btn"] {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-index__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-index__btn-secondary {
  background: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-index__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Games Section */
.page-index__games-section {
  padding: 80px 0;
  background-color: var(--background-color);
}

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

.page-index__game-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  text-align: center;
}

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

.page-index__game-card-title {
  font-size: 20px;
  font-weight: 700;
  margin: 20px 15px 10px;
  color: var(--text-main-color);
}

.page-index__game-card p {
  padding: 0 15px 20px;
  flex-grow: 1;
  color: var(--text-main-color);
}

.page-index__btn-text-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  padding-bottom: 20px;
  display: block;
}

.page-index__btn-text-link:hover {
  text-decoration: underline;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: #ffffff;
}

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

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

.page-index__promo-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: var(--text-main-color);
}

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

.page-index__promo-card-title {
  font-size: 20px;
  font-weight: 700;
  margin: 20px 15px 10px;
  color: var(--text-main-color);
}

.page-index__promo-card p {
  padding: 0 15px 20px;
}

.page-index__promo-card .page-index__btn-primary {
  margin-bottom: 20px;
}

.page-index__view-all-promos {
  text-align: center;
}

/* Security Section */
.page-index__security-section {
  padding: 80px 0;
  background-color: var(--background-color);
}

.page-index__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-index__security-item {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-index__security-item img {
  
  
  margin-bottom: 20px;
  display: inline-block;
  object-fit: contain;
}

.page-index__security-item-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary-color);
}

/* FAQ Section */
.page-index__faq-section {
  padding: 80px 0;
  background-color: var(--primary-color);
  color: #ffffff;
}

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

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

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  color: var(--text-main-color);
}

details.page-index__faq-item summary.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  font-size: 18px;
  font-weight: 600;
}

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: var(--background-color);
}

.page-index__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}

.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-index__faq-item .page-index__faq-answer {
  padding: 0 20px 20px;
  background: var(--background-color);
  border-radius: 0 0 8px 8px;
}

details.page-index__faq-item .page-index__faq-answer p {
  margin: 0;
  color: var(--text-main-color);
}

/* Blog Section */
.page-index__blog-section {
  padding: 80px 0;
  background-color: var(--background-color);
}

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

.page-index__blog-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

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

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

.page-index__blog-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-index__blog-card-title a {
  color: var(--text-main-color);
  text-decoration: none;
}

.page-index__blog-card-title a:hover {
  color: var(--primary-color);
}

.page-index__blog-meta {
  font-size: 14px;
  color: #777;
  margin-bottom: 15px;
}

.page-index__blog-card p {
  margin-bottom: 20px;
  color: var(--text-main-color);
}

.page-index__read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
}

.page-index__read-more:hover {
  text-decoration: underline;
}

.page-index__view-all-posts {
  text-align: center;
}

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

/* Responsive Styles */

@media (max-width: 1024px) {
  .page-index__products-container {
    grid-template-columns: 1fr; /* Stack two grids vertically */
  }
  .page-index__products-grid--small {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-index__products-grid--large {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-index__container {
    padding: 0 15px;
  }
  .page-index__section-title {
    font-size: 28px;
  }
  .page-index__section-description {
    font-size: 16px;
  }
  .page-index__main-title {
    font-size: clamp(24px, 4vw, 36px);
  }
  .page-index__description-text {
    font-size: 16px;
  }
  .page-index__game-card img {
    height: 200px;
  }
  .page-index__promo-card img {
    
  }
  .page-index__blog-card img {
    
  }
}

@media (max-width: 768px) {
  /* HERO Main Image Section */
  .page-index__hero-section {
    padding-top: 10px !important; /* Shared body padding-top handles header offset */
    padding-left: 0;
    padding-right: 0;
    margin-top: 0;
  }
  .page-index__hero-image img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }

  /* Products Showcase 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: 100%; /* Adjust to fit 2 columns */
  }
  .page-index__products-grid--small .page-index__product-card-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__products-grid--large {
    grid-template-columns: 1fr;
    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: 100%; /* Each takes full width */
  }
  .page-index__products-grid--large .page-index__product-card-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* General Images and Containers */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__introduction-section,
  .page-index__quick-links-section,
  .page-index__games-section,
  .page-index__promotions-section,
  .page-index__security-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;
  }

  /* Buttons and Button Containers */
  .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;
  }
  .page-index__button-group,
  .page-index__cta-buttons,
  .page-index__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0px; /* Handled by section padding */
    padding-right: 0px; /* Handled by section padding */
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
  }

  /* Other Content Modules */
  .page-index__introduction-section,
  .page-index__games-section,
  .page-index__promotions-section,
  .page-index__security-section,
  .page-index__blog-section {
    padding: 40px 0;
  }
  .page-index__section-title {
    font-size: 24px;
  }
  .page-index__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-index__main-title {
    font-size: clamp(22px, 5vw, 30px);
  }
  .page-index__description-text {
    font-size: 15px;
    margin-bottom: 40px;
  }
  .page-index__intro-grid,
  .page-index__game-categories,
  .page-index__promo-grid,
  .page-index__security-grid,
  .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index__intro-card,
  .page-index__game-card,
  .page-index__promo-card,
  .page-index__security-item,
  .page-index__blog-card {
    padding: 20px;
  }
  .page-index__intro-card-title,
  .page-index__game-card-title,
  .page-index__promo-card-title,
  .page-index__security-item-title,
  .page-index__blog-card-title {
    font-size: 18px;
  }
  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px;
    font-size: 16px;
  }
  .page-index__faq-qtext {
    font-size: 16px;
  }
  .page-index__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 15px 15px;
  }
  .page-index__blog-meta {
    font-size: 13px;
  }
}