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

/* Base styles for the page content, ensuring contrast with dark body background */
.page-index-latest-promotions {
  color: #ffffff; /* Light text for dark body background */
  background-color: #121212; /* Matches shared.css body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-index-latest-promotions__section {
  padding: 60px 0;
}

.page-index-latest-promotions__section:nth-of-type(odd) {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

.page-index-latest-promotions__heading {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD700; /* Gold heading for emphasis */
  text-transform: uppercase;
}

.page-index-latest-promotions__paragraph {
  font-size: 16px;
  margin-bottom: 20px;
  text-align: justify;
  color: #f0f0f0;
}

.page-index-latest-promotions__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  border: none;
}

.page-index-latest-promotions__btn-primary {
  background-color: #FFD700; /* Gold button */
  color: #121212; /* Dark text for gold button */
}

.page-index-latest-promotions__btn-primary:hover {
  background-color: #e6c200;
  color: #000000;
}

.page-index-latest-promotions__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text for transparent button */
  border: 2px solid #FFD700;
}

.page-index-latest-promotions__btn-secondary:hover {
  background-color: #FFD700;
  color: #121212;
}

/* Fixed header spacing */
/* The main content area starts after the header. HERO section is full-width, so it will overlap.
   We need to ensure the main content is pushed down. */
.page-content.page-index-latest-promotions {
  padding-top: 90px; /* Adjust based on actual shared header height */
}

/* HERO Section */
.page-index-latest-promotions__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  margin-top: -90px; /* Counteract the main padding-top to make hero full screen */
}

.page-index-latest-promotions__hero-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.page-index-latest-promotions__hero-image {
  width: 100%;
  margin: 0;
}

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

/* LOGO Carousel Section */
.page-index-latest-promotions__logo-carousel-section {
  width: 100%;
  padding: 40px 0;
  background: rgba(0, 0, 0, 0.3); /* Darker background for logo strip */
}

.page-index-latest-promotions__logo-carousel-container {
  max-width: 1400px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.page-index-latest-promotions__logo-carousel {
  display: flex;
  gap: 30px; /* Increased gap */
  overflow: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
  padding: 10px 0;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none; /* Disable user interaction for the carousel itself */
}

.page-index-latest-promotions__logo-carousel::-webkit-scrollbar {
  display: none;
}

.page-index-latest-promotions__logo-item {
  flex-shrink: 0;
  width: 200px;
  height: 100px; /* Adjusted height for more rectangular logos */
  border-radius: 8px;
  overflow: hidden;
  background: #2a2a2a; /* Darker background for logo items */
  border: 1px solid #3a3a3a;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto; /* Allow logo-item itself to be clickable */
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-index-latest-promotions__logo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.page-index-latest-promotions__logo-item a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 10px; /* Adjusted padding */
  box-sizing: border-box;
  pointer-events: auto; /* Allow link to be clickable */
}

.page-index-latest-promotions__logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Games Section */
.page-index-latest-promotions__games-section {
  width: 100%;
  padding: 60px 0;
  background: #1a1a1a; /* Dark background for game section */
}

.page-index-latest-promotions__games-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 30px;
  align-items: start;
}

.page-index-latest-promotions__featured-game-area {
  width: 100%;
}

.page-index-latest-promotions__featured-game-title {
  font-size: 28px; /* Slightly larger for prominence */
  font-weight: bold;
  margin: 0 0 20px 0;
  color: #FFD700; /* Gold text */
  text-align: left;
  text-transform: uppercase;
}

.page-index-latest-promotions__featured-game {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #2a2a2a; /* Dark background for featured game card */
  border: 1px solid #3a3a3a;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-latest-promotions__featured-game:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.4);
}

.page-index-latest-promotions__featured-game-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-index-latest-promotions__featured-game-image {
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.page-index-latest-promotions__featured-game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-index-latest-promotions__games-grid-area {
  width: 100%;
}

.page-index-latest-promotions__games-tabs {
  display: flex;
  gap: 25px; /* Adjusted gap */
  margin-bottom: 25px; /* Adjusted margin */
  align-items: center;
  justify-content: flex-start;
}

.page-index-latest-promotions__games-tab {
  background: none;
  border: none;
  padding: 0;
  font-size: 20px; /* Slightly larger font */
  font-weight: bold;
  cursor: pointer;
  color: #cccccc; /* Lighter inactive text for better contrast */
  transition: color 0.3s ease;
  text-decoration: none;
  position: relative;
  text-transform: uppercase;
}

.page-index-latest-promotions__games-tab:hover {
  color: #ffffff;
}

.page-index-latest-promotions__games-tab.active {
  color: #ff0000; /* Red active text */
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 2px;
}

.page-index-latest-promotions__games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  display: none;
}

