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

.page-register {
    background-color: var(--page-register-background);
    color: var(--page-register-text-main); /* Default text color for the page */
    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;
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    background-color: var(--page-register-deep-green);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-register__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    order: 1; /* Image first */
}

.page-register__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px; /* Limit height for hero image */
}

.page-register__hero-content {
    order: 2; /* Content after image */
    padding: 40px 20px;
    max-width: 800px;
    color: var(--page-register-text-main);
    text-align: center;
    position: relative; /* Ensure content is in normal flow */
    z-index: 1;
}

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

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

.page-register__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%;
}

.page-register__btn-primary {
    background: var(--page-register-button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

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

.page-register__btn-secondary:hover {
    background: var(--page-register-primary);
    color: #ffffff;
}

/* General Section Styling */
.page-register__why-register-section,
.page-register__how-to-register-section,
.page-register__bonuses-section,
.page-register__games-section,
.page-register__security-section,
.page-register__faq-section,
.page-register__final-cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-register__why-register-section,
.page-register__games-section,
.page-register__faq-section {
    background-color: var(--page-register-background); /* Darker background */
}

.page-register__how-to-register-section,
.page-register__bonuses-section,
.page-register__security-section,
.page-register__final-cta-section {
    background-color: var(--page-register-deep-green); /* Slightly lighter dark background */
}

.page-register__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    color: var(--page-register-gold);
    margin-bottom: 40px;
    font-weight: bold;
}

.page-register__description-text {
    font-size: 1.1em;
    color: var(--page-register-text-secondary);
    max-width: 800px;
    margin: 0 auto 40px auto;
}

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

.page-register__feature-card {
    background-color: var(--page-register-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--page-register-border);
}

.page-register__feature-card:hover {
    transform: translateY(-5px);
}

.page-register__feature-icon {
    width: 100%; /* Ensure image fills card */
    max-width: 200px; /* Max width for smaller icons */
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
}

.page-register__card-title {
    font-size: 1.5em;
    color: var(--page-register-primary);
    margin-bottom: 15px;
}

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

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

.page-register__step-card {
    background-color: var(--page-register-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid var(--page-register-border);
    position: relative;
    padding-top: 60px;
}

.page-register__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--page-register-gold);
    color: var(--page-register-deep-green);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    border: 3px solid var(--page-register-background);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.page-register__step-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
}

/* Bonus Grid */
.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: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid var(--page-register-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-register__bonus-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
}

.page-register__card-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--page-register-secondary);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-register__card-link:hover {
    color: var(--page-register-gold);
}

/* Game Categories Grid */
.page-register__game-categories-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: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--page-register-border);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--page-register-text-main);
}

.page-register__game-card:hover {
    transform: translateY(-5px);
}

.page-register__game-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
    border-radius: 8px;
}

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

.page-register__security-item {
    background-color: var(--page-register-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid var(--page-register-border);
}

.page-register__security-icon {
    width: 100%;
    max-width: 150px;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
}

.page-register__item-title {
    font-size: 1.4em;
    color: var(--page-register-primary);
    margin-bottom: 10px;
}

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

/* FAQ Section */
.page-register__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
    text-align: left;
}

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

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--page-register-text-main);
    cursor: pointer;
    background-color: var(--page-register-deep-green);
    border-bottom: 1px solid var(--page-register-border);
    transition: background-color 0.3s ease;
    list-style: none; /* For details tag */
}

.page-register__faq-question::-webkit-details-marker {
    display: none; /* For details tag */
}

.page-register__faq-item[open] .page-register__faq-question {
    background-color: var(--page-register-primary);
    color: #ffffff;
    border-bottom: 1px solid var(--page-register-primary);
}

.page-register__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

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

.page-register__faq-item[open] .page-register__faq-toggle {
    color: #ffffff;
}

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

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

/* Final CTA Section */
.page-register__final-cta-section {
    padding-bottom: 80px;
}

.page-register__final-cta-button {
    font-size: 1.3em;
    padding: 18px 40px;
}

.page-register__cta-wrapper {
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-register__hero-content {
        padding: 30px 15px;
    }
    .page-register__section-title {
        margin-bottom: 30px;
    }
    .page-register__features-grid,
    .page-register__steps-grid,
    .page-register__bonus-grid,
    .page-register__game-categories-grid,
    .page-register__security-grid {
        gap: 20px;
    }
}

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

    .page-register__hero-section {
        padding-bottom: 40px;
    }

    .page-register__hero-image {
        max-height: 300px;
    }

    .page-register__main-title {
        font-size: clamp(2em, 8vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-register__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-register__cta-button {
        max-width: 100% !important; /* Enforce full width for buttons */
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-left: auto;
        margin-right: auto;
    }

    .page-register__cta-wrapper {
        display: flex;
        flex-direction: column;
        gap: 15px; /* Spacing between buttons if multiple */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-register__section-title {
        font-size: clamp(1.5em, 6vw, 2em);
        margin-bottom: 25px;
    }

    .page-register__description-text {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-register__why-register-section,
    .page-register__how-to-register-section,
    .page-register__bonuses-section,
    .page-register__games-section,
    .page-register__security-section,
    .page-register__faq-section,
    .page-register__final-cta-section {
        padding: 40px 0;
    }

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

    .page-register__hero-section,
    .page-register__why-register-section,
    .page-register__how-to-register-section,
    .page-register__bonuses-section,
    .page-register__games-section,
    .page-register__security-section,
    .page-register__faq-section,
    .page-register__final-cta-section,
    .page-register__container,
    .page-register__hero-image-wrapper,
    .page-register__feature-card,
    .page-register__step-card,
    .page-register__bonus-card,
    .page-register__game-card,
    .page-register__security-item,
    .page-register__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent content overflow */
    }

    .page-register__hero-section {
        padding-top: 10px !important; /* body handles --header-offset */
    }

    .page-register__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-register__faq-answer {
        padding: 15px 20px;
    }

    .page-register__final-cta-button {
        font-size: 1.1em;
        padding: 15px 30px;
    }
}

@media (max-width: 480px) {
    .page-register__main-title {
        font-size: clamp(1.8em, 9vw, 2.2em);
    }
    .page-register__section-title {
        font-size: clamp(1.4em, 7vw, 1.8em);
    }
    .page-register__feature-card,
    .page-register__step-card,
    .page-register__bonus-card,
    .page-register__game-card,
    .page-register__security-item {
        padding: 20px 15px;
    }
    .page-register__step-number {
        width: 40px;
        height: 40px;
        font-size: 1.5em;
        top: -15px;
    }
    .page-register__step-card {
        padding-top: 50px;
    }
}