/* style/promotions.css */
/* Base styles for the promotions page */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: #FFFFFF; /* Default body background is white */
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background: linear-gradient(135deg, #017439, #008f4c); /* Gradient background with primary color */
    color: #FFFFFF;
    overflow: hidden; /* Prevent content overflow */
}

.page-promotions__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above any potential overlays */
}

.page-promotions__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-promotions__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__main-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFF00; /* Custom color for main title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #FFFFFF;
}

/* General Sections */
.page-promotions__section {
    padding: 80px 20px;
    text-align: center;
}

.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Add horizontal padding for content */
}

.page-promotions__section-title {
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 40px;
    color: #017439;
}

.page-promotions__section-title--white {
    color: #FFFFFF;
}

.page-promotions__text-block {
    font-size: 18px;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__text-block--white {
    color: #FFFFFF;
}

/* Backgrounds */
.page-promotions__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-promotions__dark-bg {
    background-color: #017439;
    color: #FFFFFF;
}

/* CTA Buttons */
.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    margin: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-promotions__btn-register:hover {
    background: #e00b0b;
    border-color: #e00b0b;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-promotions__btn-secondary:hover {
    background: #f0f0f0;
    color: #005f2e;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

/* Featured Promotions Grid */
.page-promotions__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-promotions__promo-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.page-promotions__card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #017439;
}

.page-promotions__card-description {
    font-size: 16px;
    line-height: 1.7;
    color: #555555;
    margin-bottom: 25px;
    flex-grow: 1; /* Allow description to take available space */
}

/* How to Claim Steps */
.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
}

.page-promotions__step-item {
    background-color: #f9f9f9;
    border-left: 5px solid #017439;
    padding: 25px 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-promotions__step-title {
    font-size: 22px;
    color: #017439;
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-promotions__step-item p {
    font-size: 17px;
    color: #555555;
    margin-bottom: 0;
}

.page-promotions__step-item a {
    color: #017439;
    text-decoration: underline;
    font-weight: bold;
}

.page-promotions__step-item a:hover {
    color: #005f2e;
}

/* Terms & Conditions */
.page-promotions__terms-conditions {
    padding: 80px 20px;
}

.page-promotions__terms-list {
    list-style: disc;
    padding-left: 40px;
    text-align: left;
    max-width: 900px;
    margin: 40px auto 0;
    color: #FFFFFF;
}

.page-promotions__terms-list--white li {
    font-size: 17px;
    margin-bottom: 15px;
    line-height: 1.8;
}

.page-promotions__link--white {
    color: #FFFF00; /* Highlight links in dark sections */
    text-decoration: underline;
    font-weight: bold;
}

.page-promotions__link--white:hover {
    color: #ffffff;
}

/* FAQ Section */
.page-promotions__faq-section {
    padding: 80px 20px;
    background-color: #f5f5f5; /* Slightly off-white background for contrast */
}

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

/* FAQ container style */
.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* FAQ default state - answer hidden */
.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.3s ease;
  padding: 0 20px; /* Adjusted padding */
  opacity: 0;
}

/* FAQ expanded state - ⚠️ Use!important and sufficiently large max-height */
.page-promotions__faq-item.active .page-promotions__faq-answer {
  max-height: 2000px !important; /* ⚠️ Use!important ensure priority, value large enough to contain any content */
  padding: 20px !important; /* Adjusted padding */
  opacity: 1;
  background: #ffffff; /* White background for answer */
  border-top: 1px solid #e0e0e0;
  border-radius: 0 0 8px 8px;
}

/* Question style */
.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px; /* Adjusted padding */
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-promotions__faq-question:hover {
  background: #f0f0f0;
  border-color: #d0d0d0;
}

.page-promotions__faq-question:active {
  background: #eeeeee;
}

/* Question title style */
.page-promotions__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

/* Toggle icon */
.page-promotions__faq-toggle {
  font-size: 28px; /* Larger icon */
  font-weight: bold;
  line-height: 1;
  color: #017439; /* Primary color for toggle */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px; /* Adjusted margin */
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Larger hit area */
  height: 32px;
}

.page-promotions__faq-item.active .page-promotions__faq-toggle {
  color: #C30808; /* Accent color when active */
  transform: rotate(45deg); /* Example for '-' sign */
}

.page-promotions__faq-answer p {
    font-size: 16px;
    line-height: 1.7;
    color: #555555;
    margin-bottom: 0;
}

.page-promotions__faq-answer a {
    color: #017439;
    text-decoration: underline;
    font-weight: bold;
}

.page-promotions__faq-answer a:hover {
    color: #005f2e;
}

/* Call to Action Section */
.page-promotions__call-to-action {
    padding: 100px 20px;
    background: linear-gradient(135deg, #017439, #005f2e); /* Stronger gradient */
    color: #FFFFFF;
}

.page-promotions__center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: 42px;
    }
    .page-promotions__hero-description {
        font-size: 18px;
    }
    .page-promotions__section-title {
        font-size: 34px;
    }
    .page-promotions__promo-card {
        padding: 25px;
    }
    .page-promotions__card-title {
        font-size: 22px;
    }
    .page-promotions__card-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__hero-image img {
        border-radius: 4px;
    }
    .page-promotions__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-promotions__hero-description {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-promotions__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 8px 0; /* Stack buttons */
    }
    .page-promotions__button-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__section {
        padding: 50px 15px;
    }
    .page-promotions__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-promotions__text-block {
        font-size: 16px;
    }
    .page-promotions__promo-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-promotions__card-image {
        height: 180px;
    }
    .page-promotions__card-title {
        font-size: 20px;
    }
    .page-promotions__card-description {
        font-size: 15px;
    }
    .page-promotions__step-item {
        padding: 20px 25px;
    }
    .page-promotions__step-title {
        font-size: 19px;
    }
    .page-promotions__terms-list {
        padding-left: 25px;
    }
    .page-promotions__terms-list--white li {
        font-size: 15px;
    }
    .page-promotions__faq-question {
        padding: 15px 20px;
    }
    .page-promotions__faq-question h3 {
        font-size: 16px;
    }
    .page-promotions__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
        margin-left: 15px;
    }
    .page-promotions__faq-item.active .page-promotions__faq-answer {
        padding: 15px !important;
    }
    .page-promotions__faq-answer p {
        font-size: 15px;
    }
    .page-promotions__promo-card img,
    .page-promotions__hero-image img,
    .page-promotions__section img,
    .page-promotions__card-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__promo-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}