/* style/promotions.css */

/* Base styles for page-promotions */
.page-promotions {
  color: #ffffff; /* Body background is dark (#0a0a0a), so use light text */
  background-color: transparent; /* Rely on shared.css for body background */
  font-family: Arial, sans-serif;
}

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

.page-promotions__section {
  padding: 60px 0;
  text-align: center;
}

.page-promotions__dark-section {
  background-color: #0a0a0a; /* Ensure dark background for sections that need it, consistent with body */
  color: #ffffff;
}

.page-promotions__section-title {
  font-size: clamp(28px, 4vw, 42px); /* Use clamp for H2 */
  font-weight: bold;
  margin-bottom: 30px;
  color: #ffffff;
  line-height: 1.2;
}

.page-promotions__description,
.page-promotions__text-block {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #f0f0f0;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 30px; /* Space between image and content */
}

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

.page-promotions__hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.page-promotions__main-title {
  font-size: clamp(32px, 5vw, 56px); /* Clamp for H1, not fixed large value */
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* CTA Buttons */
.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

.page-promotions__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

.page-promotions__btn-primary:hover {
  background-color: #e00b0b;
  border-color: #e00b0b;
  transform: translateY(-2px);
}

.page-promotions__btn-primary--large {
  padding: 18px 40px;
  font-size: 20px;
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: #017439;
  border: 2px solid #017439;
}

.page-promotions__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Intro Promotions Section */
.page-promotions__intro-promotions {
  background-color: #1a1a1a;
  color: #ffffff;
}

/* Featured Promotions Section */
.page-promotions__featured-promotions {
  background-color: #0a0a0a;
  color: #ffffff;
}

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

.page-promotions__card {
  background-color: rgba(255, 255, 255, 0.05); /* Semi-transparent white on dark background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__card-title {
  font-size: 22px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-promotions__card-text {
  font-size: 16px;
  line-height: 1.6;
  color: #cccccc;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-promotions__card-btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-promotions__card-btn:hover {
  background-color: #02944b;
}

/* How to Claim Section */
.page-promotions__how-to-claim {
  background-color: #1a1a1a;
  color: #ffffff;
}

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

.page-promotions__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-promotions__step-icon {
  width: 60px;
  height: 60px;
  line-height: 60px;
  margin: 0 auto 20px;
  background-color: #017439;
  color: #ffffff;
  border-radius: 50%;
  font-size: 30px;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-title {
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-promotions__step-text {
  font-size: 16px;
  color: #cccccc;
  line-height: 1.5;
}

/* Why Choose Us Section */
.page-promotions__why-choose-us {
  background-color: #0a0a0a;
  color: #ffffff;
}

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

.page-promotions__feature-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-promotions__feature-icon {
  width: 100px; /* Display size, intrinsic size is 200x200 */
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__feature-title {
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-promotions__feature-text {
  font-size: 16px;
  color: #cccccc;
  line-height: 1.5;
}

/* FAQ Section */
.page-promotions__faq {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-promotions__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: left;
}

.page-promotions__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-promotions__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: bold;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-promotions__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-promotions__faq-item summary:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-promotions__faq-qtext {
  flex-grow: 1;
}

.page-promotions__faq-toggle {
  font-size: 24px;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
}

.page-promotions__faq-answer {
  padding: 15px 25px 20px;
  font-size: 16px;
  color: #cccccc;
  line-height: 1.6;
  background-color: rgba(255, 255, 255, 0.05);
}

/* Call to Action Section */
.page-promotions__call-to-action {
  padding: 80px 0;
  background: linear-gradient(90deg, #017439, #02944b); /* Use brand color for CTA background */
  color: #ffffff;
}

.page-promotions__cta-content {
  max-width: 800px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-image-wrapper {
    margin-bottom: 20px;
  }
  .page-promotions__main-title {
    font-size: clamp(28px, 4.5vw, 50px);
  }
  .page-promotions__section-title {
    font-size: clamp(24px, 3.5vw, 38px);
  }
  .page-promotions__description, .page-promotions__text-block {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-promotions__section {
    padding: 40px 0;
  }
  .page-promotions__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body already handles --header-offset */
  }
  .page-promotions__hero-image-wrapper,
  .page-promotions__container,
  .page-promotions__card,
  .page-promotions__step-item,
  .page-promotions__feature-item,
  .page-promotions__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-promotions__hero-image,
  .page-promotions__card-image,
  .page-promotions__feature-icon,
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-promotions__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions a[class*="button"],
  .page-promotions a[class*="btn"],
  .page-promotions__card-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;
  }
  .page-promotions__main-title {
    font-size: clamp(24px, 8vw, 40px);
  }
  .page-promotions__description,
  .page-promotions__text-block {
    font-size: 15px;
  }
  .page-promotions__card {
    padding: 20px;
  }
  .page-promotions__step-item {
    padding: 20px;
  }
  .page-promotions__faq-item summary {
    padding: 15px 20px;
    font-size: 16px;
  }
  .page-promotions__faq-answer {
    padding: 10px 20px 15px;
    font-size: 14px;
  }
  .page-promotions__feature-icon {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .page-promotions__main-title {
    font-size: clamp(22px, 9vw, 36px);
  }
  .page-promotions__section-title {
    font-size: clamp(20px, 6vw, 32px);
  }
  .page-promotions__cta-buttons {
    flex-direction: column;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    font-size: 16px;
    padding: 12px 25px;
  }
}