/* style/index.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --register-button-bg: #C30808;
  --login-button-bg: #C30808;
  --register-login-font: #FFFF00;
}

.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--secondary-color); /* Body background is white, so default text is dark */
}

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

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

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

.page-index__section-text {
  font-size: 18px;
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index__section-text--white {
  color: var(--text-color-light);
}

.page-index__text-link {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
}

.page-index__text-link--yellow {
  color: var(--register-login-font);
}

.page-index__card-title {
  font-size: 22px;
  font-weight: bold;
  margin-top: 15px;
  margin-bottom: 10px;
  color: var(--primary-color);
  text-align: center;
}

.page-index__card-title--white {
  color: var(--text-color-light);
}

.page-index__card-text--white {
  color: var(--text-color-light);
}

/* Buttons */
.page-index__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary:hover {
  background: #005a2d;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-index__btn-register {
  background: var(--register-button-bg);
  color: var(--register-login-font);
}

.page-index__btn-register:hover {
  background: #a30606;
}

.page-index__btn-login {
  background: var(--login-button-bg);
  color: var(--register-login-font);
}

.page-index__btn-login:hover {
  background: #a30606;
}

.page-index__btn-small {
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
}

.page-index__btn-full {
  width: 100%;
  max-width: 300px;
  margin: 30px auto 0;
  display: block;
}

/* 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); /* Ensure header offset is applied */
  background: linear-gradient(135deg, var(--primary-color), #3498db); /* Placeholder gradient */
  color: var(--text-color-light);
}

.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;
}

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

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

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

.page-index__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  color: var(--text-color-light);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.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;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Module 1: Homepage Introduction */
.page-index__intro-section {
  padding: 80px 0;
}

/* Module 2: Quick Access Links */
.page-index__quick-access-section {
  background-color: var(--primary-color);
  padding: 80px 0;
  color: var(--text-color-light);
}

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

.page-index__quick-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--secondary-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  text-decoration: none;
  color: var(--text-color-dark);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-index__quick-link-card img {
  width: 100%;
  max-width: 250px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
}

.page-index__quick-link-card h3 {
  color: var(--primary-color);
  font-size: 20px;
  margin-bottom: 10px;
}

.page-index__quick-link-card p {
  font-size: 16px;
  color: var(--text-color-dark);
  margin: 0;
}

.page-index__alternate-link-text {
  font-size: 16px;
  color: var(--text-color-light);
}

/* Module 3: Core Games/Services */
.page-index__games-section {
  padding: 80px 0;
}

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

.page-index__game-card {
  background-color: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-index__game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-index__game-card h3 {
  color: var(--primary-color);
  font-size: 22px;
  margin-bottom: 10px;
}

.page-index__game-card p {
  font-size: 16px;
  color: var(--text-color-dark);
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-index__game-card .page-index__btn-primary {
  margin-top: auto;
}

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

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

.page-index__promo-card {
  background-color: #005a2d; /* Slightly darker green for contrast */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-index__promo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

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

.page-index__promo-card p {
  color: var(--text-color-light);
  font-size: 16px;
  flex-grow: 1;
  margin-bottom: 20px;
}

/* Module 5: Security & Customer Service */
.page-index__security-support-section {
  padding: 80px 0;
}

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

.page-index__security-item {
  background-color: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-index__security-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-index__security-item h3 {
  color: var(--primary-color);
  font-size: 22px;
  margin-bottom: 10px;
}

.page-index__security-item p {
  color: var(--text-color-dark);
  font-size: 16px;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-index__responsible-gaming {
  margin-top: 40px;
  font-size: 16px;
  text-align: center;
}

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

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

.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, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: var(--text-color-dark);
}

.page-index__faq-item.active .page-index__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: var(--secondary-color);
  border-radius: 0 0 5px 5px;
}
}