/* style/promotions-current-offers.css */

/* Base styles and variables */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --bg-card-color: #11271B;
    --bg-main-color: #08160F;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

.page-promotions-current-offers {
    font-family: Arial, sans-serif;
    color: var(--text-main-color); /* Light text on dark body background */
    background-color: var(--bg-main-color); /* Matches body background from shared.css */
}

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

/* Hero Section */
.page-promotions-current-offers__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden;
}

.page-promotions-current-offers__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for hero image */
    overflow: hidden;
    position: relative;
}

.page-promotions-current-offers__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly dim the image for text readability */
}

.page-promotions-current-offers__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    max-width: 900px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-promotions-current-offers__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    color: var(--text-main-color);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-promotions-current-offers__subtitle {
    font-size: clamp(1em, 2vw, 1.3em);
    color: var(--text-secondary-color);
    margin-bottom: 30px;
    max-width: 800px;
    line-height: 1.5;
}

.page-promotions-current-offers__cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-promotions-current-offers__btn-primary,
.page-promotions-current-offers__btn-secondary {
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons adapt to smaller screens */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
}

.page-promotions-current-offers__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main-color);
    border: none;
}

.page-promotions-current-offers__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--primary-color), 0.4);
}

.page-promotions-current-offers__btn-secondary {
    background: transparent;
    color: var(--text-main-color);
    border: 2px solid var(--border-color);
}

.page-promotions-current-offers__btn-secondary:hover {
    background: var(--border-color);
    transform: translateY(-3px);
}

/* General Section Styling */
.page-promotions-current-offers__intro-section,
.page-promotions-current-offers__categories-section,
.page-promotions-current-offers__featured-promotions,
.page-promotions-current-offers__how-to-claim-section,
.page-promotions-current-offers__terms-section,
.page-promotions-current-offers__why-choose-u888,
.page-promotions-current-offers__faq-section,
.page-promotions-current-offers__final-cta {
    padding: 60px 0;
    background-color: var(--bg-main-color);
}

.page-promotions-current-offers__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-promotions-current-offers__text-block {
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--text-secondary-color);
    margin-bottom: 20px;
}

.page-promotions-current-offers__text-block a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-promotions-current-offers__text-block a:hover {
    color: var(--primary-color);
}

