/* style/support.css */

/* --- Base Styles & Variables (BEM naming) --- */
.page-support {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark background */
    background-color: var(--dark-bg, #0A1931); /* Inherit from shared or use primary dark color */
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-support__section-title {
    font-size: 2.5em;
    color: #E0B400; /* Gold accent color for titles */
    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;
}

.page-support__card-title {
    font-size: 1.5em;
    color: #E0B400;
    margin-top: 15px;
    margin-bottom: 10px;
}

.page-support__card-text {
    color: #f0f0f0;
    font-size: 1em;
}

/* --- Buttons (BEM naming) --- */
.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-support__btn-primary {
    background-color: #E0B400; /* Gold accent */
    color: #0A1931; /* Dark blue text */
    border: 2px solid #E0B400;
}

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

.page-support__btn-secondary {
    background-color: transparent;
    color: #E0B400; /* Gold text */
    border: 2px solid #E0B400;
}

.page-support__btn-secondary:hover {
    background-color: #E0B400;
    color: #0A1931;
}

.page-support__cta-full-width {
    text-align: center;
    margin-top: 40px;
}

.page-support__cta-full-width .page-support__btn-primary,
.page-support__cta-full-width .page-support__btn-secondary {
    margin: 10px;
    min-width: 200px;
}

/* --- Hero Section (BEM naming) --- */
.page-support__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 80px 0;
    overflow: hidden;
    background-color: #0A1931; /* Dark blue background */
    color: #ffffff; /* White text for contrast */
}

.page-support__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-support__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background effect */
    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.8em;
    color: #E0B400;
    margin-bottom: 20px;
    line-height: 1.2;
}

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

.page-support__hero-content .page-support__btn-primary {
    font-size: 1.2em;
    padding: 15px 40px;
}

/* --- Contact Methods Section (BEM naming) --- */
.page-support__contact-methods {
    padding: 80px 0;
    background-color: #ffffff; /* Light background for contrast */
    color: #333333; /* Dark text for contrast */
}

.page-support__contact-methods .page-support__section-title {
    color: #0A1931; /* Dark blue title */
}

.page-support__contact-methods .page-support__section-description {
    color: #555555; /* Darker grey text */
}

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

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

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

.page-support__contact-icon {
    width: 100%; /* Make icon fill card width for larger display */
    max-width: 200px; /* Limit icon size */
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-support__contact-card .page-support__card-title {
    color: #0A1931;
}

.page-support__contact-card .page-support__card-text {
    color: #666666;
    margin-bottom: 20px;
}

/* --- FAQ Section (BEM naming) --- */
.page-support__faq-section {
    padding: 80px 0;
    background-color: #0A1931; /* Dark blue background */
    color: #ffffff; /* White text for contrast */
}

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

.page-support__faq-item {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for items */
    margin-bottom: 15px;
    border-radius: 8px;
    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 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

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

.page-support__faq-title {
    font-size: 1.2em;
    color: #E0B400; /* Gold text for questions */
    margin: 0;
    flex-grow: 1;
}

.page-support__faq-toggle {
    font-size: 1.8em;
    color: #E0B400;
    margin-left: 20px;
    width: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-support__faq-item.active .page-support__faq-toggle {
    transform: rotate(45deg); /* Rotate for minus sign visual */
}

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

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

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

/* --- Guides Section (BEM naming) --- */
.page-support__guides-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text */
}

.page-support__guides-section .page-support__section-title {
    color: #0A1931;
}

.page-support__guides-section .page-support__section-description {
    color: #555555;
}

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

.page-support__guide-card {
    display: block; /* Make the whole card clickable */
    background-color: #f8f8f8;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    color: #333333;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-support__guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

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

.page-support__guide-card .page-support__card-title {
    color: #0A1931;
    padding: 15px 20px 0;
}

.page-support__guide-card .page-support__card-text {
    color: #666666;
    padding: 0 20px 20px;
}

/* --- Responsible Gambling Section (BEM naming) --- */
.page-support__responsible-gambling {
    padding: 80px 0;
    background-color: #0A1931; /* Dark background */
    color: #ffffff; /* White text */
}

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

.page-support__responsible-image {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    display: block;
}

.page-support__responsible-text {
    flex: 2;
    min-width: 300px;
}

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

/* --- Security Section (BEM naming) --- */
.page-support__security-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background */
    color: #333333; /* Dark text */
}

.page-support__security-section .page-support__section-title {
    color: #0A1931;
}

.page-support__security-section .page-support__section-description {
    color: #555555;
}

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

.page-support__security-item {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-support__security-icon {
    width: 100%;
    max-width: 150px; /* Smaller icons for security features */
    height: auto;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-support__security-item .page-support__item-title {
    font-size: 1.3em;
    color: #0A1931;
    margin-bottom: 10px;
}

.page-support__security-item .page-support__item-text {
    color: #666666;
}

/* --- CTA Section (BEM naming) --- */
.page-support__cta-section {
    padding: 80px 0;
    background-color: #0A1931; /* Dark blue background */
    color: #ffffff; /* White text */
    text-align: center;
}

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

.page-support__cta-buttons .page-support__btn-primary,
.page-support__cta-buttons .page-support__btn-secondary {
    min-width: 180px;
    font-size: 1.1em;
    padding: 12px 30px;
}

/* --- Responsive Design (BEM naming) --- */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 3em;
    }
    .page-support__hero-description {
        font-size: 1.2em;
    }
    .page-support__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-support {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Ensure padding-top is applied on mobile */
    }

    .page-support__container {
        padding: 0 15px;
    }

    .page-support__hero-section {
        min-height: 400px;
        padding: 60px 0;
    }

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

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

    .page-support__hero-content .page-support__btn-primary {
        font-size: 1em;
        padding: 10px 25px;
    }

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

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

    /* Images responsiveness */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure all image containers are responsive */
    .page-support__hero-image-wrapper,
    .page-support__contact-card,
    .page-support__guide-card,
    .page-support__responsible-image,
    .page-support__security-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent overflow of images within */
    }

    /* Videos responsiveness - No videos in this page, but keeping the rule for completeness if any were 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;
    }


    /* Buttons responsiveness */
    .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; /* Make buttons full width */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px; /* Add some padding to prevent text touching edges */
        padding-right: 15px;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-support__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
    }
    
    .page-support__cta-buttons .page-support__btn-primary,
    .page-support__cta-buttons .page-support__btn-secondary {
        min-width: unset; /* Remove min-width for full flexibility */
    }

    .page-support__contact-grid,
    .page-support__guides-grid,
    .page-support__security-grid {
        grid-template-columns: 1fr; /* Single column layout */
    }

    .page-support__responsible-content {
        flex-direction: column;
    }
    .page-support__responsible-image {
        max-width: 100%;
    }

    .page-support__faq-question {
        padding: 15px 20px;
    }
    .page-support__faq-title {
        font-size: 1.1em;
    }
    .page-support__faq-answer {
        padding: 0 20px;
    }
    .page-support__faq-item.active .page-support__faq-answer {
        padding: 15px 20px 20px;
    }
}

/* Ensure content area images are not smaller than 200px */
.page-support__contact-icon,
.page-support__guide-image,
.page-support__responsible-image,
.page-support__security-icon {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-support__security-icon {
    max-width: 200px; /* Keep icons from being too large */
    max-height: 200px;
}