/* style/register.css */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Dark body background #0d0d0d, so text must be light */
    background-color: transparent; /* Main content background is transparent to show body background */
    padding-top: var(--header-offset, 120px); /* Ensure content starts below fixed header */
}

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

.page-register__dark-bg {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

/* Hero Section */
.page-register__hero-section {
    padding: 80px 0;
    text-align: center;
    background-color: #0d0d0d; /* Matching body background */
}

.page-register__hero-section .page-register__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.page-register__hero-content {
    flex: 1;
    max-width: 800px;
    text-align: center;
}

.page-register__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFFF00; /* Custom color for register/login font */
    line-height: 1.2;
}

.page-register__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-register__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    width: 100%;
}

.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    min-width: 180px;
}

.page-register__btn-primary {
    background-color: #C30808; /* Custom color for register */
    color: #FFFF00; /* Custom color for register font */
    border: 2px solid #C30808;
}

.page-register__btn-primary:hover {
    background-color: #e02020;
    color: #ffffff;
    border-color: #e02020;
}

.page-register__btn-secondary {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-register__btn-secondary:hover {
    background-color: #005f2e;
    border-color: #005f2e;
}

.page-register__hero-image-wrapper {
    flex: 1;
    max-width: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-register__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-register__section-title {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 40px;
    color: #FFFF00; /* Default title color */
}

.page-register__section-title--light {
    color: #FFFF00; /* Custom color for register/login font */
}

.page-register__section-description {
    font-size: 1.05em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: #f0f0f0;
}

.page-register__section-description--light {
    color: #f0f0f0;
}

/* Benefits Section */
.page-register__benefits-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Matching body background */
}

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

.page-register__benefit-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards on dark background */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: #ffffff;
}

.page-register__benefit-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-register__benefit-icon {
    width: 200px; /* Enforce min-width for all images */
    height: 200px; /* Enforce min-height for all images */
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 8px;
}

.page-register__benefit-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #FFFF00; /* Custom color for register/login font */
}

.page-register__benefit-text {
    font-size: 0.95em;
    color: #e0e0e0;
}

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

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

.page-register__step-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-register__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #FFFF00; /* Custom color for register/login font */
    margin-bottom: 15px;
}

.page-register__step-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #FFFF00; /* Custom color for register/login font */
}

.page-register__step-text {
    font-size: 0.95em;
    color: #e0e0e0;
}

/* Games Preview Section */
.page-register__games-preview-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Matching body background */
}

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

.page-register__game-card {
    display: block;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-register__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce min-width for all images */
    min-height: 200px; /* Enforce min-height for all images */
}

.page-register__game-title {
    font-size: 1.2em;
    padding: 15px;
    text-align: center;
    color: #FFFF00; /* Custom color for register/login font */
}

.page-register__cta-center {
    text-align: center;
    margin-top: 40px;
}

.page-register__btn--large {
    padding: 18px 40px;
    font-size: 1.1em;
}

/* FAQ Section */
.page-register__faq-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Matching body background */
}

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

.page-register__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    color: #FFFF00; /* Custom color for register/login font */
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none; /* For details/summary */
}

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

.page-register__faq-item[open] .page-register__faq-question {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-register__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: #ffffff;
}

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

.page-register__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 0.95em;
    color: #e0e0e0;
}

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

/* Final CTA Section */
.page-register__cta-final-section {
    padding: 80px 0;
    text-align: center;
}

/* Ensure contrast fix for the final CTA section if needed */
.page-register__cta-final-section .page-register__contrast-fix {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    padding: 40px;
    border-radius: 12px;
}

/* Images: Global responsive and minimum size */
.page-register img {
    max-width: 100%;
    height: auto;
    display: block; /* Ensure images behave as blocks for max-width */
    min-width: 200px; /* Global minimum width */
    min-height: 200px; /* Global minimum height */
    object-fit: cover; /* Ensure images fill their space without distortion */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-register {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }

    .page-register__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

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

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

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

    .page-register__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-register__btn-primary,
    .page-register__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-register__benefits-grid,
    .page-register__steps-grid,
    .page-register__games-grid {
        grid-template-columns: 1fr;
    }

    .page-register__benefit-card,
    .page-register__step-card,
    .page-register__game-card,
    .page-register__faq-item {
        padding: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-register__video-section,
    .page-register__video-container,
    .page-register__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-register video,
    .page-register__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}

/* Ensure no filter is used for images */
.page-register img {
    filter: none;
}

.page-register p,
.page-register li,
.page-register__section-description,
.page-register__benefit-text,
.page-register__step-text,
.page-register__faq-answer {
    color: #e0e0e0; /* Slightly off-white for body text */
}

.page-register h1,
.page-register h2,
.page-register h3,
.page-register h4,
.page-register h5,
.page-register h6,
.page-register__benefit-title,
.page-register__step-title,
.page-register__game-title,
.page-register__faq-question {
    color: #FFFF00; /* Custom color for titles */
}