:root {
    --page-register-primary-color: #11A84E; /* Main */
    --page-register-secondary-color: #22C768; /* Auxiliary */
    --page-register-background-color: #08160F; /* Background */
    --page-register-card-bg: #11271B; /* Card BG */
    --page-register-text-main: #F2FFF6; /* Text Main */
    --page-register-text-secondary: #A7D9B8; /* Text Secondary */
    --page-register-border-color: #2E7A4E; /* Border */
    --page-register-glow-color: #57E38D; /* Glow */
    --page-register-gold-color: #F2C14E; /* Gold */
    --page-register-divider-color: #1E3A2A; /* Divider */
    --page-register-deep-green: #0A4B2C; /* Deep Green */

    /* Button gradient */
    --page-register-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-register {
    background-color: var(--page-register-background-color);
    color: var(--page-register-text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    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;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden; /* Ensure image does not overflow */
}

.page-register__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-register__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability, not changing color */
}

.page-register__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    color: var(--page-register-text-main);
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
    margin-top: 150px; /* Push content down from top for better layout */
}

.page-register__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 size */
    color: var(--page-register-gold-color);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-register__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--page-register-text-secondary);
}

.page-register__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-register__cta-buttons--center {
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
    box-sizing: border-box; /* Include padding in width calculation */
    max-width: 100%; /* Ensure button does not overflow */
}

.page-register__btn-primary {
    background: var(--page-register-button-gradient);
    color: var(--page-register-text-main); /* White text for green button */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-register__btn-secondary:hover {
    background: var(--page-register-gold-color);
    color: var(--page-register-background-color);
    transform: translateY(-2px);
}

.page-register__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--page-register-gold-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-register__section-description {
    font-size: 1.1rem;
    color: var(--page-register-text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* Why Join Section */
.page-register__why-join-section {
    padding: 80px 0;
    background-color: var(--page-register-deep-green);
}

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

.page-register__feature-card {
    background-color: var(--page-register-card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--page-register-text-main);
}

.page-register__feature-icon {
    width: 200px; /* Min size for image */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-register__feature-title {
    font-size: 1.5rem;
    color: var(--page-register-gold-color);
    margin-bottom: 15px;
}

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

/* Steps Section */
.page-register__steps-section {
    padding: 80px 0;
    background-color: var(--page-register-background-color);
    text-align: center;
}

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

.page-register__step-item {
    background-color: var(--page-register-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--page-register-text-main);
}

.page-register__step-number {
    width: 60px;
    height: 60px;
    background: var(--page-register-button-gradient);
    color: var(--page-register-text-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-register__step-title {
    font-size: 1.4rem;
    color: var(--page-register-gold-color);
    margin-bottom: 10px;
}

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

.page-register__steps-image {
    width: 800px;
    height: 600px;
    object-fit: contain;
    margin-top: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    max-width: 100%; /* Responsive image */
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Bonuses Section */
.page-register__bonuses-section {
    padding: 80px 0;
    background-color: var(--page-register-deep-green);
}

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

.page-register__bonus-card {
    background-color: var(--page-register-card-bg);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: var(--page-register-text-main);
}

.page-register__bonus-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency, object-fit cover */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-register__bonus-title {
    font-size: 1.4rem;
    color: var(--page-register-gold-color);
    margin-bottom: 10px;
}

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

/* Game Diversity Section */
.page-register__game-diversity-section {
    padding: 80px 0;
    background-color: var(--page-register-background-color);
}

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

.page-register__game-card {
    background-color: var(--page-register-card-bg);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: var(--page-register-text-main);
}

.page-register__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-register__game-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.page-register__game-title a {
    color: var(--page-register-gold-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-register__game-title a:hover {
    color: var(--page-register-glow-color);
}

.page-register__game-text {
    font-size: 0.95rem;
    color: var(--page-register-text-secondary);
}

/* Security Section */
.page-register__security-section {
    padding: 80px 0;
    background-color: var(--page-register-deep-green);
}

.page-register__security-section > .page-register__container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-register__security-content {
    flex: 1;
    min-width: 300px;
}

.page-register__security-image-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-register__security-image {
    width: 100%;
    max-width: 800px; /* Max width for image */
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

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

.page-register__security-item {
    background-color: var(--page-register-card-bg);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--page-register-text-main);
}

.page-register__security-list-title {
    font-size: 1.3rem;
    color: var(--page-register-gold-color);
    margin-bottom: 10px;
}

.page-register__security-list-text {
    font-size: 1rem;
    color: var(--page-register-text-secondary);
}

.page-register__btn-secondary--left {
    margin-top: 20px;
    display: inline-block;
    color: var(--page-register-gold-color);
    border-color: var(--page-register-gold-color);
}

/* FAQ Section */
.page-register__faq-section {
    padding: 80px 0;
    background-color: var(--page-register-background-color);
}

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

.page-register__faq-item {
    background-color: var(--page-register-card-bg);
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: var(--page-register-text-main);
    overflow: hidden;
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--page-register-gold-color);
    background-color: var(--page-register-deep-green);
    border-bottom: 1px solid var(--page-register-divider-color);
}

.page-register__faq-item[open] .page-register__faq-question {
    border-bottom: none;
}

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

.page-register__faq-item[open] .page-register__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

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

/* Final CTA Section */
.page-register__final-cta-section {
    padding: 80px 0;
    background-color: var(--page-register-deep-green);
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-register__hero-content {
        margin-top: 100px;
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-register__container {
        padding: 0 15px;
    }

    .page-register__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .page-register__section-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    .page-register__hero-content {
        margin-top: 80px;
        padding: 20px;
    }

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

    .page-register__btn-primary,
    .page-register__btn-secondary {
        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,
    .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;
        flex-wrap: wrap !important;
        gap: 10px;
        overflow: hidden !important;
    }

    .page-register__features-grid,
    .page-register__steps-wrapper,
    .page-register__bonus-grid,
    .page-register__game-grid {
        grid-template-columns: 1fr;
    }

    .page-register__security-section > .page-register__container {
        flex-direction: column;
    }

    .page-register__security-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-register__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    
    .page-register__section,
    .page-register__card,
    .page-register__container,
    .page-register__hero-section,
    .page-register__why-join-section,
    .page-register__steps-section,
    .page-register__bonuses-section,
    .page-register__game-diversity-section,
    .page-register__security-section,
    .page-register__faq-section,
    .page-register__final-cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-register__feature-icon,
    .page-register__steps-image,
    .page-register__bonus-image,
    .page-register__game-image {
        width: 100%; /* Ensure these are 100% on mobile */
        height: auto; /* Maintain aspect ratio */
        min-width: 200px; /* Enforce minimum size */
        min-height: 200px;
    }
    .page-register__feature-icon {
        width: 200px; /* Smallest acceptable width for these images */
        height: auto;
    }
    .page-register__bonus-image {
        height: 200px; /* Adjusted fixed height for mobile, will be object-fit */
    }
    .page-register__game-image {
        height: 150px; /* Adjusted fixed height for mobile, will be object-fit */
    }
}