/* style/index.css */

/* General page styling */
.page-index {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Main text color for dark background */
  background-color: #B71C1C; /* Main background color */
}

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

.page-index__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #F4D34D; /* Gold for titles */
  text-shadow: 0 0 8px rgba(255, 204, 102, 0.5); /* Subtle glow */
}

.page-index__section-subtitle {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #FFF5E1;
}

/* CTA Button Styling (common for all cta-buttons) */
.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red for button text for contrast */
  text-decoration: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  margin: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 2px solid #F2B544; /* Gold border */
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  background: linear-gradient(180deg, #FFE680 0%, #F0C400 100%);
}

.page-index__btn-primary, .page-index__btn-secondary, .page-index__btn-view-all, .page-index__btn-contact, .page-index__btn-readmore {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  margin: 5px;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E;
  border: 2px solid #F2B544;
}

.page-index__btn-primary:hover {
  background: linear-gradient(180deg, #FFE680 0%, #F0C400 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index__btn-secondary, .page-index__btn-view-all, .page-index__btn-contact, .page-index__btn-readmore {
  background: #C91F17; /* Primary brand color */
  color: #FFF5E1;
  border: 2px solid #F2B544;
}

.page-index__btn-secondary:hover, .page-index__btn-view-all:hover, .page-index__btn-contact:hover, .page-index__btn-readmore:hover {
  background: #E53935; /* Secondary brand color */
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-index__cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  margin-top: 30px;
}

.page-index__cta-buttons--center {
    text-align: center;
}

/* Card Styling */
.page-index__card {
  background-color: #D32F2F; /* Card Background */
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #FFF5E1;
  border: 1px solid #7A0E0E; /* Deep Red border for subtle contrast */
}

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

.page-index__card-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
  display: block; /* Ensure no extra space below image */
}

.page-index__card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #F4D34D; /* Gold for card titles */
}

.page-index__card-text {
  font-size: 15px;
  line-height: 1.5;
  flex-grow: 1; /* Allow text to grow and push button to bottom */
  color: #FFF5E1;
}

.page-index__card-link {
  text-decoration: none;
  color: inherit;
}

.page-index__card-link:hover .page-index__card-title {
  color: #FFD86A; /* Lighter gold on hover */
}

/* 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: #7A0E0E; /* Deep Red background for hero */
}

.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;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

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

.page-index__main-title {
  font-size: 48px;
  font-weight: 900;
  color: #F4D34D; /* Gold */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 15px #FFCC66; /* Glow */
}

.page-index__hero-description {
  font-size: 20px;
  color: #FFF5E1;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Module 1: Introduction */
.page-index__introduction-section {
  padding: 80px 20px;
  background-color: #B71C1C; /* Main background color */
}

.page-index__text-block {
  font-size: 16px;
  margin-bottom: 25px;
  text-align: justify;
  color: #FFF5E1;
}

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

.page-index__feature-item {
  text-align: center;
  padding: 30px;
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  border: 1px solid #7A0E0E;
}

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

.page-index__feature-item img {
  
  
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%; /* Circle images */
  border: 3px solid #F2B544; /* Gold border */
}

.page-index__feature-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F4D34D; /* Gold */
}

/* Module 2: Quick Access Links */
.page-index__quick-access-section {
  padding: 80px 20px;
  background-color: #C91F17; /* Primary brand color */
}

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

.page-index__access-link {
  display: block;
  padding: 25px;
  text-align: center;
  text-decoration: none;
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF5E1;
  border: 1px solid #7A0E0E;
}

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

.page-index__link-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #F4D34D; /* Gold */
}

/* Module 3: Core Games/Services */
.page-index__games-section {
  padding: 80px 20px;
  background-color: #B71C1C; /* Main background color */
}

.page-index__game-category {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 70px;
  background-color: #D32F2F; /* Card BG */
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #7A0E0E;
}

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

.page-index__game-image {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.page-index__game-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.page-index__game-content {
  flex: 1.5;
  color: #FFF5E1;
}

.page-index__game-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F4D34D; /* Gold */
}

