/* style/support.css */

/* Custom properties for colors */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --background-color-dark: #08160F; /* Main background from shared.css */
    --card-background: #11271B;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;

    /* Button gradient */
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

/* Base styles for the page content */
.page-support {
    font-family: 'Arial', sans-serif; /* Placeholder font */
    color: var(--text-main); /* Default text color for dark background */
    background-color: var(--background-color-dark); /* Ensure consistency if body bg is not set */
    line-height: 1.6;
    padding-bottom: 60px; /* Add some padding at the bottom */
}

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

/* Section styling */
.page-support__section {
    padding: 60px 0;
    text-align: center;
}

.page-support__dark-section {
    background-color: var(--deep-green-color); /* Use a slightly different dark tone for contrast */
}

.page-support__section-title {
    font-size: clamp(28px, 4vw, 42px); /* Responsive font size for H2 */
    color: var(--gold-color);
    margin-bottom: 25px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.page-support__text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-support__text a {
    color: var(--glow-color);
    text-decoration: underline;
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    overflow: hidden;
}

.page-support__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-support__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
}

.page-support__main-title {
    font-size: clamp(32px, 5vw, 56px); /* Responsive font size for H1 */
    color: var(--text-main);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 1px;
}

.page-support__subtitle {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button */
.page-support__cta-button {
    display: inline-block;
    background: var(--button-gradient);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin: 10px;
}

.page-support__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-support__cta-button--video {
    margin-top: 30px;
}

/* Introduction Section */
.page-support__introduction-section .page-support__text {
    text-align: justify;
}

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

.page-support__channel-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.page-support__channel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-support__channel-icon {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-support__channel-title {
    font-size: 22px;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-support__channel-description {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Ensures consistent height for cards */
}

.page-support__button {
    display: inline-block;
    background: var(--button-gradient);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin: 5px;
}

.page-support__button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.page-support__button--secondary {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.page-support__button--secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.page-support__button--small {
    padding: 8px 15px;
    font-size: 14px;
}

/* Guides Section */
.page-support__guide-block {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.page-support__guide-title {
    font-size: clamp(24px, 3vw, 32px);
    color: var(--gold-color);
    margin-bottom: 25px;
    font-weight: bold;
    text-align: center;
}

.page-support__guide-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.page-support__guide-content--reverse {
    flex-direction: row-reverse;
}

.page-support__guide-image {
    width: 100%;
    max-width: 450px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.page-support__guide-text-wrapper {
    flex-grow: 1;
}

.page-support__guide-text-wrapper .page-support__button {
    margin-top: 15px;
}

/* Security Section */
.page-support__security-section {
    background-color: var(--deep-green-color);
    color: var(--text-main);
}

.page-support__security-section .page-support__section-title {
    color: var(--gold-color);
}

.page-support__security-section .page-support__text {
    color: var(--text-secondary);
}

/* FAQ Section */
.page-support__faq-list {
    margin-top: 40px;
    text-align: left;
}

.page-support__faq-item {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-support__faq-item summary {
    list-style: none; /* Hide default marker for details */
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
    color: var(--text-main);
    background-color: var(--card-background);
    transition: background-color 0.3s ease;
}

.page-support__faq-item summary:hover {
    background-color: rgba(var(--primary-color), 0.1);
}

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

.page-support__faq-qtext {
    flex-grow: 1;
    color: var(--gold-color);
}

.page-support__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
    color: var(--glow-color);
    line-height: 1;
}

.page-support__faq-item[open] .page-support__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-support__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 16px;
    color: var(--text-secondary);
    text-align: justify;
}

/* Video Section */
.page-support__video-section {
    background-color: var(--deep-green-color);
    color: var(--text-main);
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
}

.page-support__video-section .page-support__section-title {
    color: var(--gold-color);
}

.page-support__video-section .page-support__text {
    color: var(--text-secondary);
}

.page-support__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px; /* Max width for the video */
    margin: 30px auto;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.page-support__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer; /* Indicate it's clickable */
}

/* Conclusion Section */
.page-support__conclusion-section .page-support__text {
    text-align: justify;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-support__guide-content {
        flex-direction: column;
        align-items: center;
    }

    .page-support__guide-content--reverse {
        flex-direction: column;
    }

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

@media (max-width: 768px) {
    .page-support__section {
        padding: 40px 0;
    }

    .page-support__section-title {
        font-size: 28px;
    }

    .page-support__main-title {
        font-size: 36px;
    }

    .page-support__subtitle {
        font-size: 18px;
    }

    .page-support__text {
        font-size: 15px;
    }

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

    .page-support__channel-card {
        padding: 25px;
    }

    .page-support__guide-block {
        padding: 30px;
    }

    .page-support__guide-title {
        font-size: 22px;
    }

    .page-support__faq-item summary {
        font-size: 16px;
        padding: 15px 20px;
    }

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

    /* Mobile image responsiveness */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile video responsiveness */
    .page-support video,
    .page-support__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile container responsiveness */
    .page-support__hero-section,
    .page-support__section,
    .page-support__channels-grid,
    .page-support__channel-card,
    .page-support__guide-block,
    .page-support__faq-list,
    .page-support__video-wrapper,
    .page-support__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 */
    }

    /* Mobile button responsiveness */
    .page-support__cta-button,
    .page-support__button {
        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;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 10px; /* Stack buttons */
    }

    .page-support__guide-text-wrapper {
        display: flex;
        flex-direction: column;
    }
    .page-support__guide-text-wrapper .page-support__button {
        margin-left: auto;
        margin-right: auto;
    }

    .page-support__hero-content .page-support__cta-button {
        margin-left: auto;
        margin-right: auto;
    }
}