.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Body background is #FFFFFF, so dark text */
    background-color: var(--background-color, #FFFFFF); /* Ensure it respects shared.css, fallback to white */
}

/* Hero Section */
.page-support__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Desktop padding for header offset */
    background-color: #017439; /* Main brand color for hero background */
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.page-support__hero-content {
    max-width: 900px;
    margin-bottom: 40px;
    z-index: 1;
}

.page-support__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFF00; /* Use special color for main title for impact */
    font-weight: bold;
}

.page-support__intro-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #FFFFFF;
}

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

.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%; /* Button responsive */
    box-sizing: border-box; /* Button responsive */
    white-space: normal; /* Button responsive */
    word-wrap: break-word; /* Button responsive */
}

.page-support__btn-primary {
    background-color: #C30808; /* Register/Login special color */
    color: #FFFF00; /* Register/Login text special color */
    border: 2px solid #C30808;
}

.page-support__btn-primary:hover {
    background-color: #e00b0b;
    border-color: #e00b0b;
}

.page-support__btn-secondary {
    background-color: #FFFFFF;
    color: #017439; /* Main brand color for text */
    border: 2px solid #017439;
}

.page-support__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #017439;
}

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

.page-support__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Make background image subtle */
    display: block;
}

/* General Section Styles */
.page-support__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

.page-support__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

.page-support__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Why Choose Us Section */
.page-support__why-choose-us {
    padding: 80px 0;
}

.page-support__dark-section {
    background-color: #017439;
    color: #FFFFFF;
}

.page-support__dark-section .page-support__section-title,
.page-support__dark-section .page-support__section-intro {
    color: #FFFFFF;
}

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

.page-support__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-support__feature-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #FFFF00; /* Highlight important titles */
}

.page-support__feature-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* Contact Methods Section */
.page-support__contact-methods {
    padding: 80px 0;
    background-color: #FFFFFF;
}

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

.page-support__method-card {
    background-color: #f9f9f9; /* Light background for cards */
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-support__method-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
    display: block;
}

.page-support__method-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #017439; /* Brand color for method titles */
}

.page-support__method-description {
    font-size: 1em;
    margin-bottom: 20px;
}

/* FAQ Section */
.page-support__faq-section {
    padding: 80px 0;
}

.page-support__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-support__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
    color: #FFFFFF;
}

.page-support__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

.page-support__faq-title {
    font-size: 1.2em;
    margin: 0;
    font-weight: bold;
    color: #FFFFFF;
}

.page-support__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFFF00; /* Highlight toggle icon */
}

.page-support__faq-item.active .page-support__faq-toggle {
    transform: rotate(45deg);
}

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
    color: #f0f0f0;
}

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to accommodate content */
    padding: 20px 25px;
}

.page-support__faq-answer p {
    margin: 0 0 10px 0;
    color: #f0f0f0;
}

.page-support__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-support__cta-section {
    text-align: center;
    margin-top: 50px;
}

.page-support__cta-text {
    font-size: 1.2em;
    margin-bottom: 25px;
    color: #FFFFFF;
}

/* Guides & Resources Section */
.page-support__guides-resources {
    padding: 80px 0;
    background-color: #f5f5f5; /* Light grey background */
}

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

.page-support__resource-card {
    display: block;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: #333333;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-support__resource-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-support__resource-card h3 {
    font-size: 1.4em;
    padding: 15px 20px 0;
    margin: 0;
    color: #017439;
}

.page-support__resource-card p {
    padding: 10px 20px 20px;
    margin: 0;
    font-size: 0.95em;
    color: #555555;
}

/* Responsible Gaming Section */
.page-support__responsible-gaming {
    padding: 80px 0;
}

.page-support__responsible-gaming-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-support__responsible-gaming-text {
    flex: 2;
    min-width: 300px;
}

.page-support__responsible-gaming-text p {
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-support__responsible-gaming-image-wrapper {
    flex: 1;
    min-width: 280px;
    text-align: center;
}

.page-support__responsible-gaming-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: block;
}

/* Final CTA Section */
.page-support__final-cta {
    padding: 80px 0;
    background-color: #FFFFFF;
    text-align: center;
}

.page-support__final-cta .page-support__section-title {
    color: #017439;
}

.page-support__final-cta .page-support__section-intro {
    color: #333333;
}

.page-support__final-cta .page-support__cta-buttons {
    margin-top: 40px;
}

.page-support__register-button {
    background-color: #C30808;
    color: #FFFF00;
    border-color: #C30808;
}
.page-support__register-button:hover {
    background-color: #e00b0b;
    border-color: #e00b0b;
}

.page-support__login-button {
    background-color: #017439; /* Use brand main color for login button */
    color: #FFFFFF;
    border-color: #017439;
}
.page-support__login-button:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__main-title {
        font-size: 2.8em;
    }
    .page-support__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-support__hero-section {
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile padding for header offset */
    }

    .page-support__main-title {
        font-size: 2.2em;
    }

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

    .page-support__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-support__btn-primary,
    .page-support__btn-secondary {
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-support__container {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-support__section-title {
        font-size: 1.8em;
    }

    .page-support__section-intro {
        font-size: 0.95em;
    }

    .page-support__features-grid,
    .page-support__methods-grid,
    .page-support__resources-grid {
        grid-template-columns: 1fr;
    }

    .page-support__feature-item,
    .page-support__method-card,
    .page-support__resource-card {
        padding: 20px;
    }

    .page-support__faq-question {
        padding: 15px 20px;
    }

    .page-support__faq-title {
        font-size: 1.1em;
    }

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

    .page-support__responsible-gaming-content {
        flex-direction: column;
    }

    .page-support img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure all image containers also adhere to max-width */
    .page-support__hero-image-wrapper,
    .page-support__responsible-gaming-image-wrapper,
    .page-support__resource-card,
    .page-support__method-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    /* Specific adjustment for resource image height on mobile */
    .page-support__resource-image {
        height: auto;
        min-height: 200px; /* Ensure minimum size */
    }
}