/* style/support.css */
/* Body padding-top is handled by shared.css via var(--header-offset).
   This page's top-most section should only have a small decorative padding-top, NOT var(--header-offset). */

.page-support {
    background-color: #08160F; /* Background color from custom palette */
    color: #F2FFF6; /* Main text color from custom palette for general content */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

.page-support__container--center-text {
    text-align: center;
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small decorative top padding, not --header-offset */
    overflow: hidden;
    background-color: #08160F; /* Ensure consistent background */
}

.page-support__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Or match hero section width */
    margin-bottom: 30px; /* Space between image and content */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-support__hero-image {
    width: 1200px; /* Display width */
    height: 675px; /* Display height */
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: none; /* Ensure no filter is applied */
}

.page-support__hero-content {
    text-align: center;
    max-width: 900px;
    color: #F2FFF6; /* Main text color */
}

.page-support__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    margin-bottom: 20px;
    color: #F2C14E; /* Gold color for main title */
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5); /* Subtle glow */
}

.page-support__description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    color: #A7D9B8; /* Secondary text color */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* General Sections */
.page-support__section {
    padding: 60px 0;
    background-color: #08160F; /* Default section background */
    color: #F2FFF6; /* Default section text color */
}

.page-support__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #F2C14E; /* Gold for section titles */
    line-height: 1.3;
}

.page-support__section-intro {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: -20px auto 40px auto;
    color: #A7D9B8; /* Secondary text color */
}

/* Buttons */
.page-support__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button itself is responsive */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
    cursor: pointer;
}

.page-support__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient from custom palette */
    color: #F2FFF6; /* Text Main for primary button */
    border: 2px solid #2AD16F;
}

.page-support__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 0 15px #57E38D; /* Glow color */
}

.page-support__btn-secondary {
    background-color: transparent;
    color: #2AD16F; /* Green for secondary button text */
    border: 2px solid #2AD16F;
}

.page-support__btn-secondary:hover {
    background-color: #2AD16F;
    color: #F2FFF6;
    box-shadow: 0 0 15px rgba(42, 209, 111, 0.5);
}

.page-support__btn--small {
    padding: 10px 20px;
    font-size: 1rem;
}

/* Feature Grid */
.page-support__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-support__feature-card {
    background-color: #11271B; /* Card BG from custom palette */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #2E7A4E; /* Border color */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #F2FFF6; /* Main text color for card */
}

.page-support__feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px #57E38D; /* Glow color */
}

.page-support__feature-icon {
    width: 400px; /* Display width */
    height: 300px; /* Display height */
    max-width: 100%; /* Ensure responsive */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    filter: none; /* No filter */
}

.page-support__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #F2C14E; /* Gold for card titles */
}

.page-support__card-text {
    font-size: 1rem;
    color: #A7D9B8; /* Secondary text color */
}

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

.page-support__faq-item {
    background-color: #11271B; /* Card BG from custom palette */
    border: 1px solid #2E7A4E; /* Border color */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #F2FFF6; /* Main text color for FAQ */
}

.page-support__faq-item details {
    border: none;
    background: none;
    margin: 0;
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    color: #F2FFF6; /* Main text color */
    background-color: #11271B;
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker for summary */
}

.page-support__faq-question::-webkit-details-marker {
    display: none;
}

.page-support__faq-question:hover {
    background-color: #1E3A2A; /* Deep Green for hover */
}

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

.page-support__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    width: 30px;
    text-align: center;
    color: #2AD16F; /* Green for toggle icon */
}

.page-support__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: #A7D9B8; /* Secondary text color */
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 2000px; /* Sufficiently large for content */
    padding-top: 10px;
}

.page-support__faq-item details[open] .page-support__faq-answer {
    max-height: none; /* Let content define height */
    padding-top: 10px;
}


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

.page-support__contact-card {
    background-color: #11271B; /* Card BG from custom palette */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #2E7A4E; /* Border color */
    color: #F2FFF6; /* Main text color */
}

.page-support__contact-icon {
    width: 400px; /* Display width */
    height: 300px; /* Display height */
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    filter: none; /* No filter */
}

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

.page-support__resource-card {
    background-color: #11271B; /* Card BG from custom palette */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #2E7A4E; /* Border color */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #F2FFF6; /* Main text color */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-support__resource-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 20px #57E38D; /* Glow color */
}

.page-support__resource-card .page-support__card-title {
    text-align: left;
    margin-bottom: 15px;
    color: #F2C14E; /* Gold for card titles */
}

.page-support__resource-card .page-support__card-title a {
    color: #F2C14E; /* Gold for link in title */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-support__resource-card .page-support__card-title a:hover {
    color: #2AD16F; /* Green on hover */
}

.page-support__resource-card .page-support__card-text {
    text-align: left;
    color: #A7D9B8; /* Secondary text color */
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-support__read-more {
    display: inline-flex;
    align-items: center;
    color: #2AD16F; /* Green for read more link */
    text-decoration: none;
    font-weight: 600;
    margin-top: auto; /* Push to bottom */
    transition: color 0.3s ease;
}

.page-support__read-more:hover {
    color: #57E38D; /* Glow color on hover */
}

.page-support__arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.page-support__read-more:hover .page-support__arrow {
    transform: translateX(5px);
}

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

/* Final CTA Section */
.page-support__section--cta-final {
    padding: 80px 0;
    background-color: #0A4B2C; /* Deep Green for final CTA */
    text-align: center;
    color: #F2FFF6; /* Main text color */
}

.page-support__section--cta-final .page-support__section-title {
    color: #F2C14E; /* Gold for title */
}

.page-support__section--cta-final .page-support__description {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }
    .page-support__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-support__description {
        font-size: 1rem;
    }
    .page-support__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .page-support__container {
        padding: 15px;
    }

    /* Images */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-support__hero-image-wrapper,
    .page-support__feature-card,
    .page-support__contact-card,
    .page-support__resource-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Ensure card images are not tiny */
    .page-support__feature-icon,
    .page-support__contact-icon {
        max-width: 100% !important; /* Allow to fill card if needed */
        width: 100% !important;
        height: auto !important;
        max-height: 200px !important; /* Prevent excessively tall images in cards */
        object-fit: contain !important; /* Ensure full image is visible */
        margin-left: auto;
        margin-right: auto;
    }

    /* Videos - No video in this page, but include general rules for safety */
    .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: 10px !important; /* Small decorative top padding */
    }

    /* Buttons */
    .page-support__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-support__btn-primary,
    .page-support__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px !important;
        font-size: 1rem !important;
    }
    .page-support__btn--small {
        padding: 10px 15px !important;
    }

    .page-support__hero-section {
        padding: 30px 0;
        padding-top: 10px;
    }
    .page-support__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-support__main-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    .page-support__description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    .page-support__section {
        padding: 40px 0;
    }
    .page-support__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-support__faq-question {
        padding: 15px 20px;
        font-size: 1.1rem;
    }
    .page-support__faq-toggle {
        font-size: 1.5rem;
    }
    .page-support__faq-answer {
        padding: 0 20px 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-support__main-title {
        font-size: 1.7rem;
    }
    .page-support__section-title {
        font-size: 1.5rem;
    }
    .page-support__feature-card,
    .page-support__contact-card,
    .page-support__resource-card {
        padding: 20px;
    }
    .page-support__card-title {
        font-size: 1.3rem;
    }
    .page-support__card-text {
        font-size: 0.9rem;
    }
}