/* style/promotions.css */
/* Body padding-top is handled by shared.css, do not duplicate here. */
.page-promotions {
  font-family: Arial, sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
  line-height: 1.6;
}

.page-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 40px 0; /* Small top padding, more bottom padding */
  overflow: hidden; /* Ensure no overflow */
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 675px; /* Limit height for hero image */
}

.page-promotions__hero-content {
  position: relative; /* Ensure content is above image but not overlapping */
  z-index: 1;
  max-width: 800px;
  margin-top: 20px; /* Space between image and text */
  padding: 0 20px;
}

.page-promotions__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* Responsive font size */
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-promotions__description {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: #1F2D3D; /* Text Main */
  margin-bottom: 30px;
}

.page-promotions__section {
  padding: 60px 20px;
  background-color: #F4F7FB; /* Background */
}

.page-promotions__dark-section {
  background-color: #2F6BFF; /* Main Color */
  color: #ffffff;
}

.page-promotions__dark-section .page-promotions__section-title,
.page-promotions__dark-section .page-promotions__text-block {
  color: #ffffff;
}

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

.page-promotions__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
}

.page-promotions__text-block {
  font-size: 1rem;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

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

.page-promotions__card {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(47, 107, 255, 0.1); /* Glow effect with brand color */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #1F2D3D; /* Text Main */
  border: 1px solid #D6E2FF; /* Border */
}

.page-promotions__light-bg {
  background-color: #FFFFFF; /* Card BG */
  color: #1F2D3D; /* Text Main */
}

.page-promotions__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card image display */
  object-fit: cover;
  display: block;
}

.page-promotions__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1F2D3D; /* Text Main */
  margin: 20px 20px 10px 20px;
}

.page-promotions__card-text {
  font-size: 0.95rem;
  color: #1F2D3D; /* Text Main */
  padding: 0 20px 20px 20px;
  flex-grow: 1; /* Allow text to grow */
}

.page-promotions__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  margin: 0 20px 20px 20px; /* Margin for card buttons */
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-promotions__btn-primary:hover {
  opacity: 0.9;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-promotions__btn-secondary {
  display: inline-block;
  background: #ffffff;
  color: #2F6BFF; /* Main Color */
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid #2F6BFF; /* Main Color */
  cursor: pointer;
  margin: 0 20px 20px 20px; /* Margin for card buttons */
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-promotions__btn-secondary:hover {
  background: #2F6BFF; /* Main Color */
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-promotions__event-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 30px;
}

.page-promotions__event-item {
  display: flex;
  background-color: #FFFFFF; /* Card BG */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(47, 107, 255, 0.1);
  overflow: hidden;
  border: 1px solid #D6E2FF; /* Border */
}

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

.page-promotions__event-content {
  padding: 30px;
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-promotions__event-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 10px;
}

.page-promotions__event-date {
  font-size: 0.9rem;
  color: #666666; /* Custom Color */
  margin-bottom: 15px;
}

.page-promotions__event-description {
  font-size: 1rem;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 25px;
}

.page-promotions__vip-benefits {
  list-style: none;
  padding: 0;
  margin: 50px auto;
  max-width: 800px;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.page-promotions__vip-benefits li {
  font-size: 1.05rem;
  color: #1F2D3D; /* Text Main */
  position: relative;
  padding-left: 30px;
}

.page-promotions__vip-benefits li::before {
  content: '✓';
  color: #2F6BFF; /* Main Color */
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-promotions__cta-banner {
  padding: 80px 20px;
  text-align: center;
  color: #ffffff;
}

.page-promotions__cta-banner .page-promotions__cta-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-promotions__cta-banner .page-promotions__cta-description {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  max-width: 700px;
  margin: 0 auto 40px auto;
  color: #ffffff;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-promotions__vip-benefits {
    grid-template-columns: 1fr;
  }
}

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

  .page-promotions__hero-section {
    padding: 10px 0 30px 0 !important; /* Small top padding, more bottom padding */
  }

  .page-promotions__hero-content {
    margin-top: 15px;
    padding: 0 15px !important;
  }

  .page-promotions__main-title {
    font-size: 2rem;
  }

  .page-promotions__description {
    font-size: 1rem;
  }

  .page-promotions__section {
    padding: 40px 15px !important; /* Mobile padding */
  }

  .page-promotions__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-promotions__text-block {
    font-size: 0.95rem;
    margin-bottom: 40px;
  }

  .page-promotions__cards-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

  .page-promotions__card {
    padding-bottom: 15px;
  }

  .page-promotions__card-title {
    font-size: 1.25rem;
    margin: 15px 15px 8px 15px;
  }

  .page-promotions__card-text {
    font-size: 0.9rem;
    padding: 0 15px 15px 15px;
  }

  .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;
    margin: 0 auto 15px auto !important; /* Center buttons and add space */
    padding: 12px 20px;
  }
  
  .page-promotions__card .page-promotions__btn-primary,
  .page-promotions__card .page-promotions__btn-secondary {
    margin-left: 15px !important;
    margin-right: 15px !important;
  }

  .page-promotions__event-item {
    flex-direction: column; /* Stack image and content */
  }

  .page-promotions__event-image {
    width: 100%;
    height: auto;
  }

  .page-promotions__event-content {
    width: 100%;
    padding: 20px 15px !important;
  }

  .page-promotions__event-title {
    font-size: 1.4rem;
  }

  .page-promotions__vip-benefits {
    margin: 30px auto;
    padding: 0 15px !important;
  }

  .page-promotions__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px !important;
  }
  
  .page-promotions__cta-buttons .page-promotions__btn-primary,
  .page-promotions__cta-buttons .page-promotions__btn-secondary {
    margin: 0 auto !important; /* Override card button margin for CTA section */
  }

  .page-promotions__cta-banner {
    padding: 60px 15px !important;
  }

  .page-promotions__cta-banner .page-promotions__cta-title {
    font-size: 1.8rem;
  }

  .page-promotions__cta-banner .page-promotions__cta-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  /* Force responsive image handling for all images */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Force responsive container handling */
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__hero-section,
  .page-promotions__welcome-bonus,
  .page-promotions__daily-offers,
  .page-promotions__special-events,
  .page-promotions__vip-program,
  .page-promotions__cta-banner,
  .page-promotions__cta-buttons,
  .page-promotions__event-item,
  .page-promotions__event-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Ensure no overflow */
  }
  
  /* Specific padding for containers on mobile to prevent content touching edges */
  .page-promotions__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-promotions__hero-section {
    padding-left: 0 !important; /* hero-section itself doesn't need horizontal padding */
    padding-right: 0 !important;
  }
}

/* No CSS filters for images */
.page-promotions img {
  filter: none !important;
}