.browse-section {
    --browse-border: #e5e7eb;
    --browse-text: #1f2937;
    --browse-text-secondary: #6b7280;
    --private: #7c4fe0;
    --private-dark: #6633cc;
    --private-soft: #f2edfd;
    --radius: 12px;
    --text-light: #9ca3af;

    min-height: 100vh;
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #e2e8f0 100%);
}

.browse-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.browse-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.browse-subtitle {
    color: var(--browse-text-secondary);
    font-size: 1.1rem;
}

.search-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
}

.search-filters .search-box {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-filters .search-box svg {
    position: absolute;
    left: 1rem;
    color: var(--browse-text-secondary);
    pointer-events: none;
    flex-shrink: 0;
}

.search-filters .search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 2px solid var(--browse-border);
    border-radius: 0.75rem;
    background: #ffffff;
    color: var(--browse-text);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-filters .search-box input::placeholder {
    color: var(--browse-text-secondary);
}

.search-filters .search-box input:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

.filter-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.filter-group select {
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    border: 2px solid var(--browse-border);
    border-radius: 0.75rem;
    background: #ffffff;
    color: var(--browse-text);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
}

.filter-group select:focus {
    outline: none;
    border-color: #06b6d4;
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.1);
}

.filter-group .btn {
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
}

.results-count {
    color: var(--browse-text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    background: #ffffff;
    border: 1px dashed var(--browse-border);
    border-radius: 1.5rem;
    margin-top: 2rem;
}

.no-results p {
    color: var(--browse-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.course-instructor {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--browse-text-secondary);
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.instructor-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 700;
    flex-shrink: 0;
}

.price-block .price.free {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 9999px;
    background: #dcfce7;
    color: #16a34a;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.code-chip-slot .price.free {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 9999px;
    background: #fef3c7;
    color: #d97706;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.course-title a {
    color: var(--browse-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.course-title a:hover {
    color: #0891b2;
}

.enrolled-badge {
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #e0e7ff;
    color: #6366f1;
    margin-left: auto;
}

.enroll-status {
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    background: #fff7ed;
    color: #c2620a;
    margin-left: auto;
}

.enroll-status.closed {
    background: #f1f5f9;
    color: #64748b;
}

.private-details {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
    padding: 8px 0;
    border-top: 1px solid var(--browse-border);
}

.detail-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--browse-text-secondary);
    background: #f8fafc;
    padding: 3px 8px;
    border-radius: 6px;
}

.detail-item svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.pagination-wrap {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
}

.pagination-wrap nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.pagination-wrap .pagination {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pagination-wrap .page-item {
    display: inline-flex;
}

.pagination-wrap .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid var(--browse-border);
    border-radius: 8px;
    background: #ffffff;
    color: var(--browse-text);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pagination-wrap .page-link:hover {
    border-color: #06b6d4;
    color: #06b6d4;
    background: #f0fdff;
}

.pagination-wrap .page-item.active .page-link {
    border-color: #06b6d4;
    background: #06b6d4;
    color: #ffffff;
}

.pagination-wrap .page-item.disabled .page-link {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

@media (max-width: 768px) {
    .browse-section {
        padding: 7rem 1rem 3rem;
    }

    .browse-title {
        font-size: 1.8rem;
    }

    .search-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .search-filters .search-box {
        min-width: auto;
    }

    .filter-group {
        flex-wrap: wrap;
    }

    .filter-group select {
        flex: 1;
        min-width: 120px;
    }
}
