/* style/blog-cr88-latest-promotions.css */

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

.page-blog-cr88-latest-promotions {
  color: var(--cr88-text-main); /* Default text color for the page */
  background-color: var(--cr88-deep-navy); /* Matches body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-blog-cr88-latest-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-blog-cr88-latest-promotions__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-bottom: 40px; /* Space for content below image */
  padding-top: 10px; /* Small top padding, not --header-offset */
}

.page-blog-cr88-latest-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 675px; /* Limit height for aesthetic */
  z-index: 1;
}

.page-blog-cr88-latest-promotions__hero-content {
  position: relative;
  z-index: 2;
  margin-top: -80px; /* Pull content up slightly over the image for visual flow */
  padding: 0 20px;
  max-width: 900px;
  color: var(--cr88-text-main);
}

.page-blog-cr88-latest-promotions__hero-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--cr88-text-main);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-blog-cr88-latest-promotions__hero-description {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  margin-bottom: 30px;
  color: var(--cr88-text-secondary);
}

.page-blog-cr88-latest-promotions__cta-button {
  display: inline-block;
  background: var(--cr88-button-gradient);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog-cr88-latest-promotions__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-blog-cr88-latest-promotions__cta-button--bottom {
  margin-top: 40px;
}

.page-blog-cr88-latest-promotions__content-area {
  padding: 60px 0;
  background-color: var(--cr88-deep-navy);
  color: var(--cr88-text-main);
}

.page-blog-cr88-latest-promotions__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--cr88-gold);
}

.page-blog-cr88-latest-promotions__content-area p {
  font-size: 1.05rem;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--cr88-text-secondary);
}

.page-blog-cr88-latest-promotions__content-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

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

.page-blog-cr88-latest-promotions__card {
  background-color: var(--cr88-card-bg);
  border: 1px solid var(--cr88-border);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--cr88-text-main);
}

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

.page-blog-cr88-latest-promotions__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--cr88-gold);
}

.page-blog-cr88-latest-promotions__card-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

.page-blog-cr88-latest-promotions__card p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  color: var(--cr88-text-secondary);
}

.page-blog-cr88-latest-promotions__btn-primary {
  display: inline-block;
  background: var(--cr88-button-gradient);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog-cr88-latest-promotions__btn-primary:hover {
  filter: brightness(1.1);
}

.page-blog-cr88-latest-promotions__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  counter-reset: step-counter;
}

.page-blog-cr88-latest-promotions__steps-list li {
  background-color: var(--cr88-card-bg);
  border: 1px solid var(--cr88-border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: var(--cr88-text-main);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 15px;
}

.page-blog-cr88-latest-promotions__steps-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  background-color: var(--cr88-secondary);
  color: #ffffff;
  font-weight: 700;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.page-blog-cr88-latest-promotions__list-strong {
  color: var(--cr88-gold);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-blog-cr88-latest-promotions {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-blog-cr88-latest-promotions__container {
    padding: 0 15px;
  }

  .page-blog-cr88-latest-promotions__hero-section {
    padding-top: 10px !important;
    padding-bottom: 20px;
  }

  .page-blog-cr88-latest-promotions__hero-content {
    margin-top: -50px; /* Adjust for smaller screens */
    padding: 0 15px;
  }

  .page-blog-cr88-latest-promotions__hero-title {
    font-size: 1.8rem;
  }

  .page-blog-cr88-latest-promotions__hero-description {
    font-size: 1rem;
  }

  .page-blog-cr88-latest-promotions__cta-button,
  .page-blog-cr88-latest-promotions__btn-primary {
    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-blog-cr88-latest-promotions__content-area {
    padding: 40px 0;
  }

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

  .page-blog-cr88-latest-promotions__content-image,
  .page-blog-cr88-latest-promotions__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog-cr88-latest-promotions__promotion-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog-cr88-latest-promotions__card {
    padding: 20px;
  }

  .page-blog-cr88-latest-promotions__card-title {
    font-size: 1.3rem;
  }

  .page-blog-cr88-latest-promotions__steps-list li {
    font-size: 1rem;
    padding: 15px;
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
  }
  .page-blog-cr88-latest-promotions__steps-list li::before {
    margin-bottom: 10px;
  }
}

/* Ensure all images and their containers are responsive in mobile */
.page-blog-cr88-latest-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-blog-cr88-latest-promotions__hero-section,
.page-blog-cr88-latest-promotions__content-area,
.page-blog-cr88-latest-promotions__promotion-grid,
.page-blog-cr88-latest-promotions__card,
.page-blog-cr88-latest-promotions__container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Prevent horizontal scroll */
}

@media (max-width: 768px) {
  .page-blog-cr88-latest-promotions__hero-section,
  .page-blog-cr88-latest-promotions__content-area,
  .page-blog-cr88-latest-promotions__promotion-grid,
  .page-blog-cr88-latest-promotions__card,
  .page-blog-cr88-latest-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-blog-cr88-latest-promotions__hero-image,
  .page-blog-cr88-latest-promotions__content-image,
  .page-blog-cr88-latest-promotions__card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}