/* style/register.css */

.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light background */
    background-color: #ffffff; /* Default body background is white */
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

/* Fixed header offset for main content */
.page-register__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply header offset */
    background-color: #0A2463; /* Main color for hero background */
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden; /* Ensure no overflow from image */
    padding-bottom: 60px; /* Add some bottom padding */
}

.page-register__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 2; /* Ensure content is above image */
}

.page-register__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #E0B342; /* Accent color for title */
    font-weight: bold;
    line-height: 1.2;
}

.page-register__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-register__hero-button {
    display: inline-block;
    background-color: #E0B342; /* Accent color for button */
    color: #0A2463; /* Main color for button text */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-register__hero-button:hover {
    background-color: #f5db9c; /* Lighter accent on hover */
    color: #0A2463;
}

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

.page-register__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the entire area */
    display: block;
    opacity: 0.2; /* Make it subtle background */
}

.page-register__content-area,
.page-register__value-section,
.page-register__steps-section,
.page-register__rules-section,
.page-register__faq-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-register__section-title {
    font-size: 2.2em;
    color: #0A2463; /* Main color for section titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

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

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

.page-register__value-item:hover {
    transform: translateY(-5px);
}

.page-register__value-item img {
    width: 100%; /* Ensure images are not small */
    height: 200px; /* Minimum height for content images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure image is block level */
}

.page-register__value-heading {
    font-size: 1.5em;
    color: #0A2463;
    margin-bottom: 10px;
}

.page-register__value-text {
    font-size: 0.95em;
    color: #555555;
}

/* Steps Section */
.page-register__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-register__step-item {
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-register__step-item:nth-child(even) {
    background-color: #fdfdfd;
}

.page-register__step-heading {
    font-size: 1.8em;
    color: #E0B342; /* Accent color for step headings */
    margin-bottom: 15px;
}

.page-register__step-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    max-width: 700px;
}

.page-register__step-item img {
    max-width: 100%;
    height: 250px; /* Minimum height for step images */
    object-fit: contain; /* Contain for form/screen images */
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
    display: block;
}

.page-register__step-button {
    display: inline-block;
    background-color: #0A2463; /* Main color for step button */
    color: #ffffff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.page-register__step-button:hover {
    background-color: #1f4cbd; /* Darker blue on hover */
}

/* Rules Section */
.page-register__rules-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-register__rule-item {
    background-color: #f0f4f7;
    border-left: 5px solid #E0B342; /* Accent border */
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 1em;
    color: #444444;
}

.page-register__rule-item strong {
    color: #0A2463;
}

.page-register__rules-link {
    display: inline-block;
    margin-top: 20px;
    margin-right: 15px;
    color: #0A2463;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #E0B342;
    padding-bottom: 3px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-register__rules-link:hover {
    color: #E0B342;
    border-color: #0A2463;
}

/* FAQ Section */
.page-register__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-register__faq-item {
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-register__faq-question {
    display: block;
    padding: 20px 25px;
    font-size: 1.1em;
    color: #0A2463;
    font-weight: bold;
    cursor: pointer;
    position: relative;
    user-select: none;
}

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

.page-register__faq-toggle {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    line-height: 1;
    color: #E0B342;
    transition: transform 0.3s ease;
}

.page-register__faq-item[open] .page-register__faq-toggle {
    transform: translateY(-50%) rotate(45deg); /* Rotate + to become X or - */
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-register__main-title {
        font-size: 2em;
    }

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

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

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

    .page-register__value-grid {
        grid-template-columns: 1fr;
    }

    .page-register__step-item {
        padding: 20px;
    }

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

    .page-register__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-register__faq-toggle {
        right: 20px;
    }

    .page-register__faq-answer {
        padding: 0 20px 15px 20px;
    }

    /* Mobile content area constraint */
    .page-register {
        padding-left: 10px;
        padding-right: 10px;
    }
    .page-register__content-area,
    .page-register__value-section,
    .page-register__steps-section,
    .page-register__rules-section,
    .page-register__faq-section {
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Enforce image responsiveness in mobile */
    .page-register img {
        max-width: 100%;
        height: auto;
    }
    .page-register__value-item img,
    .page-register__step-item img {
        width: 100%; /* Ensure content images take full width */
        height: auto; /* Maintain aspect ratio */
        min-height: 200px; /* Minimum height for content images */
        min-width: 200px; /* Minimum width for content images */
    }
    .page-register__hero-image img {
        min-height: 200px;
        min-width: 200px;
    }
}