/* style/register.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --button-register-bg: #C30808;
    --button-register-text: #FFFF00;
    --border-color: #e0e0e0;
    --background-light-grey: #f9f9f9;
    --header-offset: 120px; /* Default value, will be overridden by shared.css if defined */
}

/* Base styles for the register page content */
.page-register {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light body background */
    background-color: var(--secondary-color); /* Matches body background if shared.css sets it to white */
}

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

.page-register__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

.page-register__section-description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: var(--text-dark);
}

/* Dark section styling for contrast */
.page-register__dark-section {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0;
}

.page-register__dark-section .page-register__section-title {
    color: var(--text-light);
}

.page-register__dark-section .page-register__section-description {
    color: var(--text-light);
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-register__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above any background effects */
}

.page-register__hero-image {
    width: 100%;
    margin-bottom: 30px;
    max-height: 500px; /* Limit height for aesthetic */
    overflow: hidden;
}

.page-register__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    /* No filter allowed */
    min-width: 200px; /* Min size requirement */
    min-height: 200px; /* Min size requirement */
}

.page-register__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-register__main-title {
    font-size: 48px;
    font-weight: bold;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-register__intro-text {
    font-size: 20px;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-register__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-register-bg);
    color: var(--button-register-text);
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* For mobile responsiveness */
    box-sizing: border-box; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-register__cta-button:hover {
    background: #a80707; /* Slightly darker red */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-register__cta-button--red {
    background: var(--button-register-bg);
    color: var(--button-register-text);
}

.page-register__cta-button--large {
    padding: 18px 50px;
    font-size: 20px;
}

/* Benefits Section */
.page-register__benefits-section {
    padding: 60px 0;
    text-align: center;
}

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