/* style/index.css */

:root {
  --primary-color: #017439;
  --secondary-color: #005f2e;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-dark: #017439;
  --btn-register-bg: #C30808;
  --btn-login-bg: #C30808;
  --btn-register-text: #FFFF00;
  --btn-login-text: #FFFF00;
  --border-color: #e0e0e0;
}

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

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

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

.page-index__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 50px;
  color: var(--text-dark);
  max-width: 800px;
  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: 10px; /* Small top padding, body handles header offset */
  background-color: var(--bg-dark);
  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;
  width: 100%; /* Ensure full width on desktop */
}

.page-index__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
}

.page-index__hero-image img {
  width: 1200px; /* Display width */
  height: 675px; /* Display height (16:9 for 1200px) */
  max-width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}

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

.page-index__hero-content h1 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
}

.page-index__hero-content p {
  font-size: 1.25rem;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
}

.page-index__cta-group {
  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: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-register {
  background: var(--btn-register-bg);
  color: var(--btn-register-text);
  border: 2px solid var(--btn-register-bg);
}

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

.page-index__btn-login {
  background: var(--btn-login-bg);
  color: var(--btn-login-text);
  border: 2px solid var(--btn-login-bg);
}

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

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

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

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

.page-index__intro-content p {
  margin-bottom: 20px;
  font-size: 17px;
}

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

.page-index__intro-image img {
  width: 800px; /* Display width */
  height: 600px; /* Display height */
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-index__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

.page-index__quick-link-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  color: var(--text-light);
  transition: transform 0.3s ease, background-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-index__quick-link-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-index__quick-link-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--btn-register-text);
}

.page-index__quick-link-card p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

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

.page-index__game-category {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-index__game-category:last-child {
  margin-bottom: 0;
}

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

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

.page-index__game-content h3 {
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.page-index__game-content p {
  font-size: 17px;
  margin-bottom: 25px;
}

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

.page-index__game-image img {
  width: 600px; /* Display width */
  height: 400px; /* Display height */
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-index__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--bg-light);
  color: var(--primary-color);
  text-decoration: none;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  font-weight: bold;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

/* 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,
.page-index__promotions-section .page-index__section-description {
  color: var(--text-light);
}

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

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

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

.page-index__promotion-card img {
  width: 800px; /* Display width */
  height: 450px; /* Display height */
  max-width: 100%;
  height: auto;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-index__promotion-card h3 {
  font-size: 22px;
  margin: 25px 20px 15px;
  color: var(--btn-register-text);
}

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

.page-index__btn-tertiary {
  display: inline-block;
  padding: 10px 20px;
  background-color: transparent;
  color: var(--btn-register-text);
  text-decoration: none;
  border: 2px solid var(--btn-register-text);
  border-radius: 8px;
  font-weight: bold;
  margin-bottom: 25px;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-tertiary:hover {
  background-color: var(--btn-register-text);
  color: var(--bg-dark);
}

.page-index__cta-center {
  text-align: center;
  margin-top: 30px;
}

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

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

.page-index__security-item {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-index__security-item:hover {
  transform: translateY(-5px);
}

.page-index__security-item img {
  width: 600px; /* Display width */
  height: 400px; /* Display height */
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}

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

.page-index__security-item p {
  font-size: 16px;
  margin-bottom: 20px;
}

/* 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,
.page-index__faq-section .page-index__section-description {
  color: var(--text-light);
}

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

details.page-index__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

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

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: rgba(255, 255, 255, 0.1);
}

.page-index__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--btn-register-text);
}

.page-index__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--btn-register-text);
  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: rgba(0, 0, 0, 0.2);
  border-radius: 0 0 12px 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
}

.page-index__faq-answer p {
  margin-bottom: 15px;
}

.page-index__faq-answer p:last-child {
  margin-bottom: 0;
}

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

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

.page-index__blog-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.page-index__blog-card img {
  width: 800px; /* Display width */
  height: 450px; /* Display height */
  max-width: 100%;
  height: auto;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-index__blog-content {
  padding: 25px;
}

.page-index__blog-content h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

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

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

.page-index__blog-content p {
  font-size: 16px;
  color: #555555;
  margin-bottom: 15px;
}

.page-index__blog-date {
  font-size: 14px;
  color: #888888;
  display: block;
  margin-bottom: 15px;
}

.page-index__btn-link {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index__hero-section h1 {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-index__section-title {
    font-size: 32px;
  }
  .page-index__intro-grid,
  .page-index__game-category {
    flex-direction: column;
    text-align: center;
  }
  .page-index__game-category--reverse {
    flex-direction: column;
  }
  .page-index__intro-image,
  .page-index__game-image {
    order: -1; /* Image above content on smaller screens */
    margin-bottom: 30px;
  }
  .page-index__intro-content,
  .page-index__game-content {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-index__container {
    padding: 0 15px; /* Add padding to container on mobile */
  }
  .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;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index__hero-content h1 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-index__hero-content p {
    font-size: 1rem;
  }
  .page-index__cta-group {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }
  .page-index__cta-button,
  .page-index__btn-primary,
  .page-index__btn-secondary,
  .page-index__btn-tertiary,
  .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__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-index__section-description {
    font-size: 16px;
    margin-bottom: 40px;
  }
  .page-index__intro-section,
  .page-index__quick-links-section,
  .page-index__games-section,
  .page-index__promotions-section,
  .page-index__security-support-section,
  .page-index__faq-section,
  .page-index__blog-section {
    padding: 50px 0;
  }
  .page-index__quick-link-card,
  .page-index__promotion-card,
  .page-index__security-item,
  .page-index__blog-card {
    padding: 20px;
    border-radius: 8px;
  }
  .page-index__intro-image img,
  .page-index__game-image img,
  .page-index__promotion-card img,
  .page-index__security-item img,
  .page-index__blog-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 8px;
  }
  details.page-index__faq-item summary.page-index__faq-question {
    padding: 15px;
  }
  .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 15px 15px;
  }
  .page-index__blog-content h3 {
    font-size: 18px;
  }
  .page-index p,
  .page-index li {
    font-size: 15px;
  }
  .page-index__intro-content p {
    font-size: 16px;
  }
  .page-index__quick-link-card h3 {
    font-size: 20px;
  }
  .page-index__game-content h3 {
    font-size: 24px;
  }
  .page-index__promotion-card h3 {
    font-size: 20px;
  }
  .page-index__security-item h3 {
    font-size: 20px;
  }
  .page-index__blog-content p {
    font-size: 15px;
  }
  .page-index__blog-date {
    font-size: 13px;
  }
  .page-index__cta-center {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-section h1 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
  .page-index__section-title {
    font-size: 24px;
  }
  .page-index__hero-content p {
    font-size: 0.9rem;
  }
}