/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f4f6f9;
    color: #333;
    line-height: 1.6;
    padding: 20px;
}

/* Main Heading */
h1 {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
}

/* Navigation Bar */
#main-navbar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

#main-navbar a {
    text-decoration: none;
}

button {
    background-color: #2c3e50;
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

button:hover {
    background-color: #34495e;
    transform: translateY(-1px);
}

/* Ask Question Button */
a > button {
    margin-bottom: 20px;
}

/* Questions List */
#questions-list ul {
    list-style: none;
    max-width: 900px;
    margin: 0 auto;
}

#questions-list li {
    background-color: #ffffff;
    padding: 18px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease, transform 0.1s ease;
}

#questions-list li:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Question Title */
#questions-list h2 {
    margin-bottom: 8px;
    font-size: 20px;
}

#questions-list h2 a {
    text-decoration: none;
    color: #2980b9;
}

#questions-list h2 a:hover {
    text-decoration: underline;
}

/* Metadata */
#questions-list p {
    margin-bottom: 6px;
    font-size: 14px;
    color: #555;
}

#questions-list strong {
    color: #2c3e50;
}

/* Empty State */
#questions-list > p {
    text-align: center;
    font-size: 16px;
    color: #777;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    #questions-list li {
        padding: 14px;
    }

    button {
        padding: 6px 10px;
        font-size: 13px;
    }
}
