.page-contact {
    color: #333333; /* Dark text for light background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-contact__hero-section {
    background-color: #f5f5f5; /* Light background for hero section */
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden; /* For image */
}

.page-contact__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-contact__hero-title {
    font-size: 3em;
    color: #000000; /* Main title color */
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.page-contact__hero-description {
    font-size: 1.2em;
    color: #555555;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__hero-image {
    margin-top: 30px;
}

.page-contact__hero-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    max-width: 1200px; /* Ensure image doesn't overflow its container */
    margin: 0 auto;
}

.page-contact__methods-section {
    padding: 80px 20px;
    background-color: #ffffff; /* White background */
    text-align: center;
}

.page-contact__methods-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-contact__methods-title {
    font-size: 2.5em;
    color: #000000;
    margin-bottom: 50px;
    font-weight: bold;
}

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

.page-contact__card {
    background-color: #fcfcfc;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-contact__card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-contact__card-icon {
    margin-bottom: 25px;
}

.page-contact__card-icon img {
    max-width: 100%; /* Ensure image fits within container */
    height: auto;
    object-fit: contain; /* Ensure image fits without cropping */
    display: block;
    border-radius: 8px;
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px;
}

.page-contact__card-title {
    font-size: 1.8em;
    color: #000000;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__card-description {
    font-size: 1em;
    color: #666666;
    margin-bottom: 25px;
    flex-grow: 1; /* Allows description to take available space */
}

.page-contact__button {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    white-space: nowrap; /* Prevent text wrapping */
}

.page-contact__button--live-chat,
.page-contact__button--email,
.page-contact__button--phone {
    background-color: #000000; /* Main color for contact buttons */
    color: #ffffff;
}

.page-contact__button--live-chat:hover,
.page-contact__button--email:hover,
.page-contact__button--phone:hover {
    background-color: #333333;
    transform: translateY(-2px);
}

.page-contact__faq-section {
    padding: 80px 20px;
    background-color: #f5f5f5; /* Light grey background */
    text-align: center;
}

.page-contact__faq-container {
    max-width: 1000px;
    margin: 0 auto;
}

.page-contact__faq-title {
    font-size: 2.2em;
    color: #000000;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__faq-description {
    font-size: 1.1em;
    color: #666666;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__faq-image {
    margin-bottom: 40px;
}

.page-contact__faq-image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 800px; /* Example max width */
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
    min-width: 200px; /* Enforce minimum size for content images */
    min-height: 200px;
}

.page-contact__faq-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-contact__button--faq,
.page-contact__button--resources {
    background-color: #FCBC45; /* Login color for secondary buttons */
    color: #000000;
}

.page-contact__button--faq:hover,
.page-contact__button--resources:hover {
    background-color: #e0a53b;
    transform: translateY(-2px);
}

.page-contact__cta-section {
    padding: 80px 20px;
    background-color: #000000; /* Dark background for CTA */
    color: #ffffff; /* White text for dark background */
    text-align: center;
}

.page-contact__cta-container {
    max-width: 900px;
    margin: 0 auto;
}

.page-contact__cta-title {
    font-size: 2.8em;
    color: #ffffff;
    margin-bottom: 25px;
    font-weight: bold;
}

.page-contact__cta-description {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.page-contact__button--register {
    background-color: #FFFFFF; /* Register color */
    color: #000000;
    border: 2px solid #FFFFFF;
}

.page-contact__button--register:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.page-contact__button--login {
    background-color: #FCBC45; /* Login color */
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-contact__button--login:hover {
    background-color: #e0a53b;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.5em;
    }
    .page-contact__methods-title {
        font-size: 2em;
    }
    .page-contact__faq-title {
        font-size: 1.8em;
    }
    .page-contact__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-title {
        font-size: 2em;
    }
    .page-contact__hero-description {
        font-size: 1em;
    }
    .page-contact__methods-section,
    .page-contact__faq-section,
    .page-contact__cta-section {
        padding: 60px 15px;
    }
    .page-contact__methods-title,
    .page-contact__faq-title,
    .page-contact__cta-title {
        font-size: 1.8em;
    }
    .page-contact__method-cards {
        grid-template-columns: 1fr;
    }
    .page-contact__faq-links,
    .page-contact__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-contact__button {
        width: 100%;
        max-width: 300px; /* Constrain button width on mobile */
        margin: 0 auto;
    }

    /* Mobile content area images must be constrained */
    .page-contact img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Ensure mobile images still meet min size */
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 1.8em;
    }
    .page-contact__methods-title,
    .page-contact__faq-title,
    .page-contact__cta-title {
        font-size: 1.5em;
    }
    .page-contact__button {
        padding: 10px 20px;
        font-size: 1em;
    }
}