/* style/support.css */

/* Basic Reset & Body Styling (from shared.css, but ensure contrast) */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Hero Section */
.page-support__hero-section {
    position: relative;
    padding: 100px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    background-color: #017439; /* Brand primary color for hero */
    overflow: hidden;
}

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

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

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

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

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

/* Section Titles & Intros */
.page-support__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #017439;
}

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

/* Categories Section */
.page-support__categories-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.page-support__categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.page-support__category-card {
    display: block;
    text-decoration: none;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #f8f8f8;
    color: #333333;
    border: 1px solid #e0e0e0;
}

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

.page-support__category-card .page-support__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #017439;
}

.page-support__category-card p {
    font-size: 0.95em;
    color: #555555;
}

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

.page-support__faq-section.page-support__dark-bg {
    background-color: #0a0a0a;
    color: #ffffff;
}

.page-support__faq-section.page-support__dark-bg .page-support__section-title {
    color: #ffffff;
}

.page-support__faq-section.page-support__dark-bg .page-support__section-intro {
    color: #f0f0f0;
}

.page-support__faq-section.page-support__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-support__faq-section.page-support__light-bg .page-support__section-title {
    color: #017439;
}

.page-support__faq-section.page-support__light-bg .page-support__section-intro {
    color: #555555;
}

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

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

.page-support__faq-section.page-support__light-bg .page-support__faq-item {
    border: 1px solid #e0e0e0;
    background-color: #fcfcfc;
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    color: #ffffff;
    background-color: #017439; /* Brand color for question background */
    transition: background-color 0.3s ease;
}

.page-support__faq-section.page-support__light-bg .page-support__faq-question {
    background-color: #f0f0f0;
    color: #333333;
}

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

.page-support__faq-section.page-support__light-bg .page-support__faq-question:hover {
    background-color: #e8e8e8;
}

.page-support__faq-title {
    margin: 0;
    color: inherit;
}

.page-support__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    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;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 0.95em;
    color: #f0f0f0;
}

.page-support__faq-section.page-support__light-bg .page-support__faq-answer {
    color: #555555;
}

.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-bottom: 10px;
}

.page-support__faq-illustration {
    display: block;
    margin: 40px auto 0;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Contact Section */
.page-support__contact-section {
    padding: 60px 0;
    background-color: #ffffff;
}

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

.page-support__contact-card {
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    background-color: #f8f8f8;
    color: #333333;
    border: 1px solid #e0e0e0;
}

.page-support__contact-card .page-support__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #017439;
}

.page-support__contact-card p {
    font-size: 0.95em;
    margin-bottom: 20px;
    color: #555555;
}

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

/* Resources Section */
.page-support__resources-section {
    padding: 60px 0;
    background-color: #0a0a0a;
    color: #ffffff;
}

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

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

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

.page-support__resource-link {
    display: block;
    text-decoration: none;
    padding: 30px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-support__resource-link:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.page-support__resource-link .page-support__card-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-support__resource-link p {
    font-size: 0.9em;
    color: #f0f0f0;
}

.page-support__resources-image {
    display: block;
    margin: 40px auto 0;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.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;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

.page-support__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005f2e;
    border-color: #005f2e;
}

/* General card styling for contrast */
.page-support__card {
    background-color: #ffffff;
    color: #333333;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.page-support__dark-bg .page-support__card {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-support__dark-bg .page-support__card .page-support__card-title {
    color: #ffffff;
}

.page-support__dark-bg .page-support__card p {
    color: #f0f0f0;
}


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

@media (max-width: 768px) {
    .page-support__hero-section {
        padding: 80px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-support__hero-title {
        font-size: 2.5em;
    }
    .page-support__hero-description {
        font-size: 1em;
    }
    .page-support__container {
        padding: 15px;
    }
    .page-support__section-title {
        font-size: 1.8em;
    }
    .page-support__section-intro {
        margin-bottom: 30px;
    }
    .page-support__categories-grid,
    .page-support__contact-methods,
    .page-support__resources-grid {
        grid-template-columns: 1fr;
    }
    .page-support__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-support__faq-answer {
        padding: 0 20px;
    }
    .page-support__faq-item.active .page-support__faq-answer {
        padding: 10px 20px;
    }

    /* Mobile image and video responsive */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-support video,
    .page-support__video {
        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__video-section,
    .page-support__video-container,
    .page-support__video-wrapper,
    .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;
        overflow: hidden !important;
    }
    .page-support__cta-button,
    .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;
        margin-bottom: 10px; /* Add some space between stacked buttons */
    }
    .page-support__cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-support__hero-title {
        font-size: 2em;
    }
    .page-support__hero-description {
        font-size: 0.9em;
    }
    .page-support__faq-question {
        font-size: 0.95em;
    }
    .page-support__faq-answer {
        font-size: 0.85em;
    }
}