/* style/promotions.css */

/* Base styles for the page-promotions scope */
.page-promotions {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
  line-height: 1.6;
  font-size: 16px;
}

/* Ensure images and containers are responsive by default */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px; /* Add some horizontal padding for smaller screens */
  box-sizing: border-box;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Stacks image and content vertically */
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  text-align: center;
  overflow: hidden;
}

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

.page-promotions__hero-content {
  position: relative; /* Flows after the image */
  padding: 20px;
  max-width: 800px;
  margin-top: 20px; /* Space between image and content */
  z-index: 1;
  background-color: #FFFFFF; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-promotions__main-title {
  font-size: clamp(2em, 4vw, 3em); /* H1 size constraint */
  font-weight: 700;
  line-height: 1.2;
  color: #000000; /* Custom Color_1776249996415 */
  margin-bottom: 15px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__hero-description {
  font-size: 1.1em;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 30px;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-promotions__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-promotions__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 5px 15px rgba(47, 107, 255, 0.4);
}

.page-promotions__btn-secondary {
  background: #ffffff;
  color: #2F6BFF; /* Main color */
  border: 2px solid #2F6BFF;
}

.page-promotions__btn-secondary:hover {
  background: #2F6BFF;
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(47, 107, 255, 0.2);
}

/* Overview Section */
.page-promotions__overview-section {
  padding: 60px 0;
  background-color: #F4F7FB; /* Background */
  text-align: center;
}

.page-promotions__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  color: #000000; /* Custom Color_1776249996415 */
  margin-bottom: 20px;
  font-weight: 700;
}

.page-promotions__section-description {
  font-size: 1.1em;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-promotions__card {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.3s ease;
  border: 1px solid #D6E2FF; /* Border */
}

.page-promotions__card:hover {
  transform: translateY(-5px);
}

.page-promotions__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-promotions__card-title {
  font-size: 1.5em;
  color: #000000; /* Custom Color_1776249996415 */
  margin-bottom: 10px;
  font-weight: 600;
}

.page-promotions__card-text {
  font-size: 0.95em;
  color: #1F2D3D; /* Text Main */
}

/* How to Claim Section */
.page-promotions__how-to-claim {
  padding: 60px 0;
  background-color: #2F6BFF; /* Main color as background for dark section */
  color: #ffffff; /* White text for dark background */
  text-align: center;
}

.page-promotions__how-to-claim .page-promotions__section-title,
.page-promotions__how-to-claim .page-promotions__section-description {
  color: #ffffff;
}

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

.page-promotions__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-promotions__step-number {
  background-color: #ffffff;
  color: #2F6BFF;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2em;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.page-promotions__step-title {
  font-size: 1.3em;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: 600;
}

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

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

/* Terms and Conditions Section */
.page-promotions__terms-section {
  padding: 60px 0;
  background-color: #F4F7FB; /* Background */
  text-align: center;
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__terms-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1em;
  color: #1F2D3D; /* Text Main */
}

.page-promotions__terms-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #2F6BFF;
  font-weight: 700;
}

.page-promotions__final-text {
  margin-top: 30px;
  font-size: 1em;
  color: #1F2D3D; /* Text Main */
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-promotions__hero-content {
    margin-top: 0px; /* Adjust for smaller screens */
  }
}

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

  /* General responsive for images, videos, and containers */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: unset !important; /* Override min-width for mobile */
    min-height: unset !important; /* Override min-height for mobile */
  }
  
  .page-promotions__hero-section {
    padding-top: 10px !important; /* Body handles header-offset */
    padding-bottom: 30px;
  }

  .page-promotions__hero-content {
    margin-top: 15px; /* Adjust spacing for mobile */
    padding: 15px;
  }

  .page-promotions__main-title {
    font-size: clamp(1.8em, 8vw, 2.2em);
  }

  .page-promotions__hero-description {
    font-size: 1em;
  }

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

  .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-left: 15px;
    padding-right: 15px;
  }

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

  .page-promotions__section-description {
    font-size: 0.95em;
  }

  .page-promotions__promotion-types {
    grid-template-columns: 1fr; /* Single column for cards */
  }

  .page-promotions__card {
    padding: 20px;
  }

  .page-promotions__card-image {
    height: 180px; /* Adjust card image height for mobile */
  }

  .page-promotions__steps-list {
    grid-template-columns: 1fr; /* Single column for steps */
  }

  .page-promotions__step-item {
    padding: 20px;
  }

  /* Ensure containers have proper padding and max-width on mobile */
  .page-promotions__container,
  .page-promotions__overview-section,
  .page-promotions__how-to-claim,
  .page-promotions__terms-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}