/* style/promotions.css */

/* Custom Colors */
:root {
    --gg8801-bg-dark: #08160F;
    --gg8801-card-bg: #11271B;
    --gg8801-text-main: #F2FFF6;
    --gg8801-text-secondary: #A7D9B8;
    --gg8801-border: #2E7A4E;
    --gg8801-glow: #57E38D;
    --gg8801-gold: #F2C14E;
    --gg8801-divider: #1E3A2A;
    --gg8801-deep-green: #0A4B2C;
    --gg8801-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* General Page Styles */
.page-promotions {
    background-color: var(--gg8801-bg-dark);
    color: var(--gg8801-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-promotions__section {
    padding: 60px 0;
    position: relative;
}

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

.page-promotions__dark-section {
    background-color: var(--gg8801-card-bg);
}

.page-promotions__dark-bg {
    background-color: var(--gg8801-deep-green);
}

.page-promotions__section-title {
    font-size: clamp(28px, 4vw, 42px);
    color: var(--gg8801-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.page-promotions__text-block {
    font-size: 17px;
    color: var(--gg8801-text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

.page-promotions__text-block a {
    color: var(--gg8801-gold);
    text-decoration: underline;
}

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 60px 0; /* body handles top padding, this is decorative */
    overflow: hidden;
}

.page-promotions__hero-image-wrapper {
    width: 100%;
    max-height: 700px;
    overflow: hidden;
}

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

.page-promotions__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 40px 20px;
    box-sizing: border-box;
    margin-top: -100px; /* Overlap slightly with image for visual appeal */
    position: relative;
    z-index: 1;
    background: rgba(17, 39, 27, 0.85); /* Card BG with transparency */
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--gg8801-border);
}

.page-promotions__main-title {
    font-size: clamp(32px, 5vw, 56px); /* Use clamp for H1 */
    color: var(--gg8801-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.1;
    letter-spacing: 1px;
}

.page-promotions__description {
    font-size: 18px;
    color: var(--gg8801-text-main);
    margin-bottom: 30px;
    line-height: 1.7;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-promotions__btn-primary {
    background: var(--gg8801-button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-promotions__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(87, 227, 141, 0.4);
}

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

.page-promotions__btn-secondary:hover {
    background-color: var(--gg8801-gold);
    color: var(--gg8801-bg-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(242, 193, 78, 0.3);
}

/* Image Content Styles */
.page-promotions__image-content {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin: 40px auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    object-fit: cover;
    object-position: center;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

/* Promo Grid Section */
.page-promotions__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__card {
    background-color: var(--gg8801-card-bg);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--gg8801-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-promotions__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(87, 227, 141, 0.2);
}

.page-promotions__card-image {
    width: 100%;
    max-width: 400px;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-promotions__card-title {
    font-size: 24px;
    color: var(--gg8801-gold);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-promotions__card-text {
    font-size: 16px;
    color: var(--gg8801-text-secondary);
    margin-bottom: 25px;
    flex-grow: 1;
    text-align: justify;
}

/* List Styles */
.page-promotions__list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-promotions__list-item {
    background-color: var(--gg8801-card-bg);
    border: 1px solid var(--gg8801-border);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
    font-size: 17px;
    color: var(--gg8801-text-main);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-promotions__list-item strong {
    color: var(--gg8801-gold);
}

.page-promotions__list-item a {
    color: var(--gg8801-gold);
    text-decoration: underline;
}

/* How-To Steps */
.page-promotions__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-promotions__step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    background-color: var(--gg8801-card-bg);
    border: 1px solid var(--gg8801-border);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-promotions__step-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--gg8801-gold);
    margin-right: 20px;
    flex-shrink: 0;
    line-height: 1;
}

.page-promotions__step-content {
    flex-grow: 1;
}

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

.page-promotions__step-text {
    font-size: 16px;
    color: var(--gg8801-text-secondary);
}

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

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

.page-promotions__faq-item {
    background-color: var(--gg8801-card-bg);
    border: 1px solid var(--gg8801-border);
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-promotions__faq-item details > summary {
    list-style: none;
}

.page-promotions__faq-item details > summary::-webkit-details-marker {
    display: none;
}

.page-promotions__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: var(--gg8801-gold);
    transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
    background-color: rgba(46, 122, 78, 0.2);
}

.page-promotions__faq-qtext {
    flex-grow: 1;
}

.page-promotions__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
    color: var(--gg8801-glow);
}

.page-promotions__faq-answer {
    padding: 0 25px 20px;
    font-size: 16px;
    color: var(--gg8801-text-secondary);
    text-align: justify;
}

.page-promotions__faq-item.active .page-promotions__faq-answer {
    max-height: 2000px !important; /* For JS-controlled div version */
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.page-promotions__faq-item:not(.active) .page-promotions__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

/* Conclusion Section */
.page-promotions__conclusion-section {
    text-align: center;
    background-color: var(--gg8801-deep-green);
    padding-bottom: 80px;
}

.page-promotions__conclusion-section .page-promotions__section-title {
    color: var(--gg8801-gold);
}

.page-promotions__conclusion-section .page-promotions__text-block {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--gg8801-text-main);
}

.page-promotions__conclusion-section .page-promotions__text-block a {
    color: var(--gg8801-gold);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__hero-content {
        margin-top: -80px;
    }

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

@media (max-width: 768px) {
    .page-promotions__hero-section {
        padding-bottom: 40px;
    }
    
    .page-promotions__hero-content {
        margin-top: -60px;
        padding: 30px 15px;
    }

    .page-promotions__main-title {
        font-size: clamp(28px, 8vw, 40px);
        margin-bottom: 15px;
    }

    .page-promotions__description {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .page-promotions__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-promotions__btn-primary,
    .page-promotions__btn-secondary {
        font-size: 16px;
        padding: 12px 20px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-promotions__section {
        padding: 40px 0;
    }

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

    .page-promotions__section-title {
        font-size: clamp(24px, 7vw, 36px);
        margin-bottom: 30px;
    }

    .page-promotions__text-block {
        font-size: 15px;
    }

    .page-promotions__image-content {
        margin: 30px auto;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-promotions__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-promotions__card {
        padding: 20px;
    }

    .page-promotions__card-image {
        height: 200px;
    }

    .page-promotions__card-title {
        font-size: 20px;
    }

    .page-promotions__card-text {
        font-size: 14px;
    }

    .page-promotions__list-item,
    .page-promotions__step-item,
    .page-promotions__faq-question {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .page-promotions__step-number {
        font-size: 30px;
    }
    
    .page-promotions__step-title {
        font-size: 18px;
    }

    .page-promotions__faq-answer {
        padding: 0 20px 15px;
        font-size: 14px;
    }

    .page-promotions__video-section {
      padding-top: 10px !important; /* body already has --header-offset */
    }
}

@media (max-width: 480px) {
    .page-promotions__hero-content {
        margin-top: -40px;
        padding: 25px 10px;
    }

    .page-promotions__main-title {
        font-size: clamp(24px, 9vw, 32px);
    }

    .page-promotions__section-title {
        font-size: clamp(22px, 8vw, 30px);
    }
    
    .page-promotions__step-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .page-promotions__step-number {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .page-promotions__step-content {
        padding-top: 0;
    }
}