/* style/register.css */

/* Base Styles */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default for light background */
    background-color: #f8f8f8; /* Light background for the overall page */
}

/* Dark Section Styling - for sections with brand primary color background */
.page-register__dark-section {
    background-color: #0A1931; /* Primary brand color */
    color: #ffffff; /* White text for dark background */
}

.page-register__dark-section .page-register__section-title,
.page-register__dark-section .page-register__section-intro,
.page-register__dark-section .page-register__feature-title,
.page-register__dark-section .page-register__feature-description,
.page-register__dark-section .page-register__game-title a,
.page-register__dark-section .page-register__game-description,
.page-register__dark-section .page-register__promo-title,
.page-register__dark-section .page-register__promo-description,
.page-register__dark-section .page-register__faq-text,
.page-register__dark-section .page-register__faq-toggle {
    color: #ffffff; /* Ensure all text within dark sections is white */
}

/* Light Section Styling - for sections with light background */
.page-register__light-bg {
    background-color: #ffffff;
    color: #333333;
}
.page-register__light-bg .page-register__section-title,
.page-register__light-bg .page-register__section-intro,
.page-register__light-bg .page-register__security-subtitle,
.page-register__light-bg .page-register__security-description,
.page-register__light-bg .page-register__promo-title,
.page-register__light-bg .page-register__promo-description,
.page-register__light-bg .page-register__faq-text,
.page-register__light-bg .page-register__faq-toggle {
    color: #333333; /* Ensure all text within light sections is dark */
}


/* Container for content width */
.page-register__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Section Titles and Intros */
.page-register__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: #0A1931; /* Primary color for titles in light sections */
}

.page-register__dark-section .page-register__section-title {
    color: #FFD700; /* Auxiliary color for titles in dark sections */
}

.page-register__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    line-height: 1.8;
}

/* CTA Buttons */
.page-register__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-register__cta-button--primary {
    background-color: #FFD700; /* Auxiliary brand color */
    color: #0A1931; /* Primary brand color for text */
    border: 2px solid #FFD700;
}

.page-register__cta-button--primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-register__cta-button--secondary {
    background-color: transparent;
    color: #FFD700; /* Auxiliary brand color */
    border: 2px solid #FFD700;
}

.page-register__cta-button--secondary:hover {
    background-color: #FFD700;
    color: #0A1931;
    transform: translateY(-2px);
}

.page-register__cta-button--text-link {
    background: none;
    border: none;
    color: #0A1931;
    text-decoration: underline;
    padding: 0;
    font-size: 1em;
}
.page-register__dark-section .page-register__cta-button--text-link {
    color: #FFD700;
}
.page-register__cta-button--text-link:hover {
    color: #FFD700;
    text-decoration: none;
    transform: none;
}
.page-register__dark-section .page-register__cta-button--text-link:hover {
    color: #ffffff;
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background-color: #0A1931; /* Primary brand color */
    color: #ffffff;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
}

.page-register__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 40px 20px;
}

.page-register__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFD700; /* Auxiliary brand color */
    line-height: 1.2;
}

.page-register__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    line-height: 1.6;
}

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

.page-register__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
}

/* Why Join Section */
.page-register__why-join {
    padding: 80px 0;
}

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

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

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

.page-register__feature-icon {
    width: 200px; /* Minimum size requirement */
    height: 150px; /* Minimum size requirement */
    object-fit: contain;
    margin-bottom: 20px;
}

.page-register__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFD700; /* Auxiliary color for titles */
}

.page-register__feature-description {
    font-size: 1em;
    line-height: 1.7;
}

/* Registration Steps Section */
.page-register__steps {
    padding: 80px 0;
    background-color: #f8f8f8;
}

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

.page-register__step-item {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.page-register__step-number {
    width: 60px;
    height: 60px;
    background-color: #0A1931;
    color: #FFD700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin: 0 auto 25px auto;
}

.page-register__step-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #0A1931;
}

.page-register__step-description {
    font-size: 1em;
    line-height: 1.7;
    color: #555555;
}

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

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

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

.page-register__security-item {
    text-align: center;
    background-color: #f0f0f0;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-register__security-image {
    width: 100%;
    height: 250px; /* Example fixed height for consistency */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-register__security-subtitle {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #0A1931;
}

.page-register__security-description {
    font-size: 1em;
    line-height: 1.7;
    color: #555555;
}

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

/* Games Showcase Section */
.page-register__games-showcase {
    padding: 80px 0;
}

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

.page-register__game-card {
    background-color: rgba(255, 255, 255, 0.1); /* Transparent white for contrast */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-register__game-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.page-register__game-title {
    font-size: 1.5em;
    padding: 15px 20px 5px 20px;
}

.page-register__game-title a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-register__game-title a:hover {
    color: #ffffff;
}

.page-register__game-description {
    font-size: 0.95em;
    padding: 0 20px 20px 20px;
    line-height: 1.6;
    color: #cccccc;
}

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

/* Promotions Section */
.page-register__promotions {
    padding: 80px 0;
}

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

.page-register__promo-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-register__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.page-register__promo-title {
    font-size: 1.6em;
    padding: 20px 20px 10px 20px;
    color: #0A1931;
}

.page-register__promo-description {
    font-size: 1em;
    padding: 0 20px 20px 20px;
    line-height: 1.6;
    color: #555555;
}

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

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

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

.page-register__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Transparent white on dark background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    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;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-register__faq-text {
    flex-grow: 1;
    color: #ffffff;
}

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

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

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

.page-register__faq-item.active .page-register__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px 25px;
}

.page-register__faq-answer p {
    margin: 0;
    font-size: 1em;
    line-height: 1.7;
    color: #cccccc;
}

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

/* Image responsive rules for content area - global for .page-register img */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block; /* Prevents extra space below images */
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .page-register__container {
        padding: 30px 15px;
    }

    .page-register__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }

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

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

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

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

    .page-register__features-grid,
    .page-register__steps-list,
    .page-register__security-info,
    .page-register__games-grid,
    .page-register__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Mobile specific image adaptation */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-register__feature-icon,
    .page-register__security-image,
    .page-register__game-image,
    .page-register__promo-image {
        width: 100%;
        height: auto;
        min-height: 200px; /* Ensure minimum size */
        object-fit: cover;
    }

    /* Mobile specific button adaptation */
    .page-register__cta-button,
    .page-register__cta-button--primary,
    .page-register__cta-button--secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 15px 10px;
        font-size: 1em;
    }

    /* Ensure containers for buttons are also responsive */
    .page-register__cta-bottom,
    .page-register__cta-responsible,
    .page-register__cta-games,
    .page-register__cta-promotions,
    .page-register__cta-final {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* For multiple buttons in a row, stack them vertically on mobile */
    .page-register__cta-final .page-register__cta-button {
      margin: 10px 0;
    }

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

    .page-register__faq-answer {
        padding: 0 20px;
    }
    .page-register__faq-item.active .page-register__faq-answer {
      padding: 10px 20px 20px 20px;
    }

    /* General content containers for mobile overflow prevention */
    .page-register__section,
    .page-register__card,
    .page-register__container,
    .page-register__hero-content,
    .page-register__why-join,
    .page-register__steps,
    .page-register__security,
    .page-register__games-showcase,
    .page-register__promotions,
    .page-register__faq-section,
    .page-register__cta-final {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Video responsive (if any, though not for this page) */
    .page-register video,
    .page-register__video {
        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;
    }
}