/* style/promotions.css */

/* Custom Properties for Color Palette */
:root {
  --color-primary: #113B7A; /* Main Color */
  --color-secondary: #1D5FD1; /* Auxiliary Color */
  --color-button-gradient-start: #2B73F6;
  --color-button-gradient-end: #1144A6;
  --color-card-bg: #10233F;
  --color-text-main: #F3F8FF;
  --color-text-secondary: #AFC4E8;
  --color-border: #244D84;
  --color-glow: #4FA8FF;
  --color-gold: #F2C14E;
  --color-divider: #1B3357;
  --color-deep-navy: #08162B; /* Body background color */
  --color-white: #ffffff;
  --color-light-gray: #f9f9f9;
  --color-dark-gray: #333333;
  --color-medium-gray: #666;
  --color-black: #000000;
}

/* Base styles for the promotions page */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-text-main); /* Default text color for the page */
  background-color: var(--color-deep-navy); /* Ensure consistency if body background is not set by shared */
}

/* Ensure all images are responsive and do not cause overflow */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.page-promotions__dark-bg {
  background-color: var(--color-deep-navy);
  color: var(--color-text-main);
}

.page-promotions__light-bg {
  background-color: var(--color-white);
  color: var(--color-dark-gray);
}

.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-promotions__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: var(--color-gold); /* Using gold for prominent titles */
  font-weight: bold;
}

.page-promotions__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: var(--color-text-secondary);
}

/* HERO Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  /* body padding-top is handled by shared.css. This is a small decorative top padding. */
  padding-top: 10px; 
  background-color: var(--color-deep-navy); /* Background for the hero section */
}

.page-promotions__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Important for flex items */
}

.page-promotions__hero-image {
  width: 100%;
  margin-bottom: 30px;
  position: relative;
  z-index: 1; /* Ensure image is below any potential overlay, though we avoid text overlay */
}

.page-promotions__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-content {
  position: relative;
  z-index: 2; /* Content above the image if needed, but not overlaying it directly */
  text-align: center;
  width: 100%;
  padding: 20px 0;
}

.page-promotions__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Using clamp for responsive H1 */
  font-weight: bold;
  color: var(--color-gold);
  margin-bottom: 15px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}

