/* style/index.css */

:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --card-bg: #FFFFFF;
  --page-bg: #F4F7FB;
  --text-main: #1F2D3D;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
}

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

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

.page-index__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-index__section-description {
  font-size: 18px;
  color: var(--text-main);
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-index__cta-button:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* 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: 10px; /* Small top padding, body handles header offset */
  background-color: var(--page-bg);
}

.page-index__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.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: 12px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-index__hero-content h1 {
  font-size: clamp(28px, 4vw, 48px); /* Responsive H1 font size */
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.page-index__hero-content p {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-main);
  max-width: 800px;
  margin: 0 auto 20px;
}

/* Module 1: Intro Section */
.page-index__intro-section {
  padding: 80px 0;
  background-color: var(--card-bg);
}

/* Module 2: Quick Access Section */
.page-index__quick-access-section {
  padding: 60px 0;
  background-color: var(--page-bg);
}

.page-index__access-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 40px auto 0;
}

.page-index__access-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 25px;
  border-radius: 8px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
}

.page-index__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.page-index__btn-secondary:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

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

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

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

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

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

.page-index__game-text {
  font-size: 16px;
  color: var(--text-main);
  padding: 0 20px;
  margin-bottom: 20px;
}

.page-index__game-link {
  display: inline-block;
  background-color: var(--secondary-color);
  color: #ffffff;
  padding: 10px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-index__game-link:hover {
  background-color: var(--primary-color);
}

/* Module 4: Promotions Section */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: var(--page-bg);
}

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

.page-index__promo-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-index__promo-text {
  font-size: 16px;
  color: var(--text-main);
  padding: 0 20px;
  margin-bottom: 20px;
}

.page-index__promo-link {
  display: inline-block;
  background-color: var(--primary-color);
  color: #ffffff;
  padding: 10px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  margin: 0 20px 20px;
  transition: background-color 0.3s ease;
}

.page-index__promo-link:hover {
  background-color: var(--secondary-color);
}

.page-index__view-all-promos {
  text-align: center;
  margin-top: 50px;
}

/* Module 5: Security & Customer Service */
.page-index__security-section {
  padding: 80px 0;
  background-color: var(--card-bg);
}

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

.page-index__feature-item {
  text-align: center;
  padding: 30px 20px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

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

.page-index__feature-text {
  font-size: 16px;
  color: var(--text-main);
}

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

/* Module 6: FAQ Section */
.page-index__faq-section {
  padding: 80px 0;
  background-color: var(--page-bg);
}

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

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

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: #f5f5f5;
}

.page-index__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
  color: var(--primary-color);
}

.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: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: var(--text-main);
  font-size: 16px;
}

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

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

.page-index__blog-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-index__blog-title {
  font-size: 20px;
  font-weight: 700;
  margin: 15px 20px 5px;
  line-height: 1.4;
}

.page-index__blog-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-index__blog-meta {
  font-size: 14px;
  color: #888;
  margin: 0 20px 10px;
}

.page-index__blog-summary {
  font-size: 16px;
  color: var(--text-main);
  padding: 0 20px;
  margin-bottom: 20px;
}

.page-index__read-more {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  margin: 0 20px 20px;
  transition: color 0.3s ease;
}

.page-index__read-more:hover {
  color: var(--secondary-color);
}

.page-index__view-all-posts {
  text-align: center;
  margin-top: 50px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-index__section-title {
    font-size: 32px;
  }
  .page-index__section-description {
    font-size: 17px;
  }
  .page-index__hero-content h1 {
    font-size: clamp(26px, 3.5vw, 40px);
  }
  .page-index__hero-content p {
    font-size: clamp(15px, 1.8vw, 18px);
  }
  .page-index__access-links {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-index__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-index__hero-image img {
    border-radius: 8px;
  }

  .page-index__hero-content h1 {
    font-size: clamp(24px, 6vw, 36px);
    margin-bottom: 10px;
  }

  .page-index__hero-content p {
    font-size: clamp(14px, 3.5vw, 16px);
    margin-bottom: 15px;
  }

  .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;
    margin-top: 20px;
  }

  .page-index__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-index__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-index__intro-section, .page-index__games-section, .page-index__promotions-section, .page-index__security-section, .page-index__faq-section, .page-index__blog-section {
    padding: 50px 0;
  }

  .page-index__access-links {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-index__access-button {
    font-size: 16px;
    padding: 15px 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-index__games-grid, .page-index__promo-cards, .page-index__security-features, .page-index__blog-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index__game-title, .page-index__promo-title, .page-index__feature-title, .page-index__blog-title {
    font-size: 20px;
    margin-left: 15px;
    margin-right: 15px;
  }

  .page-index__game-text, .page-index__promo-text, .page-index__feature-text, .page-index__blog-summary {
    font-size: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  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: 22px;
  }
  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 15px 15px;
    font-size: 15px;
  }

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

@media (max-width: 480px) {
  .page-index__section-title {
    font-size: 24px;
  }
  .page-index__hero-content h1 {
    font-size: clamp(22px, 7vw, 30px);
  }
  .page-index__hero-content p {
    font-size: clamp(14px, 4vw, 15px);
  }
  .page-index__cta-button {
    font-size: 15px;
    padding: 10px 25px;
  }
}