:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --card-bg: #111111;
    --background-color: #0A0A0A; /* This is the body background, from shared.css */
    --text-main-color: #FFF6D6; /* Light text for dark background */
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --header-offset: 122px; /* Default value, assumed from shared.css */
}

.page-register {
    font-family: Arial, sans-serif;
    color: var(--text-main-color); /* Main text color for the page */
    background-color: var(--background-color); /* Ensure consistency if not inherited */
    line-height: 1.6;
}

.page-register__hero-section {
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 60px;
    background-color: var(--background-color);
    text-align: center;
    position: relative;
}

.page-register__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height to prevent overly tall hero on desktop */
    overflow: hidden;
    margin-bottom: 40px;
}

.page-register__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 675px; /* Ensure image doesn't overflow its wrapper */
}

.page-register__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-register__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

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

.page-register__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--primary-color);
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

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

.page-register__btn-primary {
    background: var(--button-gradient);
    color: #ffffff; /* White text for contrast on gradient */
    border: none;
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-register__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(242, 193, 78, 0.6);
}

.page-register__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 10px rgba(242, 193, 78, 0.2);
}

.page-register__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(242, 193, 78, 0.4);
}

/* Why Choose Us Section */
.page-register__why-choose-us,
.page-register__registration-guide,
.page-register__promotions-section,
.page-register__game-world,
.page-register__security-support,
.page-register__faq-section,
.page-register__final-cta-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--background-color);
}

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

.page-register__advantage-card,
.page-register__promotion-card,
.page-register__game-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main-color);
}

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

.page-register__advantage-title,
.page-register__promotion-title,
.page-register__game-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-register__advantage-card p,
.page-register__promotion-card p,
.page-register__game-card p {
    font-size: 1rem;
    color: var(--text-main-color);
}

.page-register__advantage-card a,
.page-register__promotion-card a,
.page-register__game-card a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-register__advantage-card a:hover,
.page-register__promotion-card a:hover,
.page-register__game-card a:hover {
    text-decoration: underline;
}

/* Registration Guide Section */
.page-register__guide-steps {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-register__guide-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-main-color);
}

.page-register__guide-image {
    width: 100%;
    height: auto;
    max-width: 400px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-register__guide-step-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-register__guide-text {
    font-size: 1rem;
    color: var(--text-main-color);
}

.page-register__guide-text a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-register__guide-text a:hover {
    text-decoration: underline;
}

/* Promotions Section */
.page-register__promotion-image {
    width: 100%;
    height: auto;
    max-width: 400px;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* Game World Section */
.page-register__game-image {
    width: 100%;
    height: auto;
    max-width: 300px;
    margin-bottom: 15px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-register__game-title a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.page-register__game-title a:hover {
    text-decoration: underline;
}

/* Security and Support Section */
.page-register__content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
    text-align: left;
}

.page-register__text-block {
    font-size: 1.1rem;
    color: var(--text-main-color);
}

.page-register__text-block a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-register__text-block a:hover {
    text-decoration: underline;
}

/* FAQ Section */
.page-register__faq-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-register__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: var(--text-main-color);
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    list-style: none; /* For details/summary */
}

.page-register__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-register__faq-item summary::marker {
    display: none;
}

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

.page-register__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--secondary-color);
}

.page-register__faq-answer {
    padding-top: 15px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main-color);
    text-align: left;
}

.page-register__faq-answer a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-register__faq-answer a:hover {
    text-decoration: underline;
}

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

.page-register__final-cta-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-main-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.page-register__final-cta-description a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-register__final-cta-description a:hover {
    text-decoration: underline;
}

/* --- Responsive Styles --- */
/* Mobile devices (max-width: 768px) */
@media (max-width: 768px) {
    .page-register {
        font-size: 16px; /* Base font size for mobile */
    }

    /* HERO Section */
    .page-register__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 40px;
    }

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

    .page-register__hero-image {
        max-height: 300px !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-register__main-title {
        font-size: 2rem !important; /* Smaller H1 for mobile */
        margin-bottom: 15px;
    }

    .page-register__hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-register__section-title {
        font-size: 1.8rem !important; /* Smaller section titles */
        margin-bottom: 30px;
    }

    /* General Images and Containers (mandatory for all images in content area) */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
        min-width: 200px !important; /* Enforce minimum size */
        min-height: 200px !important; /* Enforce minimum size */
    }
    
    .page-register__section,
    .page-register__card,
    .page-register__container,
    .page-register__why-choose-us,
    .page-register__registration-guide,
    .page-register__promotions-section,
    .page-register__game-world,
    .page-register__security-support,
    .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;
    }

    /* Buttons and Button Containers (mandatory) */
    .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;
        font-size: 1rem;
    }
    
    .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;
        display: flex; /* Ensure flex context for wrap */
        flex-direction: column; /* Stack buttons vertically on mobile */
    }

    /* Why Choose Us Section */
    .page-register__advantages-grid {
        grid-template-columns: 1fr; /* Stack cards */
    }
    .page-register__advantage-card {
        padding: 25px;
    }
    .page-register__advantage-title {
        font-size: 1.3rem;
    }

    /* Registration Guide Section */
    .page-register__guide-steps {
        flex-direction: column; /* Stack guide items */
        align-items: center;
    }
    .page-register__guide-item {
        max-width: 100%;
        width: 100%;
        padding: 25px;
    }
    .page-register__guide-image {
        max-width: 100%;
    }
    .page-register__guide-step-title {
        font-size: 1.3rem;
    }

    /* Promotions Section */
    .page-register__promotions-grid {
        grid-template-columns: 1fr; /* Stack cards */
    }
    .page-register__promotion-card {
        padding: 25px;
    }
    .page-register__promotion-image {
        max-width: 100%;
    }
    .page-register__promotion-title {
        font-size: 1.3rem;
    }

    /* Game World Section */
    .page-register__game-grid {
        grid-template-columns: 1fr; /* Stack cards */
    }
    .page-register__game-card {
        padding: 25px;
    }
    .page-register__game-image {
        max-width: 100%;
    }
    .page-register__game-title {
        font-size: 1.3rem;
    }

    /* Security and Support Section */
    .page-register__content-wrapper {
        gap: 15px;
    }
    .page-register__text-block {
        font-size: 1rem;
    }

    /* FAQ Section */
    .page-register__faq-item {
        padding: 15px 20px;
    }
    .page-register__faq-question {
        font-size: 1.1rem;
    }
    .page-register__faq-answer {
        font-size: 0.95rem;
    }

    /* Final CTA Section */
    .page-register__final-cta-description {
        font-size: 1.05rem;
    }
}