/* Color Variables */
:root {
    --color-primary: #FF8C1A;
    --color-secondary: #FFA53A;
    --color-button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    --color-card-bg: #17191F;
    --color-background: #0D0E12;
    --color-text-main: #FFF3E6;
    --color-border: #A84F0C;
    --color-glow: #FFB04D;
    --color-deep-orange: #D96800;
}

.page-promotions {
    background-color: var(--color-background);
    color: var(--color-text-main);
    padding-top: 10px; /* Small padding-top, body has --header-offset */
    overflow-x: hidden; /* Prevent horizontal scroll on main content */
}

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

.page-promotions__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
    background: linear-gradient(to right, var(--color-glow), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.page-promotions__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--color-border);
    border-radius: 2px;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Default for mobile first, image above text */
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: clamp(420px, 50vw, 600px); /* Responsive height */
    padding: 20px 0;
    margin-bottom: 40px;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    max-height: 500px; /* Limit hero image height */
    object-fit: cover;
    object-position: center;
    display: block;
    margin-bottom: 20px; /* Space between image and content on mobile */
    min-width: 200px; /* Ensure images are not too small */
    min-height: 200px;
}

.page-promotions__hero-content {
    z-index: 1;
    max-width: 800px;
    padding: 0 15px;
}

.page-promotions__main-title {
    font-size: clamp(2rem, 5vw, 3.5rem); /* Use clamp for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--color-text-main);
}

.page-promotions__hero-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 30px;
    line-height: 1.6;
    color: var(--color-text-main);
}

.page-promotions__cta-button,
.page-promotions__card-button,
.page-promotions__step-button,
.page-promotions__join-button {
    display: inline-block;
    background: var(--color-button-gradient);
    color: var(--color-text-main);
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 150px;
    text-align: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-height: 44px; /* Ensure touch target size */
    line-height: 1.5; /* For text alignment */
}

.page-promotions__cta-button:hover,
.page-promotions__card-button:hover,
.page-promotions__step-button:hover,
.page-promotions__join-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Current Promotions */
.page-promotions__current-promotions {
    padding: 60px 0;
}

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

.page-promotions__promotion-card {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    border: 1px solid var(--color-border);
}

.page-promotions__promotion-card:hover {
    transform: translateY(-5px);
}

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

.page-promotions__card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: calc(100% - 250px); /* Adjust height based on image */
}

.page-promotions__card-title {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.3;
}

.page-promotions__card-description {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--color-text-main);
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-promotions__card-button {
    margin-top: auto; /* Push button to bottom */
    width: 100%;
}

/* How to Claim */
.page-promotions__how-to-claim {
    padding: 60px 0;
    background-color: #100224; /* Slightly different background for visual break */
}

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

.page-promotions__step-item {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-promotions__step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--color-button-gradient);
    border-radius: 50%;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions__step-title {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-promotions__step-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-main);
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-promotions__step-button {
    width: 100%;
    max-width: 200px;
    margin-top: auto;
}

/* Promotion Types */
.page-promotions__promotion-types {
    padding: 60px 0;
}

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

.page-promotions__type-item {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
    text-align: center;
}

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

.page-promotions__type-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-main);
}

/* Terms & Conditions */
.page-promotions__terms-conditions {
    padding: 60px 0;
    background-color: #100224;
    text-align: center;
}

.page-promotions__terms-text {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--color-text-main);
}

.page-promotions__terms-link {
    display: inline-block;
    color: var(--color-glow);
    text-decoration: underline;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.page-promotions__terms-link:hover {
    color: var(--color-primary);
}

/* Why Choose */
.page-promotions__why-choose {
    padding: 60px 0;
}

.page-promotions__advantage-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-promotions__advantage-item {
    background-color: var(--color-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
}

.page-promotions__advantage-title {
    font-size: 1.4rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-promotions__advantage-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-main);
}

/* Join Us */
.page-promotions__join-us {
    padding: 60px 0;
    text-align: center;
    background-color: #100224;
}

.page-promotions__join-text {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto 30px auto;
    color: var(--color-text-main);
}

.page-promotions__join-button {
    font-size: 1.2rem;
    padding: 15px 35px;
}

/* Responsive adjustments */
@media (min-width: 769px) {
    .page-promotions__hero-section {
        flex-direction: column;
        min-height: clamp(500px, 70vh, 800px);
        padding: 40px 0;
    }

    .page-promotions__hero-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        z-index: 0;
        margin-bottom: 0;
    }

    .page-promotions__hero-content {
        position: relative;
        z-index: 1;
        background: rgba(13, 14, 18, 0.6); /* Semi-transparent overlay for text readability */
        padding: 40px;
        border-radius: 12px;
        max-width: 900px;
    }
    
    .page-promotions__main-title {
        font-size: clamp(2.5rem, 4.5vw, 4rem);
    }
}

@media (max-width: 768px) {
    .page-promotions__container {
        padding: 20px 12px;
    }

    .page-promotions__hero-section {
        min-height: auto;
        padding: 20px 0;
    }

    .page-promotions__hero-image {
        margin-bottom: 20px;
    }

    .page-promotions__hero-content {
        padding: 0 12px;
    }

    .page-promotions__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .page-promotions__hero-description {
        font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    }

    .page-promotions__cta-button,
    .page-promotions__card-button,
    .page-promotions__step-button,
    .page-promotions__join-button {
        width: 100%;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .page-promotions__promotion-grid,
    .page-promotions__steps,
    .page-promotions__type-grid,
    .page-promotions__advantage-list {
        grid-template-columns: 1fr;
    }

    /* Global image rule for mobile to prevent overflow */
    .page-promotions img {
        max-width: 100%;
        height: auto;
    }
}

/* Ensure images within content areas are at least 200px */
.page-promotions__promotion-card .page-promotions__card-image,
.page-promotions__step-item img {
    min-width: 200px;
    min-height: 200px;
}

/* Specific rule for content images not to be smaller than 200px */
.page-promotions img:not(.page-promotions__hero-image) {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

/* Override for image CSS to ensure it doesn't shrink below 200px */
.page-promotions img {
    width: auto;
    height: auto;
    max-width: 100%;
    display: block;
}

/* For card images, if a fixed height is set, it should be >= 200px */
.page-promotions__card-image {
    height: 250px;
}

/* Ensure text contrast for all elements */
.page-promotions h1, .page-promotions h2, .page-promotions h3, .page-promotions p, .page-promotions li, .page-promotions a {
    color: var(--color-text-main);
}

.page-promotions__section-title {
    color: var(--color-text-main);
}