/* style/support.css */

/* General page styling */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: var(--secondary-color); /* #FFFFFF */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* 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); /* Fixed header spacing */
    background: linear-gradient(135deg, #26A9E0, #FFFFFF); /* Brand color gradient */
    color: #ffffff; /* White text for gradient background */
}

.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%;
}

.page-support__hero-image {
    width: 100%;
    margin-bottom: 30px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-support__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    filter: none; /* Ensure no filter is applied */
}

.page-support__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

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

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

/* CTA Button */
.page-support__cta-button,
.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    background: #EA7C07; /* Login color for primary CTA */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-support__btn-secondary {
    background: #26A9E0; /* Primary brand color */
    color: #ffffff;
}

.page-support__btn-secondary:hover {
    background: #1e87bb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Section general styling */
.page-support__section {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--secondary-color); /* White background */
}

.page-support__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Inner padding for containers */
    width: 100%;
    box-sizing: border-box;
}

.page-support__section-title {
    font-size: 2em;
    color: #26A9E0; /* Primary brand color for titles */
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Contact Methods Section */
.page-support__contact-methods {
    background-color: #f9f9f9; /* Light grey background for contrast */
}

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

.page-support__contact-item.page-support__card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-support__contact-item.page-support__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.page-support__contact-item.page-support__card img {
    max-width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: contain; /* Use contain to show full image, or cover if desired */
    margin-bottom: 20px;
    border-radius: 8px;
    filter: none; /* Ensure no filter is applied */
}

.page-support__card-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-support__card-text {
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to grow */
}

/* FAQ Section */
.page-support__faq-section {
    background-color: #ffffff;
}

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

.page-support__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: #fdfdfd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-support__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

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

.page-support__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-support__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #26A9E0; /* Primary color for toggle */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-support__faq-item.active .page-support__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' effect, or keep as '-' */
    color: #EA7C07; /* Orange for active toggle */
}

.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 25px;
    opacity: 0;
    color: #555555;
}

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 2000px !important; /* Sufficiently large to contain any content */
    padding: 20px 25px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 8px 8px;
}

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

/* Responsible Gaming Section */
.page-support__responsible-gaming {
    background-color: #f0f8ff; /* Light blue background for emphasis */
}

.page-support__responsible-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.page-support__responsible-content img {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    filter: none; /* Ensure no filter is applied */
}

.page-support__responsible-list {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    list-style: disc;
    padding-left: 20px;
    color: #333333;
}

.page-support__responsible-list li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

/* Quick Links Section */
.page-support__quick-links {
    background-color: #ffffff;
}

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

.page-support__link-item.page-support__card {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    color: #26A9E0;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.page-support__link-item.page-support__card:hover {
    background-color: #e0e0e0;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 2em;
    }
    .page-support__section-title {
        font-size: 1.8em;
    }
    .page-support__responsible-content img,
    .page-support__responsible-list {
        max-width: 100%;
        min-width: unset;
    }
}

@media (max-width: 768px) {
    /* Mobile General */
    .page-support {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-support__section {
        padding: 40px 15px;
    }
    .page-support__container {
        padding: 0;
    }

    /* Hero Section Mobile */
    .page-support__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header spacing */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-support__hero-title {
        font-size: 1.8em;
        line-height: 1.3;
    }
    .page-support__hero-description {
        font-size: 1em;
        padding: 0 10px;
    }
    .page-support__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        width: 100%; /* Full width for mobile buttons */
        margin-top: 20px;
    }

    /* Images Mobile */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
        filter: none;
    }
    .page-support__hero-image img,
    .page-support__contact-item.page-support__card img,
    .page-support__responsible-content img {
        border-radius: 4px;
    }
    .page-support__hero-image,
    .page-support__contact-item,
    .page-support__responsible-content,
    .page-support__links-grid,
    .page-support__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Contact Grid Mobile */
    .page-support__contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-support__contact-item.page-support__card {
        padding: 20px;
    }
    .page-support__contact-item.page-support__card img {
        
    }
    .page-support__btn-primary {
        width: 100%; /* Full width for mobile buttons */
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
        white-space: normal;
        word-wrap: break-word;
    }

    /* FAQ Mobile */
    .page-support__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-support__faq-question h3 {
        font-size: 15px;
        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;
    }

    /* Responsible Gaming Mobile */
    .page-support__responsible-content {
        flex-direction: column;
        gap: 20px;
    }
    .page-support__responsible-content img {
        max-width: 100%;
    }
    .page-support__responsible-list {
        max-width: 100%;
        padding-left: 20px;
    }

    /* Quick Links Mobile */
    .page-support__links-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .page-support__link-item.page-support__card {
        min-height: 60px;
        font-size: 1em;
        padding: 15px;
    }
}

/* Color Contrast Safeguards */
.page-support__dark-bg {
  color: #ffffff; /* Deep blue background for titles, white text */
  background: #26A9E0;
}

.page-support__light-bg {
  color: #333333; /* Light background for content, dark text */
  background: #ffffff;
}

.page-support__medium-bg {
  color: #000000; /* Default dark text */
  background: #FFFFFF;
}

/* Specific text elements for contrast */
.page-support h1, .page-support h2, .page-support h3, .page-support h4, .page-support h5, .page-support h6 {
    color: #26A9E0; /* Brand primary for headings */
}

.page-support__hero-title {
    color: #ffffff; /* Hero title on gradient background */
}

.page-support__hero-description {
    color: #f0f0f0; /* Hero description on gradient background */
}

.page-support p, .page-support li {
    color: #333333; /* Default paragraph and list text */
}

.page-support__card-text {
    color: #555555; /* Card text */
}

.page-support__btn-primary {
    background: #EA7C07; /* Login color */
    color: #ffffff;
}

.page-support__btn-secondary {
    background: #26A9E0; /* Primary brand color */
    color: #ffffff;
}

.page-support__link-item.page-support__card {
    color: #26A9E0; /* Link text on light card background */
}

/* Contrast fix if needed */
.page-support__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-support__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}