/* style/support.css */

/* Base styles for the support page */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #F2FFF6; /* Text Main */
    background-color: #08160F; /* Body background from shared.css, ensure text contrast */
}

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

/* Hero Section */
.page-support__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above content */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: #08160F; /* Match body background */
}

.page-support__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for large screens */
    margin-bottom: 30px; /* Space between image and content */
}

.page-support__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.page-support__hero-content {
    width: 100%;
    max-width: 800px;
    text-align: center;
    padding: 40px 20px;
    background: #11271B; /* Card BG, dark */
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border: 1px solid #2E7A4E; /* Border */
}

.page-support__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
    max-width: 100%; /* Ensure H1 does not overflow */
}

.page-support__description {
    font-size: 1.1em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
}

/* General Section Styles */
.page-support__section {
    padding: 80px 0;
    background-color: #08160F; /* Default section background */
}

.page-support__section:nth-of-type(even) {
    background-color: #111e17; /* Slightly different background for visual separation */
}

.page-support__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
}

.page-support__text-block {
    font-size: 1.05em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
    text-align: justify;
}

.page-support__text-block:last-of-type {
    margin-bottom: 0;
}

/* CTA Buttons */
.page-support__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Ensure padding/border included in width */
    max-width: 100%; /* Ensure button does not overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-support__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-support__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

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

.page-support__btn-secondary:hover {
    background-color: rgba(42, 209, 111, 0.1);
    color: #ffffff;
}

.page-support__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Contact Methods Grid */
.page-support__grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-support__card {
    background-color: #11271B; /* Card BG */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid #2E7A4E; /* Border */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-support__card-title {
    font-size: 1.5em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
}

.page-support__card-text {
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 25px;
    flex-grow: 1; /* Allow text to take up available space */
}

/* Feature List (Channels) */
.page-support__feature-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.page-support__feature-item {
    display: flex;
    align-items: center;
    gap: 30px;
    background-color: #11271B; /* Card BG */
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #2E7A4E; /* Border */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-support__feature-item:nth-child(even) {
    flex-direction: row-reverse; /* Alternate image and text */
}

.page-support__feature-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

.page-support__feature-content {
    flex: 1;
}

.page-support__feature-title {
    font-size: 1.6em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
}

.page-support__feature-text {
    color: #A7D9B8; /* Text Secondary */
}

.page-support__link {
    color: #57E38D; /* Glow color for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-support__link:hover {
    color: #2AD16F;
}

/* FAQ Section */
.page-support__faq-section {
    background-color: #11271B; /* Card BG for dark background section */
    padding: 80px 0;
}

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

.page-support__faq-item {
    background-color: #0A4B2C; /* Deep Green */
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #2E7A4E; /* Border */
    overflow: hidden;
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    cursor: pointer;
    background-color: #0A4B2C; /* Deep Green */
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker for details summary */
}

.page-support__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-support__faq-question:hover {
    background-color: #11A84E; /* Main color on hover */
}

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

.page-support__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-support__faq-item[open] .page-support__faq-toggle {
    transform: rotate(45deg); /* Rotate + to X when open */
}

.page-support__faq-answer {
    padding: 0 25px 20px;
    color: #A7D9B8; /* Text Secondary */
    font-size: 1.05em;
}

.page-support__faq-answer p {
    margin-bottom: 10px;
}

.page-support__faq-answer p:last-child {
    margin-bottom: 0;
}

/* Security and Privacy Section */
.page-support__security-privacy .page-support__content-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 40px auto 0;
    border-radius: 12px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

/* Commitment Section */
.page-support__commitment {
    background-color: #11271B; /* Card BG */
}

.page-support__commitment-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.page-support__commitment-item {
    background-color: #0A4B2C; /* Deep Green */
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #2E7A4E; /* Border */
    color: #A7D9B8; /* Text Secondary */
    font-size: 1.05em;
    line-height: 1.5;
}

.page-support__commitment-item strong {
    color: #F2FFF6; /* Text Main */
    font-size: 1.1em;
    display: block;
    margin-bottom: 8px;
}

/* Tips Section */
.page-support__tips-list {
    list-style: decimal;
    padding-left: 25px;
    margin-top: 40px;
}

.page-support__tips-item {
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 15px;
    font-size: 1.05em;
}

.page-support__tips-item strong {
    color: #F2FFF6; /* Text Main */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-support__hero-content {
        max-width: 700px;
        padding: 30px;
    }

    .page-support__feature-item {
        flex-direction: column;
        text-align: center;
    }

    .page-support__feature-item:nth-child(even) {
        flex-direction: column; /* Reset order for smaller screens */
    }

    .page-support__feature-image {
        max-width: 100%;
        margin-bottom: 20px;
    }
}

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

    .page-support__container {
        padding: 0 15px;
    }

    .page-support__hero-section {
        padding-bottom: 40px;
        padding-top: 10px !important; /* body already handles --header-offset */
    }

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

    .page-support__description {
        font-size: 1em;
    }

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

    .page-support__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-support__text-block {
        font-size: 1em;
    }

    .page-support__cta-group {
        flex-direction: column;
        gap: 15px;
    }

    .page-support__cta-button {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-support__grid-container {
        grid-template-columns: 1fr;
    }

    .page-support__card {
        padding: 25px;
    }

    .page-support__card-title {
        font-size: 1.3em;
    }

    .page-support__feature-item {
        padding: 20px;
    }

    .page-support__feature-title {
        font-size: 1.4em;
    }

    .page-support__feature-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-support__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .page-support__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.95em;
    }

    .page-support__commitment-list {
        grid-template-columns: 1fr;
    }

    /* Mobile video and image specific rules */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .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-content,
    .page-support__grid-container,
    .page-support__feature-list,
    .page-support__feature-item,
    .page-support__faq-list,
    .page-support__faq-item,
    .page-support__commitment-list,
    .page-support__commitment-item,
    .page-support__tips-list,
    .page-support__tips-item,
    .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-x: hidden !important; /* Prevent horizontal scroll */
    }
    
    /* Specific rule for video wrapper if using padding-bottom aspect ratio trick */
    .page-support__video-wrapper {
        position: relative;
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
        height: 0;
        overflow: hidden;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-support__video-wrapper video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
    }
}

/* Ensure content area images are at least 200px */
.page-support__content-image {
    min-width: 200px;
    min-height: 200px;
}
.page-support__feature-image {
    min-width: 200px;
    min-height: 200px;
}

/* No CSS filters for images */
.page-support img,
.page-support__feature-image,
.page-support__content-image {
    filter: none !important; /* Ensure no filters are applied */
}