/* style/register.css */

.page-register {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Default light text for dark body background */
    background-color: transparent; /* Inherit from shared.css body */
}

/* Fixed Header Offset for main content */
.page-register__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-register__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-register__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

.page-register__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

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

.page-register__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* For mobile responsiveness */
}

.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* For mobile responsiveness */
    box-sizing: border-box; /* For mobile responsiveness */
    white-space: normal; /* For mobile responsiveness */
    word-wrap: break-word; /* For mobile responsiveness */
}

.page-register__btn-primary {
    background-color: #26A9E0; /* Main brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-register__btn-primary:hover {
    background-color: #1a8cc4;
    border-color: #1a8cc4;
}

.page-register__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-register__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

.page-register__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.page-register__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #26A9E0;
    border-radius: 2px;
}

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

/* Why Join Section */
.page-register__why-join-section {
    padding: 80px 0;
    color: #ffffff; /* Light text for dark section */
    background-color: var(--dark-bg, #0d0d0d); /* Inherit dark background or fallback */
}

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

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

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

.page-register__feature-icon {
    width: 100%; /* Ensure image fills card width */
    height: auto;
    max-height: 200px; /* Limit height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    min-width: 200px; /* Min size constraint */
    min-height: 200px; /* Min size constraint */
}

.page-register__feature-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #26A9E0; /* Brand color */
}

.page-register__feature-description {
    font-size: 1.1em;
    color: #e0e0e0;
}

/* How To Register Section */
.page-register__how-to-register-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text for light background */
}

.page-register__how-to-register-section .page-register__section-title {
    color: #333333; /* Dark title for light background */
}

.page-register__how-to-register-section .page-register__section-title::after {
    background-color: #333333; /* Dark underline */
}

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

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

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

.page-register__step-number {
    font-size: 3em;
    font-weight: bold;
    color: #26A9E0;
    margin-bottom: 15px;
}

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

.page-register__step-description {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #555555;
}

.page-register__step-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: contain; /* Use contain to show full image, not crop */
    margin-top: 20px;
    border-radius: 8px;
    min-width: 200px; /* Min size constraint */
    min-height: 200px; /* Min size constraint */
}

.page-register__btn-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #26A9E0;
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s ease;
    max-width: 100%; /* For mobile responsiveness */
    box-sizing: border-box; /* For mobile responsiveness */
    white-space: normal; /* For mobile responsiveness */
    word-wrap: break-word; /* For mobile responsiveness */
}

.page-register__btn-link:hover {
    background-color: #1a8cc4;
}

/* Tips Section */
.page-register__tips-section {
    padding: 80px 0;
    background-color: #f0f8ff; /* Light blue background */
    color: #333333; /* Dark text */
}

.page-register__tips-section .page-register__section-title {
    color: #333333;
}

.page-register__tips-section .page-register__section-title::after {
    background-color: #333333;
}

.page-register__tips-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.page-register__tip-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-register__tip-icon {
    font-size: 1.5em;
    color: #26A9E0;
    margin-right: 15px;
    flex-shrink: 0;
}

.page-register__tip-text {
    font-size: 1.1em;
    color: #333333;
}

/* FAQ Section */
.page-register__faq-section {
    padding: 80px 0;
    background-color: var(--dark-bg, #0d0d0d); /* Dark background */
    color: #ffffff; /* Light text */
}

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

.page-register__faq-section .page-register__section-title::after {
    background-color: #ffffff;
}

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

.page-register__faq-item {
    background: rgba(255, 255, 255, 0.08); /* Slightly transparent white */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.15); /* Slightly darker for question header */
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

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

.page-register__faq-q-text {
    margin: 0;
    color: #ffffff;
}

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

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

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

.page-register__faq-item.active .page-register__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px;
    padding-top: 0; /* Adjust if needed to prevent double padding with item's own padding */
}

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

/* CTA Section */
.page-register__cta-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand color */
    color: #ffffff;
    text-align: center;
}

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

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

.page-register__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-register__btn-lg {
    padding: 18px 40px;
    font-size: 1.2em;
    border-radius: 10px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-register__hero-title {
        font-size: 2.8em;
    }
    .page-register__hero-description {
        font-size: 1.2em;
    }
    .page-register__section-title {
        font-size: 2em;
    }
    .page-register__feature-title,
    .page-register__step-title {
        font-size: 1.5em;
    }
    .page-register__cta-title {
        font-size: 2.2em;
    }
}

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

    /* Important: Mobile responsive images, videos, and buttons */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-register__section,
    .page-register__card,
    .page-register__container,
    .page-register__hero-section,
    .page-register__why-join-section,
    .page-register__how-to-register-section,
    .page-register__tips-section,
    .page-register__faq-section,
    .page-register__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

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

    .page-register__hero-title {
        font-size: 2em;
    }
    .page-register__hero-description {
        font-size: 1em;
    }
    .page-register__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-register__btn-primary,
    .page-register__btn-secondary,
    .page-register__btn-link,
    .page-register__btn-lg {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-register__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-register__feature-card,
    .page-register__step-card {
        padding: 20px;
    }

    .page-register__feature-icon {
        max-height: 150px;
    }

    .page-register__feature-title,
    .page-register__step-title {
        font-size: 1.3em;
    }

    .page-register__tip-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .page-register__tip-icon {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .page-register__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-register__faq-answer {
        padding: 0 15px;
    }
    .page-register__faq-item.active .page-register__faq-answer {
        padding: 15px;
        padding-top: 0;
    }

    .page-register__cta-title {
        font-size: 1.8em;
    }
    .page-register__cta-description {
        font-size: 1em;
    }
}