/* General styles for the support page */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for default light body background */
    background-color: #ffffff; /* Explicitly set for content area if body is not white */
    padding-bottom: 40px;
}

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

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

.page-support__section-title {
    font-size: 36px;
    color: #017439;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

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

.page-support__hero-section {
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background: linear-gradient(135deg, #017439, #015c2e);
    color: #ffffff;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.page-support__hero-image {
    width: 100%;
    max-height: 600px; /* Limit height for desktop hero */
    overflow: hidden;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-support__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Cover for desktop, contain for mobile */
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-support__hero-content {
    max-width: 900px;
    padding: 0 20px;
    position: relative; /* Ensure content is not absolutely positioned over image */
    z-index: 1;
}

.page-support__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Use clamp for H1 */
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

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

.page-support__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure button doesn't overflow */
    box-sizing: border-box; /* Include padding and border in width */
}

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

.page-support__btn-primary:hover {
    background-color: #015c2e;
    border-color: #015c2e;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

.page-support__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #015c2e;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Popular Topics Section */
.page-support__popular-topics {
    background-color: #f9f9f9;
}

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

.page-support__topic-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-support__topic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.page-support__card-title {
    font-size: 22px;
    font-weight: 700;
    margin: 20px 15px 10px;
    color: #017439;
    flex-grow: 1; /* Allow title to take available space */
}

.page-support__card-title a {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-support__card-title a:hover {
    color: #015c2e;
}

.page-support__card-text {
    font-size: 15px;
    color: #666666;
    padding: 0 15px 20px;
}

.page-support__card-link {
    display: inline-block;
    padding: 10px 20px;
    margin-bottom: 20px;
    background-color: #017439;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.page-support__card-link:hover {
    background-color: #015c2e;
}

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

details.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-support__faq-item summary.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-support__faq-item summary.page-support__faq-question::-webkit-details-marker {
  display: none;
}
details.page-support__faq-item summary.page-support__faq-question:hover {
  background: #f5f5f5;
}
.page-support__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-support__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-support__faq-item .page-support__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}
details.page-support__faq-item .page-support__faq-answer p {
    margin-bottom: 10px;
    font-size: 15px;
}
details.page-support__faq-item .page-support__faq-answer p:last-child {
    margin-bottom: 0;
}


/* Contact Section */
.page-support__contact-section {
    background-color: #f0f8f0; /* Light green background */
}

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

.page-support__contact-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-support__contact-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

/* Responsible Gaming Section */
.page-support__responsible-gaming-section {
    background-color: #ffffff;
    border-top: 1px solid #eeeeee;
}

/* Highlight text */
.page-support .highlight {
    color: #017439;
    font-weight: 700;
}

/* --- Responsive Styles --- */

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

    .page-support__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-support__section {
        padding: 30px 0;
    }

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

    .page-support__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* Hero Section */
    .page-support__hero-section {
        padding-top: 10px; /* Small top padding for mobile */
        padding-bottom: 40px;
    }

    .page-support__hero-image {
        max-height: 300px; /* Adjust height for mobile */
        margin-bottom: 20px;
    }

    .page-support__hero-image img {
        object-fit: contain !important; /* Ensure image is fully visible, not cropped */
        aspect-ratio: unset !important; /* Remove fixed aspect ratio if any */
        width: 100% !important;
        height: auto !important;
    }

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

    .page-support__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem); /* Smaller clamp for mobile H1 */
        margin-bottom: 15px;
    }

    .page-support__description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-support__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        margin-top: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-support__btn-primary,
    .page-support__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 16px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Popular Topics Grid */
    .page-support__topics-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-support__topic-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-support__topic-card img {
         /* Adjust image height for mobile cards */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-support__card-title {
        font-size: 20px;
        margin: 15px 10px 8px;
    }

    .page-support__card-text {
        font-size: 14px;
        padding: 0 10px 15px;
    }

    .page-support__card-link {
        padding: 8px 15px;
        font-size: 14px;
        margin-bottom: 15px;
    }

    /* FAQ Section */
    details.page-support__faq-item summary.page-support__faq-question { padding: 15px; }
    .page-support__faq-qtext { font-size: 15px; }
    details.page-support__faq-item .page-support__faq-answer { padding: 0 15px 15px; }
    details.page-support__faq-item .page-support__faq-answer p { font-size: 14px; }


    /* Contact Section */
    .page-support__contact-methods {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-support__contact-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-support__contact-card img {
        
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}
/* For tablets, adjust grid layout */
@media (min-width: 769px) and (max-width: 1024px) {
    .page-support__container {
        padding: 0 30px;
    }

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

    .page-support__hero-image {
        max-height: 500px;
    }

    .page-support__main-title {
        font-size: clamp(2.8rem, 4vw, 3.2rem);
    }

    .page-support__description {
        font-size: 1.1rem;
    }

    .page-support__topics-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns on tablet */
        gap: 25px;
    }

    .page-support__contact-methods {
        grid-template-columns: repeat(2, 1fr); /* Two columns on tablet */
        gap: 25px;
    }
}