:root {
    --primary-color: #26A9E0;
    --auxiliary-color: #FFFFFF;
    --login-color: #EA7C07;
    --background-color: #FFFFFF;
    --text-color: #000000;
}

.page-contact {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 40px;
    background-color: var(--background-color, #FFFFFF); /* Default background */
    color: var(--text-color, #000000); /* Default text color */
    max-width: 1390px; /* Boxed layout */
    margin: 0 auto;
    overflow-x: hidden; /* Prevent horizontal scroll */
    box-sizing: border-box;
}

.page-contact__hero-section {
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
    padding: 0 15px; /* Responsive padding */
}

.page-contact__hero-banner {
    width: 100%;
    margin: 0;
    overflow: hidden;
    margin-bottom: 20px; /* Space between image and text */
}

.page-contact__hero-banner img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16 / 5; /* 1920x600 */
    object-fit: cover;
    object-position: center;
    filter: none; /* No grayscale */
}

.page-contact__hero-content {
    max-width: 800px;
    width: 100%;
}

.page-contact__main-title {
    font-size: clamp(2rem, 5vw, 3rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--text-color, #000000);
}

.page-contact__description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-color, #000000);
}

.page-contact__cta-button {
    display: inline-block;
    background-color: var(--primary-color, #26A9E0);
    color: var(--auxiliary-color, #FFFFFF);
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, filter 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
    min-width: 180px; /* Ensure buttons are not too small */
    text-align: center;
    line-height: 1.5;
}

.page-contact__cta-button:hover {
    filter: brightness(1.1);
}

.page-contact__channels-section,
.page-contact__faq-section,
.page-contact__cta-bottom-section {
    padding: 40px 15px;
    margin-bottom: 30px;
    background-color: var(--auxiliary-color, #FFFFFF); /* White background for sections */
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-contact__section-title {
    font-size: clamp(1.5rem, 3.5vw, 2rem); /* Responsive font size */
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color, #26A9E0);
    position: relative;
    padding-bottom: 15px;
}

.page-contact__section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color, #26A9E0);
    margin: 10px auto 0;
}

.page-contact__channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    justify-content: center;
}

.page-contact__channel-card {
    background-color: #f8f8f8;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-contact__channel-card img {
    width: 100%; /* Ensure images are not smaller than 200px display */
    max-width: 400px; /* Max width for smaller cards */
    height: auto;
    aspect-ratio: 3 / 2; /* 600x400 */
    object-fit: cover;
    margin: 0 auto 20px;
    border-radius: 8px;
    display: block; /* Ensure it's a block element */
    filter: none; /* No grayscale */
    min-width: 200px; /* Minimum display size */
    min- /* Minimum display size for 3:2 aspect ratio */
}

.page-contact__channel-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color, #26A9E0);
}

.page-contact__channel-description {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #555555;
}

.page-contact__channel-button {
    display: inline-block;
    background-color: var(--primary-color, #26A9E0);
    color: var(--auxiliary-color, #FFFFFF);
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, filter 0.3s ease;
    font-size: 15px;
    min-width: 120px;
    text-align: center;
    line-height: 1.4;
}

.page-contact__channel-button:hover {
    filter: brightness(1.1);
}

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

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

.page-contact__faq-question {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--primary-color, #26A9E0);
}

.page-contact__faq-answer {
    font-size: 15px;
    line-height: 1.6;
    color: #444444;
}

.page-contact__cta-bottom-section {
    text-align: center;
    padding: 50px 15px;
}

.page-contact__cta-bottom-section .page-contact__description {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-contact__cta-button--login {
    background-color: var(--login-color, #EA7C07); /* Specific login color */
}

.page-contact__cta-button--login:hover {
    filter: brightness(1.1);
}

.page-contact__cta-button--register {
    background-color: var(--primary-color, #26A9E0); /* Primary color for register */
}

.page-contact__cta-button--register:hover {
    filter: brightness(1.1);
}

/* Responsive adjustments */
@media (max-width: 849px) {
    .page-contact__hero-section {
        margin-bottom: 30px;
    }

    .page-contact__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .page-contact__section-title {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
    }

    .page-contact__channels-grid {
        grid-template-columns: 1fr; /* Single column on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-contact__hero-banner img,
    .page-contact__channel-card img {
        max-width: 100%;
        height: auto;
        min-width: unset; /* Override min-width for mobile */
        min-height: unset;
    }
    .page-contact__cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .page-contact__cta-button {
        width: 100%;
        max-width: 250px; /* Limit button width on small screens */
    }
    .page-contact__channels-section,
    .page-contact__faq-section,
    .page-contact__cta-bottom-section {
        padding: 30px 15px;
    }
    .page-contact__section-title {
        margin-bottom: 25px;
    }
    .page-contact__channel-card {
        padding: 20px;
    }
    .page-contact__faq-item {
        padding: 18px 20px;
    }
}

@media (max-width: 549px) {
    .page-contact {
        padding-left: 12px;
        padding-right: 12px;
    }
    .page-contact__main-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    .page-contact__description {
        font-size: 15px;
    }
    .page-contact__cta-button {
        padding: 10px 20px;
        font-size: 15px;
    }
    .page-contact__channel-title {
        font-size: 18px;
    }
    .page-contact__channel-description,
    .page-contact__faq-answer {
        font-size: 14px;
    }
    .page-contact__faq-question {
        font-size: 16px;
    }
}