/* style/promotions.css */

/* Base styles for the page-promotions context */
.page-promotions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000; /* Inherited from body if not overridden */
}

.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-promotions__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FFD700; /* Gold color for titles */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-promotions__section-description {
  font-size: 18px;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Smart text color selection for different backgrounds */
.page-promotions__dark-bg {
  background: #1A1A1A;
  color: #ffffff;
}

.page-promotions__light-bg {
  background: #f8f9fa;
  color: #333333;
}

.page-promotions__btn-primary {
  display: inline-block;
  background: #FFD700; /* Primary brand color */
  color: #1A1A1A; /* Dark text for contrast */
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.page-promotions__btn-primary:hover {
  background: #e0b000;
  transform: translateY(-2px);
}

.page-promotions__btn-secondary {
  display: inline-block;
  background: none;
  color: #FFD700;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #FFD700;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  font-size: 16px;
}

.page-promotions__btn-secondary:hover {
  background: #FFD700;
  color: #1A1A1A;
}

/* HERO Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
}

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

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

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

/* LOGO Carousel Section */
.page-promotions__logo-carousel-section {
  width: 100%;
  padding: 40px 20px;
  background: #0d0d0d; /* Slightly lighter dark background for contrast with body */
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

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

.page-promotions__logo-carousel {
  display: flex;
  gap: 30px;
  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 carousel itself */
}

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

.page-promotions__logo-item {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  background: #2a2a2a; /* Darker card background */
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: auto; /* Allow interaction on individual logo items */
}

.page-promotions__logo-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.2);
}

.page-promotions__logo-item a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 20px;
  box-sizing: border-box;
  pointer-events: auto;
}

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

/* Games Section */
.page-promotions__games-section {
  width: 100%;
  padding: 60px 20px;
  background: #000; /* Body background */
}

.page-promotions__games-container {
  max-width: 1400px;
  margin: 0 auto;
}

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

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

.page-promotions__featured-game-title {
  font-size: 28px;
  font-weight: bold;
  margin: 0 0 20px 0;
  color: #FFD700; /* Yellow text */
  text-align: left;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.page-promotions__featured-game {
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
  background: #2a2a2a;
  border: 2px solid #FFD700;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__featured-game:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(255, 215, 0, 0.3);
}

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

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

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

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

.page-promotions__games-tabs {
  display: flex;
  gap: 30px;
  margin-bottom: 25px;
  align-items: center;
  justify-content: flex-start;
}

.page-promotions__games-tab {
  background: none;
  border: none;
  padding: 0;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: #999999;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  text-decoration: none;
  position: relative;
}

.page-promotions__games-tab:hover {
  color: #ffffff;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.page-promotions__games-tab.active {
  color: #FFD700; /* Gold color */
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
}

.page-promotions__games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  display: none; /* Default hidden */
}

.page-promotions__games-grid.active {
  display: grid; /* Active when displayed */
}

.page-promotions__game-card {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #2a2a2a; /* Darker card background */
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-promotions__game-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

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

.page-promotions__game-card-title {
  font-size: 15px;
  font-weight: 600;
  margin: 12px 0 12px 0;
  padding: 0 10px;
  color: #ffffff; /* Light text for dark card background */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
  line-height: 1.4;
}

/* Intro Section */
.page-promotions__intro-section {
  padding: 80px 20px;
  background: #1A1A1A;
  color: #ffffff;
}

.page-promotions__intro-section .page-promotions__section-title {
  color: #FFD700;
}

.page-promotions__intro-section .page-promotions__section-description {
  color: #f0f0f0;
}

.page-promotions__intro-section .page-promotions__content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-promotions__intro-section .page-promotions__text-block p {
  margin-bottom: 15px;
  font-size: 17px;
  color: #f0f0f0;
}

.page-promotions__intro-section .page-promotions__text-block strong {
  color: #FFD700;
}

.page-promotions__intro-section .page-promotions__btn-primary {
  margin-top: 25px;
}

.page-promotions__intro-section .page-promotions__image-block img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Quick Access Section */
.page-promotions__quick-access-section {
  padding: 80px 20px;
  background: #f8f9fa;
  color: #333333;
}

.page-promotions__quick-access-section .page-promotions__section-title {
  color: #1A1A1A;
}

.page-promotions__quick-access-section .page-promotions__section-description {
  color: #555555;
}

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

.page-promotions__quick-link-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-promotions__quick-link-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  color: #FFD700;
}

