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

.page-promotions {
    background-color: var(--go99-bg);
    color: var(--go99-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px 0; /* body handles --header-offset, this is for visual spacing */
    background-color: var(--go99-deep-green);
    overflow: hidden;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height of the image wrapper */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    min-width: 200px; /* Ensure minimum image size */
    min-height: 200px;
}

.page-promotions__hero-content {
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -80px; /* Pull content slightly over the image for visual flow */
    position: relative;
    z-index: 1;
    background-color: rgba(17, 39, 27, 0.9); /* Darker overlay for text readability */
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.page-promotions__main-title {
    color: var(--go99-gold);
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-promotions__description {
    color: var(--go99-text-main);
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 30px;
}

.page-promotions__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--go99-button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* Section Titles and Descriptions */
.page-promotions__section-title {
    color: var(--go99-gold);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-promotions__section-description {
    color: var(--go99-text-secondary);
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Promotions Grid Section */
.page-promotions__promotions-grid-section {
    padding: 60px 0;
    background-color: var(--go99-bg);
}

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

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

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

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

.page-promotions__card-content {
    padding: 25px;
}

.page-promotions__card-title {
    color: var(--go99-text-main);
    font-size: 1.4rem;
    margin-bottom: 15px;
    min-height: 60px; /* Ensure consistent title height */
}

.page-promotions__card-text {
    color: var(--go99-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    min-height: 100px; /* Ensure consistent text height */
}

.page-promotions__card-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 20px;
    background: var(--go99-button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.3s ease;
    border: none;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-promotions__card-button:hover {
    opacity: 0.9;
}

/* How To Claim Section */
.page-promotions__how-to-claim-section {
    background-color: var(--go99-deep-green);
    padding: 60px 0;
    text-align: center;
}

.page-promotions__claim-steps {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.page-promotions__step-item {
    background-color: var(--go99-card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border: 1px solid var(--go99-border);
    text-align: left;
}

.page-promotions__step-title {
    color: var(--go99-gold);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.page-promotions__step-text {
    color: var(--go99-text-secondary);
    font-size: 1rem;
}

.page-promotions__step-text a {
    color: var(--go99-secondary-color);
    text-decoration: underline;
}

.page-promotions__step-text a:hover {
    color: var(--go99-gold);
}

/* Terms & Conditions Section */
.page-promotions__terms-section {
    padding: 60px 0;
    background-color: var(--go99-bg);
}

.page-promotions__terms-list {
    list-style: disc;
    padding-left: 25px;
    margin-top: 30px;
    color: var(--go99-text-secondary);
}

.page-promotions__terms-item {
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.8;
}

.page-promotions__terms-item:last-child {
    margin-bottom: 0;
}

.page-promotions__note-text {
    margin-top: 30px;
    text-align: center;
    color: var(--go99-text-secondary);
    font-size: 0.95rem;
}

.page-promotions__note-text a {
    color: var(--go99-secondary-color);
    text-decoration: underline;
}

.page-promotions__note-text a:hover {
    color: var(--go99-gold);
}

/* FAQ Section */
.page-promotions__faq-section {
    background-color: var(--go99-deep-green);
    padding: 60px 0;
}

.page-promotions__faq-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-promotions__faq-item {
    background-color: var(--go99-card-bg);
    border-radius: 10px;
    border: 1px solid var(--go99-border);
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
    color: var(--go99-text-main);
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--go99-gold);
    background-color: var(--go99-card-bg);
    border-bottom: 1px solid var(--go99-divider);
    list-style: none; /* For details/summary */
}

.page-promotions__faq-question::-webkit-details-marker {
    display: none;
}

.page-promotions__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-promotions__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--go99-text-secondary);
    background-color: var(--go99-card-bg);
}

.page-promotions__faq-answer p {
    margin: 0;
}

/* Bottom CTA Section */
.page-promotions__cta-bottom-section {
    background-color: var(--go99-bg);
    padding: 60px 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        margin-top: -60px;
        padding: 30px;
    }
    .page-promotions__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-promotions__description {
        font-size: clamp(0.95rem, 2.2vw, 1.1rem);
    }
    .page-promotions__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding: 10px 0 40px 0;
    }
    .page-promotions__hero-content {
        margin-top: -40px;
        padding: 25px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
    .page-promotions__description {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
    }
    .page-promotions__cta-button,
    .page-promotions__card-button,
    .page-promotions a[class*="button"],
    .page-promotions a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-promotions__hero-content .page-promotions__cta-button {
        margin: 0 auto;
    }
    .page-promotions__promotions-grid-section,
    .page-promotions__how-to-claim-section,
    .page-promotions__terms-section,
    .page-promotions__faq-section,
    .page-promotions__cta-bottom-section {
        padding: 40px 0;
    }
    .page-promotions__section-title {
        font-size: clamp(1.6rem, 5.5vw, 2.2rem);
        margin-bottom: 15px;
    }
    .page-promotions__section-description {
        font-size: clamp(0.85rem, 2.5vw, 1rem);
        margin-bottom: 30px;
    }
    .page-promotions__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-promotions__card-image {
        height: 180px;
    }
    .page-promotions__card-title {
        font-size: 1.2rem;
        min-height: auto;
    }
    .page-promotions__card-text {
        font-size: 0.9rem;
        min-height: auto;
    }
    .page-promotions__claim-steps {
        gap: 20px;
    }
    .page-promotions__step-item {
        padding: 20px;
    }
    .page-promotions__step-title {
        font-size: 1.3rem;
    }
    .page-promotions__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-promotions__faq-answer {
        padding: 15px 20px;
        font-size: 0.95rem;
    }
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-promotions__hero-image-wrapper,
    .page-promotions__promotions-grid-section .page-promotions__container,
    .page-promotions__how-to-claim-section .page-promotions__container,
    .page-promotions__terms-section .page-promotions__container,
    .page-promotions__faq-section .page-promotions__container,
    .page-promotions__cta-bottom-section .page-promotions__container,
    .page-promotions__promotion-card,
    .page-promotions__step-item,
    .page-promotions__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-promotions__hero-content {
        max-width: calc(100% - 30px) !important; /* Adjust for padding on container */
        width: calc(100% - 30px) !important;
        margin-left: 15px !important;
        margin-right: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-content {
        margin-top: -30px;
        padding: 20px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.6rem, 6vw, 2rem);
    }
    .page-promotions__description {
        font-size: clamp(0.8rem, 3vw, 0.9rem);
    }
    .page-promotions__cta-button {
        padding: 12px 20px;
        font-size: 1rem;
    }
    .page-promotions__section-title {
        font-size: clamp(1.4rem, 6.5vw, 1.8rem);
    }
    .page-promotions__section-description {
        font-size: clamp(0.8rem, 3.5vw, 0.9rem);
    }
    .page-promotions__card-title {
        font-size: 1.1rem;
    }
    .page-promotions__card-text {
        font-size: 0.85rem;
    }
    .page-promotions__step-title {
        font-size: 1.2rem;
    }
    .page-promotions__step-text {
        font-size: 0.9rem;
    }
    .page-promotions__terms-item,
    .page-promotions__note-text {
        font-size: 0.9rem;
    }
    .page-promotions__faq-question {
        font-size: 0.95rem;
    }
    .page-promotions__faq-answer {
        font-size: 0.9rem;
    }
}