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

.page-index {
  font-family: 'Arial', sans-serif;
  color: var(--text-dark);
  background-color: var(--background-color);
  line-height: 1.6;
}

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

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

.page-index__text-block {
  font-size: 16px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
}

.page-index__btn-primary,
.page-index__btn-secondary,
.page-index__cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary,
.page-index__cta-button.page-index__btn-primary {
  background: var(--register-button-color); /* Using custom color for primary actions */
  color: var(--register-login-font-color); /* Using custom font color */
}

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

.page-index__btn-secondary,
.page-index__cta-button.page-index__btn-secondary {
  background: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

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

.page-index__view-all-button {
  margin-top: 40px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* --- 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 below fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, #000000 100%); /* Dark gradient for hero */
  color: var(--text-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: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-index__main-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--register-login-font-color); /* Using custom font color for main title */
}

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

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


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

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

.page-index__feature-item {
  text-align: center;
  padding: 25px;
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-index__feature-item img {
  
  
  object-fit: contain;
  margin-bottom: 20px;
  filter: none; /* Ensure no CSS filter changes image color */
}

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

.page-index__feature-item p {
  font-size: 15px;
  color: #555555;
}

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

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

.page-index__quick-access-section .page-index__text-block {
  color: rgba(255, 255, 255, 0.9);
}

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

.page-index__quick-link-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: var(--text-light);
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-index__quick-link-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.page-index__quick-link-item img {
  
  
  object-fit: contain;
  margin-bottom: 15px;
  filter: none; /* Ensure no CSS filter changes image color */
}

.page-index__quick-link-item span {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

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

.page-index__game-tabs {
  margin-top: 40px;
}

.page-index__tab-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--border-color);
}

.page-index__tab-button {
  background: none;
  border: none;
  padding: 15px 25px;
  font-size: 18px;
  font-weight: 600;
  color: #777777;
  cursor: pointer;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  border-bottom: 3px solid transparent;
}

.page-index__tab-button.active {
  color: var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
}

.page-index__tab-content {
  margin-top: 30px;
}

.page-index__tab-pane {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.page-index__tab-pane.active {
  display: block;
}

.page-index__tab-title {
  font-size: 28px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
}

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

.page-index__game-card {
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

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

.page-index__game-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: none; /* Ensure no CSS filter changes image color */
}

.page-index__game-card h4 {
  font-size: 20px;
  color: var(--primary-color);
  margin: 20px 15px 10px 15px;
  line-height: 1.4;
}

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

.page-index__game-card h4 a:hover {
  text-decoration: underline;
}

.page-index__game-card p {
  font-size: 15px;
  color: #555555;
  padding: 0 15px 20px 15px;
}

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

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

.page-index__promotions-section .page-index__text-block {
  color: rgba(255, 255, 255, 0.9);
}

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

.page-index__promotion-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-index__promotion-card img {
  width: 100%;
  
  object-fit: cover;
  filter: none; /* Ensure no CSS filter changes image color */
}

.page-index__promotion-card h3 {
  font-size: 22px;
  color: var(--text-light);
  margin: 20px 15px 10px 15px;
  line-height: 1.4;
}

.page-index__promotion-card h3 a {
  color: var(--text-light);
  text-decoration: none;
}

.page-index__promotion-card h3 a:hover {
  text-decoration: underline;
}

.page-index__promotion-card p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  padding: 0 15px 20px 15px;
}

.page-index__promotion-card .page-index__btn-secondary {
  background: var(--text-light);
  color: var(--primary-color);
  border: 2px solid var(--text-light);
  margin-bottom: 20px;
}

.page-index__promotion-card .page-index__btn-secondary:hover {
  background: #f0f0f0;
  color: var(--primary-color);
}

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

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

.page-index__security-support-item {
  text-align: center;
  padding: 30px;
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
}

.page-index__security-support-item img {
  
  
  object-fit: contain;
  margin-bottom: 20px;
  filter: none; /* Ensure no CSS filter changes image color */
}

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

.page-index__security-support-item p {
  font-size: 15px;
  color: #555555;
}

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

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

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

.page-index__faq-section .page-index__text-block {
  color: rgba(255, 255, 255, 0.9);
}

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

.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.page-index__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  position: relative;
}

.page-index__faq-question:hover {
  background: rgba(255, 255, 255, 0.25);
}

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

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