/* style/support.css */

/* Base Styles & Typography */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--secondary-color, #FFFFFF); /* Body background from shared */
}

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

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

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

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

/* Hero Section */
.page-support__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
    text-align: center;
    background-color: #017439;
    color: #FFFFFF;
    overflow: hidden;
}

.page-support__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3;
}

.page-support__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.page-support__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFF00; /* Register/Login font color */
}

.page-support__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #FFFFFF;
}

.page-support__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

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

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

.page-support__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #FFFF00;
}

.page-support__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
}

/* Video Section */
.page-support__video-section {
    padding: 80px 0;
    background-color: #f5f5f5;
    text-align: center;
}

.page-support__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 30px auto;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.page-support__video {
    display: block;
    width: 100%;
    height: auto;
    cursor: pointer;
}

.page-support__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.page-support__video-wrapper:hover .page-support__video-overlay {
    opacity: 1;
    pointer-events: auto;
}

.page-support__video-title {
    font-size: 2em;
    margin-bottom: 10px;
    color: #FFFF00;
}

.page-support__video-description {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 80%;
}

/* Channels Section */
.page-support__channels-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

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

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

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

.page-support__channel-icon {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-support__channel-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
}

.page-support__channel-text {
    font-size: 1em;
    color: #666666;
    margin-bottom: 20px;
}

/* FAQ Section */
.page-support__faq-section {
    padding: 80px 0;
    background-color: #017439;
    color: #FFFFFF;
}

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

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

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

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

.page-support__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #FFFFFF;
}

.page-support__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFFF00;
    transition: transform 0.3s ease;
}

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

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 20px;
}

.page-support__faq-answer p {
    margin: 0;
    font-size: 1em;
    color: #f0f0f0;
}

.page-support__faq-answer a {
    color: #FFFF00;
    text-decoration: underline;
}

/* Guides Section */
.page-support__guides-section {
    padding: 80px 0;
    background-color: #f5f5f5;
}

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

.page-support__guide-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-support__guide-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 20px;
}

.page-support__guide-card ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.page-support__guide-card li {
    margin-bottom: 10px;
    color: #444444;
}

/* Commitment Section */
.page-support__commitment-section {
    padding: 80px 0;
    background-color: #017439;
    color: #FFFFFF;
}

.page-support__commitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-support__commitment-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #FFFF00;
}

.page-support__commitment-item p {
    color: #f0f0f0;
}

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

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

.page-support__responsible-gaming-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.page-support__responsible-gaming-image {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-support__responsible-gaming-text {
    flex: 1;
}

.page-support__responsible-gaming-text h3 {
    font-size: 2em;
    color: #017439;
    margin-bottom: 20px;
}

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

/* Contact CTA Section */
.page-support__contact-cta-section {
    padding: 80px 0;
    background-color: #017439;
    color: #FFFFFF;
    text-align: center;
}

.page-support__contact-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 3em;
    }
    .page-support__hero-description {
        font-size: 1.2em;
    }
    .page-support__section-title {
        font-size: 2em;
    }
    .page-support__responsible-gaming-content {
        flex-direction: column;
        text-align: center;
    }
    .page-support__responsible-gaming-image {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .page-support__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }
    .page-support__hero-title {
        font-size: 2.2em;
    }
    .page-support__hero-description {
        font-size: 1em;
    }
    .page-support__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-support__btn-primary,
    .page-support__btn-secondary {
        max-width: 100% !important;
        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__section-title {
        font-size: 1.8em;
    }
    .page-support__section-description {
        font-size: 0.95em;
    }

    /* Video section mobile adaptation */
    .page-support__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Explicitly add for video section on mobile */
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
    }
    .page-support video,
    .page-support__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-support__video-wrapper,
    .page-support__video-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }

    .page-support__channels-grid,
    .page-support__guides-grid,
    .page-support__commitment-grid {
        grid-template-columns: 1fr;
    }
    .page-support__channel-card,
    .page-support__guide-card,
    .page-support__commitment-item {
        padding: 20px;
    }
    .page-support__responsible-gaming-image {
        max-width: 100%;
    }
    .page-support__contact-cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    /* Ensure all images are responsive and not smaller than 200px */
    .page-support img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-support__channel-icon,
    .page-support__commitment-icon {
        width: 200px !important; /* Min size enforcement */
        height: auto !important;
        max-width: 100% !important;
        margin-left: auto;
        margin-right: auto;
    }
    .page-support__responsible-gaming-image {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }
    /* Content area images must not display smaller than 200px */
    .page-support__hero-image[width], .page-support__hero-image[height],
    .page-support__channel-icon[width], .page-support__channel-icon[height],
    .page-support__commitment-icon[width], .page-support__commitment-icon[height],
    .page-support__responsible-gaming-image[width], .page-support__responsible-gaming-image[height],
    .page-support__video[width], .page-support__video[height] {
        min-width: 200px;
        min-height: 200px;
    }

    .page-support__container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .page-support__hero-title {
        font-size: 1.8em;
    }
    .page-support__hero-description {
        font-size: 0.9em;
    }
    .page-support__section-title {
        font-size: 1.5em;
    }
    .page-support__guide-title,
    .page-support__channel-title,
    .page-support__commitment-item h3 {
        font-size: 1.3em;
    }
}