/* style/support.css */

/* Base Styles for .page-support */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--page-text-color, #F2FFF6); /* Default text color for dark background */
    background-color: var(--page-bg-color, #08160F); /* Overall page background */
}

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

/* Hero Section */
.page-support__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding: 60px 0;
    padding-top: 10px; /* Small top padding for the section itself */
    background-color: #08160F; /* Ensure hero background matches overall page */
}

.page-support__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-support__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    color: #F2FFF6; /* Main text color */
}

.page-support__main-title {
    font-size: clamp(2.5rem, 4vw, 3.2rem); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #F2FFF6;
    letter-spacing: -0.02em;
}

.page-support__hero-description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #A7D9B8; /* Secondary text color */
}

.page-support__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General Buttons */
.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__faq-link,
.page-support__card-button,
.page-support__responsible-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    max-width: 100%; /* Ensure buttons are responsive */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    text-align: center;
}

.page-support__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
}

.page-support__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(42, 209, 111, 0.4);
}

.page-support__btn-secondary {
    background: transparent;
    color: #11A84E; /* Brand primary color */
    border-color: #11A84E;
}

.page-support__btn-secondary:hover {
    background: #11A84E;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(17, 168, 78, 0.4);
}

/* Section General Styles */
.page-support__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    text-align: center;
    color: #F2FFF6; /* Main text color */
}

.page-support__section-description {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #A7D9B8; /* Secondary text color */
}

.page-support__section-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 1000px; /* Example max-width for section images */
    margin: 40px auto 0 auto; /* Space above image */
    border-radius: 8px;
    object-fit: cover;
}

/* Dark Section variant */
.page-support__dark-section {
    background-color: #11271B; /* Card BG color for dark sections */
    padding: 80px 0;
}

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

.page-support__dark-section .page-support__section-description {
    color: #A7D9B8;
}

/* FAQ Section */
.page-support__faq-section {
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-support__faq-list {
    max-width: 900px;
    width: 100%;
    margin-top: 40px;
}

.page-support__faq-item {
    background-color: #0A4B2C; /* Deep Green for FAQ item background */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #F2FFF6;
    border: 1px solid #2E7A4E; /* Border color */
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    background-color: #0A4B2C;
    position: relative;
    user-select: none;
    list-style: none; /* For details/summary */
}

.page-support__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-support__faq-qtext {
    flex-grow: 1;
    color: #F2FFF6;
}

.page-support__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: #57E38D; /* Glow color for toggle */
}

.page-support__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: #A7D9B8;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-support__faq-item.active .page-support__faq-answer, /* For JS-driven divs */
.page-support__faq-item[open] .page-support__faq-answer { /* For native details */
    max-height: 2000px; /* Sufficiently large to show content */
    padding-top: 10px;
}

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

.page-support__faq-link {
    color: #57E38D; /* Glow color for links within FAQ */
    text-decoration: underline;
    font-weight: 600;
}

.page-support__faq-link:hover {
    color: #F2FFF6;
}

.page-support__faq-more-btn {
    margin-top: 30px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Guides Section */
.page-support__guides-section {
    padding: 80px 0;
    background-color: #08160F;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-support__card {
    background-color: #11271B; /* Card BG color */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    border: 1px solid #2E7A4E; /* Border color */
}

.page-support__card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #F2FFF6;
}

.page-support__card-text {
    font-size: 0.95rem;
    color: #A7D9B8;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-support__card-button {
    margin-top: auto; /* Push button to bottom */
}

/* Contact Section */
.page-support__contact-section {
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-support__contact-card {
    text-align: center;
}

.page-support__contact-note {
    margin-top: 40px;
    font-size: 1rem;
    color: #A7D9B8;
    text-align: center;
}

/* Responsible Gaming Section */
.page-support__responsible-gaming-section {
    padding: 80px 0;
    background-color: #08160F;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-support__responsible-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0 auto;
    max-width: 800px;
    width: 100%;
    color: #A7D9B8;
}

.page-support__responsible-item {
    background-color: #11271B;
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 15px;
    font-size: 1rem;
    border: 1px solid #2E7A4E;
}

.page-support__responsible-item strong {
    color: #F2FFF6;
}

.page-support__responsible-btn {
    margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-support__main-title {
        font-size: clamp(2rem, 5vw, 2.8rem);
    }

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

@media (max-width: 768px) {
    .page-support__hero-section {
        padding: 40px 0;
        padding-top: 10px !important; /* Ensure small top padding on mobile */
    }

    .page-support__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-support__hero-content {
        padding: 0 15px;
    }

    .page-support__main-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .page-support__hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-support__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px; /* Add padding to container for buttons */
        box-sizing: border-box;
    }

    .page-support__btn-primary,
    .page-support__btn-secondary,
    .page-support__faq-link,
    .page-support__card-button,
    .page-support__responsible-btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-support__section-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .page-support__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .page-support__faq-section,
    .page-support__guides-section,
    .page-support__contact-section,
    .page-support__responsible-gaming-section {
        padding: 60px 0;
    }

    .page-support__faq-item,
    .page-support__guide-card,
    .page-support__contact-card,
    .page-support__responsible-item {
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .page-support__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-support__faq-answer {
        font-size: 0.9rem;
        padding: 0 20px 15px;
    }

    .page-support__guides-grid,
    .page-support__contact-options {
        grid-template-columns: 1fr; /* Single column layout */
        padding: 0 15px;
    }

    .page-support__responsible-list {
        padding: 0 15px;
    }

    /* Images responsiveness */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All containers with images/videos/buttons */
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__hero-section,
    .page-support__hero-image-wrapper,
    .page-support__video-section,
    .page-support__video-container,
    .page-support__video-wrapper,
    .page-support__cta-buttons,
    .page-support__button-group,
    .page-support__btn-container,
    .page-support__faq-list,
    .page-support__guides-grid,
    .page-support__contact-options,
    .page-support__responsible-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    .page-support__faq-section,
    .page-support__guides-section,
    .page-support__contact-section,
    .page-support__responsible-gaming-section {
        padding-left: 0;
        padding-right: 0;
    }
    .page-support__faq-more-btn {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .page-support__main-title {
        font-size: 1.6rem;
    }
    .page-support__section-title {
        font-size: 1.5rem;
    }
    .page-support__hero-description {
        font-size: 0.9rem;
    }
}

/* Ensure details for FAQ items work natively without JS, but JS will handle +/- toggle */
.page-support__faq-item[open] .page-support__faq-answer {
    max-height: 2000px; /* This will be overridden by JS if active class is used */
    padding-top: 10px;
}

/* For details tag, we need to hide the default marker */
.page-support__faq-item summary {
    list-style: none;
}
.page-support__faq-item summary::-webkit-details-marker {
    display: none;
}