/* style/support.css */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #f4f4f4; /* Explicitly set, though inherited from body */
}

/* 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;
    padding-top: var(--header-offset, 120px); /* Ensure header offset */
    background: linear-gradient(135deg, #0A1931, #FFD700); /* Blend brand colors */
    color: #ffffff; /* White text for dark/gradient background */
    overflow: hidden; /* Prevent content overflow */
}

.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%;
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-support__hero-image {
    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%;
}

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

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

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

.page-support__section-title {
    font-size: 2.5em;
    color: #0A1931;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-support__section-title--light {
    color: #ffffff;
}

.page-support__section-description {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-support__section-description--light {
    color: #f0f0f0;
}

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

.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: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-support__contact-icon {
    width: 100%;
    max-width: 200px;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-support__card-title {
    font-size: 1.5em;
    color: #0A1931;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-support__card-title--light {
    color: #ffffff;
}

.page-support__card-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-support__card-text--light {
    color: #f0f0f0;
}

/* CTA Button Styles */
.page-support__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #FFD700; /* Gold color */
    color: #0A1931; /* Dark text for gold background */
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%; /* For mobile responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-support__cta-button:hover {
    background: #e6c200; /* Slightly darker gold */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-support__cta-button--dark {
    background: #0A1931;
    color: #ffffff;
}

.page-support__cta-button--dark:hover {
    background: #1a2f4a;
}

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

.page-support__btn-secondary:hover {
    background: #0A1931;
    color: #ffffff;
}

/* FAQ Section */
.page-support__faq-section {
    padding: 60px 0;
    background-color: #0A1931; /* Dark background */
}

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

.page-support__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.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 15px;
    opacity: 0;
}

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 2000px !important; /* Sufficiently large for content */
    padding: 20px 15px !important;
    opacity: 1;
    background: #1a2f4a; /* Slightly lighter dark background for answer */
    border-radius: 0 0 5px 5px;
    color: #f0f0f0; /* Light text for dark background */
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #FFD700; /* Gold background for questions */
    border: 1px solid #e6c200;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-support__faq-question:hover {
    background: #e6c200;
    border-color: #d1b000;
}

.page-support__faq-question:active {
    background: #d1b000;
}

.page-support__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #0A1931; /* Dark text for gold background */
}

.page-support__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #0A1931; /* Dark text for gold background */
    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: 28px;
    height: 28px;
}

.page-support__faq-item.active .page-support__faq-toggle {
    color: #0A1931;
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

/* Responsible Gaming Section */
.page-support__responsible-gaming {
    padding: 60px 0;
    background-color: #f4f4f4;
}

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

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

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

.page-support__info-icon {
    width: 100%;
    max-width: 150px;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

/* Security & Privacy Section */
.page-support__security-privacy {
    padding: 60px 0;
    background-color: #0A1931;
}

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

.page-support__security-item {
    background: rgba(255, 255, 255, 0.08); /* Semi-transparent white on dark background */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-support__security-icon {
    width: 100%;
    max-width: 100px;
    height: auto;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 8px;
}

.page-support__inline-link {
    color: #FFD700; /* Gold color for links on dark background */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-support__inline-link:hover {
    color: #e6c200;
}

/* Guides Section */
.page-support__guides {
    padding: 60px 0;
    background-color: #f4f4f4;
}

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

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

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

/* Resources Section */
.page-support__resources {
    padding: 60px 0;
    background-color: #0A1931;
}

.page-support__resource-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0 auto;
    max-width: 600px;
    text-align: center;
}

.page-support__resource-list li {
    margin-bottom: 15px;
}

.page-support__resource-link {
    font-size: 1.2em;
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
    font-weight: bold;
}

.page-support__resource-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 2.5em;
    }
    .page-support__hero-description {
        font-size: 1.1em;
    }
    .page-support__section-title {
        font-size: 2em;
    }
    .page-support__section-description {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-support {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-support__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-support__hero-title {
        font-size: 2em;
    }
    .page-support__hero-description {
        font-size: 1em;
    }
    .page-support__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-support__btn-secondary {
        padding: 10px 20px;
        font-size: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .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-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-support__contact-grid,
    .page-support__info-grid,
    .page-support__security-grid,
    .page-support__guide-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-support__contact-card,
    .page-support__info-card,
    .page-support__security-item,
    .page-support__guide-card {
        padding: 20px;
    }

    .page-support__contact-icon,
    .page-support__info-icon,
    .page-support__security-icon {
        max-width: 120px;
        margin-bottom: 15px;
    }
    
    .page-support__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-support__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-support__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-support__faq-answer {
        padding: 0 15px;
    }
    
    .page-support__faq-item.active .page-support__faq-answer {
        padding: 15px !important;
    }

    /* Enforce image responsiveness */
    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-support__resource-list {
        margin-top: 30px;
    }
    .page-support__resource-list li {
        margin-bottom: 10px;
    }
}