/* style/support.css */

.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text color for light body background */
    background-color: #ffffff; /* Explicitly set for clarity */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-support__hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    padding: 80px 20px;
    box-sizing: border-box;
}

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

.page-support__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

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

.page-support__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFFFF;
}

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

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

.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;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure button doesn't overflow */
    box-sizing: border-box;
}

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

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

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

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

.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;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: #555555;
}

/* Dark sections */
.page-support__dark-section {
    background-color: #017439;
    color: #ffffff;
    padding: 60px 0;
}

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

.page-support__dark-section .page-support__section-description,
.page-support__dark-section p {
    color: #f0f0f0;
}

/* Light sections */
.page-support__light-bg {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

.page-support__light-bg .page-support__section-title {
    color: #017439;
}

.page-support__light-bg .page-support__section-description,
.page-support__light-bg p {
    color: #555555;
}

/* Why Support Section */
.page-support__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: center;
}

.page-support__feature-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    color: #333333;
}

.page-support__feature-item:hover {
    transform: translateY(-10px);
}

.page-support__feature-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
    min-width: 200px; /* Enforce min size for images */
    min-height: 200px; /* Enforce min size for images */
}

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

.page-support__feature-text {
    font-size: 1em;
    color: #555555;
}

/* FAQ Section */
.page-support__faq-category {
    margin-bottom: 40px;
}

.page-support__faq-category-title {
    font-size: 2em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

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

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    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-toggle {
    font-size: 1.5em;
    line-height: 1;
    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 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-support__faq-answer p {
    margin: 0;
    color: #e0e0e0;
}

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

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

/* Contact Section */
.page-support__contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: center;
}

.page-support__contact-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    color: #333333;
}

.page-support__contact-item:hover {
    transform: translateY(-10px);
}

.page-support__contact-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
    min-width: 200px; /* Enforce min size for images */
    min-height: 200px; /* Enforce min size for images */
}

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

.page-support__contact-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 25px;
}

/* Guides Section */
.page-support__guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-support__guide-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #f0f0f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-support__guide-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-support__guide-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    min-width: 200px; /* Enforce min size for images */
    min-height: 200px; /* Enforce min size for images */
}

.page-support__guide-title {
    font-size: 1.3em;
    font-weight: bold;
    padding: 15px;
    color: #ffffff;
}

.page-support__guide-text {
    font-size: 0.95em;
    padding: 0 15px 15px;
    color: #e0e0e0;
    flex-grow: 1;
}

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

.page-support__responsible-gaming-section .page-support__btn-primary {
    margin-top: 30px;
}

/* Video Section */
.page-support__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    margin: 50px auto 0 auto;
    border-radius: 10px;
}

.page-support__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    max-width: 100%;
}

/* Conclusion CTA Section */
.page-support__conclusion-cta-section {
    text-align: center;
    padding: 60px 0;
}

.page-support__conclusion-cta-section .page-support__btn-primary {
    margin-top: 30px;
}

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

    .page-support__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-support {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-support__container {
        padding: 15px;
    }

    .page-support__hero-section {
        min-height: 400px;
        padding: 60px 15px;
    }

    .page-support__hero-title {
        font-size: 2em;
    }

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

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

    .page-support__btn-primary,
    .page-support__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !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__features-grid,
    .page-support__contact-methods,
    .page-support__guides-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-support__feature-icon,
    .page-support__contact-icon {
        width: 60px;
        height: 60px;
        min-width: 200px !important; /* Enforce min size for images */
        min-height: 200px !important; /* Enforce min size for images */
    }

    .page-support__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

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

    .page-support__faq-item.active .page-support__faq-answer {
        padding: 10px 20px 20px 20px;
    }

    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-support video,
    .page-support__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-support__video-section,
    .page-support__video-container,
    .page-support__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-support__section,
    .page-support__card,
    .page-support__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-support__hero-title {
        font-size: 1.8em;
    }

    .page-support__section-title {
        font-size: 1.6em;
    }
}