.page-contact {
    padding-top: 10px; /* Small top padding for the first section */
    background-color: #FFFFFF; /* Default background for the page */
    color: #333333; /* Default text color for contrast */
}

/* Hero Section */
.page-contact__hero-section {
    max-width: 1390px; /* Boxed layout */
    margin: 0 auto 40px auto;
    display: flex;
    flex-direction: column; /* Image above text */
    gap: 20px;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-contact__hero-image-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 9; /* For 1920x1080 */
    object-fit: cover;
    object-position: center;
    filter: none; /* Ensure no CSS filter */
}

.page-contact__hero-content {
    text-align: center;
    padding: 20px 0;
}

.page-contact__title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #017439; /* Main color for H1 */
    margin-bottom: 15px;
    text-align: center;
}

.page-contact__description {
    font-size: 1.1em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #555555;
}

.page-contact__cta-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #017439; /* Main color */
    color: #FFFFFF;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1em;
}

.page-contact__cta-button:hover {
    background-color: #005a2e; /* Darker green on hover */
}

/* Contact Methods Section */
.page-contact__methods-section {
    max-width: 1390px;
    margin: 40px auto;
    padding: 0 15px;
    box-sizing: border-box;
    text-align: center;
}

.page-contact__section-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    font-weight: 700;
    color: #017439;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.3;
}

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

.page-contact__method-card {
    background-color: #f9f9f9;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-contact__method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-contact__card-image {
    width: 100%; /* Occupy main card area */
    max-width: 400px; /* Ensure images are not too small as per rules */
    height: auto;
    aspect-ratio: 4 / 3; /* For 800x600 */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    filter: none; /* Ensure no CSS filter */
}

.page-contact__card-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #017439;
    margin-bottom: 10px;
}

.page-contact__card-text {
    font-size: 0.95em;
    line-height: 1.5;
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 1; /* Push button to bottom */
}

/* FAQ Section */
.page-contact__faq-section {
    max-width: 1390px;
    margin: 40px auto;
    padding: 0 15px;
    box-sizing: border-box;
    text-align: center;
}

.page-contact__faq-list {
    margin-top: 30px;
    text-align: left;
}

.page-contact__faq-item {
    background-color: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 15px;
    padding: 20px 25px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.03);
}

.page-contact__faq-question {
    font-size: 1.15em;
    font-weight: 600;
    color: #017439;
    margin-bottom: 10px;
}

.page-contact__faq-answer {
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
}
.page-contact__faq-answer a {
    color: #017439;
    text-decoration: none;
    font-weight: 500;
}
.page-contact__faq-answer a:hover {
    text-decoration: underline;
}

/* Register CTA Section */
.page-contact__register-cta-section {
    max-width: 1390px;
    margin: 60px auto;
    padding: 40px 15px;
    background-color: #017439; /* Main color background */
    border-radius: 15px;
    text-align: center;
    box-sizing: border-box;
    color: #FFFFFF;
}

.page-contact__register-cta-section .page-contact__section-title {
    color: #FFFFFF; /* White title on green background */
    margin-bottom: 20px;
}

.page-contact__register-cta-section .page-contact__description {
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-contact__cta-button--register {
    background-color: #C30808; /* Specific color for Register */
    color: #FFFF00; /* Specific text color for Register */
    margin-right: 15px;
}

.page-contact__cta-button--register:hover {
    background-color: #a00606; /* Darker red on hover */
}

.page-contact__cta-button--login {
    background-color: #C30808; /* Specific color for Login */
    color: #FFFF00; /* Specific text color for Login */
}

.page-contact__cta-button--login:hover {
    background-color: #a00606; /* Darker red on hover */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-contact {
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    .page-contact__hero-section {
        margin-bottom: 30px;
        padding: 0 10px;
    }
    .page-contact__hero-content {
        padding: 15px 0;
    }
    .page-contact__title {
        font-size: clamp(1.8rem, 7vw, 2.5rem); /* Use clamp for H1 */
    }
    .page-contact__description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-contact__cta-button {
        padding: 10px 20px;
        font-size: 0.95em;
    }
    .page-contact__methods-section,
    .page-contact__faq-section,
    .page-contact__register-cta-section {
        margin: 30px auto;
        padding: 0 10px;
    }
    .page-contact__section-title {
        font-size: clamp(1.3rem, 6vw, 2rem);
        margin-bottom: 20px;
    }
    .page-contact__methods-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
    .page-contact__card-title {
        font-size: 1.2em;
    }
    .page-contact__card-text {
        font-size: 0.9em;
    }
    .page-contact__faq-item {
        padding: 15px 20px;
    }
    .page-contact__faq-question {
        font-size: 1.05em;
    }
    .page-contact__faq-answer {
        font-size: 0.95em;
    }
    .page-contact__register-cta-section {
        padding: 30px 15px;
    }
    .page-contact__cta-button--register,
    .page-contact__cta-button--login {
        display: block;
        width: calc(100% - 20px); /* Adjust for padding */
        margin: 0 auto 15px auto;
    }
    .page-contact__cta-button--register {
        margin-right: auto; /* Override desktop margin */
    }
    /* Ensure all images in content area are responsive and not smaller than 200px */
    .page-contact img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce min-width for content images */
        min-height: 200px; /* Enforce min-height for content images */
    }
}

/* Global image responsive rule for content area to prevent overflow */
@media (max-width: 768px) {
    .page-contact img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* Ensure content area images are never too small on desktop either */
.page-contact__method-card img {
    min-width: 200px;
    min-height: 200px;
}