/* style/promotions.css */

/* Variables from shared.css are assumed */
/* --primary-color: #FFD700; */
/* --secondary-color: #8B0000; */
/* --text-light: #ffffff; */
/* --text-dark: #333333; */
/* --background-dark: #0d0d0d; (assuming from body background info) */

.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for the page, assuming dark body background */
  background-color: var(--background-dark); /* Ensure consistency with shared body background */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

/* General container for content */
.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section titles and descriptions */
.page-promotions__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

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

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  background-image: url('[GALLERY:hero:1920x1080:7club xyz,promotions,hero,golden,red,luxury]'); /* Example hero image */
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
}

.page-promotions__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 1;
}

.page-promotions__hero-section > .page-promotions__container {
  position: relative;
  z-index: 2;
}

.page-promotions__main-title {
  font-size: 56px;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
  line-height: 1.2;
}

.page-promotions__description {
  font-size: 24px;
  color: var(--text-light);
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure long words break */
  max-width: 100%; /* Ensure button doesn't exceed container */
  box-sizing: border-box; /* Include padding and border in element's total width and height */
}

.page-promotions__btn-primary {
  background: var(--primary-color);
  color: #333333; /* Dark text on primary color for contrast */
  border: 2px solid var(--primary-color);
}

.page-promotions__btn-primary:hover {
  background: #e6c200; /* Manual darker shade */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-promotions__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-promotions__btn-secondary:hover {
  background: var(--primary-color);
  color: #333333;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Featured Promotions Section */
.page-promotions__featured-promos {
  background-color: var(--background-dark); /* Dark background for content */
  padding: 80px 0;
}

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

.page-promotions__promo-card {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent light background */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-promotions__promo-card img {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  /* Ensure image is not smaller than 200x200px */
  min-width: 200px;
  min-height: 200px;
}

.page-promotions__promo-card .page-promotions__card-title {
  font-size: 24px;
  color: var(--primary-color);
  padding: 20px 20px 10px;
  margin: 0;
}

.page-promotions__promo-card .page-promotions__card-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-promotions__promo-card .page-promotions__card-title a:hover {
  color: var(--text-light);
}

.page-promotions__promo-card .page-promotions__card-text {
  font-size: 16px;
  color: var(--text-light);
  padding: 0 20px 20px;
  flex-grow: 1; /* Make text take available space */
}

.page-promotions__promo-card .page-promotions__btn-small {
  display: block; /* Make button full width of card content */
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 10px 20px;
  font-size: 16px;
  text-align: center;
}

/* Promotion Categories Section */
.page-promotions__categories {
  padding: 80px 0;
  background-color: var(--secondary-color); /* Use secondary color for contrast */
  color: var(--text-light); /* Light text on secondary color */
}

.page-promotions__categories .page-promotions__section-title {
  color: var(--primary-color); /* Primary color title on secondary background */
}

.page-promotions__categories .page-promotions__section-description {
  color: var(--text-light);
}

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

.page-promotions__category-item {
  background: rgba(0, 0, 0, 0.2); /* Darker background for items */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__category-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-promotions__category-text {
  font-size: 16px;
  color: var(--text-light);
}

/* How to Claim Section */
.page-promotions__how-to-claim {
  padding: 80px 0;
  background-color: var(--background-dark);
}

.page-promotions__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  counter-reset: step-counter; /* Initialize counter */
}

.page-promotions__step-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-promotions__step-icon {
  background: var(--primary-color);
  color: #333333; /* Dark text on primary color for contrast */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-promotions__step-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-promotions__step-text {
  font-size: 16px;
  color: var(--text-light);
}

.page-promotions__step-text a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-promotions__step-text a:hover {
  color: var(--text-light);
}

.page-promotions__cta-bottom {
  text-align: center;
  margin-top: 60px;
}

/* Terms Overview Section */
.page-promotions__terms-overview {
  padding: 80px 0;
  background-color: var(--secondary-color);
  color: var(--text-light);
}

.page-promotions__terms-overview .page-promotions__section-title {
  color: var(--primary-color);
}

.page-promotions__terms-overview .page-promotions__section-description {
  color: var(--text-light);
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px;
  max-width: 800px;
}

.page-promotions__terms-list li {
  background: rgba(0, 0, 0, 0.2);
  margin-bottom: 10px;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 16px;
  color: var(--text-light);
  display: flex;
  align-items: flex-start;
}

.page-promotions__terms-list li::before {
  content: "•";
  color: var(--primary-color);
  font-size: 20px;
  line-height: 1;
  margin-right: 10px;
  font-weight: bold;
}

.page-promotions__btn-center {
  display: block;
  width: fit-content;
  margin: 0 auto;
}

/* Why Choose Section */
.page-promotions__why-choose {
  padding: 80px 0;
  background-color: var(--background-dark);
}

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

.page-promotions__feature-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__feature-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-promotions__feature-text {
  font-size: 16px;
  color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: 48px;
  }
  .page-promotions__description {
    font-size: 20px;
  }
  .page-promotions__section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-promotions {
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-promotions__container {
    padding: 0 15px; /* Smaller padding on mobile */
  }

  .page-promotions__hero-section {
    padding: 80px 0;
    min-height: 400px;
  }

  .page-promotions__main-title {
    font-size: 36px;
    margin-bottom: 15px;
  }

  .page-promotions__description {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .page-promotions__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }
  
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions__btn-small,
  .page-promotions__btn-center {
    width: 100% !important; /* Force full width */
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    margin: 0 auto !important; /* Center block buttons */
  }

  .page-promotions__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-promotions__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-promotions__featured-promos,
  .page-promotions__categories,
  .page-promotions__how-to-claim,
  .page-promotions__terms-overview,
  .page-promotions__why-choose {
    padding: 60px 0;
  }

  .page-promotions__promo-grid,
  .page-promotions__category-grid,
  .page-promotions__steps-grid,
  .page-promotions__features-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

  .page-promotions__promo-card img {
    height: 200px; /* Adjust image height for mobile */
    min-width: 200px !important;
    min-height: 200px !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important; /* Ensure responsiveness */
    object-fit: cover;
  }
  
  /* Ensure all images are responsive and not too small */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Enforce minimum size */
    min-height: 200px !important;
  }
  
  /* Ensure all image containers are responsive */
  .page-promotions__promo-card,
  .page-promotions__promo-grid,
  .page-promotions__category-item,
  .page-promotions__category-grid,
  .page-promotions__step-item,
  .page-promotions__steps-grid,
  .page-promotions__feature-item,
  .page-promotions__features-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-promotions__card-title,
  .page-promotions__category-title,
  .page-promotions__step-title,
  .page-promotions__feature-title {
    font-size: 20px;
  }

  .page-promotions__terms-list li {
    padding: 12px 15px;
    font-size: 15px;
  }

  .page-promotions__cta-bottom {
    margin-top: 40px;
  }
}

/* Ensure all links inside text content have proper color */
.page-promotions p a,
.page-promotions li a {
  color: var(--primary-color);
  text-decoration: underline;
}
.page-promotions p a:hover,
.page-promotions li a:hover {
  color: var(--text-light);
}

/* Color contrast enforcement */
.page-promotions__dark-bg {
  color: var(--text-light); /* Light text on dark background */
}

/* Specific button styling to ensure contrast with dark text on primary color */
.page-promotions__btn-primary {
  background: var(--primary-color);
  color: #333333; /* For contrast with primary color #FFD700 */
  border: 2px solid var(--primary-color);
}

.page-promotions__btn-primary:hover {
  background: #e6c200; /* Darker primary */
  color: #000000; /* Darker text */
}

.page-promotions__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-promotions__btn-secondary:hover {
  background: var(--primary-color);
  color: #333333; /* Dark text on primary color */
}

/* Card titles and text on dark background */
.page-promotions__promo-card .page-promotions__card-title a,
.page-promotions__promo-card .page-promotions__card-text {
  color: var(--text-light); /* Ensure light text on card background */
}
.page-promotions__promo-card .page-promotions__card-title a:hover {
  color: var(--primary-color);
}

.page-promotions__promo-card {
  background: rgba(255, 255, 255, 0.08); /* Light transparent background */
  color: var(--text-light); /* Light text */
}

.page-promotions__category-item,
.page-promotions__step-item,
.page-promotions__feature-item {
  background: rgba(255, 255, 255, 0.08); /* Light transparent background */
  color: var(--text-light); /* Light text */
}
.page-promotions__category-title,
.page-promotions__step-title,
.page-promotions__feature-title {
  color: var(--primary-color); /* Primary color for titles */
}
.page-promotions__category-text,
.page-promotions__step-text,
.page-promotions__feature-text {
  color: var(--text-light); /* Light text for body */
}
.page-promotions__terms-list li {
  color: var(--text-light); /* Light text for list items */
}