/* Additional styles specific to the FAQ page */
.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--silver-medium);
}

.faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-question {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    cursor: pointer;
    transition: color 0.2s ease;
    position: relative;
}

.faq-answer {
    margin-left: 2rem !important;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer .checksum {
    color: white;
    background-color: black;
    font-family: monospace;
    padding: 3px 7px;
    border-radius: 3px;
}

/* Tooltip styling */
.faq-question:hover::after {
    content: "Click to show/hide the answer";
    position: absolute;
    top: -40px; /* Position above the question */
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff5733; /* Bright color for better visibility */
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 14px;
    line-height: 1.5;
    opacity: 1;
    pointer-events: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
    height: auto;
    min-height: 40px;
    display: flex;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

/* Initially hidden tooltip */
.faq-question::after {
    opacity: 0;
    content: "";
    pointer-events: none;
}

/* Animation for the tooltip */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}