.page-index-latest-promotions__games-grid.active {
  display: grid;
}

.page-index-latest-promotions__game-card {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: #2a2a2a; /* Dark background for game card */
  border: 1px solid #3a3a3a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index-latest-promotions__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.page-index-latest-promotions__game-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-index-latest-promotions__game-card-image {
  width: 100%;
  height: 180px; /* Adjusted height for game cards */
  overflow: hidden;
}

.page-index-latest-promotions__game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-index-latest-promotions__game-card-title {
  font-size: 15px; /* Adjusted font size */
  font-weight: 600;
  margin: 10px 0 10px 0;
  padding: 0 8px;
  color: #FFD700; /* Gold text for game titles */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.4;
}

/* Quick Access Section */
.page-index-latest-promotions__quick-access-section .page-index-latest-promotions__heading {
  color: #FFD700;
}

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

/* Core Games Section */
.page-index-latest-promotions__core-games-section .page-index-latest-promotions__heading {
  color: #FFD700;
}

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

.page-index-latest-promotions__game-type-card {
  background: #2a2a2a; /* Dark background for game type cards */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #3a3a3a;
}

.page-index-latest-promotions__game-type-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.page-index-latest-promotions__game-type-image {
  width: 100%; /* Ensure image fills card width */
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-index-latest-promotions__game-type-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD700; /* Gold title */
  margin-bottom: 15px;
}

.page-index-latest-promotions__game-type-description {
  font-size: 15px;
  color: #f0f0f0;
  margin-bottom: 20px;
}

/* Promotions Section */
.page-index-latest-promotions__promotions-section .page-index-latest-promotions__heading {
  color: #FFD700;
}

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

.page-index-latest-promotions__promotion-card {
  background: #2a2a2a; /* Dark background for promotion cards */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #3a3a3a;
}

.page-index-latest-promotions__promotion-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

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

.page-index-latest-promotions__promotion-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD700; /* Gold title */
  margin-bottom: 15px;
}

.page-index-latest-promotions__promotion-description {
  font-size: 15px;
  color: #f0f0f0;
  margin-bottom: 20px;
}

/* Security Section */
.page-index-latest-promotions__security-section .page-index-latest-promotions__heading {
  color: #FFD700;
}

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

.page-index-latest-promotions__feature-item {
  background: #2a2a2a; /* Dark background for feature items */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #3a3a3a;
}

.page-index-latest-promotions__feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.page-index-latest-promotions__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-index-latest-promotions__feature-title {
  font-size: 20px;
  font-weight: bold;
  color: #FFD700; /* Gold title */
  margin-bottom: 10px;
}

.page-index-latest-promotions__feature-description {
  font-size: 15px;
  color: #f0f0f0;
}

.page-index-latest-promotions__call-to-action {
  text-align: center;
  margin-top: 40px;
}

/* FAQ Section */
.page-index-latest-promotions__faq-section .page-index-latest-promotions__heading {
  color: #FFD700;
}

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

.page-index-latest-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-index-latest-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-index-latest-promotions__faq-item.active .page-index-latest-promotions__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #2a2a2a; /* Dark background for expanded answer */
  border-radius: 0 0 5px 5px;
  color: #f0f0f0;
}

.page-index-latest-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #3a3a3a; /* Slightly lighter dark background for question */
  border: 1px solid #4a4a4a;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-index-latest-promotions__faq-question:hover {
  background: #4a4a4a;
  border-color: #5a5a5a;
}

.page-index-latest-promotions__faq-question:active {
  background: #5a5a5a;
}

.page-index-latest-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 17px; /* Slightly larger font */
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #FFD700; /* Gold text for FAQ question */
}

