/* style/register.css */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--background-color, #FFFFFF);
}

.page-register__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-register__dark-bg {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff; /* White text for dark background */
}

.page-register__light-bg {
    background-color: #ffffff; /* Auxiliary color / White background */
    color: #333333; /* Dark text for light background */
}

.page-register__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: inherit;
}

.page-register__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: inherit;
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    padding: 100px 0;
    padding-top: var(--header-offset, 120px); /* Ensure header offset */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
    min-height: 600px;
}

.page-register__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    z-index: 1;
}

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

.page-register__hero-section .page-register__container {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.page-register__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-register__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

.page-register__btn-hero {
    padding: 15px 30px;
    font-size: 1.2em;
    border-radius: 5px;
}

/* Buttons */
.page-register__btn-primary {
    display: inline-block;
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid #26A9E0;
}

.page-register__btn-primary:hover {
    background-color: #1a8cc4;
    transform: translateY(-2px);
}

.page-register__btn-secondary {
    display: inline-block;
    background-color: #ffffff; /* Auxiliary color */
    color: #26A9E0; /* Brand primary color */
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    border: 2px solid #26A9E0;
}

.page-register__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
    transform: translateY(-2px);
}

.page-register__btn-center {
    display: block;
    margin: 40px auto 0 auto;
    width: fit-content;
}

/* Benefits Section */
.page-register__benefits-section {
    padding: 60px 0;
}

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

.page-register__benefit-card {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    color: #333333;
}

.page-register__benefit-card:hover {
    transform: translateY(-10px);
}

.page-register__benefit-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-register__benefit-description {
    font-size: 1em;
    color: #555555;
}

/* Steps Section */
.page-register__steps-section {
    padding: 60px 0;
}

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

.page-register__step-item {
    padding: 20px;
    border-radius: 10px;
    color: #ffffff;
}

.page-register__step-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-register__step-title {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-register__step-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* Bonus Section */
.page-register__bonus-section {
    padding: 60px 0;
}

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

.page-register__bonus-image {
    flex: 1;
    min-width: 300px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.page-register__bonus-text {
    flex: 2;
    color: #333333;
}

.page-register__bonus-subtitle {
    font-size: 2em;
    margin-bottom: 20px;
    color: #26A9E0;
}

.page-register__bonus-list {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 30px;
    color: #555555;
}

.page-register__bonus-list li {
    margin-bottom: 10px;
}

/* Security Section */
.page-register__security-section {
    padding: 60px 0;
}

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

.page-register__security-image {
    flex: 1;
    min-width: 300px;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.page-register__security-text {
    flex: 2;
    color: #ffffff;
}

.page-register__security-text p {
    margin-bottom: 15px;
    color: #f0f0f0;
}

/* Games Section */
.page-register__games-section {
    padding: 60px 0;
}

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

.page-register__game-card {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
    color: #333333;
}

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

.page-register__game-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-register__game-description {
    font-size: 1em;
    color: #555555;
}

/* FAQ Section */
.page-register__faq-section {
    padding: 60px 0;
}

.page-register__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-register__faq-item {
    background-color: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #ffffff;
    color: #333333;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
    background-color: #f0f0f0;
}

.page-register__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
    transform: rotate(45deg);
}

.page-register__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #f8f8f8;
    color: #555555;
}

.page-register__faq-item.active .page-register__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 20px 25px;
}

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

/* CTA Section */
.page-register__cta-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-register__cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    z-index: 1;
}

.page-register__cta-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page-register__cta-section .page-register__container {
    position: relative;
    z-index: 2;
    color: #ffffff;
}

.page-register__cta-section .page-register__section-title {
    color: #ffffff;
}

.page-register__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-register__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-register__hero-title {
        font-size: 3em;
    }

    .page-register__section-title {
        font-size: 2em;
    }

    .page-register__bonus-content,
    .page-register__security-content {
        flex-direction: column;
        text-align: center;
    }

    .page-register__bonus-image,
    .page-register__security-image {
        order: -1; /* Image above text on smaller screens */
        max-width: 80%;
    }

    .page-register__bonus-text,
    .page-register__security-text {
        text-align: left;
    }

    .page-register__bonus-subtitle {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .page-register {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-register__hero-section {
        padding: 80px 0;
        min-height: 400px;
    }

    .page-register__hero-title {
        font-size: 2.2em;
    }

    .page-register__hero-description {
        font-size: 1em;
    }

    .page-register__btn-hero {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-register__section-title {
        font-size: 1.8em;
    }

    .page-register__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-register__benefits-section,
    .page-register__steps-section,
    .page-register__bonus-section,
    .page-register__security-section,
    .page-register__games-section,
    .page-register__faq-section,
    .page-register__cta-section {
        padding: 40px 0;
    }

    .page-register__benefits-grid,
    .page-register__steps-grid,
    .page-register__games-grid {
        gap: 20px;
        margin-top: 30px;
    }

    .page-register__benefit-card,
    .page-register__game-card {
        padding: 20px;
    }

    .page-register__benefit-title,
    .page-register__game-title {
        font-size: 1.3em;
    }

    .page-register__step-title {
        font-size: 1.5em;
    }

    .page-register__bonus-subtitle {
        font-size: 1.5em;
    }

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

    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Images responsive */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-register__hero-section,
    .page-register__benefits-section,
    .page-register__steps-section,
    .page-register__bonus-section,
    .page-register__security-section,
    .page-register__games-section,
    .page-register__faq-section,
    .page-register__cta-section,
    .page-register__container,
    .page-register__bonus-content,
    .page-register__security-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-register__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }
}