/* style/index.css */

.page-index {
  color: #333333; /* Dark text for light body background */
  line-height: 1.6;
}

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

.page-index__container--flex {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-index__section-title {
  font-size: 2.5rem;
  color: #8B0000; /* Auxiliary color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

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

.page-index__card-title {
  font-size: 1.5rem;
  color: #8B0000;
  margin-top: 15px;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-index__card-title a {
  color: #8B0000;
  text-decoration: none;
}

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

.page-index__card-text {
  font-size: 0.95rem;
  color: #555555;
}

.page-index__button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  white-space: nowrap;
}

.page-index__button--primary {
  background-color: #FFD700;
  color: #8B0000;
  border: 2px solid #FFD700;
}

.page-index__button--primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
}

.page-index__button--secondary {
  background-color: transparent;
  color: #8B0000;
  border: 2px solid #8B0000;
}

.page-index__button--secondary:hover {
  background-color: #8B0000;
  color: #FFD700;
  transform: translateY(-2px);
}

.page-index__button--small {
  padding: 8px 18px;
  font-size: 0.9rem;
}

.page-index__button--large {
  padding: 15px 30px;
  font-size: 1.1rem;
}

/* Hero Section */
.page-index__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: #ffffff;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-index__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  min-height: 100%;
  z-index: 1;
}

.page-index__hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Minimum height for hero section */
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.4)); /* Dark overlay for text readability */
}

.page-index__hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.2;
  max-width: 900px;
  color: #FFD700; /* Gold for main title */
}

.page-index__hero-title a {
  color: #FFD700;
  text-decoration: none;
}

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

.page-index__hero-description {
  font-size: 1.3rem;
  margin-bottom: 30px;
  max-width: 700px;
  color: #f0f0f0;
}

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

.page-index__hero-button {
  padding: 15px 35px;
  font-size: 1.15rem;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}

.page-index__hero-button--primary {
  background-color: #FFD700;
  color: #8B0000;
  border: 2px solid #FFD700;
}

.page-index__hero-button--primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-3px) scale(1.02);
}

.page-index__hero-button--secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-index__hero-button--secondary:hover {
  background-color: #FFD700;
  color: #8B0000;
  transform: translateY(-3px) scale(1.02);
}

/* About Section */
.page-index__about-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

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

.page-index__about-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

/* Game Categories Section */
.page-index__game-categories-section {
  padding: 80px 0;
  background-color: #f0f0f0;
}

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

.page-index__category-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.page-index__category-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-index__category-card .page-index__card-title {
  margin-top: 20px;
  font-size: 1.35rem;
}

.page-index__category-card .page-index__card-text {
  padding: 0 20px;
  margin-bottom: 20px;
}

.page-index__category-card .page-index__button {
  margin-bottom: 20px;
}

/* Promotions Section */
.page-index__promotions-section {
  padding: 80px 0;
  background-color: #fff;
}

.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-color: #fdfdfd;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.page-index__promotion-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-index__promotion-card .page-index__card-title {
  margin-top: 20px;
  font-size: 1.35rem;
}

.page-index__promotion-card .page-index__card-text {
  padding: 0 20px;
  margin-bottom: 20px;
}

.page-index__promotion-card .page-index__button {
  margin-bottom: 20px;
}

/* Security Section */
.page-index__security-section {
  padding: 80px 0;
  background-color: #f0f0f0;
}

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

.page-index__security-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
}

/* Why Choose Us Section */
.page-index__why-choose-us-section {
  padding: 80px 0;
  background-color: #fff;
  text-align: center;
}

.page-index__features-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
  text-align: left;
}

.page-index__feature-item {
  background-color: #fdfdfd;
  border-left: 5px solid #FFD700;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  font-size: 1.05rem;
  color: #444;
}

.page-index__feature-item strong {
  color: #8B0000;
}

.page-index__cta-text {
  font-size: 1.2rem;
  font-weight: bold;
  color: #8B0000;
  margin-top: 50px;
  margin-bottom: 30px;
}

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

/* Download App Section */
.page-index__download-app-section {
  padding: 80px 0;
  background-color: #f0f0f0;
}

.page-index__app-content {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-index__app-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 300px;
}

.page-index__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: block;
}

.page-index__app-features {
  list-style: disc;
  padding-left: 20px;
  margin-top: 20px;
  margin-bottom: 30px;
  color: #555;
}

.page-index__app-features li {
  margin-bottom: 10px;
  font-size: 1rem;
}

/* Latest News Section */
.page-index__latest-news-section {
  padding: 80px 0;
  background-color: #fff;
}

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

.page-index__news-card {
  background-color: #fdfdfd;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.page-index__news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-index__news-card .page-index__card-title {
  padding: 15px 20px 0;
  font-size: 1.2rem;
}

.page-index__news-card .page-index__card-text {
  padding: 0 20px 15px;
}

.page-index__news-card .page-index__button {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

.page-index__view-all-button-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* Floating Buttons */
.page-index__floating-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}

.page-index__floating-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 50px;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-index__floating-button--register {
  background-color: #FFD700;
  color: #8B0000;
}

.page-index__floating-button--register:hover {
  background-color: #e6c200;
  transform: scale(1.05);
}

.page-index__floating-button--login {
  background-color: #8B0000;
  color: #FFD700;
}

.page-index__floating-button--login:hover {
  background-color: #6a0000;
  transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-index__hero-title {
    font-size: 2.8rem;
  }
  .page-index__section-title {
    font-size: 2rem;
  }
  .page-index__hero-content {
    min-height: 500px;
  }
}

@media (max-width: 768px) {
  .page-index__hero-title {
    font-size: 2.2rem;
  }
  .page-index__hero-description {
    font-size: 1.1rem;
  }
  .page-index__section-title {
    font-size: 1.8rem;
  }
  .page-index__section-description {
    font-size: 1rem;
  }
  .page-index__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-index__hero-button {
    width: 80%;
    max-width: 300px;
  }
  .page-index__container--flex {
    flex-direction: column;
  }
  .page-index__app-content, .page-index__app-image-wrapper {
    min-width: unset;
    width: 100%;
  }
  .page-index__floating-buttons {
    flex-direction: row;
    width: calc(100% - 40px);
    bottom: 10px;
    right: 20px;
    justify-content: space-around;
  }
  .page-index__floating-button {
    flex: 1;
    width: auto;
    max-width: 150px;
  }

  /* Mobile content image overflow prevention */
  .page-index img {
    max-width: 100%;
    height: auto;
  }
  .page-index__hero-image {
    position: relative;
    height: 400px; /* Adjust hero image height for mobile */
  }
  .page-index__hero-content {
    min-height: 400px;
  }
}

@media (max-width: 480px) {
  .page-index__hero-title {
    font-size: 1.8rem;
  }
  .page-index__hero-description {
    font-size: 0.95rem;
  }
  .page-index__section-title {
    font-size: 1.5rem;
  }
  .page-index__floating-button {
    font-size: 0.9rem;
    height: 45px;
  }
  .page-index__hero-content {
    min-height: 350px;
  }
  .page-index__hero-image {
    height: 350px;
  }
}