﻿html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
    background-color: #f4f5f7;
}

body {
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1 1 auto;
    overflow-y: auto;
    padding-top: 80px;
    padding-bottom: 180px;
}

.faq-wrapper {
    max-width: 960px;
    margin: 4rem auto;
    padding: 0 1rem;
}

h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1f1f1f;
}

.faq-search {
    text-align: center;
    margin-bottom: 2rem;
}

    .faq-search input {
        width: 100%;
        max-width: 500px;
        padding: 0.8rem 1rem;
        font-size: 1rem;
        border-radius: 12px;
        border: 1px solid #ccc;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
        transition: border-color 0.3s;
    }

        .faq-search input:focus {
            outline: none;
            border-color: #2c3fa3;
        }

.faq-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-toggle {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.2rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2e2e2e;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: #606060;
    transition: transform 0.2s;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s;
    padding: 0 1.5rem;
}

    .faq-answer.open {
        padding: 1rem 1.5rem 1.5rem;
        max-height: 1000px;
    }

.faq-content {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: flex-start;
    margin-top: 0.5rem;
}

    .faq-content.no-image {
        flex-direction: column;
    }

.faq-text {
    flex: 1;
    color: #3f3f3f;
    line-height: 1.6;
}

.faq-image {
    flex: 0 0 30%;
}

    .faq-image img {
        width: 100%;
        height: auto;
        border-radius: 12px;
    }

.faq-scroll-anchor {
    height: 0;
    visibility: hidden;
}

.site-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #f4f5f7;
    border-top: 1px solid #ddd;
    color: #333;
    padding: 2rem 1rem;
    font-size: 0.95rem;
    flex-shrink: 0;
}

    .site-footer .container {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        flex-direction: row;
        gap: 4rem;
    }

.footer-left,
.footer-right {
    flex: 1;
}

.site-footer a {
    color: #2c3fa3;
    text-decoration: underline;
    font-weight: 500;
}

.site-footer p {
    margin: 0 0 1rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .site-footer .container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-left,
    .footer-right {
        width: 100%;
    }

    .faq-content {
        flex-direction: column;
    }

    .faq-image {
        width: 100%;
    }
}
