/* style/support.css */
/* Core styles for the support page, scoped to .page-support */

/* General page container for text color based on body background (white) */
.page-support {
    color: #333333; /* Dark text for light body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Section styling */
.page-support__section {
    padding: 60px 20px;
    text-align: center;
}

.page-support__section-title {
    font-size: 36px;
    color: #017439; /* Brand primary color for titles */
    margin-bottom: 20px;
    font-weight: bold;
}

.page-support__section-description {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #555555;
}

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

/* Hero Section */
.page-support__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background-color: #f0f0f0; /* Light background for hero */
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-support__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-support__hero-image-element {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 30px;
}

.page-support__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    margin-top: -80px; /* Overlap with image slightly for visual effect */
    background: rgba(255, 255, 255, 0.95); /* Slightly less transparent */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-support__hero-title {
    font-size: 42px;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

.page-support__hero-description {
    font-size: 20px;
    color: #555555;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Call to Action Buttons */
a.page-support__cta-button, .page-support__btn-primary, .page-support__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.page-support__btn-primary {
    background: #017439; /* Primary brand color */
    color: #ffffff;
}

.page-support__btn-primary:hover {
    background: #005a2e; /* Slightly darker green on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-support__btn-secondary {
    background: #ffffff;
    color: #017439;
    border: 2px solid #017439;
}

.page-support__btn-secondary:hover {
    background: #017439;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Contact Methods Section */
.page-support__contact-methods {
    background: #ffffff;
}

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

.page-support__contact-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-support__contact-card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 5px;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
    object-fit: cover;
}

.page-support__card-title {
    font-size: 24px;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-support__contact-card p {
    color: #666666;
    margin-bottom: 20px;
    font-size: 16px;
}

/* FAQ Section */
.page-support__faq-section {
    background: #017439; /* Dark background for FAQ */
    color: #ffffff; /* White text for dark background */
}

.page-support__faq-section .page-support__section-title,
.page-support__faq-section .page-support__section-description {
    color: #ffffff;
}

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

.page-support__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff; /* White background for individual FAQ item */
    color: #333333; /* Dark text for FAQ item content */
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #f0f0f0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-support__faq-question:hover {
    background: #e5e5e5;
    border-color: #d0d0d0;
}

.page-support__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #017439; /* Brand primary color for question text */
}

.page-support__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    color: #017439;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.page-support__faq-item.active .page-support__faq-toggle {
    color: #C30808; /* Red for active toggle */
    transform: rotate(45deg); /* Use rotation for minus sign effect */
}

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 25px;
    opacity: 0;
    text-align: left;
    color: #333333;
    font-size: 16px;
}

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 2000px !important; /* Sufficiently large */
    padding: 20px 25px !important;
    opacity: 1;
    background: #ffffff;
    border-radius: 0 0 8px 8px;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.page-support__faq-answer p {
    margin-bottom: 15px;
}

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

.page-support__faq-answer a {
    color: #017439; /* Link color in FAQ answer */
    text-decoration: underline;
}

.page-support__faq-answer a:hover {
    color: #005a2e;
}

/* Resources Section */
.page-support__resources-section {
    background: #f0f0f0;
}

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

.page-support__resource-card {
    display: block; /* Make the whole card clickable */
    text-decoration: none;
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards have equal height */
    box-sizing: border-box;
}

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

.page-support__resource-card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 15px;
    border-radius: 5px;
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
    object-fit: cover;
}

.page-support__resource-card .page-support__card-title {
    font-size: 20px;
    color: #017439;
    margin-bottom: 10px;
}

.page-support__resource-card p {
    color: #666666;
    font-size: 15px;
}

/* Responsible Gaming Section */
.page-support__responsible-gaming {
    background: #017439; /* Dark background */
    color: #ffffff; /* White text */
    text-align: left;
}

.page-support__responsible-gaming .page-support__section-title,
.page-support__responsible-gaming .page-support__section-description {
    color: #ffffff;
    text-align: center;
}

.page-support__responsible-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center; /* Center items when wrapped */
}

.page-support__responsible-content img {
    flex: 1;
    min-width: 300px;
    max-width: 50%; /* Max width on desktop */
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    min-height: 200px; /* Minimum image size */
}

.page-support__responsible-text {
    flex: 1;
    min-width: 300px;
    max-width: 50%; /* Max width on desktop */
}

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

.page-support__responsible-text ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-support__responsible-text li {
    margin-bottom: 10px;
    font-size: 16px;
    color: #f0f0f0;
}


/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 36px;
    }
    .page-support__hero-description {
        font-size: 18px;
    }
    .page-support__section-title {
        font-size: 30px;
    }
    .page-support__section-description {
        font-size: 16px;
    }
    .page-support__contact-grid,
    .page-support__resources-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    .page-support__hero-content {
        margin-top: -60px;
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .page-support__section {
        padding: 40px 15px;
    }
    .page-support__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile specific header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-support__hero-title {
        font-size: 28px;
    }
    .page-support__hero-description {
        font-size: 16px;
    }
    .page-support__hero-content {
        margin-top: -40px;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    a.page-support__cta-button, .page-support__btn-primary, .page-support__btn-secondary {
        padding: 12px 25px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: auto;
        margin-right: auto;
    }
    .page-support__contact-grid,
    .page-support__resources-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-support__contact-card,
    .page-support__resource-card {
        padding: 20px;
    }
    .page-support__card-title {
        font-size: 20px;
    }
    .page-support__faq-question {
        padding: 15px 20px;
    }
    .page-support__faq-question h3 {
        font-size: 16px;
    }
    .page-support__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    .page-support__faq-answer {
        padding: 0 20px;
    }
    .page-support__faq-item.active .page-support__faq-answer {
        padding: 15px 20px !important;
    }

    .page-support__responsible-content {
        flex-direction: column;
        gap: 20px;
    }
    .page-support__responsible-content img,
    .page-support__responsible-text {
        max-width: 100% !important;
        width: 100% !important;
        min-width: unset;
    }

    /* Mobile image responsiveness for all images within .page-support */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__hero-container,
    .page-support__contact-card,
    .page-support__resource-card,
    .page-support__responsible-content,
    .page-support__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden; /* Ensure no horizontal overflow */
    }
}