/* style/index-latest-games.css */

:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-color: #C30808;
  --login-color: #C30808;
  --register-login-font-color: #FFFF00;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-dark-section: #017439;
  --card-bg-light: rgba(255, 255, 255, 0.9);
}

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

.page-index-latest-games__content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-index-latest-games__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 550px; /* Adjust as needed */
  padding: 60px 20px;
  padding-top: 10px; /* Small decorative top padding, body handles header offset */
  overflow: hidden;
  background-color: var(--bg-dark-section);
}

.page-index-latest-games__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.3;
}

.page-index-latest-games__hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-light);
  max-width: 900px;
}

.page-index-latest-games__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-index-latest-games__description {
  font-size: 1.25rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index-latest-games__btn-primary,
.page-index-latest-games__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-index-latest-games__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-index-latest-games__btn-primary:hover {
  background-color: #005a2b;
  border-color: #005a2b;
}

.page-index-latest-games__btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

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

.page-index-latest-games__btn-register {
  background-color: var(--register-color);
  border-color: var(--register-color);
  color: var(--register-login-font-color);
}

.page-index-latest-games__btn-register:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-index-latest-games__btn-login {
  background-color: var(--login-color);
  border-color: var(--login-color);
  color: var(--register-login-font-color);
}

.page-index-latest-games__btn-login:hover {
  background-color: #a30606;
  border-color: #a30606;
}

/* Video Section */
.page-index-latest-games__video-section {
  background-color: var(--bg-light);
  padding: 60px 0;
  text-align: center;
  padding-top: 10px; /* Small decorative top padding */
}

.page-index-latest-games__section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.page-index-latest-games__section-description {
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-dark);
}

.page-index-latest-games__video-container {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Max width for desktop video */
  margin: 0 auto 30px auto;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.page-index-latest-games__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
}

.page-index-latest-games__video-cta {
  margin-top: 30px;
}

/* Featured Games Section */
.page-index-latest-games__dark-section {
  background-color: var(--bg-dark-section);
  color: var(--text-light);
  padding: 60px 0;
  text-align: center;
}

.page-index-latest-games__dark-section .page-index-latest-games__section-title {
  color: var(--secondary-color);
}

.page-index-latest-games__dark-section .page-index-latest-games__section-description {
  color: rgba(255, 255, 255, 0.9);
}

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

.page-index-latest-games__game-card {
  background-color: var(--card-bg-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
  color: var(--text-dark);
}

.page-index-latest-games__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-index-latest-games__game-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--primary-color);
  padding: 0 15px;
}

.page-index-latest-games__game-description {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-index-latest-games__btn-play {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 10px 25px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-index-latest-games__btn-play:hover {
  background-color: #005a2b;
}

.page-index-latest-games__view-all-games {
  margin-top: 50px;
}

/* Game Categories Section */
.page-index-latest-games__game-categories-section {
  background-color: var(--bg-light);
  padding: 60px 0;
  text-align: center;
}

.page-index-latest-games__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-index-latest-games__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--card-bg-light);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: var(--text-dark);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-latest-games__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-index-latest-games__category-icon {
  width: 100%;
  max-width: 120px;
  height: auto;
  margin-bottom: 15px;
  border-radius: 8px;
}

.page-index-latest-games__category-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* Why zalv777 Section */
.page-index-latest-games__why-zalv777 {
  background-color: var(--bg-light);
  padding: 60px 0;
  text-align: center;
}

.page-index-latest-games__advantages-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-index-latest-games__advantages-list li {
  font-size: 1.1rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  color: var(--text-dark);
}

.page-index-latest-games__list-icon {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.3rem;
  margin-right: 10px;
}

/* Final CTA Section */
.page-index-latest-games__cta-final {
  background-color: var(--bg-dark-section);
  color: var(--text-light);
  padding: 80px 0;
  text-align: center;
}

.page-index-latest-games__cta-final .page-index-latest-games__section-title {
  color: var(--secondary-color);
}

.page-index-latest-games__cta-final .page-index-latest-games__section-description {
  color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-index-latest-games__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-index-latest-games__section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-index-latest-games {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-index-latest-games__hero-section {
    min-height: 450px;
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles header offset */
  }

  .page-index-latest-games__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-index-latest-games__description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-index-latest-games__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .page-index-latest-games__btn-primary,
  .page-index-latest-games__btn-secondary,
  .page-index-latest-games__btn-play {
    width: 100% !important;
    max-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-latest-games__video-section,
  .page-index-latest-games__featured-games,
  .page-index-latest-games__game-categories-section,
  .page-index-latest-games__promotions-section,
  .page-index-latest-games__why-zalv777,
  .page-index-latest-games__cta-final {
    padding: 40px 0;
  }

  .page-index-latest-games__content-wrapper {
    padding: 0 15px;
  }

  .page-index-latest-games__section-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .page-index-latest-games__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-index-latest-games__video-container {
    padding-bottom: 56.25% !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-index-latest-games__video {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-index-latest-games__game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index-latest-games__game-image {
    height: 180px;
  }

  .page-index-latest-games__game-title {
    font-size: 1.3rem;
  }

  .page-index-latest-games__categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
  }

  .page-index-latest-games__category-card {
    padding: 15px 10px;
  }

  .page-index-latest-games__category-icon {
    max-width: 80px;
  }

  .page-index-latest-games__category-title {
    font-size: 1.1rem;
  }

  .page-index-latest-games__advantages-list {
    margin-top: 30px;
  }

  .page-index-latest-games__advantages-list li {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  /* Ensure all images are responsive */
  .page-index-latest-games img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All image containers */
  .page-index-latest-games__hero-section,
  .page-index-latest-games__game-card,
  .page-index-latest-games__category-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-index-latest-games__game-card, .page-index-latest-games__category-card {
    margin-left: 15px;
    margin-right: 15px;
  }
}