.terminal {
    width: min(600px, 90vw);
    max-width: 90%;
    margin: 50px auto;
    background: #0c0c0c;
    color: #ffffff;
    font-family: "Courier New", monospace;
    border-radius: 8px;
    border: 1px solid #333;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,.5);
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    background: #1f1f1f;
    padding: 8px 15px;
    border-bottom: 1px solid #333;
}

.terminal-body {
    padding: 20px;
    min-height: 300px;
    font-size: 16px;
}

.terminal p {
    margin: 8px 0;
}

.cursor {
    animation: blink 0.7s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.post-list {
    list-style: none;
    padding-top: 5px;
    padding-left: 0;
    margin: 0;
}

.post-list li {
    margin: 6px 0;
}

.post-list a {
    color: grey;
    text-decoration: none;
    font-family: "Courier Prime", monospace;
    transition: all 0.3s ease;
}

.post-list a:hover {
    color: #8aff80;
}

.post-list a::before,
.post-list a::after {
    content: "";
    position: absolute;
    bottom: -3px;
    width: 0;
    height: 1px;
    background: #8aff80;
    transition: width 0.4s ease;
}

.close-terminal {
    background: none;
    border: none;
    color: grey;
    cursor: pointer;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.close-terminal:hover {
    color: white;
    cursor: pointer;
}