/* style/support.css */

/* Base styles for the support page content */
.page-support {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Text Main */
    background-color: transparent; /* Body background handled by shared.css var(--site-bg) which is #0A0A0A */
}

/* Container for main content areas */
.page-support__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Section titles */
.page-support__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: #FFD36B; /* Auxiliary color for titles */
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.2;
}

/* Text blocks */
.page-support__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: #FFF6D6; /* Text Main */
}

/* Images within content sections */
.page-support__image-content {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center; /* Center content vertically if space allows */
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #0A0A0A; /* Background for hero section */
    overflow: hidden;
}

.page-support__hero-image {
    width: 100%;
    max-width: 1920px; /* Ensure image doesn't exceed its natural size */
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 40px; /* Space between image and content */
}

.page-support__hero-content {
    position: relative; /* Ensure content is above any potential background layers */
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-support__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
    font-weight: 800;
    color: #FFD36B; /* Auxiliary color for H1 */
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.page-support__hero-description {
    font-size: 1.2em;
    color: #FFF6D6; /* Text Main */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button */
.page-support__cta-button,
.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-support__cta-button,
.page-support__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color */
    color: #ffffff; /* White text for contrast */
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.page-support__cta-button:hover,
.page-support__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    opacity: 0.9;
}

.page-support__btn-secondary {
    background: #111111; /* Card BG */
    color: #FFD36B; /* Auxiliary color */
    border: 2px solid #FFD36B; /* Auxiliary color border */
}

.page-support__btn-secondary:hover {
    background: #FFD36B; /* Auxiliary color background on hover */
    color: #111111; /* Card BG text on hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

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

.page-support__faq-list {
    margin-top: 40px;
}

.page-support__faq-item {
    background-color: #111111; /* Card BG */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #3A2A12; /* Border */
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #111111; /* Card BG */
    color: #FFD36B; /* Auxiliary color for questions */
    font-weight: bold;
    font-size: 1.2em;
    transition: background-color 0.3s ease;
}

.page-support__faq-question h3 {
    margin: 0;
    font-size: 1em; /* Adjust to fit parent font size */
    color: inherit; /* Inherit color from parent */
}

.page-support__faq-question:hover {
    background-color: #1a1a1a; /* Slightly lighter on hover */
}

.page-support__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFD36B; /* Auxiliary color for toggle icon */
}

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

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Initial padding 0 */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #FFF6D6; /* Text Main */
}

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 15px 25px 20px; /* Padding when active */
}

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

.page-support__faq-answer a {
    color: #FFD36B; /* Auxiliary color for links */
    text-decoration: underline;
}

.page-support__faq-answer a:hover {
    color: #F2C14E; /* Main color on hover */
}

.page-support__view-all-faq {
    margin-top: 30px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Section */
.page-support__contact-section {
    padding: 60px 20px;
    background-color: #0A0A0A; /* Background */
    text-align: center;
}

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

.page-support__contact-card {
    background-color: #111111; /* Card BG */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #3A2A12; /* Border */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-support__contact-card:hover {
    transform: translateY(-5px);
}

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

.page-support__card-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFD36B; /* Auxiliary color */
    margin-bottom: 15px;
}

.page-support__card-text {
    color: #FFF6D6; /* Text Main */
    margin-bottom: 25px;
    flex-grow: 1; /* Push button to bottom */
}

/* Resources Section */
.page-support__resources-section {
    padding: 60px 20px;
    background-color: #0A0A0A; /* Background */
}

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

.page-support__resource-card {
    background-color: #111111; /* Card BG */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid #3A2A12; /* Border */
    transition: transform 0.3s ease;
}

.page-support__resource-card:hover {
    transform: translateY(-5px);
}

.page-support__resource-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-support__resource-card .page-support__card-title {
    padding: 15px 20px 0;
    margin-bottom: 10px;
    font-size: 1.3em;
    text-align: left;
}

.page-support__resource-card .page-support__card-title a {
    color: #FFD36B; /* Auxiliary color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-support__resource-card .page-support__card-title a:hover {
    color: #F2C14E; /* Main color on hover */
}

.page-support__resource-card .page-support__card-text {
    padding: 0 20px 20px;
    font-size: 0.95em;
    text-align: left;
    color: #FFF6D6; /* Text Main */
    flex-grow: 1;
}

.page-support__view-all-articles {
    margin-top: 50px;
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

/* Security Section */
.page-support__security-section {
    padding: 60px 20px;
    background-color: #0A0A0A; /* Background */
}

/* Responsible Gaming Section */
.page-support__responsible-gaming-section {
    padding: 60px 20px;
    background-color: #0A0A0A; /* Background */
    text-align: center;
}

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

/* Payment Section */
.page-support__payment-section {
    padding: 60px 20px;
    background-color: #0A0A0A; /* Background */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-support__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-support {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-support__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* Ensure small top padding, body handles header offset */
    }

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

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

    .page-support__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
        margin-bottom: 15px;
    }

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

    .page-support__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }

    .page-support__text-block {
        font-size: 1em;
    }

    .page-support__container,
    .page-support__faq-section .page-support__container,
    .page-support__contact-section .page-support__container,
    .page-support__resources-section .page-support__container,
    .page-support__security-section .page-support__container,
    .page-support__responsible-gaming-section .page-support__container,
    .page-support__payment-section .page-support__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Images responsiveness */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
        box-sizing: border-box !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;
    }
    
    /* Buttons responsiveness */
    .page-support__cta-button,
    .page-support__btn-primary,
    .page-support__btn-secondary,
    .page-support a[class*="button"],
    .page-support a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px; /* Ensure padding on mobile for full-width buttons */
        padding-right: 15px; /* Ensure padding on mobile for full-width buttons */
    }

    .page-support__contact-methods {
        grid-template-columns: 1fr; /* Stack contact cards on mobile */
    }

    .page-support__resource-grid {
        grid-template-columns: 1fr; /* Stack resource cards on mobile */
    }

    .page-support__contact-card,
    .page-support__resource-card {
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .page-support__contact-card .page-support__btn-primary {
        width: 100%;
    }

    .page-support__resource-card .page-support__card-title {
        font-size: 1.2em;
    }
    .page-support__resource-card .page-support__card-text {
        font-size: 0.9em;
    }
}

/* Ensure color contrast for links within text blocks */
.page-support__text-block a,
.page-support__faq-answer a {
    color: #FFD36B; /* Auxiliary color for links */
    text-decoration: underline;
}

.page-support__text-block a:hover,
.page-support__faq-answer a:hover {
    color: #F2C14E; /* Main color on hover */
}

/* Ensure the hero content does not overlap the image (explicitly for safety, though flex-direction column handles it) */
.page-support__hero-content {
    order: 2; /* Content comes after image in column flow */
}

.page-support__hero-image {
    order: 1; /* Image comes before content in column flow */
}

/* Specific button group for contact section to ensure responsiveness */
.page-support__contact-card .page-support__btn-primary {
    display: block; /* Make buttons stack on mobile in contact cards */
    margin: 10px auto;
}