/* style/promotions.css */
/* Base styles for the promotions page content */
.page-promotions {
  font-family: Arial, sans-serif;
  color: var(--text-main, #F2FFF6); /* Default light text for dark background */
  background-color: var(--background-color, #08160F); /* Deep Green background */
  line-height: 1.6;
  padding-bottom: 60px; /* Ensure space above footer */
}

/* Section styling */
.page-promotions__section {
  padding: 60px 0;
  text-align: center;
}

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

.page-promotions__section-title {
  font-size: 2.8em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-promotions__section-description {
  font-size: 1.1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image first, then content */
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  position: relative;
  z-index: 1;
  margin-bottom: 40px; /* Space between image and text */
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 700px; /* Limit height for hero image */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-promotions__main-title {
  font-size: clamp(2.5em, 5vw, 3.8em); /* Responsive font size */
  color: var(--gold, #F2C14E); /* Gold for main title */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5); /* Subtle glow */
}

.page-promotions__hero-description {
  font-size: 1.2em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-card,
.page-promotions__btn-step {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box; /* Ensure padding doesn't push width */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text break */
  text-align: center;
  min-width: 180px; /* Minimum width for buttons */
}

.page-promotions__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-promotions__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
  transform: translateY(-2px);
}

.page-promotions__btn-secondary {
  background: transparent;
  color: var(--gold, #F2C14E); /* Gold text for secondary button */
  border: 2px solid var(--gold, #F2C14E);
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.2);
}

.page-promotions__btn-secondary:hover {
  background: var(--gold, #F2C14E);
  color: var(--deep-green, #0A4B2C); /* Darker text on hover */
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.4);
  transform: translateY(-2px);
}

.page-promotions__btn-card,
.page-promotions__btn-step {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  padding: 12px 25px;
  font-size: 0.95em;
  width: calc(100% - 40px); /* Adjust for padding in mobile */
  max-width: 250px; /* Limit width on larger screens */
  margin-top: 20px;
  box-shadow: 0 2px 10px rgba(17, 168, 78, 0.3);
}

.page-promotions__btn-card:hover,
.page-promotions__btn-step:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(17, 168, 78, 0.5);
}

/* Featured Promotions Grid */
.page-promotions__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__promo-card {
  background-color: var(--card-bg, #11271B); /* Dark card background */
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  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__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 25px;
}

.page-promotions__card-title {
  font-size: 1.5em;
  color: var(--gold, #F2C14E); /* Gold for card titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-promotions__card-text {
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
  flex-grow: 1; /* Allow text to take available space */
}

/* Exclusive Offers (VIP) */
.page-promotions__exclusive-offers {
  background-color: var(--deep-green, #0A4B2C); /* Slightly different dark background */
  padding: 80px 0;
}

.page-promotions__exclusive-offers .page-promotions__section-title {
  color: var(--gold, #F2C14E);
}

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

.page-promotions__offer-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 12px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-promotions__offer-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

.page-promotions__offer-title {
  font-size: 1.4em;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promotions__offer-text {
  font-size: 0.95em;
  color: var(--text-secondary, #A7D9B8);
}

.page-promotions__cta-center {
  margin-top: 50px;
}

/* Game Specific Promotions */
.page-promotions__game-promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__game-card {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 12px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__game-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
}

.page-promotions__game-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-promotions__game-title {
  font-size: 1.3em;
  color: var(--gold, #F2C14E);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promotions__game-text {
  font-size: 0.9em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* How To Claim Section */
.page-promotions__how-to-claim {
  background-color: var(--card-bg, #11271B); /* Use card background for this section */
  padding: 80px 0;
  border-top: 1px solid var(--divider, #1E3A2A);
}

.page-promotions__how-to-claim .page-promotions__section-title {
  color: var(--text-main, #F2FFF6);
}

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

.page-promotions__step-card {
  background-color: #08160F; /* Even darker background for steps */
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.page-promotions__step-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(17, 168, 78, 0.5);
}

.page-promotions__step-title {
  font-size: 1.4em;
  color: var(--gold, #F2C14E);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-promotions__step-text {
  font-size: 0.95em;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* FAQ Section */
.page-promotions__faq {
  padding: 80px 0;
  border-top: 1px solid var(--divider, #1E3A2A);
}

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

.page-promotions__faq-item {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border-color, #2E7A4E);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--text-main, #F2FFF6);
  cursor: pointer;
  background-color: var(--deep-green, #0A4B2C); /* Darker background for question */
  border-bottom: 1px solid var(--divider, #1E3A2A);
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background-color: var(--primary-color, #11A84E); /* Hover effect */
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: var(--gold, #F2C14E);
  transition: transform 0.3s ease;
}

/* For <details> tag, hide default marker */
.page-promotions__faq-item summary {
  list-style: none;
}
.page-promotions__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg); /* Change + to X or rotate */
}

.page-promotions__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--text-secondary, #A7D9B8);
  line-height: 1.7;
  background-color: var(--card-bg, #11271B);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-section {
    min-height: 500px;
  }
  .page-promotions__main-title {
    font-size: clamp(2em, 4.5vw, 3.2em);
  }
  .page-promotions__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-promotions__section {
    padding: 40px 0;
  }
  .page-promotions__hero-section {
    padding: 10px 0 40px 0;
    min-height: auto;
  }
  .page-promotions__hero-image-wrapper {
    margin-bottom: 30px;
  }
  .page-promotions__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em); /* More aggressive clamp for mobile H1 */
  }
  .page-promotions__hero-description {
    font-size: 1.05em;
    margin-bottom: 30px;
  }
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-promotions__promo-grid,
  .page-promotions__offer-list,
  .page-promotions__game-promo-grid,
  .page-promotions__steps-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-promotions__section-title {
    font-size: 1.8em;
  }
  .page-promotions__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-promotions__card-image,
  .page-promotions__game-image {
    height: 150px;
  }
  .page-promotions__promo-card,
  .page-promotions__offer-item,
  .page-promotions__game-card,
  .page-promotions__step-card {
    padding: 20px;
  }
  .page-promotions__offer-icon {
    width: 60px;
    height: 60px;
  }
  .page-promotions__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-promotions__faq-answer {
    padding: 15px 20px;
    font-size: 0.95em;
  }

  /* Mobile responsiveness for images */
  .page-promotions img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile responsiveness for video (if any) */
  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile responsiveness for containers */
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper,
  .page-promotions__cta-buttons,
  .page-promotions__button-group,
  .page-promotions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* Specific mobile padding for hero/video sections */
  .page-promotions__hero-section {
    padding-top: 10px !important; /* body handles --header-offset */
  }

  /* Ensure button text wraps */
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions a[class*="button"],
  .page-promotions a[class*="btn"] {
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* If buttons are grouped horizontally, ensure they wrap or stack */
  .page-promotions__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 10px;
  }
}

/* Custom properties for colors from the provided scheme */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background-color: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}

/* Ensure body padding-top is handled by shared.css, not here */
/* .page-promotions__video-section padding-top is set to 10px, not var(--header-offset) */