/* style/promotions-latest-details.css */

/* Variables (if any) */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #ffffff;
  --background-light: #f8f9fa; /* A slightly off-white for contrast */
  --background-dark: #26A9E0; /* Primary color as dark background */
  --login-color: #EA7C07; /* Custom color for login */
}

/* Base styles for the page content area */
.page-promotions-latest-details {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark); /* Default text color for light background */
  background: var(--background-light); /* Default light background */
  padding-bottom: 50px; /* Add some padding at the bottom */
}

/* Ensure body padding-top is handled by shared.css */
/* For first section, use a small padding-top */
.page-promotions-latest-details__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden; /* Ensure no overflow */
}

.page-promotions-latest-details__hero-container {
  position: relative;
  max-width: 1200px;
  width: 100%; /* Ensure it takes full width up to max-width */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-promotions-latest-details__hero-image-wrapper {
  width: 100%;
  margin-bottom: 30px; /* Space between image and content */
}

.page-promotions-latest-details__hero-image {
  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.1);
}

.page-promotions-latest-details__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-promotions-latest-details__main-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem); /* Responsive H1 font size */
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color);
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions-latest-details__description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-color-dark);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* General section styling */
.page-promotions-latest-details__section {
  padding: 60px 20px;
  text-align: center;
}

.page-promotions-latest-details__container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.page-promotions-latest-details__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-promotions-latest-details__section-title--white {
  color: var(--text-color-light);
}

.page-promotions-latest-details__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-promotions-latest-details__text-block--white {
  color: var(--text-color-light);
}

.page-promotions-latest-details__highlight {
  font-weight: bold;
  color: var(--primary-color);
}

.page-promotions-latest-details__text-block--white .page-promotions-latest-details__highlight {
  color: var(--secondary-color); /* Highlight on dark background */
}

/* Card Grid for Promotions */
.page-promotions-latest-details__promotion-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-promotions-latest-details__card {
  background: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
}

.page-promotions-latest-details__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.page-promotions-latest-details__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistent card images */
  object-fit: cover;
  display: block;
}

.page-promotions-latest-details__card-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 20px 20px 10px;
  line-height: 1.4;
}

.page-promotions-latest-details__card-text {
  font-size: 1rem;
  color: var(--text-color-dark);
  padding: 0 20px;
  flex-grow: 1; /* Allow text to grow and push button to bottom */
}

.page-promotions-latest-details__card-button {
  display: inline-block;
  padding: 12px 25px;
  margin: 20px;
  text-align: center;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  width: calc(100% - 40px); /* Adjust width for padding */
  box-sizing: border-box;
}

/* Terms and Conditions */
.page-promotions-latest-details__terms-list {
  margin-top: 40px;
  text-align: left;
}

.page-promotions-latest-details__terms-item {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark bg */
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  color: var(--text-color-light);
}

.page-promotions-latest-details__terms-heading {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-promotions-latest-details__terms-text {
  font-size: 1rem;
  color: var(--text-color-light);
}

/* How to Claim Steps */
.page-promotions-latest-details__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-promotions-latest-details__step-card {
  background: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions-latest-details__step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.page-promotions-latest-details__step-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--text-color-light);
  font-size: 2rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.page-promotions-latest-details__step-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-promotions-latest-details__step-text {
  font-size: 1rem;
  color: var(--text-color-dark);
}

.page-promotions-latest-details__button-group {
  margin-top: 50px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Benefits List */
.page-promotions-latest-details__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  text-align: left;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-promotions-latest-details__benefits-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  color: var(--text-color-light);
  height: 100%;
}

.page-promotions-latest-details__benefits-heading {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-promotions-latest-details__benefits-text {
  font-size: 1rem;
  color: var(--text-color-light);
}

/* FAQ Section */
.page-promotions-latest-details__faq-list {
  margin-top: 40px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

details.page-promotions-latest-details__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: var(--secondary-color);
}
details.page-promotions-latest-details__faq-item summary.page-promotions-latest-details__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none; /* Remove default marker */
  transition: background-color 0.3s ease;
  color: var(--text-color-dark);
}
details.page-promotions-latest-details__faq-item summary.page-promotions-latest-details__faq-question::-webkit-details-marker {
  display: none; /* Hide Chrome's default marker */
}
details.page-promotions-latest-details__faq-item summary.page-promotions-latest-details__faq-question:hover {
  background: var(--background-light);
}
.page-promotions-latest-details__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--primary-color);
}
.page-promotions-latest-details__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-promotions-latest-details__faq-item .page-promotions-latest-details__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9; /* Slightly darker background for answer */
  border-radius: 0 0 5px 5px;
  color: var(--text-color-dark);
  font-size: 1rem;
}

/* Call to Action Section */
.page-promotions-latest-details__cta-section {
  padding: 80px 20px;
  background: var(--primary-color); /* Use primary color as background */
  color: var(--text-color-light);
  text-align: center;
}

.page-promotions-latest-details__cta-container {
  max-width: 900px;
}

.page-promotions-latest-details__cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text-color-light);
  margin-bottom: 20px;
}

.page-promotions-latest-details__cta-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-color-light);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Button styles */
.page-promotions-latest-details__cta-button,
.page-promotions-latest-details__btn-primary,
.page-promotions-latest-details__btn-secondary {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent; /* Default transparent border */
  box-sizing: border-box; /* Ensure padding/border included in width */
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

.page-promotions-latest-details__btn-primary {
  background: var(--login-color); /* Custom login color for primary CTA */
  color: var(--text-color-light);
  border-color: var(--login-color);
}

.page-promotions-latest-details__btn-primary:hover {
  background: #D46F06; /* Darken on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-promotions-latest-details__btn-secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-promotions-latest-details__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions-latest-details__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-promotions-latest-details__main-title {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
  }
  .page-promotions-latest-details__description {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
  }
  .page-promotions-latest-details__section {
    padding: 50px 15px;
  }
  .page-promotions-latest-details__section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    margin-bottom: 30px;
  }
  .page-promotions-latest-details__text-block {
    font-size: 1rem;
  }
  .page-promotions-latest-details__card-title {
    font-size: 1.25rem;
  }
  .page-promotions-latest-details__card-text {
    font-size: 0.95rem;
  }
  .page-promotions-latest-details__cta-section {
    padding: 60px 15px;
  }
  .page-promotions-latest-details__cta-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
}