/* style/promotions.css */

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

/* Base styles for the page content */
.page-promotions {
  background-color: var(--ev99-background); /* Dark background from custom palette */
  color: var(--ev99-text-main); /* Light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

.page-promotions__dark-section {
  background-color: var(--ev99-background);
  color: var(--ev99-text-main);
}

.page-promotions__light-bg {
  background-color: #f8f8f8; /* A very light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-promotions__section-title {
  font-size: clamp(2em, 4vw, 2.8em); /* Responsive font size for H2 */
  font-weight: bold;
  margin-bottom: 30px;
  color: var(--ev99-text-main);
  text-shadow: 0 0 5px rgba(87, 227, 141, 0.5); /* Subtle glow for titles */
}

.page-promotions__light-bg .page-promotions__section-title {
  color: #111111;
  text-shadow: none;
}

.page-promotions__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--ev99-text-secondary);
}

.page-promotions__light-bg .page-promotions__text-block {
  color: #555555;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  padding: 0;
  padding-top: 10px; /* Small top padding for visual spacing */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Ensure hero section has a decent height */
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  min-height: 400px; /* Ensure hero image is not too small */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  padding: 40px 20px;
  text-align: center;
  margin-top: 20px; /* Space between image and content */
  background: rgba(8, 22, 15, 0.8); /* Semi-transparent background for readability */
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-promotions__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1 font size */
  color: var(--ev99-text-main);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 0 10px var(--ev99-glow);
}

.page-promotions__hero-description {
  font-size: clamp(1em, 2vw, 1.3em);
  color: var(--ev99-text-secondary);
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Ensure long words break */
  box-sizing: border-box;
}

.page-promotions__btn-primary {
  background: var(--ev99-button-gradient);
  color: #ffffff;
  border: 2px solid var(--ev99-glow);
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

.page-promotions__btn-secondary {
  background: none;
  color: var(--ev99-glow);
  border: 2px solid var(--ev99-glow);
}

.page-promotions__btn-secondary:hover {
  background: rgba(87, 227, 141, 0.1);
  color: var(--ev99-text-main);
  transform: translateY(-2px);
}

.page-promotions__card-button {
  width: auto; /* Card buttons can be auto-width */
  margin-top: auto; /* Push button to bottom of card */
}

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

.page-promotions__card {
  background-color: var(--ev99-card-bg);
  border: 1px solid var(--ev99-border);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-promotions__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-promotions__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  color: var(--ev99-text-main);
}

.page-promotions__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--ev99-gold);
}

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

/* Terms Section */
.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  text-align: left;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__terms-list li {
  background-color: #ffffff;
  color: #333333;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-left: 4px solid var(--ev99-green-primary);
  font-size: 1em;
}

/* How-To Section */
.page-promotions__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__step-card {
  background-color: var(--ev99-card-bg);
  border: 1px solid var(--ev99-border);
  border-radius: 12px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-promotions__step-image {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

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

.page-promotions__step-text {
  font-size: 0.95em;
  color: var(--ev99-text-secondary);
  margin-bottom: 20px;
}

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

.page-promotions__faq-item {
  background-color: #ffffff; /* Light background for FAQ items */
  color: #333333; /* Dark text for light background */
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f0f0f0;
  color: #333333;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background-color: #e5e5e5;
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  transform: rotate(45deg);
}

.page-promotions__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
  background-color: #ffffff;
  line-height: 1.6;
}

/* Hide default details marker */
.page-promotions__faq-item > summary {
  list-style: none;
}

.page-promotions__faq-item > summary::-webkit-details-marker {
  display: none;
}

/* Final CTA Section */
.page-promotions__cta-final {
  padding: 80px 0;
}

.page-promotions__cta-final .page-promotions__section-title {
  color: var(--ev99-text-main);
}

.page-promotions__cta-final .page-promotions__text-block {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-content {
    padding: 30px 15px;
  }

  .page-promotions__main-title {
    font-size: clamp(2em, 4vw, 3em);
  }

  .page-promotions__hero-description {
    font-size: clamp(0.9em, 1.8vw, 1.2em);
  }

  .page-promotions__section {
    padding: 40px 0;
  }

  .page-promotions__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
  }

  .page-promotions__text-block {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  /* General mobile container padding */
  .page-promotions__container {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions__hero-section {
    min-height: 450px;
    padding-top: 10px !important;
  }

  .page-promotions__hero-image {
    min-height: 250px;
  }

  .page-promotions__hero-content {
    padding: 25px 15px;
    margin-top: 15px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
    margin-bottom: 10px;
  }

  .page-promotions__hero-description {
    font-size: clamp(0.85em, 3vw, 1em);
    margin-bottom: 20px;
  }

  .page-promotions__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
    overflow: hidden !important;
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 1em;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-promotions__card-button {
    width: 100% !important;
  }

  .page-promotions__section {
    padding: 30px 0;
  }

  .page-promotions__section-title {
    font-size: clamp(1.5em, 5vw, 2em);
    margin-bottom: 20px;
  }

  .page-promotions__text-block {
    font-size: 0.95em;
  }

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

  .page-promotions__card-image,
  .page-promotions__step-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  /* Ensure all image containers are responsive */
  .page-promotions__hero-image-wrapper,
  .page-promotions__card,
  .page-promotions__step-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

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

  .page-promotions__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-promotions__faq-answer {
    padding: 15px 20px;
    font-size: 0.95em;
  }

  .page-promotions__cta-final {
    padding: 50px 0;
  }
}

@media (max-width: 480px) {
  .page-promotions__hero-section {
    min-height: 400px;
  }

  .page-promotions__hero-content {
    padding: 20px 10px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }

  .page-promotions__hero-description {
    font-size: clamp(0.8em, 3.5vw, 0.9em);
  }

  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    font-size: 0.9em;
    padding: 10px 15px;
  }

  .page-promotions__section-title {
    font-size: clamp(1.2em, 6vw, 1.8em);
  }

  .page-promotions__card-title {
    font-size: 1.3em;
  }

  .page-promotions__card-text {
    font-size: 0.9em;
  }

  .page-promotions__step-title {
    font-size: 1.2em;
  }

  .page-promotions__step-text {
    font-size: 0.9em;
  }

  .page-promotions__faq-question {
    font-size: 0.95em;
  }

  .page-promotions__faq-answer {
    font-size: 0.9em;
  }
}