/* Categories Section */
.page-promotions-current-offers__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-promotions-current-offers__card {
    background-color: var(--bg-card-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    color: var(--text-main-color);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions-current-offers__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.page-promotions-current-offers__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-promotions-current-offers__card-title {
    font-size: 1.4em;
    color: var(--gold-color);
    padding: 20px 20px 10px;
    font-weight: bold;
}

.page-promotions-current-offers__card-description {
    font-size: 0.95em;
    color: var(--text-secondary-color);
    padding: 0 20px 20px;
    flex-grow: 1;
    line-height: 1.5;
}

.page-promotions-current-offers__btn-text {
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    padding: 0 20px 20px;
    transition: color 0.3s ease;
}

.page-promotions-current-offers__btn-text:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Featured Promotions */
.page-promotions-current-offers__promotion-card {
    background-color: var(--bg-card-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    color: var(--text-main-color);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions-current-offers__promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.page-promotions-current-offers__promotion-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-promotions-current-offers__promotion-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.page-promotions-current-offers__promotion-title {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promotions-current-offers__promotion-description {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-secondary-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-promotions-current-offers__promotion-meta {
    margin-top: auto;
    margin-bottom: 15px;
}

.page-promotions-current-offers__promotion-validity {
    font-size: 0.9em;
    color: var(--secondary-color);
    font-weight: bold;
}

/* How to Claim Section */
.page-promotions-current-offers__steps-list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.page-promotions-current-offers__step-item {
    background-color: var(--bg-card-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    border: 1px solid var(--border-color);
    padding-left: 80px;
}

.page-promotions-current-offers__step-item::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 25px;
    top: 30px;
    background-color: var(--primary-color);
    color: var(--text-main-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
}

.page-promotions-current-offers__step-title {
    font-size: 1.3em;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-promotions-current-offers__step-item p {
    color: var(--text-secondary-color);
    line-height: 1.6;
}

.page-promotions-current-offers__step-item a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.page-promotions-current-offers__step-item a:hover {
    color: var(--primary-color);
}

/* Why Choose U888 Section */
.page-promotions-current-offers__feature-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

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

.page-promotions-current-offers__feature-title {
    font-size: 1.3em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions-current-offers__feature-item p {
    color: var(--text-secondary-color);
    line-height: 1.6;
}

/* FAQ Section */
.page-promotions-current-offers__faq-list {
    margin-top: 40px;
}

.page-promotions-current-offers__faq-item {
    background-color: var(--bg-card-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-promotions-current-offers__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-main-color);
    cursor: pointer;
    background-color: var(--deep-green-color);
    border-bottom: 1px solid var(--divider-color);
}

.page-promotions-current-offers__faq-question::-webkit-details-marker {
    display: none;
}

.page-promotions-current-offers__faq-item[open] .page-promotions-current-offers__faq-question {
    border-bottom: 1px solid var(--border-color);
}

.page-promotions-current-offers__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: var(--gold-color);
}

.page-promotions-current-offers__faq-item[open] .page-promotions-current-offers__faq-toggle {
    transform: rotate(45deg);
}

.page-promotions-current-offers__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-secondary-color);
    background-color: var(--bg-card-color);
}

/* Final CTA Section */
.page-promotions-current-offers__final-cta {
    text-align: center;
    padding: 80px 0;
    background: var(--deep-green-color);
    border-top: 1px solid var(--border-color);
}

.page-promotions-current-offers__final-cta-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-promotions-current-offers__final-cta-description {
    font-size: 1.1em;
    color: var(--text-secondary-color);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions-current-offers__hero-content {
        top: 60%; /* Adjust for smaller screens */
    }
}

@media (max-width: 768px) {
    .page-promotions-current-offers__container {
        padding: 0 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-promotions-current-offers__hero-section {
        padding-bottom: 40px;
    }

    .page-promotions-current-offers__hero-image {
        max-height: 400px;
    }

    .page-promotions-current-offers__hero-content {
        position: static; /* Remove absolute positioning on mobile */
        transform: none;
        padding: 20px 15px;
        text-align: center;
        background: rgba(8, 22, 15, 0.8); /* Dark overlay for text on mobile */
        margin-top: -100px; /* Pull content up slightly over image */
        width: 100%;
    }

    .page-promotions-current-offers__main-title {
        font-size: 2em; /* Smaller H1 for mobile */
        margin-bottom: 10px;
    }

    .page-promotions-current-offers__subtitle {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-promotions-current-offers__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .page-promotions-current-offers__btn-primary,
    .page-promotions-current-offers__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-promotions-current-offers__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-promotions-current-offers__intro-section,
    .page-promotions-current-offers__categories-section,
    .page-promotions-current-offers__featured-promotions,
    .page-promotions-current-offers__how-to-claim-section,
    .page-promotions-current-offers__terms-section,
    .page-promotions-current-offers__why-choose-u888,
    .page-promotions-current-offers__faq-section,
    .page-promotions-current-offers__final-cta {
        padding: 40px 0;
    }

    .page-promotions-current-offers__grid {
        grid-template-columns: 1fr;
    }

    .page-promotions-current-offers__card-image,
    .page-promotions-current-offers__promotion-image {
        height: 180px;
    }

    .page-promotions-current-offers__promotion-content {
        padding: 20px;
    }

    .page-promotions-current-offers__promotion-title {
        font-size: 1.3em;
    }

    .page-promotions-current-offers__step-item {
        padding: 25px;
        padding-left: 70px;
    }

    .page-promotions-current-offers__step-item::before {
        left: 20px;
        width: 35px;
        height: 35px;
        font-size: 1.3em;
    }

    .page-promotions-current-offers__step-title {
        font-size: 1.2em;
    }

    .page-promotions-current-offers__feature-item {
        padding: 25px;
    }

    .page-promotions-current-offers__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-promotions-current-offers__faq-answer {
        padding: 15px 20px;
    }

    .page-promotions-current-offers__final-cta-title {
        font-size: 1.8em;
    }

    .page-promotions-current-offers__final-cta-description {
        font-size: 1em;
    }

    /* Ensure all images and video are responsive */
    .page-promotions-current-offers img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-promotions-current-offers video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-promotions-current-offers__section,
    .page-promotions-current-offers__card,
    .page-promotions-current-offers__container,
    .page-promotions-current-offers__video-section,
    .page-promotions-current-offers__video-container,
    .page-promotions-current-offers__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-promotions-current-offers__video-section {
        padding-top: 10px !important;
    }
}

@media (max-width: 480px) {
    .page-promotions-current-offers__hero-content {
        margin-top: -80px; /* Further adjust for very small screens */
    }
    .page-promotions-current-offers__main-title {
        font-size: 1.7em;
    }
    .page-promotions-current-offers__subtitle {
        font-size: 0.9em;
    }
    .page-promotions-current-offers__hero-image {
        max-height: 300px;
    }
}