@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

body {
    font-family: Arial, sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    text-align: center;
    color: #333;
}

.faq-section {
    margin-bottom: 40px;
}

.faq-section h2 {
    color: #0056b3;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 5px;
}

details.faq-card {
    margin: 15px 0;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fdfdfd;
    cursor: pointer;
}

summary {
    font-size: 1.1em;
    color: #000000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    outline: none;
}

.faq-open-icon {
    font-weight: bold;
    transition: transform 0.3s ease;
}

details[open] .faq-open-icon {
    transform: rotate(45deg);
    color: #0056b3;
}

.faq-card-spoiler {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
    color: #555;
}

.faq-card-spoiler ul {
    padding-left: 20px;
}

.faq-card-spoiler li {
    list-style-type: disc;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #e9e9e9;
}

.header h1 {
    color: #222222;
    font-size: 30px;
    font-family: 'Pacifico', cursive;
}

.header .social a {
    padding: 0 5px;
    color: #222222;
}

.left {
    float: left;
    width: 185px;
    height: auto; 
    margin: 0;
    padding: 1em;
}

.left img {
    width: 100%;
    height: auto; 
}

.content {
    margin-left: 190px;
    border-left: 1px solid #d4d4d4;
    padding: 1em;
    overflow: hidden;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    display: flex; 
}

nav ul li {
    margin-right: 20px; 
}

nav ul li a {
    display: block;
    color: #000;
    padding: 8px 16px;
    text-decoration: none;
}

nav ul li a.active {
    background-color: #84e4e2;
    color: white;
}

nav ul li a:hover:not(.active) {
    background-color: #29292a;
    color: white;
}

.footer {
    padding: 55px 20px;
    background-color: #2e3550;
    color: white;
    text-align: center;
}

.faq-image {
    width: 300px; 
    height: auto; 
    display: block; 
    margin: 20px auto; 
    position: relative; 
    top: 20px; 
}

.faq-image.alternative-position {
    position: absolute; 
    top: 50px; 
    left: 50%; 
    transform: translateX(-50%); 
    width: 300px; 
    height: auto; 
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .left {
        width: 100%;
        margin-bottom: 20px;
    }

    .content {
        margin-left: 0;
        border-left: none;
        padding: 0;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .faq-container {
        padding: 15px;
    }

    .faq-section {
        margin-bottom: 30px;
    }

    .faq-image {
        width: 100%;
        max-width: 300px;
        margin: 20px auto;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px;
    }

    .header h1 {
        font-size: 24px;
    }

    .footer {
        padding: 40px 10px;
    }
}
