/* style/support.css */

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

/* Header offset for main content */
.page-support__hero-section {
    padding-top: var(--header-offset, 120px);
}

/* Hero Section */
.page-support__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    background-color: #0a0a0a; /* Dark background for hero */
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

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

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

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

.page-support__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.page-support__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    filter: none; /* Ensure no filter is applied */
}

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

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

/* Methods Section */
.page-support__methods-section {
    padding: 80px 20px;
    background-color: #1a1a1a;
    color: #ffffff;
}

.page-support__methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-support__method-card {
    background-color: #2a2a2a;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    color: #ffffff;
}

.page-support__method-card:hover {
    transform: translateY(-10px);
}

.page-support__method-icon {
    width: 200px; /* Enforce minimum size */
    height: 200px; /* Enforce minimum size */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
    filter: none; /* Ensure no filter is applied */
}

.page-support__method-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439;
    font-weight: bold;
}

.page-support__method-title a {
    color: #017439;
    text-decoration: none;
}

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

.page-support__method-description {
    font-size: 1em;
    margin-bottom: 20px;
    color: #f0f0f0;
    flex-grow: 1;
}

/* Guides Section */
.page-support__guides-section {
    padding: 80px 20px;
    background-color: #0a0a0a;
    color: #ffffff;
}

.page-support__guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-support__guide-card {
    background-color: #2a2a2a;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    color: #ffffff;
}

.page-support__guide-card:hover {
    transform: translateY(-10px);
}

.page-support__guide-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #017439;
    font-weight: bold;
}

.page-support__guide-title a {
    color: #017439;
    text-decoration: none;
}

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

.page-support__guide-description {
    font-size: 0.95em;
    margin-bottom: 20px;
    color: #f0f0f0;
    flex-grow: 1;
}

/* Safety Section */
.page-support__safety-section {
    padding: 80px 20px;
    background-color: #017439; /* Brand main color for a strong section */
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
}

.page-support__safety-content {
    max-width: 900px;
}

.page-support__safety-section .page-support__section-title {
    color: #ffffff;
}

.page-support__safety-section .page-support__section-intro {
    color: #f0f0f0;
}

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

.page-support__feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 8px;
    text-align: left;
    color: #ffffff;
}

.page-support__feature-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: bold;
}

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

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

.page-support__feature-description {
    font-size: 0.95em;
    color: #f0f0f0;
}

.page-support__safety-image-wrapper {
    max-width: 800px;
    width: 100%;
    margin-top: 40px;
}

.page-support__safety-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    filter: none; /* Ensure no filter is applied */
}

/* FAQ Section */
.page-support__faq-section {
    padding: 80px 20px;
    background-color: #0a0a0a;
    color: #ffffff;
}

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

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

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    background-color: #1a1a1a;
    color: #ffffff;
    user-select: none;
    transition: background-color 0.3s ease;
}

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

/* Hide default details marker */
.page-support__faq-item summary {
    list-style: none;
}
.page-support__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-support__faq-qtext {
    flex-grow: 1;
    color: #ffffff;
}

.page-support__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    width: 20px;
    text-align: center;
    color: #ffffff;
}

.page-support__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #f0f0f0;
    max-height: 0; /* For JS based accordion, if <details> not used */
    overflow: hidden; /* For JS based accordion */
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

/* For <details> native behavior, override max-height */
.page-support__faq-item[open] .page-support__faq-answer {
    max-height: 1000px; /* Sufficiently large for content */
    padding-top: 10px;
}

/* CTA Section */
.page-support__cta-section {
    padding: 80px 20px;
    background-color: #017439; /* Brand main color */
    color: #ffffff;
    text-align: center;
}

.page-support__cta-section .page-support__section-title {
    color: #ffffff;
}

.page-support__cta-section .page-support__section-intro {
    color: #f0f0f0;
    margin-bottom: 40px;
}

.page-support__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-text {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
}

.page-support__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom font color for Register/Login */
    border: 2px solid #C30808;
}

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

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

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

.page-support__btn-text {
    background-color: transparent;
    color: #017439;
    padding: 8px 15px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: 0.95em;
}

.page-support__btn-text:hover {
    text-decoration: underline;
    background-color: rgba(1, 116, 57, 0.1);
}

.page-support__text-link-disabled {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.95em;
    color: #999999; /* Grey out for disabled look */
    cursor: not-allowed;
    text-decoration: none;
}

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

@media (max-width: 768px) {
    .page-support__hero-section {
        flex-direction: column;
        padding-left: 15px;
        padding-right: 15px;
        text-align: center;
    }

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

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

    .page-support__hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }

    .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: 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__methods-section,
    .page-support__guides-section,
    .page-support__safety-section,
    .page-support__faq-section,
    .page-support__cta-section {
        padding: 40px 15px;
    }

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

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

    .page-support__method-icon {
        width: 150px; /* Adjusted to fit better on small screens, still > 200px due to max-width:100%*/
        height: 150px;
    }
    
    .page-support__safety-section {
        flex-direction: column;
    }

    /* Images responsiveness for mobile */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Image containers responsiveness for mobile */
    .page-support__section,
    .page-support__card,
    .page-support__container,
    .page-support__hero-image-wrapper,
    .page-support__safety-image-wrapper,
    .page-support__methods-section,
    .page-support__guides-section,
    .page-support__safety-section,
    .page-support__faq-section,
    .page-support__cta-section {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow: hidden !important;
      padding-left: 15px;
      padding-right: 15px;
    }
    
    /* Video responsiveness for mobile (if any) */
    .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__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-support__faq-answer {
        padding: 0 20px 15px 20px;
    }
}

/* Color contrast enforcement (dark body background) */
.page-support__dark-bg {
    color: #ffffff;
    background: #0a0a0a;
}

.page-support__light-bg {
    color: #333333; /* Dark text on light background for cards */
    background: #ffffff;
}

.page-support__medium-bg {
    color: #000000;
    background: #FFFFFF;
}

/* Ensure all links and text in cards are readable */
.page-support__method-card,
.page-support__guide-card {
    background-color: #2a2a2a; /* Dark background */
    color: #ffffff; /* Light text */
}

/* Override if a light background is explicitly applied to a card */
.page-support__method-card.page-support__light-bg,
.page-support__guide-card.page-support__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-support__method-card.page-support__light-bg .page-support__method-title a,
.page-support__guide-card.page-support__light-bg .page-support__guide-title a {
    color: #017439; /* Brand color on light background */
}

/* Text color for paragraphs and list items */
.page-support p,
.page-support li {
  color: #f0f0f0; /* Light grey for readability on dark backgrounds */
}

/* Ensure headings in dark sections are white */
.page-support__dark-section .page-support__section-title,
.page-support__dark-section .page-support__feature-title,
.page-support__dark-section .page-support__feature-title a {
    color: #ffffff;
}
.page-support__dark-section .page-support__feature-description {
    color: #f0f0f0;
}

/* Specific color for register/login buttons */
.page-support__btn-primary {
    background-color: #C30808; /* Register color */
    color: #FFFF00; /* Register font color */
    border-color: #C30808;
}

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

/* No CSS filter on images */
.page-support img {
    filter: none; /* Ensure no filter is applied */
}