.page-promotions__quick-link-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 15px;
}

.page-promotions__quick-link-text {
  font-size: 18px;
  font-weight: bold;
  text-align: center;
}

/* Core Games Section */
.page-promotions__core-games-section {
  padding: 80px 20px;
  background: #000;
  color: #ffffff;
}

.page-promotions__core-games-section .page-promotions__section-title {
  color: #FFD700;
}

.page-promotions__core-games-section .page-promotions__section-description {
  color: #f0f0f0;
}

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

.page-promotions__game-category-card {
  background: #1A1A1A;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-promotions__game-category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(255, 215, 0, 0.2);
}

.page-promotions__game-category-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.page-promotions__game-category-card h3 {
  font-size: 24px;
  color: #FFD700;
  margin: 20px 0 10px;
  padding: 0 20px;
}

.page-promotions__game-category-card p {
  font-size: 16px;
  color: #f0f0f0;
  padding: 0 20px 20px;
  margin: 0;
}

.page-promotions__game-category-card .page-promotions__btn-secondary {
  margin-bottom: 25px;
}

/* Promotions Section */
.page-promotions__promotions-section {
  padding: 80px 20px;
  background: #f8f9fa;
  color: #333333;
}

.page-promotions__promotions-section .page-promotions__section-title {
  color: #1A1A1A;
}

.page-promotions__promotions-section .page-promotions__section-description {
  color: #555555;
}

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

.page-promotions__promo-card {
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-promotions__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-promotions__promo-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #e0e0e0;
}

.page-promotions__promo-card h3 {
  font-size: 22px;
  color: #1A1A1A;
  margin: 20px 0 10px;
  padding: 0 20px;
}

.page-promotions__promo-card p {
  font-size: 16px;
  color: #555555;
  padding: 0 20px 20px;
  margin: 0;
}

.page-promotions__promo-card .page-promotions__btn-primary {
  margin-bottom: 25px;
}

/* Security & Support Section */
.page-promotions__security-support-section {
  padding: 80px 20px;
  background: #1A1A1A;
  color: #ffffff;
}

.page-promotions__security-support-section .page-promotions__section-title {
  color: #FFD700;
}

.page-promotions__security-support-section .page-promotions__section-description {
  color: #f0f0f0;
}

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

.page-promotions__feature-item {
  background: #000; /* Darker background for contrast */
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-promotions__feature-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-promotions__feature-item h3 {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-promotions__feature-item p {
  font-size: 16px;
  color: #f0f0f0;
}

.page-promotions__contact-btn {
  margin-top: 50px;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 80px 20px;
  background: #f8f9fa;
  color: #333333;
}

.page-promotions__faq-section .page-promotions__section-title {
  color: #1A1A1A;
}

.page-promotions__faq-section .page-promotions__section-description {
  color: #555555;
}

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

.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-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 20px;
  opacity: 0;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: #ffffff;
  border-radius: 0 0 8px 8px;
}

.page-promotions__faq-answer p {
  margin: 0;
  color: #555555;
  font-size: 16px;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.page-promotions__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.page-promotions__faq-item.active .page-promotions__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: #d0d0d0;
}

.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #1A1A1A;
  pointer-events: none;
}

.page-promotions__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  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;
  height: 30px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  color: #FFD700;
  transform: rotate(45deg); /* Example: rotate for 'x' or use '-' */
}

/* Blog Section */
.page-promotions__blog-section {
  padding: 80px 20px;
  background: #000;
  color: #ffffff;
}

.page-promotions__blog-section .page-promotions__section-title {
  color: #FFD700;
}

.page-promotions__blog-section .page-promotions__section-description {
  color: #f0f0f0;
}

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

.page-promotions__blog-card {
  background: #1A1A1A;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-promotions__blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(255, 215, 0, 0.2);
}

.page-promotions__blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.page-promotions__blog-card h3 {
  font-size: 20px;
  color: #FFD700;
  margin: 20px 0 10px;
  padding: 0 20px;
  text-align: left;
}