.page-promotions__intro-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  color: var(--color-text-secondary);
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* CTA Button Styling */
.page-promotions__cta-button,
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* For long words */
  max-width: 100%; /* Ensure button does not overflow */
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.page-promotions__cta-button {
  background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-promotions__btn-primary {
  background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
  color: var(--color-white);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

.page-promotions__btn-secondary {
  background: transparent;
  color: var(--color-gold);
  border: 2px solid var(--color-gold);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__btn-secondary:hover {
  background-color: rgba(242, 193, 78, 0.1); /* Using fixed rgba for hover effect on secondary button */
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.3);
}

.page-promotions__cta-group {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  padding: 0 15px; /* Add padding to container */
}

/* List Styling */
.page-promotions__list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 800px;
  text-align: left;
}

.page-promotions__list-item {
  background-color: var(--color-card-bg); /* Use card background for list items in dark sections */
  color: var(--color-text-main);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-promotions__list-item strong {
  color: var(--color-gold);
}

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

.page-promotions__promo-card,
.page-promotions__step-card,
.page-promotions__blog-card {
  background-color: var(--color-card-bg); /* Default for cards */
  color: var(--color-text-main);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards are same height in a row */
}

.page-promotions__promo-card:hover,
.page-promotions__step-card:hover,
.page-promotions__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-promotions__promo-card img,
.page-promotions__step-card img,
.page-promotions__blog-card img {
  width: 100%;
  height: 250px; /* Fixed height for card images */
  object-fit: cover;
  border-bottom: 1px solid var(--color-divider);
}

.page-promotions__promo-card-content,
.page-promotions__blog-card-content {
  padding: 25px;
  flex-grow: 1; /* Allow content to take up available space */
  display: flex;
  flex-direction: column;
}

.page-promotions__card-title {
  font-size: 1.5em;
  color: var(--color-gold);
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-promotions__promo-card .page-promotions__card-description,
.page-promotions__step-card .page-promotions__card-description,
.page-promotions__blog-card .page-promotions__card-description {
  font-size: 1em;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1; /* Push button to bottom */
}

.page-promotions__promo-card .page-promotions__btn-primary,
.page-promotions__step-card .page-promotions__btn-primary {
  margin-top: auto; /* Align buttons at the bottom */
  width: calc(100% - 50px); /* Adjust for card padding */
  margin-left: 25px;
  margin-right: 25px;
  margin-bottom: 25px;
}

.page-promotions__blog-card {
  text-decoration: none; /* Remove underline for blog card link */
}

.page-promotions__blog-card .page-promotions__btn-primary,
.page-promotions__blog-card .page-promotions__btn-secondary {
  margin-top: auto; /* Align buttons at the bottom */
  width: calc(100% - 50px); /* Adjust for card padding */
  margin-left: 25px;
  margin-right: 25px;
  margin-bottom: 25px;
}

.page-promotions__blog-date {
  font-size: 0.9em;
  color: var(--color-text-secondary);
  margin-top: 15px;
  display: block;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 60px 20px;
  text-align: left; /* Align FAQ content to left */
}

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

details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  background-color: var(--color-card-bg);
  color: var(--color-text-main);
}
details.page-promotions__faq-item summary.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--color-gold); /* Question text color */
}
details.page-promotions__faq-item summary.page-promotions__faq-question::-webkit-details-marker {
  display: none;
}
details.page-promotions__faq-item summary.page-promotions__faq-question:hover {
  background-color: rgba(242, 193, 78, 0.1); /* Subtle hover effect using fixed rgba */
}
.page-promotions__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-promotions__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--color-gold);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-promotions__faq-item .page-promotions__faq-answer {
  padding: 0 20px 20px;
  background-color: var(--color-deep-navy); /* Darker background for answer */
  color: var(--color-text-secondary); /* Lighter text for answer */
  border-top: 1px solid var(--color-divider);
  border-radius: 0 0 5px 5px;
}
.page-promotions__faq-answer p {
  margin-top: 10px;
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__promo-grid,
  .page-promotions__steps-grid,
  .page-promotions__blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-promotions__container {
    padding: 0 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-promotions__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

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

  /* HERO Section */
  .page-promotions__hero-section {
    padding-top: 10px !important; /* Keep small top padding */
    padding-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-promotions__hero-image img {
    border-radius: 4px;
  }
  
  .page-promotions__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }

  .page-promotions__intro-description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  /* Buttons */
  .page-promotions__cta-button,
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
    margin-top: 15px;
  }

  .page-promotions__cta-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 10px;
  }

  /* Card Grid */
  .page-promotions__promo-grid,
  .page-promotions__steps-grid,
  .page-promotions__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-promotions__promo-card img,
  .page-promotions__step-card img,
  .page-promotions__blog-card img {
    height: 200px; /* Smaller fixed height for mobile card images */
  }

  .page-promotions__promo-card-content,
  .page-promotions__blog-card-content {
    padding: 20px;
  }

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

  .page-promotions__promo-card .page-promotions__btn-primary,
  .page-promotions__step-card .page-promotions__btn-primary,
  .page-promotions__blog-card .page-promotions__btn-primary,
  .page-promotions__blog-card .page-promotions__btn-secondary {
    width: calc(100% - 40px); /* Adjust for card padding */
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 20px;
  }

  /* FAQ */
  details.page-promotions__faq-item summary.page-promotions__faq-question { padding: 15px; } 
  .page-promotions__faq-qtext { font-size: 1em; }
  details.page-promotions__faq-item .page-promotions__faq-answer { padding: 0 15px 15px; }
}