/* style/support.css */

/* Base styles for the support page */
.page-support {
    color: #ffffff; /* Light text for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #0a0a0a; /* Ensure consistency with body background if needed, but body background is handled by shared.css */
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 500px;
    overflow: hidden;
    background-color: #2F4F4F; /* Dark teal background for hero */
    padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
}

.page-support__hero-content {
    max-width: 800px;
    z-index: 1;
    position: relative;
}

.page-support__hero-title {
    font-size: 3.2em;
    color: #FFD700; /* Gold for main title */
    margin-bottom: 20px;
    line-height: 1.2;
}

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

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

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

.page-support__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay for background image */
}

/* General Section Styling */
.page-support__section-title {
    font-size: 2.5em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

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

/* Dark and Light Background sections (for contrast control) */
.page-support__dark-section {
    background-color: #2F4F4F; /* Dark teal */
    color: #ffffff;
    padding: 60px 0;
}

.page-support__light-bg {
    background-color: #1a1a1a; /* Slightly lighter dark for contrast */
    color: #ffffff;
    padding: 60px 0;
}

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-text {
    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;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-support__btn-primary {
    background-color: #FFD700;
    color: #2F4F4F;
    border: 2px solid #FFD700;
}

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

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

.page-support__btn-secondary:hover {
    background-color: #FFD700;
    color: #2F4F4F;
}

.page-support__btn-text {
    background-color: transparent;
    color: #FFD700;
    border: none;
    padding: 0;
    text-align: left;
}

.page-support__btn-text:hover {
    text-decoration: underline;
    color: #e6c200;
}


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

.page-support__channel-card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent light background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-support__channel-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-support__channel-text {
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* FAQ Section */
.page-support__faq-section {
    padding: 60px 0;
}

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

.page-support__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #2F4F4F; /* Dark teal for question background */
    color: #FFD700;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-support__faq-question:hover {
    background-color: #3a5f5f;
}

.page-support__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: #FFD700;
}

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

.page-support__faq-item.active .page-support__faq-toggle {
    transform: rotate(45deg);
}

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark for answer background */
    color: #f0f0f0;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-support__faq-answer p {
    margin: 0;
    padding-bottom: 10px; /* Add some spacing to the last paragraph */
}

.page-support__faq-image-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-support__faq-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-support__guide-card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-support__guide-title {
    font-size: 1.6em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-support__guide-text {
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

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

.page-support__contact-info {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-support__contact-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-support__contact-text {
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-support__social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.page-support__social-icon {
    color: #FFD700;
    font-size: 1.1em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-support__social-icon:hover {
    color: #e6c200;
}

.page-support__contact-image-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-support__contact-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-support__measure-card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-support__measure-title {
    font-size: 1.6em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-support__measure-text {
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-support__responsible-gaming-image-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-support__responsible-gaming-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-support__responsible-gaming-cta {
  text-align: center;
  margin-top: 50px;
}

.page-support__cta-text {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* Images: Global responsiveness and minimum size enforcement */
.page-support img {
  max-width: 100%;
  height: auto;
  display: block; /* Prevent extra space below images */
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
  object-fit: cover; /* Ensure images fill their space without distortion */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 2.8em;
    }
    .page-support__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-support {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-support__hero-section {
        flex-direction: column;
        text-align: center;
        padding: 60px 15px;
        min-height: unset;
        padding-top: var(--header-offset, 120px) !important; /* Important for mobile */
    }
    .page-support__hero-title {
        font-size: 2.2em;
    }
    .page-support__hero-description {
        font-size: 1em;
    }
    .page-support__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    .page-support__btn-primary,
    .page-support__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px 10px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-support__section-title {
        font-size: 1.8em;
    }
    .page-support__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }
    .page-support__container {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-support__channels-grid,
    .page-support__guides-grid,
    .page-support__contact-grid,
    .page-support__responsible-gaming-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-support__channel-card,
    .page-support__guide-card,
    .page-support__contact-info,
    .page-support__measure-card {
        padding: 25px;
    }

    .page-support__faq-question {
        padding: 18px 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;
    }

    /* Images Mobile Responsiveness */
    .page-support img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      min-width: unset !important; /* Allow images to shrink below 200px on mobile if needed by layout, but still no tiny icons */
      min-height: unset !important;
      box-sizing: border-box !important;
    }
    .page-support__hero-image-wrapper,
    .page-support__faq-image-wrapper,
    .page-support__contact-image-wrapper,
    .page-support__responsible-gaming-image-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* Ensure content containers don't overflow */
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .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; /* Add padding to prevent content touching edges */
      padding-right: 15px;
      overflow: hidden !important; /* Prevent horizontal scroll */
    }
}