/* style/index.css */

:root {
  --primary-color: #0A2463;
  --secondary-color: #E34234;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #f4f4f4;
  --bg-dark: #0A2463;
  --border-color: #e0e0e0;
}

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

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

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

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

.page-index__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__cta-button--primary {
  background: var(--primary-color);
  color: var(--text-light);
}

.page-index__cta-button--primary:hover {
  background: #071a47;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button--secondary {
  background: var(--secondary-color);
  color: var(--text-light);
}

.page-index__cta-button--secondary:hover {
  background: #c7372b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__cta-button--center {
  display: block;
  margin: 40px auto 0 auto;
  width: fit-content;
}

.page-index__cta-button--small {
  padding: 10px 20px;
  font-size: 16px;
  margin-top: 15px;
  margin-right: 10px;
}

/* 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: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background: linear-gradient(135deg, var(--primary-color), #1a3e7a);
  overflow: hidden;
}

.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: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  color: var(--text-light);
}

.page-index__hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
  color: var(--text-light);
}

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

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

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

.page-index__intro-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-index__intro-content {
  flex: 1;
}

.page-index__intro-content p {
  margin-bottom: 15px;
  color: var(--text-dark);
}

.page-index__intro-features {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-index__intro-features li {
  margin-bottom: 10px;
  font-size: 17px;
  display: flex;
  align-items: flex-start;
}

.page-index__intro-features li::before {
  content: '✓';
  color: var(--secondary-color);
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2em;
  line-height: 1;
}

.page-index__feature-highlight {
  color: var(--primary-color);
}

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

.page-index__intro-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

/* Quick Access Section */
.page-index__quick-access-section {
  padding: 80px 0;
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-index__quick-access-section .page-index__section-title {
  color: var(--text-light);
}

.page-index__quick-access-section .page-index__section-description {
  color: #f0f0f0;
}

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

.page-index__quick-access-card {
  background: #1a3e7a;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  color: var(--text-light);
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-index__quick-access-card:hover {
  transform: translateY(-5px);
  background-color: #2a5298;
}

.page-index__quick-access-card img {
  
  
  object-fit: contain;
  margin-bottom: 20px;
  min- /* Enforce minimum size for icons/small images */
  min-
}

.page-index__quick-access-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--text-light);
}

.page-index__quick-access-card p {
  font-size: 16px;
  color: #f0f0f0;
}

.page-index__quick-access-buttons {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

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

.page-index__game-category {
  margin-bottom: 60px;
}

.page-index__game-title {
  font-size: 32px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

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

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

.page-index__game-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

.page-index__game-text {
  flex: 1;
}

.page-index__game-text p {
  margin-bottom: 20px;
  color: var(--text-dark);
}

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

.page-index__promotions-section .page-index__section-title {
  color: var(--text-light);
}

.page-index__promotions-section .page-index__section-description {
  color: #f0f0f0;
}

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

.page-index__promotion-card {
  background: #1a3e7a;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: var(--text-light);
  transition: transform 0.3s ease;
}

.page-index__promotion-card:hover {
  transform: translateY(-5px);
}

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

.page-index__promotion-card .page-index__promotion-title {
  font-size: 22px;
  margin: 20px 20px 10px 20px;
  color: var(--text-light);
}

.page-index__promotion-card .page-index__promotion-description {
  font-size: 16px;
  margin: 0 20px 20px 20px;
  color: #f0f0f0;
}

/* Safety Section */
.page-index__safety-section {
  padding: 80px 0;
  background-color: var(--bg-light);
}

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

.page-index__safety-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.page-index__safety-item img {
  
  
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum size for content images */
  min-height: 200px;
}

.page-index__safety-item .page-index__safety-title {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-index__safety-item p {
  font-size: 16px;
  color: var(--text-dark);
}

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

.page-index__faq-section .page-index__section-title {
  color: var(--text-light);
}

.page-index__faq-section .page-index__section-description {
  color: #f0f0f0;
}

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

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

.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;
  padding: 0 15px;
  opacity: 0;
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important; /* 🚨 Use !important and sufficiently large value */
  padding: 20px 15px !important;
  opacity: 1;
  background: #1a3e7a; /* Darker background for answer */
  border-radius: 0 0 5px 5px;
  color: #f0f0f0;
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #2a5298; /* Lighter dark background for question */
  border: 1px solid #0A2463;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-index__faq-question:hover {
  background: #3a63b0;
  border-color: #071a47;
}

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

.page-index__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-light);
}

.page-index__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--text-light);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-index__faq-item.active .page-index__faq-toggle {
  color: var(--secondary-color);
  transform: rotate(45deg); /* Optional: rotate for '+' to 'x' effect */
}

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

.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: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.page-index__blog-card:hover {
  transform: translateY(-5px);
}

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

.page-index__blog-card .page-index__blog-title {
  font-size: 22px;
  margin: 20px 20px 10px 20px;
}

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

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

.page-index__blog-card .page-index__blog-summary {
  font-size: 16px;
  margin: 0 20px 15px 20px;
  color: #666;
}

.page-index__blog-card .page-index__blog-date {
  display: block;
  font-size: 14px;
  color: #999;
  margin: 0 20px 20px 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-title {
    font-size: 40px;
  }
  .page-index__hero-description {
    font-size: 18px;
  }
  .page-index__section-title {
    font-size: 30px;
  }
  .page-index__intro-grid {
    flex-direction: column;
  }
  .page-index__game-content {
    flex-direction: column;
  }
  .page-index__game-category--reverse .page-index__game-content {
    flex-direction: column;
  }
  .page-index__game-image {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-index__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific padding-top */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__hero-title {
    font-size: 32px;
  }
  .page-index__hero-description {
    font-size: 16px;
  }
  .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;
  }
  .page-index__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-index__section-title {
    font-size: 26px;
  }
  .page-index__section-description {
    font-size: 15px;
  }
  .page-index__intro-features li {
    font-size: 15px;
  }
  .page-index__quick-access-grid, .page-index__promotions-grid, .page-index__safety-grid, .page-index__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index__quick-access-card, .page-index__promotion-card, .page-index__safety-item, .page-index__blog-card {
    padding: 20px;
  }
  .page-index__quick-access-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__game-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px;
    min-height: 200px;
  }
  .page-index__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-index__faq-question h3 {
    font-size: 15px;
    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;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 28px;
  }
  .page-index__section-title {
    font-size: 24px;
  }
  .page-index__game-title {
    font-size: 28px;
  }
}