/* style/index-latest-promotions.css */
:root {
  --primary-color: #007bff;
  --secondary-color: #28a745;
  --dark-bg-color: #121212;
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
  --card-bg-color: #ffffff;
  --border-color: #e0e0e0;
  --shadow-color: rgba(0, 0, 0, 0.1);
}

.page-index-latest-promotions {
  color: var(--light-text-color); /* Default text color for dark body background */
  background-color: var(--dark-bg-color);
}

.page-index-latest-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 180px; /* Desktop: Adjust for fixed header */
  background: var(--dark-bg-color);
  color: var(--light-text-color);
}

.page-index-latest-promotions__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-index-latest-promotions__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

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

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

.page-index-latest-promotions__hero-content h1 {
  font-size: 42px;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--light-text-color);
}

.page-index-latest-promotions__hero-content p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--light-text-color);
}

.page-index-latest-promotions__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--light-text-color);
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-index-latest-promotions__cta-button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-color);
}

.page-index-latest-promotions__game-leaderboard-section {
  padding: 60px 20px;
  background-color: var(--dark-bg-color);
  color: var(--light-text-color);
}

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

.page-index-latest-promotions__game-leaderboard {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-index-latest-promotions__game-card {
  background: var(--card-bg-color);
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow-color);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-latest-promotions__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-index-latest-promotions__game-card-segment {
  padding: 0 20px;
  border-left: 1px solid var(--border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.page-index-latest-promotions__segment-1 {
  border-left: none;
  padding-left: 0;
  width: 150px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-index-latest-promotions__segment-2 {
  flex: 1;
  align-items: center;
  justify-content: center;
}

.page-index-latest-promotions__segment-3 {
  width: 180px;
  flex-shrink: 0;
}

.page-index-latest-promotions__segment-4 {
  width: 250px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.page-index-latest-promotions__rank-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
  color: var(--light-text-color);
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-index-latest-promotions__rank-1 {
  background: linear-gradient(135deg, #FFD700, #FFA500); /* Gold */
}

.page-index-latest-promotions__rank-2 {
  background: linear-gradient(135deg, #C0C0C0, #A0A0A0); /* Silver */
}

.page-index-latest-promotions__rank-3 {
  background: linear-gradient(135deg, #CD7F32, #B87333); /* Bronze */
}

.page-index-latest-promotions__game-icon {
  max-width: 100px;
  height: auto;
  display: block;
  border-radius: 4px;
}

.page-index-latest-promotions__game-name {
  font-size: 24px;
  font-weight: bold;
  color: var(--dark-text-color);
  text-align: center;
  margin-bottom: 8px;
}

.page-index-latest-promotions__game-name-link {
  color: var(--dark-text-color);
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.page-index-latest-promotions__game-name-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-index-latest-promotions__game-description {
  font-size: 14px;
  color: var(--dark-text-color);
  font-weight: bold;
  text-align: center;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.page-index-latest-promotions__game-description a {
  color: #0066cc;
  font-weight: bold;
  text-decoration: none;
}

.page-index-latest-promotions__game-description a:hover {
  color: #004499;
  text-decoration: underline;
}

.page-index-latest-promotions__game-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.page-index-latest-promotions__stars {
  color: #FFD700;
  font-size: 18px;
  margin-right: 5px;
  font-weight: bold;
}

.page-index-latest-promotions__rating-number {
  font-size: 16px;
  color: var(--dark-text-color);
  font-weight: bold;
}

.page-index-latest-promotions__promotion-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.page-index-latest-promotions__promotion-link {
  color: #0066cc;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
}

.page-index-latest-promotions__promotion-link:hover {
  color: #004499;
  text-decoration: underline;
}

.page-index-latest-promotions__hot-badge {
  background-color: #dc3545;
  color: var(--light-text-color);
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: bold;
}

.page-index-latest-promotions__btn-download,
.page-index-latest-promotions__btn-review {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  border: none;
}

.page-index-latest-promotions__btn-download {
  background: var(--primary-color);
  color: var(--light-text-color);
}

.page-index-latest-promotions__btn-download:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-index-latest-promotions__btn-review {
  background: var(--secondary-color);
  color: var(--light-text-color);
}

.page-index-latest-promotions__btn-review:hover {
  background: #218838;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-index-latest-promotions__review-content-section {
  padding: 60px 20px;
  background: var(--dark-bg-color);
}

.page-index-latest-promotions__review-content-container {
  max-width: 1400px; /* Wider than leaderboard cards */
  margin: 0 auto;
}

.page-index-latest-promotions__review-content-card {
  background: var(--card-bg-color);
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow-color);
  padding: 40px;
}

.page-index-latest-promotions__review-content-card h2 {
  font-size: 28px;
  font-weight: bold;
  color: var(--dark-text-color);
  margin-bottom: 24px;
  text-align: center;
}

.page-index-latest-promotions__review-content-card h3 {
  font-size: 20px;
  font-weight: bold; /* Tiểu đề in đậm */
  color: var(--dark-text-color);
  margin-top: 24px;
  margin-bottom: 12px;
}

.page-index-latest-promotions__review-body {
  color: var(--dark-text-color);
  line-height: 1.7;
}

.page-index-latest-promotions__review-body p {
  margin-bottom: 16px;
  font-size: 16px;
}

.page-index-latest-promotions__intro-section {
  padding: 60px 20px;
  background-color: var(--dark-bg-color);
  color: var(--light-text-color);
}

.page-index-latest-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-index-latest-promotions__content-area h2 {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: var(--light-text-color);
}

.page-index-latest-promotions__content-area p {
  font-size: 17px;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index-latest-promotions__intro-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-latest-promotions__intro-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-index-latest-promotions__intro-item img {
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 4px;
}

.page-index-latest-promotions__intro-item h3 {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--light-text-color);
}

.page-index-latest-promotions__intro-item p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--light-text-color);
  margin-bottom: 0;
}

.page-index-latest-promotions__games-showcase-section {
  padding: 60px 20px;
  background-color: var(--dark-bg-color);
  color: var(--light-text-color);
}

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

.page-index-latest-promotions__game-item {
  background: var(--card-bg-color);
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow-color);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-latest-promotions__game-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-index-latest-promotions__game-item img {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 20px;
}

.page-index-latest-promotions__game-item h3 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--dark-text-color);
}

.page-index-latest-promotions__game-item p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--dark-text-color);
  margin-bottom: 20px;
}

.page-index-latest-promotions__btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  background: var(--card-bg-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.page-index-latest-promotions__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--light-text-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index-latest-promotions__promotions-section {
  padding: 60px 20px;
  background-color: var(--dark-bg-color);
  color: var(--light-text-color);
}

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

.page-index-latest-promotions__promotion-card {
  background: var(--card-bg-color);
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow-color);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-latest-promotions__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-index-latest-promotions__promotion-card img {
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 20px;
}

.page-index-latest-promotions__promotion-card h3 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--dark-text-color);
}

.page-index-latest-promotions__promotion-card p {
  font-size: 15px;
  line-height: 1.5;
  color: var(--dark-text-color);
  margin-bottom: 20px;
}

.page-index-latest-promotions__btn-primary {
  background: var(--primary-color);
  color: var(--light-text-color);
  border: none;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
}

.page-index-latest-promotions__btn-primary:hover {
  background: #0056b3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index-latest-promotions__blog-section {
  padding: 60px 20px;
  background-color: var(--dark-bg-color);
  color: var(--light-text-color);
}

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

.page-index-latest-promotions__blog-card {
  background: var(--card-bg-color);
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page-index-latest-promotions__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-index-latest-promotions__blog-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px 8px 0 0;
}

.page-index-latest-promotions__blog-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-index-latest-promotions__blog-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.4;
  color: var(--dark-text-color);
}

.page-index-latest-promotions__blog-link {
  color: var(--dark-text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-index-latest-promotions__blog-link:hover {
  color: var(--primary-color);
}

.page-index-latest-promotions__blog-summary {
  font-size: 15px;
  line-height: 1.5;
  color: var(--dark-text-color);
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-index-latest-promotions__blog-date {
  font-size: 13px;
  color: #6c757d;
  align-self: flex-start;
}

.page-index-latest-promotions__view-all-button {
  text-align: center;
  margin-top: 40px;
}

.page-index-latest-promotions__text-light {
  color: var(--light-text-color);
}

.page-index-latest-promotions__text-dark {
  color: var(--dark-text-color);
}

.page-index-latest-promotions__light-bg {
  background-color: var(--card-bg-color);
}

.page-index-latest-promotions__dark-bg {
  background-color: var(--dark-bg-color);
}

.page-index-latest-promotions__highlight {
  color: var(--secondary-color);
  font-weight: bold;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .page-index-latest-promotions__game-card {
    flex-wrap: wrap;
    justify-content: center;
    padding: 15px;
  }
  .page-index-latest-promotions__game-card-segment {
    border-left: none;
    padding: 10px;
    width: 100%;
    text-align: center;
  }
  .page-index-latest-promotions__segment-1,
  .page-index-latest-promotions__segment-3,
  .page-index-latest-promotions__segment-4 {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 15px;
    padding: 10px 0;
  }
  .page-index-latest-promotions__segment-1 {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
    padding-bottom: 20px;
  }
  .page-index-latest-promotions__segment-2 {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
    padding-bottom: 20px;
  }
  .page-index-latest-promotions__segment-4 {
    flex-direction: column;
    gap: 10px;
  }
  .page-index-latest-promotions__rank-badge {
    margin-bottom: 0;
    margin-right: 15px;
  }
  .page-index-latest-promotions__game-icon {
    max-width: 80px;
  }
  .page-index-latest-promotions__game-name {
    font-size: 22px;
  }
  .page-index-latest-promotions__game-description {
    font-size: 13px;
  }
  .page-index-latest-promotions__page-title {
    font-size: 32px;
  }
  .page-index-latest-promotions__hero-content h1 {
    font-size: 36px;
  }
  .page-index-latest-promotions__hero-content p {
    font-size: 16px;
  }
  .page-index-latest-promotions__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-index-latest-promotions__hero-section {
    padding-top: 140px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index-latest-promotions__hero-image img {
    border-radius: 4px;
  }
  .page-index-latest-promotions__hero-content h1 {
    font-size: 28px;
  }
  .page-index-latest-promotions__hero-content p {
    font-size: 15px;
  }
  .page-index-latest-promotions__cta-button {
    padding: 10px 25px;
    font-size: 15px;
    margin-top: 20px;
  }
  
  .page-index-latest-promotions__game-leaderboard-section,
  .page-index-latest-promotions__review-content-section,
  .page-index-latest-promotions__intro-section,
  .page-index-latest-promotions__games-showcase-section,
  .page-index-latest-promotions__promotions-section,
  .page-index-latest-promotions__blog-section {
    padding: 30px 15px;
  }

  .page-index-latest-promotions__page-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

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

  .page-index-latest-promotions__segment-1,
  .page-index-latest-promotions__segment-3 {
    flex-direction: column;
    gap: 5px;
  }
  .page-index-latest-promotions__rank-badge {
    margin-right: 0;
    margin-bottom: 8px;
    width: 24px;
    height: 24px;
    font-size: 14px;
  }
  .page-index-latest-promotions__game-icon {
    max-width: 70px;
  }
  .page-index-latest-promotions__game-name {
    font-size: 20px;
  }
  .page-index-latest-promotions__game-description {
    font-size: 12px;
  }
  .page-index-latest-promotions__stars {
    font-size: 16px;
  }
  .page-index-latest-promotions__rating-number,
  .page-index-latest-promotions__promotion-link,
  .page-index-latest-promotions__hot-badge {
    font-size: 12px;
  }
  .page-index-latest-promotions__segment-4 {
    padding-left: 10px;
    padding-right: 10px;
  }
  .page-index-latest-promotions__btn-download,
  .page-index-latest-promotions__btn-review {
    font-size: 13px;
    padding: 8px 12px;
    white-space: normal;
    word-wrap: break-word;
    min-width: auto;
  }

  .page-index-latest-promotions__review-content-card {
    padding: 25px 20px;
  }
  .page-index-latest-promotions__review-content-card h2 {
    font-size: 24px;
  }
  .page-index-latest-promotions__review-content-card h3 {
    font-size: 18px;
  }
  .page-index-latest-promotions__review-body p {
    font-size: 15px;
  }

  .page-index-latest-promotions__content-area h2 {
    font-size: 26px;
  }
  .page-index-latest-promotions__content-area p {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-index-latest-promotions__intro-grid,
  .page-index-latest-promotions__games-grid,
  .page-index-latest-promotions__promotions-grid,
  .page-index-latest-promotions__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index-latest-promotions__intro-item img {
    max-width: 100px;
  }
  .page-index-latest-promotions__intro-item h3 {
    font-size: 18px;
  }
  .page-index-latest-promotions__intro-item p {
    font-size: 14px;
  }
  .page-index-latest-promotions__game-item img,
  .page-index-latest-promotions__promotion-card img,
  .page-index-latest-promotions__blog-image {
    height: 180px;
  }
  .page-index-latest-promotions__game-item h3,
  .page-index-latest-promotions__promotion-card h3,
  .page-index-latest-promotions__blog-title {
    font-size: 18px;
  }
  .page-index-latest-promotions__game-item p,
  .page-index-latest-promotions__promotion-card p,
  .page-index-latest-promotions__blog-summary {
    font-size: 14px;
  }
  .page-index-latest-promotions__blog-date {
    font-size: 12px;
  }
  .page-index-latest-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-index-latest-promotions__section,
  .page-index-latest-promotions__card,
  .page-index-latest-promotions__container,
  .page-index-latest-promotions__intro-item,
  .page-index-latest-promotions__game-item,
  .page-index-latest-promotions__promotion-card,
  .page-index-latest-promotions__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}