/* style/support.css */

/* General styles for the support page */
.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); /* Body background is light */
}

.page-support__section {
    padding: 60px 20px;
    background-color: var(--secondary-color, #FFFFFF);
}

.page-support__dark-section {
    background-color: #26A9E0; /* Primary color as background */
    color: #ffffff; /* White text for dark background */
}

.page-support__dark-bg {
    background-color: #26A9E0;
    color: #ffffff;
}

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

.page-support__section-title {
    font-size: 36px;
    color: #26A9E0; /* Primary color for titles on light background */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-support__dark-section .page-support__section-title,
.page-support__dark-bg .page-support__section-title {
    color: #ffffff; /* White title on dark background */
}

.page-support__section-intro {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* 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 offset */
    background: linear-gradient(135deg, #26A9E0, #a8dcf5); /* Light blue gradient */
    color: #ffffff;
}

.page-support__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

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

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

.page-support__main-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
}

.page-support__description {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

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

.page-support__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

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

.page-support__btn-primary:hover {
    background: #d46b00;
    border-color: #d46b00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-support__btn-secondary {
    background: #ffffff;
    color: #26A9E0;
    border-color: #26A9E0;
}

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

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

.page-support__contact-item {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.page-support__contact-item img {
    width: 100%;
    height: auto;
    max-width: 250px; /* Adjust max-width for contact icons */
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
}

.page-support__contact-title {
    font-size: 24px;
    color: #26A9E0;
    margin-bottom: 15px;
}

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

.page-support__contact-text a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

.page-support__contact-text a:hover {
    text-decoration: underline;
}

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

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

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

.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 20px; /* Adjusted padding */
    opacity: 0;
    color: #555555;
    background: #fdfdfd;
}

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 2000px !important; /* Ensure enough height */
    padding: 20px !important; /* Adjusted padding */
    opacity: 1;
    border-radius: 0 0 5px 5px;
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    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: 18px; /* Slightly larger for better readability */
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
    pointer-events: none;
}

.page-support__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-support__faq-item.active .page-support__faq-toggle {
    color: #26A9E0; /* Primary color when active */
    transform: rotate(45deg); /* Example for '-' sign */
}

/* Resources Section */
.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: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #ffffff;
    transition: transform 0.3s ease;
}

.page-support__resource-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.page-support__resource-title {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #ffffff;
}

.page-support__resource-title a {
    color: #ffffff;
    text-decoration: none;
}

.page-support__resource-title a:hover {
    text-decoration: underline;
}

.page-support__resource-description {
    font-size: 16px;
    color: #f0f0f0;
    margin-bottom: 25px;
}

/* Responsible Gaming Section */
.page-support__responsible-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-support__responsible-content img {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.page-support__responsible-list {
    flex: 1;
    min-width: 300px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-support__responsible-list li {
    background: #ffffff;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-size: 17px;
    color: #333333;
}

.page-support__list-highlight {
    color: #26A9E0; /* Primary color for highlights */
}

.page-support__section-outro {
    font-size: 18px;
    text-align: center;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

/* Why Choose Us Section */
.page-support__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-support__feature-item {
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-support__feature-title {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #ffffff;
}

.page-support__feature-description {
    font-size: 16px;
    color: #f0f0f0;
}

/* Image responsiveness and min size enforcement */
.page-support img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Ensure images fill their space nicely */
    min-width: 200px; /* Minimum size for content images */
    min-height: 200px;
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-support__main-title {
        font-size: 42px;
    }
    .page-support__description {
        font-size: 18px;
    }
    .page-support__section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .page-support__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-support__main-title {
        font-size: 36px;
    }

    .page-support__description {
        font-size: 16px;
    }

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

    .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: 20px;
        padding-right: 20px;
    }

    .page-support__section {
        padding: 40px 15px;
    }

    .page-support__section-title {
        font-size: 28px;
    }

    .page-support__section-intro {
        font-size: 16px;
    }

    .page-support__contact-item {
        padding: 20px;
    }

    .page-support__contact-title {
        font-size: 20px;
    }

    .page-support__contact-item img {
        max-width: 200px;
    }

    .page-support__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-support__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        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;
    }

    .page-support__responsible-content {
        flex-direction: column;
    }

    .page-support__responsible-content img {
        max-width: 100%;
    }

    .page-support__responsible-list li {
        font-size: 16px;
        padding: 15px;
    }

    /* Ensure all images and their containers are responsive on mobile */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset; /* Allow smaller images if needed, but still responsive */
        min-height: unset;
    }
    
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__hero-container,
    .page-support__contact-grid,
    .page-support__resource-grid,
    .page-support__feature-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-support__cta-buttons,
    .page-support__button-group,
    .page-support__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }
    .page-support__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
}