/* style/promotions.css */

/* Root variables for colors */
:root {
    --primary-color: #003366;
    --secondary-color: #FFD700;
    --text-light: #ffffff;
    --text-dark: #333333;
    --background-light: #f9f9f9;
    --background-dark: #002244; /* A slightly lighter dark blue for sections */
    --border-color: #e0e0e0;
}

.page-promotions {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: transparent; /* Main section will inherit from body or be explicitly set */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: var(--header-offset, 120px) 20px 60px; /* Ensure spacing below header */
    overflow: hidden; /* Important for image scaling */
}

.page-promotions__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay for text readability */
    z-index: 1;
}

.page-promotions__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text */
    border-radius: 10px;
}

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

.page-promotions__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary-color);
    color: var(--text-dark); /* Ensure dark text on gold button */
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
}

.page-promotions__cta-button:hover {
    background: #e6c200; /* A slightly darker gold */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-promotions__cta-button--large {
    padding: 18px 50px;
    font-size: 1.4em;
}

/* General Section Styling */
.page-promotions__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-promotions__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

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

/* Dark background sections for contrast */
.page-promotions__dark-bg {
    background-color: var(--background-dark);
    color: var(--text-light);
}

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

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

.page-promotions__promo-card {
    background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-promotions__promo-card-image {
    width: 100%;
    height: 250px;
    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.6em;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-promotions__promo-card-description {
    font-size: 1em;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-promotions__promo-card-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--secondary-color);
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
    margin-top: auto; /* Push button to bottom */
}

.page-promotions__promo-card-button:hover {
    background: #e6c200; /* A slightly darker gold */
}

/* How to Claim Section */
.page-promotions__how-to-claim-section {
    padding: 80px 0;
    background-color: var(--background-light); /* Light background for this section */
    color: var(--text-dark); /* Dark text on light background */
}

.page-promotions__how-to-claim-section .page-promotions__section-title,
.page-promotions__how-to-claim-section .page-promotions__section-description {
    color: var(--primary-color);
}

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

.page-promotions__step-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-promotions__step-item:hover {
    transform: translateY(-5px);
}

.page-promotions__step-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 50%;
    font-size: 2em;
    font-weight: bold;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.page-promotions__step-description {
    font-size: 1em;
    color: var(--text-dark);
}

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

.page-promotions__why-choose-section .page-promotions__section-title,
.page-promotions__why-choose-section .page-promotions__section-description {
    color: var(--secondary-color);
}

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

.page-promotions__advantage-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-promotions__advantage-item:hover {
    transform: translateY(-5px);
}

.page-promotions__advantage-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto 20px;
    display: block;
}

.page-promotions__advantage-title {
    font-size: 1.6em;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-promotions__advantage-description {
    font-size: 1em;
    color: var(--text-light);
}

/* Terms & Conditions Section */
.page-promotions__terms-conditions-section {
    padding: 80px 0;
    background-color: var(--background-light);
    color: var(--text-dark);
}

.page-promotions__terms-conditions-section .page-promotions__section-title,
.page-promotions__terms-conditions-section .page-promotions__section-description {
    color: var(--primary-color);
}

.page-promotions__terms-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-promotions__terms-item {
    background: #ffffff;
    padding: 20px 25px;
    margin-bottom: 15px;
    border-left: 5px solid var(--secondary-color);
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-size: 1.05em;
    color: var(--text-dark);
}

/* Final CTA Section */
.page-promotions__cta-final-section {
    padding: 80px 20px;
    text-align: center;
}

.page-promotions__cta-final-section .page-promotions__section-title,
.page-promotions__cta-final-section .page-promotions__section-description {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: 2.8em;
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
        padding-bottom: 40px;
        box-sizing: border-box;
    }

    .page-promotions__hero-content {
        padding: 20px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-promotions__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-promotions__hero-description {
        font-size: 1.1em;
        margin-bottom: 25px;
    }

    .page-promotions__cta-button {
        padding: 12px 30px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions__cta-button--large {
        padding: 15px 40px;
        font-size: 1.2em;
    }

    .page-promotions__container {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .page-promotions__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-promotions__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-promotions__current-promotions-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__why-choose-section,
    .page-promotions__terms-conditions-section,
    .page-promotions__cta-final-section {
        padding: 50px 0;
    }

    .page-promotions__promotions-grid,
    .page-promotions__steps-grid,
    .page-promotions__advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions__promo-card-title {
        font-size: 1.4em;
    }

    .page-promotions__promo-card-description {
        font-size: 0.95em;
    }

    .page-promotions__promo-card-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 10px 20px;
    }

    .page-promotions__step-icon {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 1.8em;
        margin-bottom: 15px;
    }

    .page-promotions__step-title {
        font-size: 1.3em;
    }

    .page-promotions__advantage-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }

    .page-promotions__advantage-title {
        font-size: 1.4em;
    }

    .page-promotions__terms-item {
        padding: 15px 20px;
        font-size: 0.95em;
    }
    
    /* Image responsiveness for all images within .page-promotions */
    .page-promotions img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    /* Ensure all containing elements for images/buttons/text are responsive */
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__hero-section,
    .page-promotions__current-promotions-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__why-choose-section,
    .page-promotions__terms-conditions-section,
    .page-promotions__cta-final-section,
    .page-promotions__promotions-grid,
    .page-promotions__steps-grid,
    .page-promotions__advantages-grid,
    .page-promotions__promo-card,
    .page-promotions__step-item,
    .page-promotions__advantage-item {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow-x: hidden !important; /* Prevent horizontal overflow */
    }
    .page-promotions__hero-section {
        padding-left: 0 !important; /* Hero image often goes edge to edge */
        padding-right: 0 !important;
    }
    .page-promotions__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Specific adjustments for button groups if any */
    .page-promotions__cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
}