/* style/promotions.css */

/* Custom Color Variables */
:root {
  --color-primary: #11A84E;
  --color-secondary: #22C768;
  --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --color-background-main: #08160F; /* Custom Background */
  --color-card-bg: #11271B; /* Custom Card BG */
  --color-text-main: #F2FFF6; /* Custom Text Main */
  --color-text-secondary: #A7D9B8; /* Custom Text Secondary */
  --color-border: #2E7A4E; /* Custom Border */
  --color-glow: #57E38D; /* Custom Glow */
  --color-gold: #F2C14E; /* Custom Gold */
  --color-divider: #1E3A2A; /* Custom Divider */
  --color-deep-green: #0A4B2C; /* Custom Deep Green */
}

.page-promotions {
  background-color: var(--color-background-main);
  color: var(--color-text-main); /* Default text color for the page */
}

/* Ensure all headings use the main text color or a contrasting one */
.page-promotions h1,
.page-promotions h2,
.page-promotions h3,
.page-promotions h4 {
  color: var(--color-text-main);
}

/* Link colors */
.page-promotions a {
  color: var(--color-text-secondary);
  text-decoration: none;
}

.page-promotions a:hover {
  color: var(--color-gold);
  text-decoration: underline;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px; /* Space for content below image */
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--color-background-main);
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 70vh; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px; /* Space between image and content */
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.page-promotions__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* H1 clamp for responsiveness */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--color-gold); /* Using gold for main title */
}

.page-promotions__hero-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--color-text-main);
}

.page-promotions__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  gap: 15px;
  justify-content: center;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px; /* Ensure buttons are not too small */
  max-width: 100%; /* Important for mobile responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

.page-promotions__btn-primary {
  background: var(--color-button-gradient);
  color: #ffffff; /* White text on dark gradient */
  border: 2px solid transparent;
}

.page-promotions__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4); /* Glow effect */
}

.page-promotions__btn-secondary {
  background: transparent;
  color: var(--color-gold); /* Gold text on dark background */
  border: 2px solid var(--color-gold);
}

.page-promotions__btn-secondary:hover {
  background: var(--color-gold);
  color: var(--color-background-main); /* Dark text on gold hover */
  transform: translateY(-2px);
}

/* General Section Styles */
.page-promotions__section {
  padding: 60px 20px;
  background-color: var(--color-background-main);
  color: var(--color-text-main);
}

.page-promotions__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: var(--color-gold);
}

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

.page-promotions__text-block {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--color-text-secondary);
}

.page-promotions__sub-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--color-text-main);
}

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

.page-promotions__card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: var(--color-text-main);
}

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

.page-promotions__card-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
  display: block;
}

.page-promotions__card-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--color-gold);
}

.page-promotions__card-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  flex-grow: 1; /* Make description take available space */
}

.page-promotions__list {
  list-style: disc;
  padding-left: 20px;
  margin-top: 15px;
  color: var(--color-text-secondary);
}

.page-promotions__list li {
  margin-bottom: 8px;
  line-height: 1.5;
}

.page-promotions__list li strong {
  color: var(--color-text-main);
}

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

/* Specific Section Backgrounds */
.page-promotions__dark-bg {
  background-color: var(--color-deep-green); /* Using Deep Green for dark sections */
}

/* FAQ Section */
.page-promotions__faq {
  padding: 60px 20px;
  background-color: var(--color-background-main);
}

.page-promotions__faq-list {
  margin-top: 40px;
}

.page-promotions__faq-item {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--color-text-main);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-main);
  background-color: var(--color-card-bg);
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background-color: var(--color-deep-green);
}

.page-promotions__faq-question::-webkit-details-marker {
  display: none;
}

.page-promotions__faq-question::marker {
  display: none;
}

.page-promotions__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 1;
  color: var(--color-gold);
  margin-left: 15px;
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  content: "−";
}

.page-promotions__faq-answer {
  padding: 0 25px 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.page-promotions__faq-answer p {
  margin-bottom: 0;
}

/* Conclusion Section */
.page-promotions__conclusion {
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-section {
    padding-bottom: 40px;
  }
  .page-promotions__main-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
  }
  .page-promotions__hero-description {
    font-size: 1rem;
  }
  .page-promotions__section {
    padding: 40px 15px;
  }
  .page-promotions__section-title {
    font-size: clamp(1.6rem, 4.5vw, 2.2rem);
  }
  .page-promotions__card-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding-top: 10px !important; /* body already handles header offset */
  }

  .page-promotions__hero-image {
    max-height: 40vh; /* Adjust hero image height for mobile */
  }

  /* Mobile image responsiveness */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile video responsiveness (if any, though none currently) */
  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-promotions__video-section {
    padding-top: 10px !important;
  }

  /* Mobile button responsiveness */
  .page-promotions__cta-button,
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions a[class*="button"],
  .page-promotions a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Button containers mobile adaptation */
  .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;
    flex-wrap: wrap !important; /* Allow buttons to wrap */
    gap: 10px; /* Spacing between wrapped buttons */
    flex-direction: column; /* Stack buttons vertically on mobile */
  }

  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-promotions__card-grid {
    grid-template-columns: 1fr; /* Single column for cards on mobile */
  }

  .page-promotions__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-promotions__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.9rem;
  }
}

/* Ensure no CSS filters are applied to images */
.page-promotions img {
  filter: none !important;
}

/* Content area images CSS dimensions lower bound */
.page-promotions__content-area img,
.page-promotions__card img {
  min-width: 200px;
  min-height: 200px;
  /* CSS width/height must not make display smaller than HTML width/height */
  /* If HTML says width="400" height="300", CSS should not say */
  /* Use max-width: 100%; height: auto; for responsiveness */
}