/* style/support.css */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #ffffff; /* Default body background */
}

/* Fixed header spacing */
.page-support__hero-section {
    padding-top: var(--header-offset, 120px);
}

.page-support__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #ffffff;
    text-align: center;
}

.page-support__hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    background-size: cover;
}

.page-support__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 1;
}

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

.page-support__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

.page-support__section-title {
    font-size: 2.5em;
    color: #017439;
    text-align: center;
    margin-bottom: 40px;
}

.page-support__section-subtitle {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Intro Section */
.page-support__intro-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.page-support__intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-support__intro-text p {
    margin-bottom: 20px;
    color: #333333;
}

.page-support__intro-text p a {
    color: #017439;
    text-decoration: underline;
}

.page-support__intro-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-support__intro-button {
    margin-top: 20px;
    display: inline-block;
}

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

.page-support__faq-section .page-support__section-title,
.page-support__faq-section .page-support__section-subtitle {
    color: #ffffff;
}

.page-support__faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.page-support__faq-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    color: #ffffff;
    padding-right: 10px; /* Space for toggle */
}

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

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

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

.page-support__faq-item[open] .page-support__faq-toggle {
    transform: rotate(45deg); /* Rotate for minus sign */
}

.page-support__faq-answer {
    padding-top: 15px;
    color: #f0f0f0;
}

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

.page-support__faq-answer a {
    color: #FFFF00; /* Yellow for links on dark background */
    text-decoration: underline;
}

.page-support__faq-image-container {
    text-align: center;
    margin-top: 40px;
}

.page-support__faq-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-support__card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-bottom: 20px;
}

.page-support__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 15px;
}

.page-support__card-title {
    font-size: 1.4em;
    color: #017439;
    margin: 15px 20px 10px;
}

.page-support__card-text {
    color: #555555;
    padding: 0 20px;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-support__card-text a {
    color: #017439;
    text-decoration: underline;
}

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

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

.page-support__contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-support__contact-info p {
    margin-bottom: 20px;
    color: #f0f0f0;
}

.page-support__contact-info p a {
    color: #FFFF00;
    text-decoration: underline;
}

.page-support__contact-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-support__contact-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-support__icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    background-color: #FFFF00; /* Placeholder for icons */
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

.page-support__icon--chat {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H6l-2 2V4h16v12z"/></svg>');
}
.page-support__icon--email {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/></svg>');
}
.page-support__icon--phone {
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black"><path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.32.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z"/></svg>');
}


.page-support__contact-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-support__contact-button {
    display: inline-block;
}

/* Commitment Section */
.page-support__commitment-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.page-support__commitment-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-support__commitment-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-support__commitment-text p {
    margin-bottom: 20px;
    color: #333333;
}

.page-support__commitment-text p a {
    color: #017439;
    text-decoration: underline;
}

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Ensure padding and border are included in width */
}

.page-support__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFFFF; /* High contrast white text */
    border: 2px solid #C30808;
}

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

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

.page-support__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

/* Specific styling for buttons on light background */
.page-support__intro-section .page-support__btn-primary,
.page-support__guides-section .page-support__btn-secondary,
.page-support__card .page-support__btn-secondary {
    background-color: #017439; /* Brand primary for general CTAs on light bg */
    color: #FFFFFF;
    border: 2px solid #017439;
}

.page-support__intro-section .page-support__btn-primary:hover,
.page-support__guides-section .page-support__btn-secondary:hover,
.page-support__card .page-support__btn-secondary:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 3em;
    }
    .page-support__section-title {
        font-size: 2em;
    }
    .page-support__intro-grid,
    .page-support__faq-grid,
    .page-support__contact-grid,
    .page-support__commitment-content {
        grid-template-columns: 1fr;
    }
    .page-support__intro-image,
    .page-support__contact-image,
    .page-support__commitment-image {
        order: -1; /* Image first on mobile */
        margin-bottom: 30px;
    }
    .page-support__faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-support {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-support__hero-section {
        height: 400px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }
    .page-support__hero-title {
        font-size: 2.2em;
    }
    .page-support__hero-description {
        font-size: 1em;
    }
    .page-support__hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

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

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

    /* General image responsiveness */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-support__intro-image,
    .page-support__faq-image-container,
    .page-support__contact-image,
    .page-support__commitment-image,
    .page-support__card-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Video responsiveness */
    .page-support video,
    .page-support__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-support__hero-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Button responsiveness */
    .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__hero-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__card {
        padding: 20px 15px;
    }
    .page-support__card-image {
        height: auto; /* Allow auto height on mobile for better aspect ratio */
    }
    .page-support__card-title {
        font-size: 1.2em;
    }
}