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

.page-register {
    font-family: 'Arial', sans-serif;
    color: var(--color-text-main); /* Main text color for the page, based on dark body background */
    background-color: var(--color-background); /* Ensure body background is dark */
    line-height: 1.6;
}

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

.page-register__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 10px; /* Small padding, body handles header offset */
    padding-bottom: 60px;
    overflow: hidden;
}

.page-register__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height of the image wrapper */
    overflow: hidden;
    margin-bottom: 30px;
}

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

.page-register__hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 900px;
}

.page-register__main-title {
    font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-register__hero-description {
    font-size: 1.1em;
    color: var(--color-text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-register__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: var(--color-button-gradient);
    color: #ffffff;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    filter: brightness(1.1);
}

.page-register__section-title {
    font-size: clamp(1.8em, 4vw, 2.8em);
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 40px;
    margin-top: 60px;
    text-shadow: 0 0 8px rgba(34, 199, 104, 0.3);
}

.page-register__section-title--gold {
    color: var(--color-gold);
}

.page-register__section-description {
    font-size: 1em;
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.page-register__text-center {
    text-align: center;
}

.page-register__why-join-section,
.page-register__how-to-register-section,
.page-register__security-info-section,
.page-register__games-overview-section,
.page-register__promotion-section,
.page-register__faq-section,
.page-register__cta-section {
    padding: 60px 0;
    border-top: 1px solid var(--color-divider);
}

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

.page-register__feature-card,
.page-register__step-card,
.page-register__game-card,
.page-register__promo-card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--color-text-main);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-register__feature-card:hover,
.page-register__step-card:hover,
.page-register__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-register__feature-icon,
.page-register__game-image {
    width: 100%;
    height: auto;
    max-width: 400px;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.page-register__feature-title,
.page-register__step-title,
.page-register__game-title,
.page-register__promo-title {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.page-register__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--color-gold);
    color: var(--color-background);
    font-size: 1.8em;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-register__link-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--color-deep-green);
    color: var(--color-text-main);
    text-decoration: none;
    border-radius: 5px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
    font-weight: 600;
    border: 1px solid var(--color-border);
}

.page-register__link-button:hover {
    background-color: var(--color-primary);
    color: #ffffff;
}

.page-register__security-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-register__security-image {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: block;
}

.page-register__security-text {
    flex: 2;
    min-width: 300px;
    color: var(--color-text-secondary);
}

.page-register__paragraph {
    margin-bottom: 20px;
    font-size: 1.05em;
    line-height: 1.7;
}

.page-register__link-secondary {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-register__link-secondary:hover {
    color: var(--color-gold);
    text-decoration: underline;
}

.page-register__promo-card {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
    padding: 40px;
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    align-items: center;
    text-align: center;
}

.page-register__promo-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    display: block;
}

.page-register__promo-content {
    flex: 1;
    text-align: center;
}

.page-register__promo-text {
    color: var(--color-text-secondary);
    font-size: 1.05em;
    margin-bottom: 25px;
}

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

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

.page-register__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--color-primary);
    list-style: none; /* Remove default marker */
    transition: background-color 0.3s ease;
}

.page-register__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for webkit browsers */
}

.page-register__faq-item summary:hover {
    background-color: rgba(34, 199, 104, 0.1);
}

.page-register__faq-qtext {
    flex-grow: 1;
    text-align: left;
}

.page-register__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 30px;
    text-align: center;
    color: var(--color-gold);
}

.page-register__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.page-register__faq-answer p {
    margin-top: 0;
    margin-bottom: 0;
}

.page-register__btn-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
}

.page-register__btn-large {
    padding: 18px 35px;
    font-size: 1.2em;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-register__hero-image-wrapper {
        max-height: 500px;
    }
    .page-register__promo-card {
        flex-direction: column;
        text-align: center;
    }
    .page-register__promo-content {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-register__container {
        padding: 0 15px;
    }
    .page-register__hero-section {
        padding-bottom: 40px;
    }
    .page-register__main-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
        margin-bottom: 15px;
    }
    .page-register__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-register__btn-primary {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-register__section-title {
        font-size: clamp(1.6em, 6vw, 2.2em);
        margin-top: 40px;
        margin-bottom: 30px;
    }
    .page-register__section-description {
        margin-bottom: 30px;
    }
    .page-register__why-join-section,
    .page-register__how-to-register-section,
    .page-register__security-info-section,
    .page-register__games-overview-section,
    .page-register__promotion-section,
    .page-register__faq-section,
    .page-register__cta-section {
        padding: 40px 0;
    }
    .page-register__features-grid,
    .page-register__steps-grid,
    .page-register__games-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .page-register__feature-card,
    .page-register__step-card,
    .page-register__game-card,
    .page-register__promo-card {
        padding: 25px;
    }
    .page-register__security-content {
        flex-direction: column;
        gap: 30px;
    }
    .page-register__security-image {
        min-width: unset;
        max-width: 100%;
    }
    .page-register__security-text {
        min-width: unset;
    }
    .page-register__promo-image {
        max-width: 100%;
    }

    /* Mobile responsive images/videos/buttons - MUST HAVE !important */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-register video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-register__section,
    .page-register__card,
    .page-register__container,
    .page-register__hero-section,
    .page-register__video-section,
    .page-register__video-container,
    .page-register__video-wrapper,
    .page-register__cta-buttons,
    .page-register__button-group,
    .page-register__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-register__video-section {
        padding-top: 10px !important; /* body handles header offset */
    }
    .page-register__cta-button,
    .page-register__btn-primary,
    .page-register__btn-secondary,
    .page-register a[class*="button"],
    .page-register 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-register__cta-buttons {
        display: flex;
        flex-direction: column; 
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .page-register__main-title {
        font-size: clamp(1.6em, 8vw, 2.2em);
    }
    .page-register__section-title {
        font-size: clamp(1.4em, 7vw, 2em);
    }
    .page-register__faq-item summary {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-register__faq-answer {
        padding: 0 20px 15px 20px;
    }
}