/* General styles for the promotions page */
.page-promotions {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light body background */
    background-color: #F5F7FA; /* Page specific background color */
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    margin-bottom: 40px;
    background-color: #E53935; /* Primary brand color for hero background */
    color: #ffffff; /* White text for dark background */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for aesthetic */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure image covers the area */
    max-height: 500px; /* Match wrapper max-height */
}

.page-promotions__hero-content {
    padding: 30px 20px 50px;
    max-width: 900px;
    z-index: 1;
    position: relative; /* Ensure content is above any potential overlay */
}

.page-promotions__hero-title {
    font-size: clamp(2.5rem, 4vw, 3.2rem); /* Responsive H1 font size */
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #ffffff;
}

.page-promotions__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-small,
.page-promotions__btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    text-align: center;
}

.page-promotions__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 10px rgba(229, 57, 53, 0.3);
}

.page-promotions__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(229, 57, 53, 0.4);
}

.page-promotions__btn-secondary {
    background: #ffffff;
    color: #E53935;
    border: 2px solid #E53935;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions__btn-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.page-promotions__btn-small {
    padding: 8px 18px;
    font-size: 0.9rem;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.page-promotions__btn-small:hover {
    opacity: 0.9;
}

.page-promotions__btn-link {
    color: #E53935;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.page-promotions__btn-link:hover {
    background-color: rgba(229, 57, 53, 0.1);
}

/* Content Sections */
.page-promotions__content-section {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.page-promotions__section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #E53935;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.page-promotions__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FF5A4F 0%, #E53935 100%);
    border-radius: 2px;
}

.page-promotions__section-description {
    font-size: 1.1rem;
    color: #666666;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Why Choose Section */
.page-promotions__why-choose {
    background-color: #ffffff;
    padding-top: 60px;
    padding-bottom: 60px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

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

.page-promotions__feature-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid #e0e0e0;
}

.page-promotions__feature-title {
    font-size: 1.4rem;
    color: #E53935;
    margin-bottom: 10px;
}

.page-promotions__feature-text {
    color: #555555;
}

/* Promotion Types Section */
.page-promotions__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-promotions__promo-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-promotions__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.page-promotions__promo-card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-promotions__promo-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-promotions__promo-card-title {
    font-size: 1.3rem;
    color: #E53935;
    margin-bottom: 10px;
}

.page-promotions__promo-card-text {
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* How to Claim Section */
.page-promotions__how-to-claim {
    background-color: #ffffff;
    padding-top: 60px;
    padding-bottom: 60px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

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

.page-promotions__step-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-promotions__step-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(229, 57, 53, 0.3);
}

.page-promotions__step-title {
    font-size: 1.3rem;
    color: #333333;
    margin-bottom: 10px;
}

.page-promotions__step-text {
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Terms & Conditions Section */
.page-promotions__terms-conditions {
    background-color: #F5F7FA; /* Background color for this section */
    padding-top: 60px;
    padding-bottom: 60px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 30px;
    max-width: 800px;
}

.page-promotions__terms-list li {
    background-color: #ffffff;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    color: #555555;
    line-height: 1.8;
}

.page-promotions__terms-highlight {
    color: #E53935;
    font-weight: 700;
}

.page-promotions__read-more-wrapper {
    text-align: center;
    margin-top: 30px;
}

/* FAQ Section */
.page-promotions__faq-section {
    max-width: 900px;
    background-color: #ffffff;
    padding-top: 60px;
    padding-bottom: 60px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

details.page-promotions__faq-item {
  margin-bottom: 15px;
  border-radius: 8px; /* Slightly larger radius */
  border: 1px solid #E0E0E0;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
details.page-promotions__faq-item summary.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px; /* Increased padding */
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  background-color: #fcfcfc; /* Slightly off-white for summary */
}
details.page-promotions__faq-item summary.page-promotions__faq-question::-webkit-details-marker {
  display: none;
}
details.page-promotions__faq-item summary.page-promotions__faq-question:hover {
  background: #f5f5f5;
}
.page-promotions__faq-qtext {
  flex: 1;
  font-size: 1.1rem; /* Slightly larger font */
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-promotions__faq-toggle {
  font-size: 28px; /* Larger icon */
  font-weight: bold;
  color: #E53935; /* Brand color for toggle */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px; /* Larger hit area */
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
details.page-promotions__faq-item .page-promotions__faq-answer {
  padding: 0 25px 20px; /* Increased padding */
  background: #f9f9f9;
  border-top: 1px dashed #E0E0E0; /* Dotted line separator */
  border-radius: 0 0 8px 8px;
  color: #555555;
}
.page-promotions__faq-answer p {
    margin: 15px 0 0;
}
.page-promotions__faq-support-link {
    display: inline-block;
    margin-top: 15px;
    color: #E53935;
    text-decoration: underline;
    font-weight: 600;
}
.page-promotions__faq-support-link:hover {
    color: #FF5A4F;
}

/* Why Best Section */
.page-promotions__why-best {
    background: linear-gradient(135deg, #E53935 0%, #FF5A4F 100%);
    color: #ffffff;
    padding-top: 60px;
    padding-bottom: 60px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
}

.page-promotions__why-best .page-promotions__section-title {
    color: #ffffff;
}
.page-promotions__why-best .page-promotions__section-title::after {
    background: #ffffff; /* White underline for title */
}

.page-promotions__why-best .page-promotions__section-description {
    color: #f0f0f0;
}

.page-promotions__advantages-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px;
    max-width: 800px;
}

.page-promotions__advantages-list li {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    line-height: 1.8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.page-promotions__advantage-highlight {
    color: #ffffff;
    font-weight: 700;
}

.page-promotions__final-cta-group {
    text-align: center;
    margin-top: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-promotions__hero-image-wrapper {
        max-height: 400px;
    }
    .page-promotions__hero-image {
        max-height: 400px;
    }
    .page-promotions__section-title {
        font-size: 2rem;
    }
    .page-promotions__promo-card-image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    /* General Mobile Adjustments */
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-promotions__content-section {
        margin-bottom: 40px;
        padding: 0 15px; /* Smaller horizontal padding */
    }
    .page-promotions__section-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    .page-promotions__section-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    /* Hero Section - MUST BE PRESENT */
    .page-promotions__hero-section {
        padding-top: 10px; /* Still small top padding */
        margin-bottom: 30px;
    }
    .page-promotions__hero-image-wrapper {
        max-height: 300px;
    }
    .page-promotions__hero-image {
        max-width: 100% !important; /* Force responsive */
        height: auto !important; /* Force responsive */
        object-fit: contain !important; /* Ensure image is fully visible */
        max-height: 300px;
    }
    .page-promotions__hero-content {
        padding: 20px 15px 30px;
    }
    .page-promotions__hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 10px;
    }
    .page-promotions__hero-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    .page-promotions__hero-cta-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    /* Buttons - MUST BE PRESENT */
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .page-promotions__btn-small,
    .page-promotions__btn-link {
        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__hero-cta-group,
    .page-promotions__final-cta-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column; /* Ensure buttons stack */
        gap: 15px;
    }

    /* Why Choose Section */
    .page-promotions__why-choose {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .page-promotions__feature-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }
    .page-promotions__feature-item {
        padding: 20px;
    }
    .page-promotions__feature-title {
        font-size: 1.2rem;
    }

    /* Promotion Types Section */
    .page-promotions__promo-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }
    .page-promotions__promo-card-image {
        max-width: 100% !important; /* Force responsive */
        height: auto !important; /* Force responsive */
        object-fit: cover;
        max-height: 200px; /* Adjust height for mobile */
    }
    .page-promotions__promo-card-content {
        padding: 20px;
    }
    .page-promotions__promo-card-title {
        font-size: 1.1rem;
    }
    .page-promotions__promo-card-text {
        font-size: 0.9rem;
    }

    /* How to Claim Section */
    .page-promotions__how-to-claim {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .page-promotions__steps-grid {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }
    .page-promotions__step-item {
        padding: 20px;
    }
    .page-promotions__step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    .page-promotions__step-title {
        font-size: 1.1rem;
    }

    /* Terms & Conditions Section */
    .page-promotions__terms-conditions {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .page-promotions__terms-list li {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    /* FAQ Section - MUST BE PRESENT */
    details.page-promotions__faq-item {
        margin-bottom: 10px;
        border-radius: 5px;
    }
    details.page-promotions__faq-item summary.page-promotions__faq-question {
        padding: 15px 20px;
    }
    .page-promotions__faq-qtext {
        font-size: 1rem;
    }
    .page-promotions__faq-toggle {
        font-size: 24px;
        width: 25px;
        height: 25px;
    }
    details.page-promotions__faq-item .page-promotions__faq-answer {
        padding: 0 20px 15px;
    }
    .page-promotions__faq-answer p {
        font-size: 0.95rem;
    }

    /* Why Best Section */
    .page-promotions__why-best {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .page-promotions__advantages-list li {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    /* Image responsive force rules - MUST BE PRESENT */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: cover; /* Maintain aspect ratio and fill container */
    }
    .page-promotions__hero-image {
        object-fit: contain !important; /* For hero, contain is better to see full image */
    }
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__why-choose,
    .page-promotions__types,
    .page-promotions__how-to-claim,
    .page-promotions__terms-conditions,
    .page-promotions__faq-section,
    .page-promotions__why-best {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}