.page-index-latest-promotions__faq-toggle {
  font-size: 28px; /* Larger toggle icon */
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; /* Larger touch area */
  height: 30px;
}

.page-index-latest-promotions__faq-item.active .page-index-latest-promotions__faq-toggle {
  color: #ffffff; /* White toggle icon when active */
  transform: rotate(45deg); /* Rotate for minus sign effect */
}

/* Blog Section */
.page-index-latest-promotions__blog-section .page-index-latest-promotions__heading {
  color: #FFD700;
}

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

.page-index-latest-promotions__blog-card {
  background: #2a2a2a; /* Dark background for blog cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #3a3a3a;
}

.page-index-latest-promotions__blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.4);
}

.page-index-latest-promotions__blog-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

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

.page-index-latest-promotions__blog-content {
  padding: 20px;
}

.page-index-latest-promotions__blog-title {
  font-size: 20px;
  font-weight: bold;
  color: #FFD700; /* Gold title */
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-index-latest-promotions__blog-excerpt {
  font-size: 15px;
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-index-latest-promotions__blog-date {
  font-size: 13px;
  color: #cccccc;
  display: block;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .page-index-latest-promotions__container {
    padding: 0 15px;
  }
}

@media (max-width: 1024px) {
  .page-index-latest-promotions__games-layout {
    grid-template-columns: 1fr;
  }
  .page-index-latest-promotions__games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .page-index-latest-promotions {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-content.page-index-latest-promotions {
    padding-top: 70px; /* Adjust for mobile header height */
  }
  .page-index-latest-promotions__hero-section {
    margin-top: -70px; /* Counteract mobile main padding-top */
  }
  .page-index-latest-promotions__heading {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-index-latest-promotions__section {
    padding: 40px 0;
  }
  .page-index-latest-promotions__paragraph {
    font-size: 15px;
  }
  .page-index-latest-promotions__logo-carousel-section {
    padding: 30px 0;
  }
  .page-index-latest-promotions__logo-carousel {
    gap: 20px;
  }
  .page-index-latest-promotions__logo-item {
    width: 150px;
    height: 80px;
  }
  .page-index-latest-promotions__games-section {
    padding: 40px 0;
  }
  .page-index-latest-promotions__featured-game-title {
    font-size: 24px;
  }
  .page-index-latest-promotions__featured-game-image {
    height: 300px;
  }
  .page-index-latest-promotions__games-tabs {
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
  }
  .page-index-latest-promotions__games-tab {
    font-size: 17px;
  }
  .page-index-latest-promotions__games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-index-latest-promotions__game-card-image {
    height: 140px;
  }
  .page-index-latest-promotions__game-card-title {
    font-size: 14px;
    margin: 8px 0 8px 0;
    padding: 0 5px;
  }
  .page-index-latest-promotions__link-grid,
  .page-index-latest-promotions__game-types-grid,
  .page-index-latest-promotions__promotions-grid,
  .page-index-latest-promotions__security-features,
  .page-index-latest-promotions__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-index-latest-promotions__game-type-image,
  .page-index-latest-promotions__promotion-image,
  .page-index-latest-promotions__blog-image {
    height: 180px;
  }
  .page-index-latest-promotions__game-type-title,
  .page-index-latest-promotions__promotion-title,
  .page-index-latest-promotions__blog-title {
    font-size: 18px;
  }
  .page-index-latest-promotions__feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-index-latest-promotions__feature-title {
    font-size: 18px;
  }
  .page-index-latest-promotions__faq-question {
    padding: 15px;
  }
  .page-index-latest-promotions__faq-question h3 {
    font-size: 15px;
  }
  .page-index-latest-promotions__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }
  .page-index-latest-promotions__faq-item.active .page-index-latest-promotions__faq-answer {
    padding: 15px !important;
  }
  .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__logo-carousel-container,
  .page-index-latest-promotions__games-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-index-latest-promotions__heading {
    font-size: 22px;
  }
  .page-index-latest-promotions__games-grid {
    grid-template-columns: 1fr;
  }
  .page-index-latest-promotions__game-card-image {
    height: 160px;
  }
  .page-index-latest-promotions__game-card-title {
    font-size: 16px;
  }
  .page-index-latest-promotions__featured-game-image {
    height: 250px;
  }
}