.page-promotions__blog-card h3 a {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-promotions__blog-card h3 a:hover {
  color: #ffffff;
}

.page-promotions__blog-card p {
  font-size: 16px;
  color: #f0f0f0;
  padding: 0 20px 15px;
  margin: 0;
  text-align: left;
}

.page-promotions__blog-card .page-promotions__blog-date {
  display: block;
  font-size: 14px;
  color: #999999;
  padding: 0 20px 20px;
  text-align: left;
}

.page-promotions__view-all-blog {
  margin-top: 50px;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__section-title {
    font-size: 32px;
  }
  .page-promotions__section-description {
    font-size: 17px;
  }
  .page-promotions__games-layout {
    grid-template-columns: 1fr;
  }
  .page-promotions__games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-promotions__featured-game-image {
    height: 400px;
  }
  .page-promotions__intro-section .page-promotions__content-wrapper {
    grid-template-columns: 1fr;
  }
  .page-promotions__intro-section .page-promotions__image-block {
    order: -1; /* Image above text on mobile */
  }
  .page-promotions__game-category-card h3 {
    font-size: 22px;
  }
  .page-promotions__promo-card h3 {
    font-size: 20px;
  }
  .page-promotions__blog-card h3 {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-promotions__container {
    padding: 30px 15px;
  }
  .page-promotions__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-promotions__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-promotions__logo-carousel-section {
    padding: 30px 15px;
  }
  .page-promotions__logo-carousel {
    gap: 20px;
  }
  .page-promotions__logo-item {
    width: 160px;
    height: 160px;
  }
  .page-promotions__games-section {
    padding: 40px 15px;
  }
  .page-promotions__games-layout {
    gap: 20px;
  }
  .page-promotions__featured-game-title {
    font-size: 24px;
  }
  .page-promotions__featured-game-image {
    height: 300px;
  }
  .page-promotions__games-tabs {
    gap: 20px;
    margin-bottom: 20px;
  }
  .page-promotions__games-tab {
    font-size: 18px;
  }
  .page-promotions__games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-promotions__game-card-image {
    height: 150px;
  }
  .page-promotions__game-card-title {
    font-size: 14px;
    margin: 10px 0 10px 0;
    padding: 0 5px;
  }
  .page-promotions__intro-section,
  .page-promotions__quick-access-section,
  .page-promotions__core-games-section,
  .page-promotions__promotions-section,
  .page-promotions__security-support-section,
  .page-promotions__faq-section,
  .page-promotions__blog-section {
    padding: 40px 15px;
  }
  .page-promotions__intro-section .page-promotions__text-block p {
    font-size: 16px;
  }
  .page-promotions__quick-links-grid,
  .page-promotions__game-categories-grid,
  .page-promotions__promo-grid,
  .page-promotions__features-grid,
  .page-promotions__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-promotions__quick-link-card img {
    width: 80px;
    height: 80px;
  }
  .page-promotions__quick-link-text {
    font-size: 16px;
  }
  .page-promotions__game-category-card h3 {
    font-size: 20px;
  }
  .page-promotions__game-category-card p {
    font-size: 15px;
  }
  .page-promotions__promo-card h3 {
    font-size: 18px;
  }
  .page-promotions__promo-card p {
    font-size: 15px;
  }
  .page-promotions__feature-item h3 {
    font-size: 20px;
  }
  .page-promotions__feature-item p {
    font-size: 15px;
  }
  .page-promotions__faq-question h3 {
    font-size: 16px;
  }
  .page-promotions__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }
  .page-promotions__faq-answer p {
    font-size: 15px;
  }
  .page-promotions__blog-card h3 {
    font-size: 17px;
  }
  .page-promotions__blog-card p {
    font-size: 15px;
  }

  /* Mobile image responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-section,
  .page-promotions__logo-carousel-section,
  .page-promotions__games-section,
  .page-promotions__intro-section,
  .page-promotions__quick-access-section,
  .page-promotions__core-games-section,
  .page-promotions__promotions-section,
  .page-promotions__security-support-section,
  .page-promotions__faq-section,
  .page-promotions__blog-section,
  .page-promotions__quick-link-card,
  .page-promotions__game-category-card,
  .page-promotions__promo-card,
  .page-promotions__feature-item,
  .page-promotions__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions__hero-section, .page-promotions__logo-carousel-section, .page-promotions__games-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-promotions__hero-container, .page-promotions__logo-carousel-container, .page-promotions__games-container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-promotions__hero-image img {
    width: 100% !important;
    height: auto !important;
  }
}