/* style/support.css */
/* Base styles for the support page */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Default background for the page content */
}

/* Fixed Header Spacing */
.page-support__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px; /* Adjust as needed, padding-top is handled by var(--header-offset) */
    background: linear-gradient(135deg, #26A9E0, #FFFFFF); /* Brand primary color blend */
    color: #ffffff; /* Light text for dark/gradient background */
    overflow: hidden; /* Ensure no overflow issues */
}

.page-support__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* Ensure container takes full width up to max-width */
}

.page-support__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-support__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-height: 200px; /* Minimum image size */
}

.page-support__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px; /* Padding for text inside hero */
}

.page-support__hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-support__hero-description {
    font-size: 18px;
    margin-bottom: 40px;
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-support__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #EA7C07; /* Login color for CTA */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Ensure button fits on mobile */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-support__cta-button:hover {
    background: #d46f07; /* Darken on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-support__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.page-support__section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand primary color for titles */
}

.page-support__section-description {
    font-size: 18px;
    text-align: center;
    margin-bottom: 50px;
    color: #555555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Color contrast classes */
.page-support__dark-bg {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff; /* White text for dark background */
}

.page-support__dark-bg .page-support__section-title {
    color: #ffffff; /* White title for dark background */
}

.page-support__dark-bg .page-support__section-description {
    color: #f0f0f0; /* Off-white text for dark background */
}

.page-support__light-bg {
    background-color: #ffffff; /* White background */
    color: #333333; /* Dark text for light background */
}

/* Contact Channels */
.page-support__contact-channels {
    padding: 80px 0;
}

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

.page-support__channel-item {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.page-support__channel-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-support__channel-item img {
    width: 100%;
     /* Smaller size for channel icons */
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Enforce minimum size for images */
    min-height: 200px;
    object-fit: contain; /* Ensure images fit without cropping for icons */
}

.page-support__channel-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-support__channel-item p {
    font-size: 16px;
    color: #666666;
    margin-bottom: 25px;
}

.page-support__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    max-width: 100%; /* Ensure button fits on mobile */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-support__btn-secondary:hover {
    background: #26A9E0;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

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

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

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

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #fff;
    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;
    color: #333333;
}

.page-support__faq-question:hover {
    background: #f5f5f5;
    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; /* Prevent h3 from blocking click event */
    color: #26A9E0; /* Primary color for question titles */
}

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

.page-support__faq-item.active .page-support__faq-toggle {
    color: #333;
    transform: rotate(45deg); /* Rotate for 'x' 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;
    background: #f9f9f9;
    color: #555555;
}

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 2000px !important; /* Sufficiently large for content, important for override */
    padding: 20px 25px !important;
    opacity: 1;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
}

.page-support__faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}

/* Resources Section */
.page-support__resources-section {
    padding: 80px 0;
}

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

.page-support__resource-card {
    display: block; /* Make the whole card clickable */
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-decoration: none;
    color: #333333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

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

.page-support__resource-card img {
    width: 100%;
    height: 220px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce minimum size for images */
    min-height: 200px;
}

.page-support__resource-card h3 {
    font-size: 20px;
    margin: 20px 20px 10px;
    color: #26A9E0;
}

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

/* Responsible Gaming Promo Section */
.page-support__responsible-gaming-promo {
    padding: 80px 0;
    text-align: center;
}

.page-support__responsible-gaming-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.page-support__responsible-gaming-content img {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: contain;
    min-width: 200px; /* Enforce minimum size for images */
    min-height: 200px;
}

.page-support__responsible-gaming-text {
    max-width: 800px;
    margin: 0 auto;
}

/* Floating Buttons */
.page-support__floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.page-support__floating-btn {
    display: block;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    min-width: 120px; /* Ensure button is wide enough */
    max-width: 100%; /* Ensure button fits on mobile */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-support__floating-btn--register {
    background-color: #EA7C07; /* Login color */
    color: #ffffff;
}

.page-support__floating-btn--register:hover {
    background-color: #d46f07;
    transform: translateY(-2px);
}

.page-support__floating-btn--login {
    background-color: #26A9E0; /* Primary color */
    color: #ffffff;
}

.page-support__floating-btn--login:hover {
    background-color: #2087b3;
    transform: translateY(-2px);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__hero-content h1 {
        font-size: 40px;
    }
    .page-support__section-title {
        font-size: 32px;
    }
    .page-support__container {
        padding: 50px 20px;
    }
}

@media (max-width: 768px) {
    /* Fixed Header Spacing for mobile */
    .page-support__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Override desktop, use mobile header offset */
        padding-bottom: 40px;
    }

    .page-support__hero-content h1 {
        font-size: 32px;
    }
    .page-support__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-support__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        width: 100% !important; /* Full width for mobile buttons */
        max-width: 300px !important; /* Limit max width for better appearance */
        margin-left: auto;
        margin-right: auto;
    }

    .page-support__container {
        padding: 40px 15px;
    }
    .page-support__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-support__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .page-support__channels-grid,
    .page-support__resources-grid {
        grid-template-columns: 1fr; /* Single column layout for grids */
    }

    .page-support__channel-item {
        padding: 20px;
    }
    .page-support__channel-item h3 {
        font-size: 20px;
    }
    .page-support__channel-item p {
        font-size: 15px;
    }

    .page-support__btn-secondary {
        padding: 10px 20px;
        font-size: 15px;
        width: 100% !important; /* Full width for mobile buttons */
        max-width: 250px !important; /* Limit max width for better appearance */
        margin-left: auto;
        margin-right: auto;
    }

    /* FAQ Mobile */
    .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__faq-answer p {
        font-size: 15px;
    }

    .page-support__resource-card h3 {
        font-size: 18px;
    }
    .page-support__resource-card p {
        font-size: 14px;
    }
}