/* style/promo.css */

/* Variables based on brand colors */
:root {
    --ph44-gold: #FFD700;
    --ph44-deep-red: #8B0000;
    --ph44-dark-text: #333333;
    --ph44-light-text: #ffffff;
    --ph44-background-light: #f5f5f5; /* For contrast within sections */
    --ph44-background-dark: #222222; /* For contrast within sections */
}

.page-promo {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--ph44-dark-text); /* Default text color for light body background */
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background-color: #ffffff; /* Explicitly setting content area background to white for clarity */
}

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

/* Hero Section */
.page-promo__hero-section {
    position: relative;
    padding: 80px 0;
    background-color: var(--ph44-deep-red); /* Using auxiliary color for a strong hero background */
    color: var(--ph44-light-text);
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-promo__hero-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-promo__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--ph44-gold);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-promo__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    opacity: 0.9;
}

.page-promo__hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-promo__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    min-width: 200px; /* Ensure buttons are not too small */
    text-align: center;
    font-size: 1.1em;
    cursor: pointer;
}

.page-promo__button--primary {
    background-color: var(--ph44-gold);
    color: var(--ph44-deep-red);
    border: 2px solid var(--ph44-gold);
}

.page-promo__button--primary:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

.page-promo__button--secondary {
    background-color: transparent;
    color: var(--ph44-gold);
    border: 2px solid var(--ph44-gold);
}

.page-promo__button--secondary:hover {
    background-color: var(--ph44-gold);
    color: var(--ph44-deep-red);
    transform: translateY(-3px);
}

.page-promo__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    opacity: 0.2; /* Subtle background image */
}

.page-promo__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Overview Section */
.page-promo__overview-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--ph44-background-light);
}

.page-promo__overview-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--ph44-deep-red);
}

.page-promo__overview-text {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promo__promo-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.page-promo__category-link {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--ph44-gold);
    color: var(--ph44-deep-red);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 1px solid var(--ph44-gold);
    font-size: 1em;
}

.page-promo__category-link:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

/* Promotions Sections */
.page-promo__promotions-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.page-promo__promotions-section--alt {
    background-color: var(--ph44-background-light);
}

.page-promo__section-title {
    font-size: 2.2em;
    margin-bottom: 15px;
    text-align: center;
    color: var(--ph44-deep-red);
}

.page-promo__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-promo__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-top: 20px;
}

.page-promo__promo-card {
    background-color: var(--ph44-background-dark); /* Dark background for cards */
    color: var(--ph44-light-text); /* Light text for dark background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promo__promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.page-promo__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistent card image display */
    object-fit: cover;
    display: block;
    border-bottom: 3px solid var(--ph44-gold);
}

.page-promo__card-title {
    font-size: 1.5em;
    padding: 20px 20px 10px;
    color: var(--ph44-gold);
}

.page-promo__card-text {
    padding: 0 20px 20px;
    flex-grow: 1;
    font-size: 0.95em;
    opacity: 0.85;
}

.page-promo__button--card {
    background-color: var(--ph44-gold);
    color: var(--ph44-deep-red);
    border: none;
    padding: 12px 25px;
    margin: 0 20px 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
    align-self: flex-start; /* Align button to start within flex column */
    min-width: 150px; /* Card buttons can be slightly smaller */
    cursor: pointer;
}

.page-promo__button--card:hover {
    background-color: #e6c200;
}

/* VIP Section */
.page-promo__vip-section {
    padding: 80px 0;
    background-color: var(--ph44-deep-red);
    color: var(--ph44-light-text);
    text-align: center;
}

.page-promo__vip-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--ph44-gold);
}

.page-promo__vip-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promo__vip-image-wrapper {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}

.page-promo__vip-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    display: block;
}

/* How to Claim Section */
.page-promo__how-to-claim-section {
    padding: 80px 0;
    background-color: var(--ph44-background-light);
}

.page-promo__how-to-claim-title {
    font-size: 2.2em;
    margin-bottom: 15px;
    text-align: center;
    color: var(--ph44-deep-red);
}

.page-promo__how-to-claim-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-promo__step-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-promo__step-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--ph44-gold);
    position: relative;
    padding-bottom: 10px;
}

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

.page-promo__step-text {
    font-size: 0.95em;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promo__button--step {
    background-color: var(--ph44-deep-red);
    color: var(--ph44-light-text);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
    min-width: 120px;
    cursor: pointer;
}

.page-promo__button--step:hover {
    background-color: #a30000;
}

/* Terms Section */
.page-promo__terms-section {
    padding: 80px 0;
    background-color: var(--ph44-background-dark);
    color: var(--ph44-light-text);
    text-align: center;
}

.page-promo__terms-title {
    font-size: 2.2em;
    margin-bottom: 15px;
    color: var(--ph44-gold);
}

.page-promo__terms-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

/* CTA Section */
.page-promo__cta-section {
    padding: 80px 0;
    background-color: #ffffff;
    text-align: center;
}

.page-promo__cta-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--ph44-deep-red);
}

.page-promo__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-promo__cta-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promo__hero-title {
        font-size: 3em;
    }
    .page-promo__overview-title,
    .page-promo__section-title,
    .page-promo__vip-title,
    .page-promo__how-to-claim-title,
    .page-promo__terms-title,
    .page-promo__cta-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-promo {
        padding-top: var(--header-offset, 120px); /* Ensure mobile also has header offset */
    }

    .page-promo__hero-section {
        padding: 60px 20px;
    }

    .page-promo__hero-title {
        font-size: 2.5em;
    }

    .page-promo__hero-description {
        font-size: 1em;
    }

    .page-promo__hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-promo__button {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .page-promo__container {
        padding: 0 15px;
    }

    .page-promo__promo-grid {
        grid-template-columns: 1fr;
    }

    .page-promo__promo-card {
        margin: 0 auto;
        max-width: 400px;
    }

    .page-promo__card-image {
        height: 200px; /* Adjust height for smaller screens, but not below 200px */
    }

    .page-promo__steps-list {
        grid-template-columns: 1fr;
    }

    .page-promo__button--card,
    .page-promo__button--step {
        width: calc(100% - 40px); /* Adjust for padding in card */
    }

    /* All images within .page-promo must not be smaller than 200px and must be responsive */
    .page-promo img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce min-size for content images */
        min-height: 200px;
    }
    /* Specific overrides to ensure min-height for key images */
    .page-promo__card-image {
        min-height: 200px; 
    }
    .page-promo__vip-image {
        min-height: 200px; 
    }
}

@media (max-width: 480px) {
    .page-promo__hero-title {
        font-size: 2em;
    }
    .page-promo__overview-title,
    .page-promo__section-title,
    .page-promo__vip-title,
    .page-promo__how-to-claim-title,
    .page-promo__terms-title,
    .page-promo__cta-title {
        font-size: 1.8em;
    }
    .page-promo__button {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-promo__category-link {
        padding: 8px 18px;
        font-size: 0.9em;
    }
}