/* style/promotions.css */

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

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

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

/* Hero Section */
.page-promotions__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    overflow: hidden;
    box-sizing: border-box;
}

.page-promotions__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 30px;
    border-radius: 8px;
}

.page-promotions__hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-promotions__main-title {
    font-size: clamp(2em, 4vw, 2.8em); /* Using clamp for H1 font size */
    font-weight: bold;
    color: var(--page-promotions-text-main);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-promotions__hero-description {
    font-size: 1.1em;
    color: var(--page-promotions-text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

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

.page-promotions__btn-primary {
    background: var(--page-promotions-button-gradient);
    color: var(--page-promotions-text-main);
    border: none;
    box-shadow: 0 5px 15px rgba(19, 153, 74, 0.4);
}

.page-promotions__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(19, 153, 74, 0.6);
}

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

.page-promotions__btn-secondary:hover {
    background: var(--page-promotions-deep-green);
    color: var(--page-promotions-text-main);
    border-color: var(--page-promotions-deep-green);
}

/* Sections */
.page-promotions__section-title {
    font-size: 2.2em;
    color: var(--page-promotions-text-main);
    text-align: center;
    margin-bottom: 30px;
    padding-top: 40px;
    position: relative;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-promotions__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--page-promotions-glow);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-promotions__text-block {
    font-size: 1.05em;
    line-height: 1.7;
    color: var(--page-promotions-text-secondary);
    margin-bottom: 25px;
    text-align: justify;
}

.page-promotions__dark-bg {
    background-color: var(--page-promotions-background);
    padding: 60px 0;
}

.page-promotions__intro-section .page-promotions__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-promotions__card {
    background-color: var(--page-promotions-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--page-promotions-border);
    color: var(--page-promotions-text-main);
}

.page-promotions__card-title {
    font-size: 1.5em;
    color: var(--page-promotions-text-main);
    margin-bottom: 15px;
    text-align: center;
}

.page-promotions__card-text {
    font-size: 1em;
    line-height: 1.6;
    color: var(--page-promotions-text-secondary);
    text-align: justify;
}

/* Promotions List */
.page-promotions__promos-list-section {
    padding: 60px 0;
    background-color: var(--page-promotions-background);
}

.page-promotions__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.page-promotions__promo-card {
    background-color: var(--page-promotions-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--page-promotions-border);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

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

.page-promotions__promo-title {
    font-size: 1.6em;
    color: var(--page-promotions-text-main);
    margin-bottom: 15px;
    text-align: center;
}

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

.page-promotions__promo-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.page-promotions__promo-features li {
    font-size: 0.9em;
    color: var(--page-promotions-text-secondary);
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.page-promotions__promo-features li::before {
    content: '✓';
    color: var(--page-promotions-glow);
    position: absolute;
    left: 0;
    top: 0;
}

.page-promotions__promo-card .page-promotions__btn-secondary {
    margin-top: auto; /* Push button to bottom */
    align-self: center;
    width: fit-content;
    min-width: 180px;
}

/* Terms Section */
.page-promotions__terms-section {
    padding: 60px 0;
    background-color: var(--page-promotions-deep-green);
}

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

.page-promotions__terms-list li {
    background-color: var(--page-promotions-card-bg);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--page-promotions-text-secondary);
    border-left: 4px solid var(--page-promotions-glow);
}

.page-promotions__terms-subtitle {
    font-size: 1.2em;
    color: var(--page-promotions-text-main);
    margin-bottom: 10px;
    display: inline;
}

.page-promotions__terms-section .page-promotions__btn-primary {
    display: block;
    margin: 40px auto 0;
    max-width: 300px;
}

/* How To Join Section */
.page-promotions__how-to-join-section {
    padding: 60px 0;
    background-color: var(--page-promotions-background);
}

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

.page-promotions__step-card {
    background-color: var(--page-promotions-card-bg);
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--page-promotions-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.page-promotions__step-image {
    width: 200px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-promotions__step-title {
    font-size: 1.4em;
    color: var(--page-promotions-text-main);
    margin-bottom: 15px;
}

.page-promotions__step-description {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--page-promotions-text-secondary);
    margin-bottom: 25px;
    flex-grow: 1;
    text-align: justify;
}

.page-promotions__step-card .page-promotions__btn-secondary {
    margin-top: auto; /* Push button to bottom */
    width: fit-content;
    min-width: 150px;
}

/* Tips Section */
.page-promotions__tips-section {
    padding: 60px 0;
    background-color: var(--page-promotions-deep-green);
}

.page-promotions__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-promotions__tips-list li {
    background-color: var(--page-promotions-card-bg);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    line-height: 1.6;
    color: var(--page-promotions-text-secondary);
    border-left: 4px solid var(--page-promotions-glow);
}

.page-promotions__tips-subtitle {
    font-size: 1.2em;
    color: var(--page-promotions-text-main);
    margin-bottom: 10px;
    display: inline;
}

.page-promotions__tips-section .page-promotions__btn-primary {
    display: block;
    margin: 40px auto 0;
    max-width: 350px;
}

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

.page-promotions__faq-list {
    margin-top: 40px;
}

.page-promotions__faq-item {
    background-color: var(--page-promotions-card-bg);
    border: 1px solid var(--page-promotions-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--page-promotions-text-main);
}

.page-promotions__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    color: var(--page-promotions-text-main);
    outline: none;
}

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

.page-promotions__faq-qtext {
    flex-grow: 1;
    color: var(--page-promotions-text-main);
}

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

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

.page-promotions__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    line-height: 1.6;
    color: var(--page-promotions-text-secondary);
    text-align: justify;
}

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

.page-promotions__conclusion-section .page-promotions__btn-primary {
    margin-top: 40px;
    max-width: 400px;
}

/* Floating Buttons */
.page-promotions__floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.page-promotions__floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
    color: var(--page-promotions-text-main);
}

.page-promotions__floating-btn--register {
    background: var(--page-promotions-button-gradient);
}

.page-promotions__floating-btn--login {
    background-color: var(--page-promotions-card-bg);
    border: 2px solid var(--page-promotions-border);
}

.page-promotions__floating-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-promotions__main-title {
        font-size: clamp(1.8em, 5vw, 2.5em);
    }
    .page-promotions__section-title {
        font-size: 2em;
    }
    .page-promotions__promo-grid {
        gap: 30px;
    }
    .page-promotions__steps-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-promotions {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-promotions__container {
        padding: 0 15px;
    }
    .page-promotions__hero-section {
        padding-bottom: 40px;
    }
    .page-promotions__main-title {
        font-size: clamp(1.6em, 6vw, 2.2em);
        margin-bottom: 10px;
    }
    .page-promotions__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-promotions__section-title {
        font-size: 1.8em;
        padding-top: 30px;
        margin-bottom: 20px;
    }
    .page-promotions__text-block {
        font-size: 0.95em;
    }
    .page-promotions__dark-bg,
    .page-promotions__promos-list-section,
    .page-promotions__terms-section,
    .page-promotions__how-to-join-section,
    .page-promotions__tips-section,
    .page-promotions__faq-section,
    .page-promotions__conclusion-section {
        padding: 40px 0;
    }
    .page-promotions__card-grid,
    .page-promotions__promo-grid,
    .page-promotions__steps-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-promotions__promo-image {
        height: 200px;
    }
    .page-promotions__promo-title {
        font-size: 1.4em;
    }
    .page-promotions__promo-description {
        font-size: 0.9em;
    }
    .page-promotions__promo-card .page-promotions__btn-secondary,
    .page-promotions__step-card .page-promotions__btn-secondary {
        width: 100%;
        max-width: 100% !important;
    }
    .page-promotions__terms-list li,
    .page-promotions__tips-list li,
    .page-promotions__faq-item summary {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-promotions__faq-answer {
        padding: 0 20px 15px;
    }
    .page-promotions__terms-section .page-promotions__btn-primary,
    .page-promotions__tips-section .page-promotions__btn-primary,
    .page-promotions__conclusion-section .page-promotions__btn-primary {
        max-width: 100%;
        width: 100%;
    }
    .page-promotions__floating-buttons {
        flex-direction: row;
        left: 10px;
        right: 10px;
        bottom: 10px;
        justify-content: space-around;
        gap: 8px;
    }
    .page-promotions__floating-btn {
        flex: 1;
        padding: 10px 15px;
        font-size: 0.9em;
    }

    /* Image, Video, Button Responsive Rules */
    .page-promotions img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-promotions__hero-image,
    .page-promotions__promo-image,
    .page-promotions__step-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-promotions__section,
    .page-promotions__card,
    .page-promotions__container,
    .page-promotions__promo-card,
    .page-promotions__step-card,
    .page-promotions__video-section,
    .page-promotions__video-container,
    .page-promotions__video-wrapper,
    .page-promotions__cta-buttons,
    .page-promotions__button-group,
    .page-promotions__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-promotions__cta-button,
    .page-promotions__btn-primary,
    .page-promotions__btn-secondary,
    .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;
        padding-right: 15px;
    }
    .page-promotions__cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-promotions__main-title {
        font-size: 1.5em;
    }
    .page-promotions__section-title {
        font-size: 1.6em;
    }
    .page-promotions__hero-section {
        padding-bottom: 30px;
    }
    .page-promotions__floating-buttons {
        bottom: 5px;
        left: 5px;
        right: 5px;
        gap: 5px;
    }
    .page-promotions__floating-btn {
        padding: 8px 10px;
        font-size: 0.85em;
    }
}