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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #1a1a1a, #4a4a4a); /* Black to gray gradient */
    min-height: 100vh;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

/* Logo */
.logo img {
    height: 40px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
}

/* Search Column */
.search-column {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.search-container {
    width: 100%;
    max-width: 900px;
    position: relative;
}

.search-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    height: 40px;
    padding: 0 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.search-wrapper:focus-within {
    transform: scale(1.02);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

#searchInput {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 8px 40px 8px 10px;
    height: 100%;
    background: transparent;
    color: #fff;
}

#searchInput::placeholder {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

#searchButton, #clearButton {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #fff;
    transition: color 0.3s ease, transform 0.2s ease;
}

#searchButton:hover, #searchButton:focus,
#clearButton:hover, #clearButton:focus {
    color: #ff6b6b;
    transform: scale(1.2);
    outline: none;
}

.loading-spinner {
    font-size: 18px;
    color: #fff;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.suggestions {
    list-style: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    max-height: 350px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    transition: opacity 0.2s ease;
}

.suggestions.active {
    display: block;
    opacity: 1;
}

.suggestions li {
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.suggestions li:last-child {
    border-bottom: none;
}

.suggestion-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    padding: 12px 15px;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.suggestion-link:hover,
.suggestion-link:focus {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
    outline: none;
}

.suggestion-image {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.suggestion-content {
    display: flex;
    flex-direction: column;
}

.suggestion-title {
    font-size: 15px;
    font-weight: 500;
}

.suggestion-title .highlight {
    background: rgba(255, 107, 107, 0.5);
    font-weight: 600;
}

.suggestion-category {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
    text-transform: uppercase;
}

.no-results {
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-align: center;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-link, .dropdown-toggle {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 12px;
    transition: color 0.3s ease, background 0.3s ease;
    border-radius: 8px;
}

.nav-link:hover, .dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ff6b6b;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    background: none;
    border: none;
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    list-style: none;
    min-width: 150px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.dropdown:hover .dropdown-menu,
.dropdown-toggle:focus + .dropdown-menu {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.menu-toggle:hover {
    color: #ff6b6b;
}

.menu-toggle.active::before {
    content: '✕';
    font-size: 24px;
}

/* Content Div */
.content {
    margin-top: 80px; /* Accounts for fixed header height */
    padding: 20px 30px;
}

.content-container {
    max-width: 1360px;
    margin: 0 auto;
}

.content-title {
    font-size: 28px;
    color: #fff;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.content-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.25);
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.card-content {
    padding: 15px;
}

.card-title {
    font-size: 18px;
    color: #fff;
    font-weight: 500;
    margin-bottom: 8px;
}

.card-category {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.card-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    margin-bottom: 12px;
}

.card-link {
    display: inline-block;
    color: #ff6b6b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: #d9534f;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .header {
        padding: 10px 20px;
        flex-wrap: wrap;
    }

    .search-column {
        order: 1;
        width: 100%;
        padding: 10px 20px;
    }

    .search-container {
        max-width: 100%;
    }

    .logo {
        order: 0;
    }

    .nav-menu {
        order: 2;
        width: auto;
        display: flex;
        justify-content: flex-end;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        padding: 15px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }

    .nav-list.active {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        background: rgba(255, 255, 255, 0.05);
        border: none;
        box-shadow: none;
        padding-left: 15px;
    }

    .menu-toggle {
        display: block;
    }

    .content {
        padding: 15px 20px;
    }

    .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .search-wrapper {
        height: 40px;
        padding: 0 10px;
    }

    #searchInput {
        font-size: 14px;
    }

    #searchButton, #clearButton, .loading-spinner {
        font-size: 16px;
        margin: 0 6px;
    }

    .suggestion-image {
        width: 40px;
        height: 40px;
    }

    .suggestion-title {
        font-size: 14px;
    }

    .suggestion-category {
        font-size: 11px;
    }

    .logo img {
        height: 35px;
    }

    .nav-link, .dropdown-toggle {
        font-size: 14px;
        padding: 6px 10px;
    }

    .dropdown-item {
        font-size: 13px;
        padding: 8px 12px;
    }

    .content-title {
        font-size: 24px;
    }

    .card-image {
        height: 150px;
    }

    .card-title {
        font-size: 16px;
    }

    .card-description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 15px;
    }

    .search-column {
        padding: 10px 15px;
    }

    .search-wrapper {
        height: 36px;
    }

    #searchInput {
        font-size: 13px;
    }

    #searchButton, #clearButton, .loading-spinner {
        font-size: 14px;
        margin: 0 5px;
    }

    .suggestion-image {
        width: 36px;
        height: 36px;
    }

    .suggestion-title {
        font-size: 13px;
    }

    .suggestion-link {
        padding: 10px 12px;
    }

    .logo img {
        height: 30px;
    }

    .menu-toggle {
        display: block;
    }

    .content {
        padding: 10px 15px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .content-title {
        font-size: 20px;
    }

    .card-image {
        height: 120px;
    }
}

/* Scrollbar Styling for Suggestions and Content */
.suggestions::-webkit-scrollbar,
.content-grid::-webkit-scrollbar {
    width: 8px;
}

.suggestions::-webkit-scrollbar-track,
.content-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.suggestions::-webkit-scrollbar-thumb,
.content-grid::-webkit-scrollbar-thumb {
    background: #ff6b6b;
    border-radius: 10px;
}

.suggestions::-webkit-scrollbar-thumb:hover,
.content-grid::-webkit-scrollbar-thumb:hover {
    background: #d9534f;
}