/* Search Dropdown Styles */
.search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    max-height: 400px;
    overflow-y: auto;
    z-index: 9999;
    display: none;
    margin-top: 5px;
}

.search-dropdown.active {
    display: block;
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.search-result-icon.blog {
    background-color: #e3f2fd;
    color: #1976d2;
}

.search-result-icon.category {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.search-result-icon.author {
    background-color: #e8f5e9;
    color: #388e3c;
}

.search-result-icon.webinar {
    background-color: #fff3e0;
    color: #f57c00;
}

.search-result-icon.checklist {
    background-color: #fce4ec;
    color: #c2185b;
}

.search-result-icon img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-type {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.search-result-type.blog { color: #1976d2; }
.search-result-type.category { color: #7b1fa2; }
.search-result-type.author { color: #388e3c; }
.search-result-type.webinar { color: #f57c00; }
.search-result-type.checklist { color: #c2185b; }

.search-result-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-description {
    font-size: 13px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.search-loading {
    padding: 20px;
    text-align: center;
    color: #666;
}

.search-input-wrap {
    position: relative;
}

html {
    scroll-behavior: smooth;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #28a745;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@media (max-width: 768px) {
    .search-dropdown {
        max-height: 300px;
    }
    
    .search-result-item {
        padding: 10px 12px;
    }
    
    .search-result-icon {
        width: 35px;
        height: 35px;
    }
}
.resus{
    color: var(--pc);
}

/* Filter buttons styling */
.resource-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover {
    border-color: var(--pc);
    color: var(--pc);
}

.filter-btn.active {
    background: var(--pc);
    color: white;
    border-color: var(--pc);
}