/* Module 4: Promotions */
.page-index__promotions-section {
  padding: 80px 20px;
  background-color: #C91F17; /* Primary brand color */
}

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

.page-index__promotion-card {
  padding: 0; /* Remove default padding as image is full width */
  overflow: hidden;
  text-align: center;
}

.page-index__promotion-card .page-index__card-image {
  margin-bottom: 0; /* No margin below image */
  border-radius: 10px 10px 0 0; /* Round top corners */
}

.page-index__promotion-card .page-index__card-content {
  padding: 20px;
}

/* Module 5: Security and Support */
.page-index__security-support-section {
  padding: 80px 20px;
  background-color: #B71C1C; /* Main background color */
}

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

.page-index__security-item {
  text-align: center;
  padding: 30px;
}

.page-index__security-item img {
  
  
  object-fit: contain;
  margin-bottom: 15px;
  border-radius: 50%;
  border: 2px solid #F2B544;
}

.page-index__item-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #F4D34D;
}

/* Module 6: FAQ */
.page-index__faq-section {
  padding: 80px 20px;
  background-color: #E53935; /* Secondary brand color */
}

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

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  background: #D32F2F; /* Card BG */
  border: 1px solid #7A0E0E;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
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: #F4D34D; /* Gold for question text */
  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: #C91F17; /* Primary brand color on hover */
}
.page-index__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}
.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F4D34D; /* Gold toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-index__faq-item .page-index__faq-answer {
  padding: 0 25px 25px;
  background: #C91F17; /* Primary brand color for answer background */
  border-radius: 0 0 10px 10px;
  color: #FFF5E1;
  font-size: 16px;
}
details.page-index__faq-item .page-index__faq-answer p {
    margin: 0;
}

/* Module 7: Latest Blog Content */
.page-index__blog-section {
  padding: 80px 20px;
  background-color: #B71C1C; /* Main background color */
}

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

.page-index__blog-card {
  padding: 0;
  overflow: hidden;
}

.page-index__blog-card .page-index__card-image {
  margin-bottom: 0;
  border-radius: 10px 10px 0 0;
}

.page-index__blog-card .page-index__card-content {
  padding: 20px;
  text-align: left;
}

.page-index__card-meta {
  font-size: 14px;
  color: #FFD86A; /* Lighter gold for meta info */
  margin-bottom: 10px;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__main-title {
    font-size: 40px;
  }
  .page-index__hero-description {
    font-size: 18px;
  }
  .page-index__game-category {
    flex-direction: column;
    text-align: center;
  }
  .page-index__game-category--reverse {
    flex-direction: column;
  }
  .page-index__game-content {
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .page-index__container {
    padding: 20px 15px;
  }
  .page-index__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-index__section-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-index__hero-section {
    padding-top: 10px !important; /* body handles header offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__main-title {
    font-size: 32px;
  }
  .page-index__hero-description {
    font-size: 16px;
  }
  .page-index__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    margin: 8px;
  }
  .page-index__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    align-items: center;
  }
  .page-index__cta-button,
  .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__cta-buttons,
  .page-index__button-group,
  .page-index__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-index__features-grid,
  .page-index__access-links-grid,
  .page-index__promotions-grid,
  .page-index__security-grid,
  .page-index__blog-grid {
    grid-template-columns: 1fr;
  }
  .page-index__game-category {
    padding: 20px;
  }
  .page-index__game-title {
    font-size: 24px;
  }
  .page-index__feature-item,
  .page-index__access-link,
  .page-index__promotion-card,
  .page-index__security-item,
  .page-index__blog-card {
    padding: 20px;
  }
  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-index__faq-qtext {
    font-size: 16px;
  }
  .page-index__faq-toggle {
    font-size: 24px;
    width: 24px;
  }
  details.page-index__faq-item .page-index__faq-answer {
    padding: 0 20px 20px;
    font-size: 15px;
  }

  /* Images responsive */
  .page-index img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  .page-index__section,
  .page-index__card,
  .page-index__container,
  .page-index__hero-image,
  .page-index__game-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-index__hero-image img,
  .page-index__game-image img,
  .page-index__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}