/* General reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    background-color: #f8fafc;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navbar styling - Finance Theme */
.navbar {
    background-color: #003366;
    /* Dark blue for finance theme */
    padding: 1rem 2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    transition: color 0.2s;
}

.logo a:hover {
    color: #99c2ff;
    /* Lighter blue on hover */
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links li a {
    color: #ffffff;
    /* White text for visibility */
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links li a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    /* Subtle white background on hover */
    color: #99c2ff;
    /* Lighter blue on hover */
}

/* Main content styling */
.content {
    flex: 1;
    padding: 2rem;
    max-width: 1280px;
    margin: 5rem auto 0;
    width: 100%;
}

/* Search container styling */
.search-container {
    margin-bottom: 1.5rem;
}

.search-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.search-form input:focus {
    outline: none;
    border-color: #003366;
    box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.1);
}

.search-form button {
    padding: 0.75rem 1.5rem;
    background-color: #003366;
    color: white;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-form button:hover {
    background-color: #004080;
}

/* Thread list styling */
.thread-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.thread-item {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s;
}

.thread-item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.thread-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.thread-title {
    color: #003366;
    text-decoration: none;
    font-weight: 600;
}

.thread-title:hover {
    color: #004080;
}

/* Tags styling */
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tag-item {
    background-color: #e6f0ff;
    /* Light blue background */
    color: #003366;
    /* Dark blue text */
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Footer styling */
.footer {
    background-color: #003366;
    color: #ffffff;
    padding: 1.5rem;
    text-align: center;
    margin-top: auto;
}

.ck-content * {
  all: revert;
}

/* Responsive design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .content {
        padding: 1rem;
    }
}
