/* Base styles for the promotions terms and conditions page */
.page-promotions-terms-and-conditions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background: var(--secondary-color, #FFFFFF); /* Body background from shared.css, default to white */
    padding-top: 0; /* Rely on body padding-top from shared.css */
}

.page-promotions-terms-and-conditions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-promotions-terms-and-conditions__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, relying on body for main offset */
    padding-bottom: 40px;
    background-color: #017439;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-promotions-terms-and-conditions__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    overflow: hidden;
}

.page-promotions-terms-and-conditions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure image covers the area */
    filter: brightness(0.7); /* Slightly dim the image for text contrast */
}

.page-promotions-terms-and-conditions__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #FFFFFF;
    padding: 20px 20px;
    max-width: 900px;
    margin-top: -150px; /* Pull content slightly over the image */
}

.page-promotions-terms-and-conditions__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #FFFF00; /* Use custom color for title for impact */
}

.page-promotions-terms-and-conditions__intro-text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions-terms-and-conditions__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
}

.page-promotions-terms-and-conditions__btn-primary,
.page-promotions-terms-and-conditions__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions-terms-and-conditions__btn-primary {
    background: #C30808; /* Custom color for register */
    color: #FFFF00; /* Custom color for register font */
    border: 2px solid #C30808;
}

.page-promotions-terms-and-conditions__btn-primary:hover {
    background: #a30606;
    border-color: #a30606;
}

.page-promotions-terms-and-conditions__btn-secondary {
    background: #FFFFFF;
    color: #017439;
    border: 2px solid #017439;
}

.page-promotions-terms-and-conditions__btn-secondary:hover {
    background: #f0f0f0;
    border-color: #005a2e;
}

.page-promotions-terms-and-conditions__content-area {
    padding: 60px 0;
    background: #ffffff; /* Explicitly light background for content area */
    color: #333333; /* Dark text for light background */
}

.page-promotions-terms-and-conditions__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #017439;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.page-promotions-terms-and-conditions__section-title--white {
    color: #FFFFFF;
}

.page-promotions-terms-and-conditions__text-block {
    max-width: 900px;
    margin: 0 auto 30px auto;
    padding: 0 15px;
}

.page-promotions-terms-and-conditions__text-block p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.page-promotions-terms-and-conditions__list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    padding: 0;
}

.page-promotions-terms-and-conditions__list li {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.page-promotions-terms-and-conditions__sub-list {
    list-style-type: circle;
    margin-left: 20px;
    margin-top: 5px;
    margin-bottom: 10px;
}

.page-promotions-terms-and-conditions__sub-list li {
    font-size: 1rem;
    margin-bottom: 5px;
}

.page-promotions-terms-and-conditions__text-block a {
    color: #017439;
    text-decoration: underline;
}

.page-promotions-terms-and-conditions__text-block a:hover {
    color: #005a2e;
}

.page-promotions-terms-and-conditions__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-promotions-terms-and-conditions__image--center {
    margin-left: auto;
    margin-right: auto;
}

.page-promotions-terms-and-conditions__image--right {
    float: right;
    margin-left: 30px;
    margin-bottom: 15px;
    max-width: 45%;
}

.page-promotions-terms-and-conditions__faq-list {
    max-width: 900px;
    margin: 0 auto 60px auto;
    padding: 0 15px;
}

details.page-promotions-terms-and-conditions__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #fff;
}

details.page-promotions-terms-and-conditions__faq-item summary.page-promotions-terms-and-conditions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}

details.page-promotions-terms-and-conditions__faq-item summary.page-promotions-terms-and-conditions__faq-question::-webkit-details-marker {
    display: none;
}

details.page-promotions-terms-and-conditions__faq-item summary.page-promotions-terms-and-conditions__faq-question:hover {
    background: #f5f5f5;
}

.page-promotions-terms-and-conditions__faq-qtext {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: #333333;
}

.page-promotions-terms-and-conditions__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}

details.page-promotions-terms-and-conditions__faq-item .page-promotions-terms-and-conditions__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: #555555;
}

.page-promotions-terms-and-conditions__cta-section {
    padding: 80px 0;
    text-align: center;
    background: #017439; /* Dark background for CTA */
    color: #FFFFFF; /* Light text for dark background */
}

.page-promotions-terms-and-conditions__cta-description {
    font-size: 1.15rem;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-promotions-terms-and-conditions__hero-content {
        margin-top: -100px;
    }
    .page-promotions-terms-and-conditions__image--right {
        float: none;
        margin: 0 auto 30px auto;
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .page-promotions-terms-and-conditions__hero-section {
        padding-top: 10px; /* Ensure small padding */
        padding-bottom: 20px;
    }
    .page-promotions-terms-and-conditions__hero-image {
        object-fit: contain !important; /* Prevent cropping on mobile */
        aspect-ratio: unset !important;
    }
    .page-promotions-terms-and-conditions__hero-content {
        margin-top: -80px; /* Adjust overlap */
        padding: 15px;
    }
    .page-promotions-terms-and-conditions__main-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }
    .page-promotions-terms-and-conditions__intro-text {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }
    .page-promotions-terms-and-conditions__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
    }
    .page-promotions-terms-and-conditions__btn-primary,
    .page-promotions-terms-and-conditions__btn-secondary {
        padding: 12px 20px;
        font-size: 0.95rem;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-promotions-terms-and-conditions__content-area {
        padding: 40px 0;
    }
    .page-promotions-terms-and-conditions__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 30px;
    }
    .page-promotions-terms-and-conditions__text-block {
        padding: 0 15px;
    }
    .page-promotions-terms-and-conditions__text-block p,
    .page-promotions-terms-and-conditions__list li,
    .page-promotions-terms-and-conditions__sub-list li {
        font-size: 0.95rem;
    }
    .page-promotions-terms-and-conditions__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin-left: auto;
        margin-right: auto;
    }
    .page-promotions-terms-and-conditions__image--right {
        margin-left: auto;
        margin-right: auto;
        float: none;
        max-width: 100%;
    }
    details.page-promotions-terms-and-conditions__faq-item summary.page-promotions-terms-and-conditions__faq-question {
        padding: 15px;
    }
    .page-promotions-terms-and-conditions__faq-qtext {
        font-size: 15px;
    }
    .page-promotions-terms-and-conditions__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    details.page-promotions-terms-and-conditions__faq-item .page-promotions-terms-and-conditions__faq-answer {
        padding: 0 15px 15px;
    }
    .page-promotions-terms-and-conditions__cta-section {
        padding: 50px 0;
    }
    .page-promotions-terms-and-conditions__cta-description {
        font-size: 1rem;
        margin-bottom: 30px;
        padding: 0 15px;
    }
    .page-promotions-terms-and-conditions__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}