body {
    font-family: 'Onest', sans-serif;
    margin: 0;
    padding: 0;
    background: #f5f5f5;
    color: #333;
    text-align: center;
}

header {
    padding: 1rem;
    background: #ffffff;
}

.boostwork-logo {
    display: block;
    margin: 0 auto 10px;
    max-width: 120px;
  
}

.category-select {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

#category-dropdown {
    font-family: 'Onest', sans-serif;
    font-size: 1rem;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: white;
    cursor: pointer;
}

#category-dropdown:hover {
    border-color: #007bb5;
}

.top-bar {
    display: flex;
    justify-content: center; /* centers all content horizontally */
    align-items: center;
    position: relative; /* needed for absolute positioning */
    padding: 2rem;
    width: 100%;

}

.top-bar .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.top-bar .nav-links {
    display: flex;
    gap: 1rem;
    position: absolute;
    right: 7.5rem; /* increased from 1rem to move left */
}


.top-bar .nav-links a {
    font-family: 'Onest', sans-serif;
    color: #000;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
}

.top-bar .nav-links a:hover {
    color: #007bb5;
}

.search-bar {
    font-family: 'Onest', sans-serif;
    width: 60%;
    padding: 0.5rem;
    margin: 0.5rem auto;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    display: block;
}


.container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 75vw;
    max-width: 1200px;
    gap: 2.5rem;
    padding: 2rem 0;
    margin: 0 auto;
    justify-content: center;
}

.category {
    background: #ffffff;
    padding: 1rem;
    border-radius: 6px;
    box-shadow: 0 0 5px #007bb5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 280px;
    max-height: 280px;
    width: 100%;
}


.category::-webkit-scrollbar {
    width: 8px;
    border-radius: 6px;
}

.category::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

.category:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #007bb5;
}

.category::-webkit-scrollbar-thumb {
    background: #b0b0b0;
    border-radius: 6px;
}

.category::-webkit-scrollbar-thumb:hover {
    background: #909090;
}

h2 {
    font-family: 'Onest', sans-serif;
    text-align: center;
    color: #333;
    font-size: 1.2rem;
    text-decoration: underline solid #007bb5 2px;
    margin-bottom: 1rem;
}

.ai-list {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.ai-tool {
    font-family: 'Onest', sans-serif;
    background: rgba(0, 123, 181, 0.05);
    padding: 0.2rem;
    border-radius: 2px;
    text-align: center;
    font-size: 0.6rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

h3 {
    font-family: 'Onest', sans-serif;
    margin: 0;
    color: #000;
    font-size: 0.9rem;
}

p {
    font-family: 'Onest', sans-serif;
    font-size: 0.75rem;
    color: #555;
}

a {
    font-family: 'Onest', sans-serif;
    display: inline-block;
    margin-top: 0.4rem;
    padding: 0.4rem 0.9rem;
    color: #000000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    position: relative;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #007bb5;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

a:hover {
    transform: scale(1.08);
    text-decoration-color: #007bb5;
}

footer {
    font-family: 'Onest', sans-serif;
    background: none;
    text-align: center;
    padding: 1.2rem;
    font-size: 1rem;
    color: #000;
    margin-top: 2rem;
}

footer p {
    font-family: 'Onest', sans-serif;
    margin: 0;
    text-shadow: none;
}

input[type="text"] {
    font-family: 'Onest', sans-serif;
    padding: 0.5rem;
    font-size: 1rem;
    border-radius: 4px;
}

@media (max-width: 900px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
        padding: 1rem;
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .container {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }

    .search-bar {
        width: 90%;
    }

    .top-bar {
        flex-direction: column;
        gap: 1rem;
        padding: 0.5rem;
    }

    .top-bar .nav-links {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}
