/* style/promotions.css */

/* Custom Colors */
:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg: #10233F;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy: #08162B;
}

.page-promotions {
  color: var(--text-main); /* Ensure text color contrasts with body background (var(--deep-navy)) */
  background-color: var(--deep-navy);
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 20px 60px; /* body handles padding-top, use small decorative top padding */
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

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

.page-promotions__main-title {
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__intro-text {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* General Content Area */
.page-promotions__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: var(--deep-navy);
  color: var(--text-main);
}

.page-promotions__section-title {
  font-size: 2.2em;
  font-weight: 700;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-promotions__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--gold-color);
  border-radius: 2px;
}

.page-promotions__paragraph {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 20px;
  color: var(--text-secondary);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

.page-promotions__highlight-text {
  color: var(--gold-color);
  font-weight: 600;
}

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

.page-promotions__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
}

.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; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-promotions__card-title {
  font-size: 1.3em;
  font-weight: 600;
  color: var(--gold-color);
  padding: 20px 20px 10px;
}

.page-promotions__card-description {
  font-size: 0.95em;
  color: var(--text-secondary);
  padding: 0 20px 20px;
  flex-grow: 1;
  line-height: 1.5;
}

.page-promotions__card-button {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  padding: 12px 0;
  text-align: center;
  background: var(--button-gradient);
  color: var(--text-main);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.page-promotions__card-button:hover {
  opacity: 0.9;
}

/* Promo Steps */
.page-promotions__promo-steps {
  list-style: none;
  padding: 0;
  margin: 40px auto 60px;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-promotions__promo-step-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.3s ease;
}

.page-promotions__promo-step-item:hover {
  box-shadow: 0 0 20px var(--glow-color);
}

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

.page-promotions__promo-step-item p {
  color: var(--text-secondary);
  line-height: 1.5;
}

.page-promotions__promo-step-item a {
  color: var(--gold-color);
  text-decoration: none;
  font-weight: 500;
}

.page-promotions__promo-step-item a:hover {
  text-decoration: underline;
}

/* Terms & Conditions */
.page-promotions__terms-list {
  list-style: disc;
  margin: 30px auto;
  padding-left: 40px;
  max-width: 900px;
  color: var(--text-secondary);
}

.page-promotions__terms-item {
  margin-bottom: 10px;
  line-height: 1.6;
}

.page-promotions__read-more-btn {
  display: block;
  width: fit-content;
  margin: 40px auto 0;
  padding: 12px 30px;
  text-align: center;
  background: var(--card-bg);
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.page-promotions__read-more-btn:hover {
  background: var(--gold-color);
  color: var(--deep-navy);
}

/* Call to Action Section */
.page-promotions__call-to-action {
  padding: 80px 20px;
  text-align: center;
  background-color: var(--primary-color);
  color: var(--text-main);
  border-top: 1px solid var(--border-color);
}

.page-promotions__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

.page-promotions__cta-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--gold-color);
  margin-bottom: 25px;
}

.page-promotions__cta-description {
  font-size: 1.1em;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.page-promotions__cta-button {
  padding: 15px 40px;
  font-size: 1.2em;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Buttons */
.page-promotions__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main);
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow word breaking */
}

.page-promotions__btn-primary:hover {
  opacity: 0.9;
}

.page-promotions__btn-secondary {
  background: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow word breaking */
}

.page-promotions__btn-secondary:hover {
  background-color: var(--gold-color);
  color: var(--deep-navy);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: 2.5em;
  }
  .page-promotions__cta-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 10px 15px 40px;
  }
  .page-promotions__hero-image-wrapper {
    max-height: 400px;
  }
  .page-promotions__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-promotions__intro-text {
    font-size: 1em;
    margin-bottom: 25px;
  }
  .page-promotions__cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-promotions__btn-primary, .page-promotions__btn-secondary {
    width: 100%;
    max-width: 300px; /* Limit button width for better appearance */
    margin: 0 auto;
  }

  .page-promotions__content-area {
    padding: 40px 15px;
  }
  .page-promotions__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-promotions__paragraph {
    font-size: 0.95em;
  }
  .page-promotions__promotions-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-promotions__card-image {
    height: 180px;
  }
  .page-promotions__card-title {
    font-size: 1.2em;
  }
  .page-promotions__promo-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-promotions__terms-list {
    padding-left: 25px;
  }
  .page-promotions__read-more-btn {
    width: 100%;
    max-width: 300px;
  }

  .page-promotions__call-to-action {
    padding: 60px 15px;
  }
  .page-promotions__cta-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }
  .page-promotions__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-promotions__cta-button {
    font-size: 1.1em;
    padding: 12px 30px;
    width: 100%;
    max-width: 300px;
  }

  /* Mobile specific image/video/button overflow prevention */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important; /* Ensure images take full width of container */
    height: auto !important;
    display: block !important;
  }

  .page-promotions video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-section,
  .page-promotions__hero-image-wrapper,
  .page-promotions__hero-content,
  .page-promotions__cta-group,
  .page-promotions__promotions-grid,
  .page-promotions__promo-steps,
  .page-promotions__terms-list,
  .page-promotions__call-to-action,
  .page-promotions__cta-content,
  .page-promotions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent content overflow */
  }

  .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;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .page-promotions__main-title {
    font-size: 1.7em;
  }
  .page-promotions__section-title {
    font-size: 1.6em;
  }
  .page-promotions__cta-title {
    font-size: 1.6em;
  }
  .page-promotions__btn-primary, .page-promotions__btn-secondary {
    font-size: 0.95em;
    padding: 10px 20px;
  }
}