/* style/support.css */

/* Base styles for the support page */
.page-support {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #1a1a2e; /* Inherited from body, but good to reinforce */
}

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

.page-support__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Hero Section */
.page-support__hero-section {
    position: relative;
    padding: 100px 0; /* Adjust as needed */
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, #017439, #004d27); /* Brand color gradient */
}

.page-support__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.2; /* Subtle background image */
}

.page-support__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-support__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 20px;
}

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

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

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

.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-support__btn-primary {
    background-color: #017439; /* Main brand color */
    color: #ffffff;
    border: 2px solid #017439;
}

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

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

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

/* Specific button colors */
.page-support__btn-register {
    background-color: #C30808; /* Custom register color */
    border-color: #C30808;
    color: #FFFF00; /* Custom register font color */
}
.page-support__btn-register:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-support__btn-login {
    background-color: #C30808; /* Custom login color */
    border-color: #C30808;
    color: #FFFF00; /* Custom login font color */
}
.page-support__btn-login:hover {
    background-color: #a00606;
    border-color: #a00606;
}

/* Section specific styling */
.page-support__intro-section,
.page-support__contact-methods-section,
.page-support__responsible-gambling-section {
    padding: 80px 0;
    background-color: #FFFFFF; /* Light background for these sections */
    color: #333333; /* Dark text for light background */
}

.page-support__intro-section .page-support__section-title,
.page-support__intro-section .page-support__section-description,
.page-support__contact-methods-section .page-support__section-title,
.page-support__contact-methods-section .page-support__section-description,
.page-support__responsible-gambling-section .page-support__section-title,
.page-support__responsible-gambling-section .page-support__section-description,
.page-support__intro-section .page-support__feature-title,
.page-support__intro-section .page-support__feature-text,
.page-support__method-card h3,
.page-support__method-card p,
.page-support__responsible-gambling-section p {
    color: #333333; /* Ensure dark text on light background */
}

.page-support__faq-section,
.page-support__guides-section,
.page-support__cta-section {
    padding: 80px 0;
    background-color: #1a1a2e; /* Dark background for these sections */
    color: #ffffff; /* Light text for dark background */
}

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

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

.page-support__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439; /* Brand color for titles on light background */
}

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

/* FAQ Section */
.page-support__faq-list {
    max-width: 900px;
    margin: 40px auto;
}

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

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.page-support__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-support__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #ffffff;
}

.page-support__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.page-support__faq-item.active .page-support__faq-toggle {
    transform: rotate(45deg); /* Plus to X */
}

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 20px;
}

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

.page-support__faq-answer a {
    color: #FFFF00; /* Link color for FAQ answers */
    text-decoration: underline;
}

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

.page-support__faq-image {
    display: block;
    margin: 40px auto 0;
    max-width: 80%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-support__method-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-support__method-icon {
    width: 200px; /* Enforce min-size for image requirements */
    height: 200px;
    min-width: 200px;
    min-height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
}

.page-support__method-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #017439;
}

.page-support__method-text {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Push button to bottom */
}

.page-support__method-card .page-support__btn-primary {
    background-color: #017439;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
}

.page-support__method-card .page-support__btn-primary:hover {
    background-color: #005f30;
}

.page-support__contact-image {
    display: block;
    margin: 40px auto 0;
    max-width: 80%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.page-support__guide-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-support__guide-card h3 {
    padding: 15px 20px 10px;
    font-size: 1.3em;
    color: #ffffff;
    flex-grow: 1;
}

.page-support__guide-card h3 a {
    color: #ffffff;
    text-decoration: none;
}

.page-support__guide-card h3 a:hover {
    text-decoration: underline;
    color: #FFFF00;
}

.page-support__guide-text {
    padding: 0 20px 15px;
    font-size: 0.95em;
    color: #f0f0f0;
}

.page-support__guide-card .page-support__btn-secondary {
    display: block;
    width: calc(100% - 40px);
    margin: 0 20px 20px;
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
    font-size: 1em;
    padding: 10px 15px;
}

.page-support__guide-card .page-support__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

.page-support__guides-image {
    display: block;
    margin: 40px auto 0;
    max-width: 80%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-support__responsible-text {
    flex: 1;
    text-align: left;
}

.page-support__responsible-text p {
    margin-bottom: 20px;
    color: #333333;
}

.page-support__responsible-text .page-support__btn-primary,
.page-support__responsible-text .page-support__btn-secondary {
    margin-right: 15px;
    margin-bottom: 15px;
}

.page-support__responsible-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-support__responsible-image {
    max-width: 100%;
    height: auto;
    min-width: 200px;
    min-height: 200px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: block;
}

/* Final CTA Section */
.page-support__cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: #017439; /* Brand color */
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 3em;
    }
    .page-support__section-title {
        font-size: 2em;
    }
    .page-support__hero-description {
        font-size: 1.1em;
    }
    .page-support__faq-image, .page-support__contact-image, .page-support__guides-image, .page-support__responsible-image {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .page-support__hero-section {
        padding: 80px 0;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
        min-height: 400px;
    }

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

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

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

    .page-support__btn-primary,
    .page-support__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-support__intro-section,
    .page-support__faq-section,
    .page-support__contact-methods-section,
    .page-support__guides-section,
    .page-support__responsible-gambling-section,
    .page-support__cta-section {
        padding: 50px 0;
    }

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

    .page-support__section-description {
        font-size: 0.95em;
    }

    .page-support__features,
    .page-support__methods-grid,
    .page-support__guides-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-support__faq-question h3 {
        font-size: 1.1em;
    }

    .page-support__faq-answer p {
        font-size: 0.95em;
    }

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

    .page-support__responsible-text .page-support__btn-primary,
    .page-support__responsible-text .page-support__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0;
        margin-bottom: 10px;
    }

    /* Mobile image responsiveness */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__hero-section,
    .page-support__intro-section,
    .page-support__faq-section,
    .page-support__contact-methods-section,
    .page-support__guides-section,
    .page-support__responsible-gambling-section,
    .page-support__cta-section,
    .page-support__cta-buttons,
    .page-support__button-group,
    .page-support__btn-container,
    .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-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Specific adjustments for hero section padding on mobile if needed */
    .page-support__hero-section .page-support__hero-content {
        padding: 0;
    }

    /* Video responsiveness (if any video is added) */
    .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__video-section {
        padding-top: var(--header-offset, 120px) !important;
    }
}

/* Color contrast adjustments for specific elements */
.page-support__dark-bg {
  color: #ffffff; /* Deep dark background, use light text */
}

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